Add debug log for set/remove active device.
Bug: 160746277 Test: atest BluetoothInstrumentationTests Tag: #feature Change-Id: I3decaa102345d9e9485882cfeee2fae203264e25
This commit is contained in:
committed by
Weichin Weng
parent
f1881eb41a
commit
f6ec2d07e2
@@ -1784,6 +1784,7 @@ public final class BluetoothAdapter {
|
||||
try {
|
||||
mServiceLock.readLock().lock();
|
||||
if (mService != null) {
|
||||
if (DBG) Log.d(TAG, "removeActiveDevice, profiles: " + profiles);
|
||||
return mService.removeActiveDevice(profiles);
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
@@ -1828,6 +1829,9 @@ public final class BluetoothAdapter {
|
||||
try {
|
||||
mServiceLock.readLock().lock();
|
||||
if (mService != null) {
|
||||
if (DBG) {
|
||||
Log.d(TAG, "setActiveDevice, device: " + device + ", profiles: " + profiles);
|
||||
}
|
||||
return mService.setActiveDevice(device, profiles);
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
|
||||
Reference in New Issue
Block a user