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

Commit 881dacf7 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 4476081 from 9789f090a3dd6c8ba8a923d61d80b7bf189c0ea7 to pi-release

Change-Id: Ie18ee6bb3dde0c3d2cbe66981f53c15c31095343
parents efbdbfab cf3ef0d9
Loading
Loading
Loading
Loading
+6 −11
Original line number Diff line number Diff line
@@ -2150,31 +2150,26 @@ class BluetoothManagerService extends IBluetoothManager.Stub {
                                          (int)((onDuration / (1000 * 60)) % 60),
                                          (int)((onDuration / 1000) % 60),
                                          (int)(onDuration % 1000));
                writer.println("  time since enabled: " + onDurationString + "\n");
                writer.println("  time since enabled: " + onDurationString);
            }

            if (mActiveLogs.size() == 0) {
                writer.println("Bluetooth never enabled!");
                writer.println("\nBluetooth never enabled!");
            } else {
                writer.println("Enable log:");
                writer.println("\nEnable log:");
                for (ActiveLog log : mActiveLogs) {
                    writer.println("  " + log);
                }
            }

            writer.println("Bluetooth crashed " + mCrashes + " time" + (mCrashes == 1 ? "" : "s"));
            writer.println("\nBluetooth crashed " + mCrashes + " time" + (mCrashes == 1 ? "" : "s"));
            if (mCrashes == CRASH_LOG_MAX_SIZE) writer.println("(last " + CRASH_LOG_MAX_SIZE + ")");
            for (Long time : mCrashTimestamps) {
              writer.println("  " + timeToLog(time.longValue()));
            }

            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);
            writer.println("\n" + mBleApps.size() + " BLE app" +
                            (mBleApps.size() == 1 ? "" : "s") + "registered");
            for (ClientDeathRecipient app : mBleApps.values()) {
                writer.println("  " + app.getPackageName());
            }