Home
last modified time | relevance | path

Searched refs:event_handlers_ (Results 1 – 3 of 3) sorted by relevance

/system/bt/gd/hci/fuzz/
Dfuzz_hci_layer.h74 event_handlers_[event] = handler; in RegisterEventHandler()
78 auto it = event_handlers_.find(event); in UnregisterEventHandler()
79 if (it != event_handlers_.end()) { in UnregisterEventHandler()
80 event_handlers_.erase(it); in UnregisterEventHandler()
166 std::map<hci::EventCode, common::ContextualCallback<void(hci::EventPacketView)>> event_handlers_; variable
Dfuzz_hci_layer.cc131 auto handler_pair = event_handlers_.find(static_cast<EventCode>(fdp.ConsumeIntegral<uint8_t>())); in injectEvent()
132 if (handler_pair != event_handlers_.end()) { in injectEvent()
/system/bt/gd/hci/
Dhci_layer.cc171 …ASSERT_LOG(event_handlers_.count(event) == 0, "Can not register a second handler for %02hhx (%s)",… in register_event()
173 event_handlers_[event] = handler; in register_event()
177 event_handlers_.erase(event_handlers_.find(event)); in unregister_event()
193 if (event_handlers_.find(event_code) == event_handlers_.end()) { in on_hci_event()
197 event_handlers_[event_code].Invoke(event); in on_hci_event()
215 std::map<EventCode, ContextualCallback<void(EventPacketView)>> event_handlers_; member