summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothProfile.java
diff options
context:
space:
mode:
authorJack He <siyuanh@google.com>2021-12-15 15:40:34 -0800
committerJack He <siyuanh@google.com>2022-02-02 15:17:34 -0800
commita014314c9490a18fd4b900302d873206df09a3e0 (patch)
treeb60b0f2f949032b8b4a9c16d28d61357d9ff1f3f /framework/java/android/bluetooth/BluetoothProfile.java
parentb99f7eced58e8e722366ce364a8a2eef4e4449e0 (diff)
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)
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothProfile.java')
-rw-r--r--framework/java/android/bluetooth/BluetoothProfile.java11
1 files changed, 10 insertions, 1 deletions
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;
/**
@@ -253,12 +254,20 @@ 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