Merge "Remove bluetooth address from logs in SettingsLib" am: 4ad4ca07bb
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1397949 Change-Id: Ic14a585b51e106c7d363fcd1231e5cd884c5727b
This commit is contained in:
@@ -292,18 +292,12 @@ public class BluetoothEventManager {
|
|||||||
CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device);
|
CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device);
|
||||||
if (cachedDevice == null) {
|
if (cachedDevice == null) {
|
||||||
cachedDevice = mDeviceManager.addDevice(device);
|
cachedDevice = mDeviceManager.addDevice(device);
|
||||||
Log.d(TAG, "DeviceFoundHandler created new CachedBluetoothDevice: "
|
Log.d(TAG, "DeviceFoundHandler created new CachedBluetoothDevice");
|
||||||
+ cachedDevice);
|
|
||||||
} else if (cachedDevice.getBondState() == BluetoothDevice.BOND_BONDED
|
} else if (cachedDevice.getBondState() == BluetoothDevice.BOND_BONDED
|
||||||
&& !cachedDevice.getDevice().isConnected()) {
|
&& !cachedDevice.getDevice().isConnected()) {
|
||||||
// Dispatch device add callback to show bonded but
|
// Dispatch device add callback to show bonded but
|
||||||
// not connected devices in discovery mode
|
// not connected devices in discovery mode
|
||||||
dispatchDeviceAdded(cachedDevice);
|
dispatchDeviceAdded(cachedDevice);
|
||||||
Log.d(TAG, "DeviceFoundHandler found bonded and not connected device:"
|
|
||||||
+ cachedDevice);
|
|
||||||
} else {
|
|
||||||
Log.d(TAG, "DeviceFoundHandler found existing CachedBluetoothDevice:"
|
|
||||||
+ cachedDevice);
|
|
||||||
}
|
}
|
||||||
cachedDevice.setRssi(rssi);
|
cachedDevice.setRssi(rssi);
|
||||||
cachedDevice.setJustDiscovered(true);
|
cachedDevice.setJustDiscovered(true);
|
||||||
|
|||||||
@@ -122,8 +122,8 @@ public class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice>
|
|||||||
|
|
||||||
void onProfileStateChanged(LocalBluetoothProfile profile, int newProfileState) {
|
void onProfileStateChanged(LocalBluetoothProfile profile, int newProfileState) {
|
||||||
if (BluetoothUtils.D) {
|
if (BluetoothUtils.D) {
|
||||||
Log.d(TAG, "onProfileStateChanged: profile " + profile + ", device=" + mDevice
|
Log.d(TAG, "onProfileStateChanged: profile " + profile + ", device "
|
||||||
+ ", newProfileState " + newProfileState);
|
+ mDevice.getAlias() + ", newProfileState " + newProfileState);
|
||||||
}
|
}
|
||||||
if (mLocalAdapter.getState() == BluetoothAdapter.STATE_TURNING_OFF)
|
if (mLocalAdapter.getState() == BluetoothAdapter.STATE_TURNING_OFF)
|
||||||
{
|
{
|
||||||
@@ -214,9 +214,6 @@ public class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice>
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setHiSyncId(long id) {
|
public void setHiSyncId(long id) {
|
||||||
if (BluetoothUtils.D) {
|
|
||||||
Log.d(TAG, "setHiSyncId: mDevice " + mDevice + ", id " + id);
|
|
||||||
}
|
|
||||||
mHiSyncId = id;
|
mHiSyncId = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -562,7 +559,7 @@ public class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice>
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (BluetoothUtils.D) {
|
if (BluetoothUtils.D) {
|
||||||
Log.e(TAG, "updating profiles for " + mDevice.getAlias() + ", " + mDevice);
|
Log.d(TAG, "updating profiles for " + mDevice.getAlias());
|
||||||
BluetoothClass bluetoothClass = mDevice.getBluetoothClass();
|
BluetoothClass bluetoothClass = mDevice.getBluetoothClass();
|
||||||
|
|
||||||
if (bluetoothClass != null) Log.v(TAG, "Class: " + bluetoothClass.toString());
|
if (bluetoothClass != null) Log.v(TAG, "Class: " + bluetoothClass.toString());
|
||||||
|
|||||||
Reference in New Issue
Block a user