summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorwumin3 <wumin3@xiaomi.com>2020-04-09 15:47:01 +0800
committerEric Laurent <elaurent@google.com>2020-04-10 00:37:43 +0000
commit13821952ef33cece5ede79e293c8b028c0e8611b (patch)
tree6e6a4cb10f85259f6afcbc4f2ffa5537b217cc8b /tools/aapt2/java/JavaClassGenerator_test.cpp
parent1fdf62b72f48c6f4d05636c20b6e5c2dad0708e1 (diff)
AudioService: fix audio mode not reset to MODE_NORMAL
when a app call setMode to set mode to non MODE_NORMAL modes many times with different audio managers in the same process, in this case the "pid" parameters are the same and the "cb" parameters are not the same, then the parameter "cb" registered and the "mCb" in hdlr are not the same, then NoSuchElementException will happen, and when the app was cleared in recent tasks the audio mode will not be reseted to MODE_NORMAL by expected flow. Bug: 153649105 Test: AudioManagerTest#testAccessMode, CallDetailsTest#testSetVoipAudioMode Test: manual cell and voip call Signed-off-by: wumin3 <wumin3@xiaomi.com> Change-Id: Ifb8c66372a8e994edcea628cad7dc2a7ee4763a6 Merged-In: Ifb8c66372a8e994edcea628cad7dc2a7ee4763a6
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions