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/BluetoothDevice.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'framework/java/android/bluetooth/BluetoothDevice.java') diff --git a/framework/java/android/bluetooth/BluetoothDevice.java b/framework/java/android/bluetooth/BluetoothDevice.java index f0a6c4a48a..b2c6a5e87f 100644 --- a/framework/java/android/bluetooth/BluetoothDevice.java +++ b/framework/java/android/bluetooth/BluetoothDevice.java @@ -1139,6 +1139,8 @@ public final class BluetoothDevice implements Parcelable, Attributable { ADDRESS_TYPE_PUBLIC, /** Address is either resolvable, non-resolvable or static.*/ ADDRESS_TYPE_RANDOM, + /** Address type is unknown or unavailable **/ + ADDRESS_TYPE_UNKNOWN, } ) public @interface AddressType {} @@ -1147,6 +1149,8 @@ public final class BluetoothDevice implements Parcelable, Attributable { public static final int ADDRESS_TYPE_PUBLIC = 0; /** Address is either resolvable, non-resolvable or static. */ public static final int ADDRESS_TYPE_RANDOM = 1; + /** Address type is unknown or unavailable **/ + public static final int ADDRESS_TYPE_UNKNOWN = 0xFFFF; private static final String NULL_MAC_ADDRESS = "00:00:00:00:00:00"; -- cgit v1.2.3