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

Commit c1d8df67 authored by pkanwar's avatar pkanwar Committed by android-build-merger
Browse files

Collect number of paired BT devices.

am: 4fe2402b

Change-Id: I57553542fa8201d1353adee0a02947f01e088b89
parents 56fa414c 4fe2402b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2481,6 +2481,7 @@ public class AdapterService extends Service {

    private void dumpJava(FileDescriptor fd) {
        BluetoothProto.BluetoothLog log = new BluetoothProto.BluetoothLog();
        log.setNumBondedDevices(getBondedDevices().length);

        for (ProfileService profile : mProfiles) {
            profile.dumpProto(log);
+3 −0
Original line number Diff line number Diff line
@@ -25,6 +25,9 @@ message BluetoothLog {

  // Scan event information.
  repeated ScanEvent scan_event = 4;

  // Number of bonded devices.
  optional int32 num_bonded_devices = 5;
}

// The information about the device.