Home
last modified time | relevance | path

Searched refs:bond_state (Results 1 – 13 of 13) sorted by relevance

/packages/modules/Bluetooth/system/blueberry/tests/sl4a_sl4a/lib/
Dsecurity.py78 bond_state = None
80bond_state = self.__device.ed.pop_event(self.SL4A_EVENT_BONDED, self.__default_bonding_timeout)
84 assertThat(bond_state).isNotNone()
85 logging.info("Bonded: %s", bond_state["data"]["bonded_state"])
86 assertThat(bond_state["data"]["bonded_state"]).isEqualTo(True)
129 bond_state = None
131bond_state = self.__device.ed.pop_event(self.SL4A_EVENT_UNBONDED, self.__default_timeout)
134 assertThat(bond_state).isNotNone()
135 assertThat(bond_state["data"]["bonded_state"]).isEqualTo(False)
/packages/modules/Bluetooth/system/blueberry/tests/gd_sl4a/security/
Doob_pairing_sl4a_test.py262 bond_state = self.dut.ed.pop_event(self.SL4A_EVENT_BONDED, self.default_timeout)
266 assertThat(bond_state).isNotNone()
267 logging.info("Bonded: %s", bond_state["data"]["bonded_state"])
268 assertThat(bond_state["data"]["bonded_state"]).isEqualTo(True)
281 bond_state = None
283 bond_state = self.dut.ed.pop_event(self.SL4A_EVENT_UNBONDED, self.default_timeout)
287 assertThat(bond_state).isNotNone()
288 assertThat(bond_state["data"]["bonded_state"]).isEqualTo(False)
/packages/modules/Bluetooth/system/gd/rust/topshim/src/
Dmetrics.rs23 bond_state: u32, in bond_state_changed()
67 bond_state: BtBondState, in bond_state_changed()
74 bond_state as u32, in bond_state_changed()
/packages/modules/Bluetooth/system/gd/rust/topshim/metrics/
Dmetrics_shim.cc38 …RawAddress addr, uint32_t device_type, uint32_t status, uint32_t bond_state, int32_t fail_reason) { in bond_state_changed() argument
39 metrics::LogMetricsBondStateChanged(&addr, device_type, status, bond_state, fail_reason); in bond_state_changed()
Dmetrics_shim.h30 … RawAddress addr, uint32_t device_type, uint32_t status, uint32_t bond_state, int32_t fail_reason);
/packages/modules/Bluetooth/system/gd/rust/linux/stack/src/
Dbluetooth.rs374 pub bond_state: BtBondState, field
389 bond_state: BtBondState, in new()
400 bond_state, in new()
698 ctx.bond_state == BtBondState::Bonded in update_connectable_mode()
1106 .filter(|v| v.is_connected() && v.bond_state == BtBondState::Bonded) in get_bonded_and_connected_devices()
1113 self.remote_devices.get(addr).map_or(BtBondState::NotBonded, |d| d.bond_state.clone()) in get_bond_state_by_addr()
1130 now < &fresh_at || d.is_connected() || d.bond_state != BtBondState::NotBonded in trigger_freshness_check()
1159 if device.bond_state != BtBondState::Bonded && !device.is_connected() { in send_metrics_remote_device_info()
1414 fn bond_state( in bond_state() method
1418 bond_state: BtBondState, in bond_state()
[all …]
/packages/modules/Bluetooth/floss/pandora/floss/
Dadapter_client.py349 def _make_device(self, address, name, bond_state=None, connected=None): argument
354 'bond_state': bond_state,
395 self.known_devices[address] = self._make_device(address, '', bond_state=state)
575 … self._make_device(address, name, bond_state=floss_enums.BondState.BONDED))
/packages/modules/Bluetooth/system/gd/metrics/linux/
Dmetrics.cc28 …RawAddress* addr, uint32_t device_type, uint32_t status, uint32_t bond_state, int32_t fail_reason)… in LogMetricsBondStateChanged() argument
/packages/modules/Bluetooth/system/gd/metrics/
Dmetrics.h27 …RawAddress* addr, uint32_t device_type, uint32_t status, uint32_t bond_state, int32_t fail_reason);
/packages/modules/Bluetooth/system/gd/metrics/chromeos/
Dmetrics.cc89 …RawAddress* addr, uint32_t device_type, uint32_t status, uint32_t bond_state, int32_t fail_reason)… in LogMetricsBondStateChanged() argument
101 pairing_state = ToPairingState(status, bond_state, fail_reason); in LogMetricsBondStateChanged()
Dmetrics_event.cc265 PairingState ToPairingState(uint32_t status, uint32_t bond_state, int32_t fail_reason) { in ToPairingState() argument
269 …if ((BtBondState)bond_state == BtBondState::BT_BOND_STATE_BONDING) return PairingState::PAIR_START… in ToPairingState()
272 if ((BtBondState)bond_state == BtBondState::BT_BOND_STATE_BONDED) { in ToPairingState()
Dmetrics_event.h219 PairingState ToPairingState(uint32_t status, uint32_t bond_state, int32_t fail_reason);
/packages/modules/Bluetooth/system/btif/src/
Dbtif_dm.cc4118 const char* bond_state; in btif_debug_bond_event_dump() local
4121 bond_state = "BOND_STATE_NONE"; in btif_debug_bond_event_dump()
4124 bond_state = "BOND_STATE_BONDING"; in btif_debug_bond_event_dump()
4127 bond_state = "BOND_STATE_BONDED"; in btif_debug_bond_event_dump()
4130 bond_state = "Invalid bond state"; in btif_debug_bond_event_dump()
4135 ADDRESS_TO_LOGGABLE_CSTR(event->bd_addr), func_name, bond_state); in btif_debug_bond_event_dump()