summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothDevice.java
diff options
context:
space:
mode:
authorxiaowang <quic_xiaowang@quicinc.com>2022-01-06 11:08:41 +0800
committerJack He <siyuanh@google.com>2022-03-02 22:47:35 +0000
commit23f5a11da71ad930f9a156a434d954ebc48e27a5 (patch)
treeaef9ce1914c30c9caed6a988f18b137079e36551 /framework/java/android/bluetooth/BluetoothDevice.java
parent347bd0b06a019bbe84f6a1a3d79f91b5e88310d0 (diff)
BT LE broadcast assistant implementation
BT LE broadcast assistant implementation Test: compile Tag: #feature sponsor: siyuanh@ Change-Id: Ia183608f3551319f79f8e2aa933445346c42c028 Signed-off-by: Myles Watson <mylesgw@google.com>
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothDevice.java')
-rw-r--r--framework/java/android/bluetooth/BluetoothDevice.java11
1 files changed, 11 insertions, 0 deletions
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
@@ -1384,6 +1384,17 @@ public final class BluetoothDevice implements Parcelable, Attributable {
}
/**
+ * 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.
* <p> For example, "XX:XX:XX:AA:BB:CC".