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

Commit 653a07fc authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Metrics: Log transport in ACL state changed" am: 7a822f6f

parents 73267160 7a822f6f
Loading
Loading
Loading
Loading
+7 −2
Original line number Original line Diff line number Diff line
@@ -813,8 +813,13 @@ final class RemoteDevices {
        int connectionState = newState == AbstractionLayer.BT_ACL_STATE_CONNECTED
        int connectionState = newState == AbstractionLayer.BT_ACL_STATE_CONNECTED
                ? BluetoothAdapter.STATE_CONNECTED : BluetoothAdapter.STATE_DISCONNECTED;
                ? BluetoothAdapter.STATE_CONNECTED : BluetoothAdapter.STATE_DISCONNECTED;
        int metricId = sAdapterService.getMetricId(device);
        int metricId = sAdapterService.getMetricId(device);
        BluetoothStatsLog.write(BluetoothStatsLog.BLUETOOTH_ACL_CONNECTION_STATE_CHANGED,
        BluetoothStatsLog.write(
                sAdapterService.obfuscateAddress(device), connectionState, metricId);
                BluetoothStatsLog.BLUETOOTH_ACL_CONNECTION_STATE_CHANGED,
                sAdapterService.obfuscateAddress(device),
                connectionState,
                metricId,
                transportLinkType);

        BluetoothClass deviceClass = device.getBluetoothClass();
        BluetoothClass deviceClass = device.getBluetoothClass();
        int classOfDevice = deviceClass == null ? 0 : deviceClass.getClassOfDevice();
        int classOfDevice = deviceClass == null ? 0 : deviceClass.getClassOfDevice();
        BluetoothStatsLog.write(BluetoothStatsLog.BLUETOOTH_CLASS_OF_DEVICE_REPORTED,
        BluetoothStatsLog.write(BluetoothStatsLog.BLUETOOTH_CLASS_OF_DEVICE_REPORTED,