summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothDevice.java
diff options
context:
space:
mode:
authorRahul Sabnis <rahulsabnis@google.com>2022-07-08 11:57:32 -0700
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-07-13 01:45:03 +0000
commit44496dc25a9df80025c489cd9d6c1f6cced7e837 (patch)
tree07fda1ed3d04ea1adce55e294c4f3a4f8610de48 /framework/java/android/bluetooth/BluetoothDevice.java
parent499408981d9ee670010347ebe61deecc0ff5a7a2 (diff)
Fixes a bug in the BluetoothDevice#getIdentityAddress API where it
returns the mAddress field of the device instead of null when the identity address is not known. Tag: #feature Bug: 238353063 Test: atest AdapterServiceTest#testAddressConsolidate Ignore-AOSP-First: Change needs to land in TM release Change-Id: I577843c9e2cc279915d0632ff25bde66aa949e94 (cherry picked from commit 448c2830336794d350b1c7c4f62c3e406b172e32) Merged-In: I577843c9e2cc279915d0632ff25bde66aa949e94
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothDevice.java')
-rw-r--r--framework/java/android/bluetooth/BluetoothDevice.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/java/android/bluetooth/BluetoothDevice.java b/framework/java/android/bluetooth/BluetoothDevice.java
index 5c91c9480b..e7a6ea0e84 100644
--- a/framework/java/android/bluetooth/BluetoothDevice.java
+++ b/framework/java/android/bluetooth/BluetoothDevice.java
@@ -1477,7 +1477,8 @@ public final class BluetoothDevice implements Parcelable, Attributable {
* Returns the identity address of this BluetoothDevice.
* <p> For example, "00:11:22:AA:BB:CC".
*
- * @return Bluetooth identity address as a string
+ * @return this device's identity address as a string or {@code null} if the identity
+ * address is either not known or is unable to be retrieved
* @hide
*/
@SystemApi