summaryrefslogtreecommitdiff
path: root/libs/androidfw/ApkParsing.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 09:11:28 +0000
commit8c14a8201665f81afe0a0e1983093e14c67feaaa (patch)
tree0fa6fc035d91dac7d1e1d0522777eac4837046b9 /libs/androidfw/ApkParsing.cpp
parent7137d9165d25c7ddec6fe92e9d83a83ceceeafb0 (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 Change-Id: I0ff85798c3672b2d6862460c2f2d914f705aac2c (cherry picked from commit 7fb3968aac65430d6ed3ad1a109a8a42c4c77bed)
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions