diff options
author | weichinweng <weichinweng@google.com> | 2020-06-29 08:14:49 +0800 |
---|---|---|
committer | Weichin Weng <weichinweng@google.com> | 2020-07-08 03:41:32 +0000 |
commit | f6ec2d07e2fe6bdf28e96b3505ec6a073aaf16d8 (patch) | |
tree | 5f183601c7998e2262ee3e980bfb82acba408ba2 | |
parent | f1881eb41a555838e5174c3f7c1811ccacf2a44e (diff) |
Add debug log for set/remove active device.
Bug: 160746277
Test: atest BluetoothInstrumentationTests
Tag: #feature
Change-Id: I3decaa102345d9e9485882cfeee2fae203264e25
-rw-r--r-- | core/java/android/bluetooth/BluetoothAdapter.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/bluetooth/BluetoothAdapter.java b/core/java/android/bluetooth/BluetoothAdapter.java index f962ea0966bd..47bd207fee65 100644 --- a/core/java/android/bluetooth/BluetoothAdapter.java +++ b/core/java/android/bluetooth/BluetoothAdapter.java @@ -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) { |