diff options
| author | 2024-07-29 15:00:30 +0800 | |
|---|---|---|
| committer | 2024-07-29 19:48:14 +0800 | |
| commit | 22a393129df30faa855452e7c6a37c2720a75e2f (patch) | |
| tree | 0b0dacf0bc6eaab4c8b71263d639163c66a2f6cd /api/api_test.go | |
| parent | 59002e70d74c31d8c8c6ebf1e161dfedfbfaa85c (diff) | |
[Audiosharing] Fix race condition in AudioSharingRepository provides
BluetoothUtils#isAudioSharingEnabled will check broadcast/assistant
profile support by checking BluetoothAdapter#isLeAudioBroadcastXXXSupported.
BluetoothAdapter#isLeAudioBroadcastXXXSupported can return error value
when BT is not enabled, even broadcast feature is supported.
However, we can not make sure AudioSharingRepository is provided after
BT is enabled during device boot on.
Thus we only check flag when providing AudioSharingRepository, profile
support has already been checked in the repository impl.
Test: atest
Bug: 336716411
Flag: com.android.settingslib.flags.volume_dialog_audio_sharing_fix
Change-Id: I1c9e213e883155e43c90249901d1909873302d1d
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions