summaryrefslogtreecommitdiff
path: root/libs/hwui/FrameInfoVisualizer.cpp
diff options
context:
space:
mode:
author Jakub Pawlowski <jpawlowski@google.com> 2023-02-16 11:46:18 +0100
committer Jakub Pawłowski <jpawlowski@google.com> 2023-02-17 08:23:53 +0000
commitee67bd4a5a73544e44595c2a6773fe9d584016ed (patch)
tree1e2d4832ba03b3546430e8ed9771d88a7934f02f /libs/hwui/FrameInfoVisualizer.cpp
parent1c2ff8b88908cd0aec3c761279a25fc6d7549494 (diff)
AudioService: Add makeLeAudioDeviceUnavailableLater
Currently, when LE Audio device becomes unavaliable due to BT adapter disable, user can hear audio from device speaker for a split second. This is because we make device unavaliable immediately for LE Audio. Instead, it should become unavaliable after AUDIO_BECOMING_NOISY intent is sent. Since this is working correctly for A2DP, fix is to copy solution from there for LE Audio code path, and split makeLeAudioDeviceUnavailable into *Now and *Later versions. With this fix, the device becomes unavaliable after the noisy intent, and audio glitch is not heard from speaker. Example dumpsys audio logs after fix is applied: 02-16 11:25:43:022 broadcast ACTION_AUDIO_BECOMING_NOISY 02-16 11:25:44:050 LE Audio device addr=14:3F:A6:60:0A:A5 made unavailable Bug: 263209656 Test: play music in Spotfiy, listen on LE Audio device, then disable Bluetooth. Verify that audio is not heard from the phoen speaker Merged-In: I0ff85798c3672b2d6862460c2f2d914f705aac2c Change-Id: I0ff85798c3672b2d6862460c2f2d914f705aac2c
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions