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

Commit 4fe2402b authored by pkanwar's avatar pkanwar Committed by Pankaj Kanwar
Browse files

Collect number of paired BT devices.

Bug: 31602591 
Change-Id: I61adee8b20d57e2a1e284ed21a46d1766f059d4a
parent 780dd956
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.