am 768c6e83: am b078d6ef: Merge change 22803 into eclair

Merge commit '768c6e835c73b56ce5d10e5f81bfbe4990922d13'

* commit '768c6e835c73b56ce5d10e5f81bfbe4990922d13':
  Add uuids to adb shell dumpsys bluetooth
This commit is contained in:
Nick Pelly
2009-08-26 14:14:29 -07:00
committed by Android Git Automerger

View File

@@ -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(",");
}