summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2018-06-13 19:36:42 -0700
committerEric Laurent <elaurent@google.com>2018-06-14 16:58:42 -0700
commit3c4636c7127cd34728050d051ef3bd62829e877d (patch)
tree9b949cd7957369b33e668aae2d401c6b4fdf8f72 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentf910fdb1daf1bd3c28222efde503e2ff8de5c027 (diff)
audioservice: fix a2dp connection race condition
In case of fast (< 1 second) A2DP disconnect/connect sequence, there is a potential race condition where the delayed disconnection message (due to becoming noisy intent) is received after the not delayed connection message. - Make sure all messages related to device connection/disconnection (including MSG_A2DP_DEVICE_CONFIG_CHANGE and MSG_BTA2DP_DOCK_TIMEOUT) are handled by queueMsgUnderWakeLock(). - Make sure messages are processed in the same order as API calls. - Add check for null address in makeA2dpDeviceUnavailableNow(). Bug: 109903807 Bug: 78837311 Test: repro steps in bugs. A2DP connection and playback Change-Id: Ib81b3805f945f7206b1a60de74e9bbeeef89bdd0
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions