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

Commit 5b9fb52e 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 am:...

Merge "Metrics: Log transport in ACL state changed" am: 7a822f6f am: 653a07fc am: 9220dc2f am: 1fd93a8e

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2064915



Change-Id: Ie1f07211fe11934534f82f1953f8afea600cc797
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents ae9a532e 1fd93a8e
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -872,8 +872,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,