diff options
| author | 2025-01-22 15:03:34 +0000 | |
|---|---|---|
| committer | 2025-02-11 17:40:29 +0000 | |
| commit | 23f2347a4d539473cd1486a40ebaf1e1ed15212b (patch) | |
| tree | db87bb7c61328d62ca0034d9295c2f85309e3507 /framework/java | |
| parent | 4a9aa21ce60b29bce4433c8e993e691ecb4b2311 (diff) | |
Bass: Refactor handling select source requests
Collect the variables that depend on syncHandle and modify them
together where possible. Add synchronization to ensure they are
updated safely. This prevents unexpected behavior from concurrent
modifications. Allow the creation of isAddedToSelectSourceRequest
since they are modified simultaneously. In the future, this will
simplify refactoring to create a single object to store them together.
Ignore synced broadcast in onSyncEstablished if there is no pending
synchronization. There is no possibility to unsync it as we do not
have mPeriodicAdvCallbacksMap for it.
Bug: 389722679
Flag: EXEMPT, refactor covered by unit tests
Test: atest BassClientServiceTest
Change-Id: Iddf2dfdd880b6c9594e6d8e627d9ecabe610cc9e
Diffstat (limited to 'framework/java')
| -rw-r--r-- | framework/java/android/bluetooth/BluetoothLeBroadcastAssistant.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/java/android/bluetooth/BluetoothLeBroadcastAssistant.java b/framework/java/android/bluetooth/BluetoothLeBroadcastAssistant.java index 683a5433ac..d8a5b4080e 100644 --- a/framework/java/android/bluetooth/BluetoothLeBroadcastAssistant.java +++ b/framework/java/android/bluetooth/BluetoothLeBroadcastAssistant.java @@ -916,7 +916,7 @@ public final class BluetoothLeBroadcastAssistant implements BluetoothProfile, Au @RequiresBluetoothScanPermission @RequiresPermission(allOf = {BLUETOOTH_SCAN, BLUETOOTH_PRIVILEGED}) public boolean isSearchInProgress() { - log("stopSearchingForSources:"); + log("isSearchInProgress:"); final IBluetoothLeBroadcastAssistant service = getService(); final boolean defaultValue = false; if (service == null) { |