From 2645fa289dea968f402599238fc76fd659875ed5 Mon Sep 17 00:00:00 2001 From: Chienyuan Date: Mon, 29 Nov 2021 10:58:31 +0800 Subject: [PATCH] Print anonymized address when new profile update Bug: 206676415 Test: manual Change-Id: Ia65cb0a4310158583bfb6b025888b0b76aa76966 --- .../android/settingslib/bluetooth/CachedBluetoothDevice.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java b/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java index 021ba2247e67f..ddee433d39973 100644 --- a/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java +++ b/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java @@ -21,7 +21,6 @@ import android.bluetooth.BluetoothClass; import android.bluetooth.BluetoothCsipSetCoordinator; import android.bluetooth.BluetoothDevice; import android.bluetooth.BluetoothHearingAid; -import android.bluetooth.BluetoothLeAudio; import android.bluetooth.BluetoothProfile; import android.bluetooth.BluetoothUuid; import android.content.Context; @@ -191,7 +190,7 @@ public class CachedBluetoothDevice implements Comparable void onProfileStateChanged(LocalBluetoothProfile profile, int newProfileState) { if (BluetoothUtils.D) { Log.d(TAG, "onProfileStateChanged: profile " + profile + ", device " - + mDevice.getAlias() + ", newProfileState " + newProfileState); + + mDevice.getAnonymizedAddress() + ", newProfileState " + newProfileState); } if (mLocalAdapter.getState() == BluetoothAdapter.STATE_TURNING_OFF) { @@ -741,7 +740,7 @@ public class CachedBluetoothDevice implements Comparable } if (BluetoothUtils.D) { - Log.d(TAG, "updating profiles for " + mDevice.getAlias()); + Log.d(TAG, "updating profiles for " + mDevice.getAnonymizedAddress()); BluetoothClass bluetoothClass = mDevice.getBluetoothClass(); if (bluetoothClass != null) Log.v(TAG, "Class: " + bluetoothClass.toString());