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

Commit ca570687 authored by Josh Wu's avatar Josh Wu
Browse files

Metrics: Log transport in ACL state changed

Tag: #feature
Bug: 229704658
Test: atest BluetoothInstrumentationTests
Change-Id: Ib9caffec31bb0730b3b7cfc7d10177efa3d0bb3d
parent f74c267d
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -813,8 +813,13 @@ final class RemoteDevices {
        int connectionState = newState == AbstractionLayer.BT_ACL_STATE_CONNECTED
                ? BluetoothAdapter.STATE_CONNECTED : BluetoothAdapter.STATE_DISCONNECTED;
        int metricId = sAdapterService.getMetricId(device);
        BluetoothStatsLog.write(BluetoothStatsLog.BLUETOOTH_ACL_CONNECTION_STATE_CHANGED,
                sAdapterService.obfuscateAddress(device), connectionState, metricId);
        BluetoothStatsLog.write(
                BluetoothStatsLog.BLUETOOTH_ACL_CONNECTION_STATE_CHANGED,
                sAdapterService.obfuscateAddress(device),
                connectionState,
                metricId,
                transportLinkType);

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