Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d72120d2 authored by Andre Eisenbach's avatar Andre Eisenbach Committed by Gerrit Code Review
Browse files

Merge "Bluetooth: fix indentation, formatting in dumpsys"

parents a83146f1 af9d9d4c
Loading
Loading
Loading
Loading
+19 −8
Original line number Diff line number Diff line
@@ -2018,16 +2018,27 @@ class BluetoothManagerService extends IBluetoothManager.Stub {
                writer.println("  time since enabled: " + onDurationString + "\n");
            }

            if (mActiveLogs.size() == 0) {
                writer.println("Bluetooth never enabled!");
            } else {
                writer.println("Enable log:");
                for (ActiveLog log : mActiveLogs) {
                writer.println(log);
                    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