Merge "Bluetooth: fix indentation, formatting in dumpsys" am: 35c715332f am: 36ce9b7ea0 am: 8b1d096e58

am: c39388d605

Change-Id: I51a9cec90c232b6f16e50f9a962bf2795bbf725b
This commit is contained in:
Andre Eisenbach
2017-01-25 18:28:55 +00:00
committed by android-build-merger

View File

@@ -2034,21 +2034,32 @@ class BluetoothManagerService extends IBluetoothManager.Stub {
writer.println(" time since enabled: " + onDurationString + "\n");
}
writer.println("Enable log:");
for (ActiveLog log : mActiveLogs) {
writer.println(log);
if (mActiveLogs.size() == 0) {
writer.println("Bluetooth never enabled!");
} else {
writer.println("Enable log:");
for (ActiveLog log : mActiveLogs) {
writer.println(" " + log);
}
}
writer.println("\n" + mBleApps.size() + " BLE Apps registered:");
String bleAppString = "No BLE Apps registered.";
if (mBleApps.size() == 1) {
bleAppString = "1 BLE App registered:";
} else if (mBleApps.size() > 1) {
bleAppString = mBleApps.size() + " BLE Apps registered:";
}
writer.println("\n" + bleAppString);
for (ClientDeathRecipient app : mBleApps.values()) {
writer.println(app.getPackageName());
writer.println(" " + app.getPackageName());
}
writer.println("");
writer.flush();
if (args.length == 0) {
// Add arg to produce output
args = new String[1];
args[0] = "--print";
// Add arg to produce output
args = new String[1];
args[0] = "--print";
}
}