From a014314c9490a18fd4b900302d873206df09a3e0 Mon Sep 17 00:00:00 2001 From: Jack He Date: Wed, 15 Dec 2021 15:40:34 -0800 Subject: Introduce LE audio broadcast system APIs * Rename BluetoothLeBroadcastSourceInfo to BluetoothLeBroadcastReceiveState so that it matches the name in the Bluetooth specification * Added callbacks to BluetoothLeBroadcast so that caller that wait for asynchronouze operations with reason code in the hope to reduce potential race conditions * Allow multiple broadcast to be set up on the same deivce if the device supports it * Added ScanFilter to searchForSources() method and removed selectSources() method for BluetoothLeBroadcastAssistant so that the Bluetooth stack can automatically handle periodic sync after a Broadcast source is found and only do this for a limited number of devices * Added structural APIs to store Broadcast Source and Group information * Added unknown address type in BluetoothDevice Bug: 208222281 Test: make Tag: #feature Ignore-AOSP-First: Merge conflict in master Change-Id: If4c3af658b5bc1283d76e5d1899485a487ab7626 Merged-In: If4c3af658b5bc1283d76e5d1899485a487ab7626 (cherry picked from commit 4f9d902028fbe271167547884c33fb9ec7601080) --- framework/java/android/bluetooth/BluetoothProfile.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'framework/java/android/bluetooth/BluetoothProfile.java') diff --git a/framework/java/android/bluetooth/BluetoothProfile.java b/framework/java/android/bluetooth/BluetoothProfile.java index 1fa2bcfd44..c29a671488 100644 --- a/framework/java/android/bluetooth/BluetoothProfile.java +++ b/framework/java/android/bluetooth/BluetoothProfile.java @@ -237,6 +237,7 @@ public interface BluetoothProfile { * * @hide */ + @SystemApi int LE_AUDIO_BROADCAST = 26; /** @@ -252,13 +253,21 @@ public interface BluetoothProfile { */ int HAP_CLIENT = 28; + /** + * LE Audio Broadcast Assistant + * + * @hide + */ + @SystemApi + int LE_AUDIO_BROADCAST_ASSISTANT = 29; + /** * Max profile ID. This value should be updated whenever a new profile is added to match * the largest value assigned to a profile. * * @hide */ - int MAX_PROFILE_ID = 28; + int MAX_PROFILE_ID = 29; /** * Default priority for devices that we try to auto-connect to and -- cgit v1.2.3