diff options
author | Nick Pelly <npelly@google.com> | 2009-08-26 10:57:33 -0700 |
---|---|---|
committer | Nick Pelly <npelly@google.com> | 2009-08-26 10:57:33 -0700 |
commit | 1eada0d3d655d6396bf862da954d254856a1bc03 (patch) | |
tree | 163e672701930c5cca264d98e50d4535e9b12657 /core/java/android/server/BluetoothService.java | |
parent | b23d4458a91c8e77828fc38ffd81914c2e37d43a (diff) | |
download | frameworks_base-1eada0d3d655d6396bf862da954d254856a1bc03.zip frameworks_base-1eada0d3d655d6396bf862da954d254856a1bc03.tar.gz frameworks_base-1eada0d3d655d6396bf862da954d254856a1bc03.tar.bz2 |
Add uuids to adb shell dumpsys bluetooth
Diffstat (limited to 'core/java/android/server/BluetoothService.java')
-rw-r--r-- | core/java/android/server/BluetoothService.java | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/core/java/android/server/BluetoothService.java b/core/java/android/server/BluetoothService.java index a7c0425..6f5a3d6 100644 --- a/core/java/android/server/BluetoothService.java +++ b/core/java/android/server/BluetoothService.java @@ -1083,14 +1083,25 @@ public class BluetoothService extends IBluetooth.Stub { pw.println("\n--Known devices--"); for (String address : mDeviceProperties.keySet()) { + int bondState = mBondState.getBondState(address); pw.printf("%s %10s (%d) %s\n", address, - toBondStateString(mBondState.getBondState(address)), + toBondStateString(bondState), mBondState.getAttempt(address), getRemoteName(address)); + if (bondState == BluetoothDevice.BOND_BONDED) { + String[] uuids = getRemoteUuids(address); + if (uuids == null) { + pw.printf("\tuuids = null\n"); + } else { + for (String uuid : uuids) { + pw.printf("\t" + uuid); + } + } + } } String value = getProperty("Devices"); - String []devicesObjectPath = null; + String[] devicesObjectPath = null; if (value != null) { devicesObjectPath = value.split(","); } |