From 23f5a11da71ad930f9a156a434d954ebc48e27a5 Mon Sep 17 00:00:00 2001 From: xiaowang Date: Thu, 6 Jan 2022 11:08:41 +0800 Subject: BT LE broadcast assistant implementation BT LE broadcast assistant implementation Test: compile Tag: #feature sponsor: siyuanh@ Change-Id: Ia183608f3551319f79f8e2aa933445346c42c028 Signed-off-by: Myles Watson --- framework/java/android/bluetooth/BluetoothDevice.java | 11 +++++++++++ 1 file changed, 11 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 170e8469b0..981afd8631 100644 --- a/framework/java/android/bluetooth/BluetoothDevice.java +++ b/framework/java/android/bluetooth/BluetoothDevice.java @@ -1383,6 +1383,17 @@ public final class BluetoothDevice implements Parcelable, Attributable { return mAddress; } + /** + * Returns the address type of this BluetoothDevice. + * + * @return Bluetooth address type + * @hide + */ + public int getAddressType() { + if (DBG) Log.d(TAG, "mAddressType: " + mAddressType); + return mAddressType; + } + /** * Returns the anonymized hardware address of this BluetoothDevice. The first three octets * will be suppressed for anonymization. -- cgit v1.2.3