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

Commit 4510904b authored by Palash Ahuja's avatar Palash Ahuja
Browse files

BluetoothMetrics: Add BONDED state transition for pairing

Bug: 375437118
Test: m statsd_testdrive && statsd_testdrive -terse 916
Flag: EXEMPT, metrics changes only
Change-Id: I593f47c10fc3d893b3ea26f12f0902b65854b2b1
parent 66c5ff49
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -569,6 +569,10 @@ static void bond_state_changed(bt_status_t status, const RawAddress& bd_addr,
      bluetooth::os::LogMetricBluetoothEvent(ToGdAddress(bd_addr),
                                             android::bluetooth::EventType::BOND,
                                             android::bluetooth::State::STATE_NONE);
    } else if (state == BT_BOND_STATE_BONDED) {
      bluetooth::os::LogMetricBluetoothEvent(ToGdAddress(bd_addr),
                                             android::bluetooth::EventType::BOND,
                                             android::bluetooth::State::STATE_BONDED);
    }
  }