Skip to content
Snippets Groups Projects
Commit 9c1ce28f authored by Palash Ahuja's avatar Palash Ahuja Committed by Gerrit Code Review
Browse files

Merge "BluetoothMetrics: Adding a separate call for uploading the protos for...

Merge "BluetoothMetrics: Adding a separate call for uploading the protos for BondStateMachine which will help us verify if there exists an ACL Connection right before the authentication procedure Bug: 230023840 Test: m -j $(nproc)"
parents c50c7655 ade5b510
No related branches found
No related tags found
No related merge requests found
......@@ -347,9 +347,19 @@ final class BondStateMachine extends StateMachine {
boolean result;
// If we have some data
if (remoteP192Data != null || remoteP256Data != null) {
BluetoothStatsLog.write(BluetoothStatsLog.BLUETOOTH_BOND_STATE_CHANGED,
mAdapterService.obfuscateAddress(dev), transport, dev.getType(),
BluetoothDevice.BOND_BONDING,
BluetoothProtoEnums.BOND_SUB_STATE_LOCAL_START_PAIRING_OOB,
BluetoothProtoEnums.UNBOND_REASON_UNKNOWN, mAdapterService.getMetricId(dev));
result = mAdapterService.createBondOutOfBandNative(addr, transport,
remoteP192Data, remoteP256Data);
} else {
BluetoothStatsLog.write(BluetoothStatsLog.BLUETOOTH_BOND_STATE_CHANGED,
mAdapterService.obfuscateAddress(dev), transport, dev.getType(),
BluetoothDevice.BOND_BONDING,
BluetoothProtoEnums.BOND_SUB_STATE_LOCAL_START_PAIRING,
BluetoothProtoEnums.UNBOND_REASON_UNKNOWN, mAdapterService.getMetricId(dev));
result = mAdapterService.createBondNative(addr, transport);
}
BluetoothStatsLog.write(BluetoothStatsLog.BLUETOOTH_DEVICE_NAME_REPORTED,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment