diff options
author | Jack He <siyuanh@google.com> | 2022-03-03 05:46:26 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2022-03-03 05:46:26 +0000 |
commit | 4024c5ee498844e674eb2982fb7fb713912e94e6 (patch) | |
tree | 3b31b549d92539674cd0865f04fb499439bccaca /framework/java/android/bluetooth/BluetoothDevice.java | |
parent | 4a680b9117becf05b2953b8e25f3c771d3d6e109 (diff) | |
parent | 23f5a11da71ad930f9a156a434d954ebc48e27a5 (diff) |
Merge "BT LE broadcast assistant implementation"
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothDevice.java')
-rw-r--r-- | framework/java/android/bluetooth/BluetoothDevice.java | 11 |
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". |