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

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

BluetoothMetrics: Adding the transport level breakdown for pairing

Test: m statsd_testdrive && statsd_testdrive -terse 916
Bug: 375437118
Flag: EXEMPT, metrics change only
Change-Id: I20e793f29595f6ec26d0917171a5570074d8de59
parent 4510904b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -812,6 +812,10 @@ static void btif_dm_cb_create_bond(const RawAddress bd_addr, tBT_TRANSPORT trans

  /*  Track originator of bond creation  */
  pairing_cb.is_local_initiated = true;
  bluetooth::os::LogMetricBluetoothEvent(
          ToGdAddress(bd_addr), android::bluetooth::EventType::TRANSPORT,
          transport == BT_TRANSPORT_LE ? android::bluetooth::State::LE
                                       : android::bluetooth::State::CLASSIC);
  BTA_DmBond(bd_addr, addr_type, transport, device_type);
}