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

Commit cd655d26 authored by Palash Ahuja's avatar Palash Ahuja
Browse files

BluetoothMetrics: Log Bonding Event

Test: m com.android.btservices and statsd_testdrive
Bug: 345564021
Flag: EXEMPT, metrics related changes
Change-Id: Ifea6e83f7199f978419c2cdd723504424e8804d4
parent 7eea8e10
Loading
Loading
Loading
Loading
+8 −0
Original line number Original line Diff line number Diff line
@@ -4793,6 +4793,14 @@ public class AdapterService extends Service {
        }
        }
        if (setData) {
        if (setData) {
            msg.setData(remoteOobDatasBundle);
            msg.setData(remoteOobDatasBundle);
        } else {
            MetricsLogger.getInstance()
                    .logBluetoothEvent(
                            device,
                            BluetoothStatsLog
                                    .BLUETOOTH_CROSS_LAYER_EVENT_REPORTED__EVENT_TYPE__BONDING,
                            BluetoothStatsLog.BLUETOOTH_CROSS_LAYER_EVENT_REPORTED__STATE__START,
                            Binder.getCallingUid());
        }
        }
        mBondStateMachine.sendMessage(msg);
        mBondStateMachine.sendMessage(msg);
        return true;
        return true;