• Home
  • Raw
  • Download

Lines Matching refs:PairingEvent

64 class PairingEvent {
77 PairingEvent(TYPE type) : type(type) {} in PairingEvent() function
78 PairingEvent(CommandView l2cap_packet) : type(L2CAP), l2cap_packet(l2cap_packet) {} in PairingEvent() function
79PairingEvent(UI_ACTION_TYPE ui_action, uint32_t ui_value) : type(UI), ui_action(ui_action), ui_val… in PairingEvent() function
80 PairingEvent(hci::EventView hci_event) : type(HCI_EVENT), hci_event(hci_event) {} in PairingEvent() function
155 PairingEvent e = WaitForEvent(); in WaitEncryptionChanged()
156 …if (e.type != PairingEvent::HCI_EVENT) return PairingFailure("Was expecting HCI event but received… in WaitEncryptionChanged()
180 PairingEvent e = WaitForEvent(); in WaitLeLongTermKeyRequest()
181 …if (e.type != PairingEvent::HCI_EVENT) return PairingFailure("Was expecting HCI event but received… in WaitLeLongTermKeyRequest()
261 queue.push(PairingEvent(PairingEvent::EXIT)); in SendExitSignal()
270 queue.push(PairingEvent(std::move(packet))); in OnCommandView()
279 queue.push(PairingEvent(std::move(hci_event))); in OnHciEvent()
285 void OnUiAction(PairingEvent::UI_ACTION_TYPE ui_action, uint32_t ui_value) { in OnUiAction()
288 queue.push(PairingEvent(ui_action, ui_value)); in OnUiAction()
297 queue.push(PairingEvent(std::move(hci_event))); in OnHciLeEvent()
303 PairingEvent WaitForEvent() { in WaitForEvent()
307 PairingEvent e = queue.front(); in WaitForEvent()
313 return PairingEvent(PairingEvent::EXIT); in WaitForEvent()
319 std::optional<PairingEvent> WaitUiPairingAccept() { in WaitUiPairingAccept()
320 PairingEvent e = WaitForEvent(); in WaitUiPairingAccept()
321 if (e.type == PairingEvent::UI & e.ui_action == PairingEvent::PAIRING_ACCEPTED) { in WaitUiPairingAccept()
328 std::optional<PairingEvent> WaitUiConfirmYesNo() { in WaitUiConfirmYesNo()
329 PairingEvent e = WaitForEvent(); in WaitUiConfirmYesNo()
330 if (e.type == PairingEvent::UI & e.ui_action == PairingEvent::CONFIRM_YESNO) { in WaitUiConfirmYesNo()
337 std::optional<PairingEvent> WaitUiPasskey() { in WaitUiPasskey()
338 PairingEvent e = WaitForEvent(); in WaitUiPasskey()
342 if (e.type == PairingEvent::L2CAP) { in WaitUiPasskey()
365 if (e.type == PairingEvent::UI & e.ui_action == PairingEvent::PASSKEY) { in WaitUiPasskey()
433 PairingEvent e = WaitForEvent();
435 case PairingEvent::EXIT:
439 case PairingEvent::HCI_EVENT:
443 case PairingEvent::UI:
447 case PairingEvent::L2CAP: {
538 std::queue<PairingEvent> queue;