diff options
author | Mike Lockwood <lockwood@google.com> | 2014-10-28 14:07:00 -0700 |
---|---|---|
committer | Mike Lockwood <lockwood@google.com> | 2014-10-28 14:07:00 -0700 |
commit | 838949d46a4cc054985a8cfd682004f8dd6d3bbb (patch) | |
tree | 6f773ca4465af83fd3bd6b7ed1284e9181a13d14 /src/com/android/bluetooth/hdp | |
parent | 9b95221e5d4efc1678f3342a15c05f293cc79a05 (diff) | |
download | android_packages_apps_Bluetooth-838949d46a4cc054985a8cfd682004f8dd6d3bbb.tar.gz android_packages_apps_Bluetooth-838949d46a4cc054985a8cfd682004f8dd6d3bbb.tar.bz2 android_packages_apps_Bluetooth-838949d46a4cc054985a8cfd682004f8dd6d3bbb.zip |
Add dumpsys support for bluetooth
Bug: 18159457
Change-Id: I807a7d921b6e5baf111d0f0e3e182c6633a93b7c
Diffstat (limited to 'src/com/android/bluetooth/hdp')
-rw-r--r-- | src/com/android/bluetooth/hdp/HealthService.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/com/android/bluetooth/hdp/HealthService.java b/src/com/android/bluetooth/hdp/HealthService.java index 21846c677..8d8eff7f0 100644 --- a/src/com/android/bluetooth/hdp/HealthService.java +++ b/src/com/android/bluetooth/hdp/HealthService.java @@ -788,6 +788,23 @@ public class HealthService extends ProfileService { return healthDevices; } + @Override + public void dump(StringBuilder sb) { + super.dump(sb); + println(sb, "mHealthChannels:"); + for (HealthChannel channel : mHealthChannels) { + println(sb, " " + channel); + } + println(sb, "mApps:"); + for (BluetoothHealthAppConfiguration conf : mApps.keySet()) { + println(sb, " " + conf + " : " + mApps.get(conf)); + } + println(sb, "mHealthDevices:"); + for (BluetoothDevice device : mHealthDevices.keySet()) { + println(sb, " " + device + " : " + mHealthDevices.get(device)); + } + } + private static class AppInfo { private IBluetoothHealthCallback mCallback; private BluetoothHealthDeathRecipient mRcpObj; |