summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorFelipe Leme <felipeal@google.com>2021-06-10 14:10:39 -0700
committerFelipe Leme <felipeal@google.com>2021-06-15 11:31:36 -0700
commit07848e302b03d65ed7c340a28980eb3a5a85bdcb (patch)
treee8055afdea7d24e2dcae3470b043acc8e97ec66a /tools/aapt2/java/JavaClassGenerator_test.cpp
parent1a49d4f799bbd0ada2da7de3ce1f2d36058d3892 (diff)
Improved implementation of VoiceInteractionManagerService.setDisabled()
This method is called by CarService when the system goes into suspend state and the initial implementation completely disabled the service (and unbound system server from it), which had 2 drawbacks: - It adds extra work when the system resumes as it has to rebind. - It can cause memory leaks if the service implementation doesn't handle it well. This CL changes how the API is implemented: rather than disabling the service, it just ignores new sessions. To test it: 1. Disable $ adb shell cmd voiceinteraction disable true 2. Start a session $ adb shell cmd voiceinteraction show 3. Check logcat I VoiceInteractionManager: showSessionForActiveService(): ignored while temporarily disabled Bug: 190051449 Test: manual verification (see above) Change-Id: Idbc4881b92d9254fb07ea5af1370ea600fc10b80
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions