summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-08-26 14:07:41 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2009-08-26 14:07:41 -0700
commitb078d6ef7c83df156ff2f6bac48df26a2766bf5d (patch)
treed071cd8c63f37a9f0137fa32db1040fe0d7ff115
parentd41c577684785eecd3ffa848aafae759e5889731 (diff)
parent1eada0d3d655d6396bf862da954d254856a1bc03 (diff)
downloadframeworks_base-b078d6ef7c83df156ff2f6bac48df26a2766bf5d.zip
frameworks_base-b078d6ef7c83df156ff2f6bac48df26a2766bf5d.tar.gz
frameworks_base-b078d6ef7c83df156ff2f6bac48df26a2766bf5d.tar.bz2
Merge change 22803 into eclair
* changes: Add uuids to adb shell dumpsys bluetooth
-rw-r--r--core/java/android/server/BluetoothService.java15
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(",");
}