Searched refs:event_handlers_ (Results 1 – 3 of 3) sorted by relevance
79 event_handlers_[event] = handler; in RegisterEventHandler()83 auto it = event_handlers_.find(event); in UnregisterEventHandler()84 if (it != event_handlers_.end()) { in UnregisterEventHandler()85 event_handlers_.erase(it); in UnregisterEventHandler()179 std::map<hci::EventCode, common::ContextualCallback<void(hci::EventView)>> event_handlers_; variable
140 auto handler_pair = event_handlers_.find(static_cast<EventCode>(fdp.ConsumeIntegral<uint8_t>())); in injectEvent()141 if (handler_pair != event_handlers_.end()) { in injectEvent()
246 …ASSERT_LOG(event_handlers_.count(event) == 0, "Can not register a second handler for %02hhx (%s)",… in register_event()248 event_handlers_[event] = handler; in register_event()252 event_handlers_.erase(event); in unregister_event()257 event_handlers_.count(EventCode::LE_META_EVENT) == 0, in register_le_meta_event()261 event_handlers_[EventCode::LE_META_EVENT] = handler; in register_le_meta_event()317 if (event_handlers_.find(event_code) == event_handlers_.end()) { in on_hci_event()321 event_handlers_[event_code].Invoke(event); in on_hci_event()341 std::map<EventCode, ContextualCallback<void(EventView)>> event_handlers_; member