Lines Matching refs:event

113   void on_command_status(EventPacketView event) {  in on_command_status()
114 handle_command_response<CommandStatusView>(event, "status"); in on_command_status()
117 void on_command_complete(EventPacketView event) { in on_command_complete()
118 handle_command_response<CommandCompleteView>(event, "complete"); in on_command_complete()
122 void handle_command_response(EventPacketView event, std::string logging_id) { in handle_command_response()
123 TResponse response_view = TResponse::Create(event); in handle_command_response()
170 void register_event(EventCode event, ContextualCallback<void(EventPacketView)> handler) { in register_event()
171 …ASSERT_LOG(event_handlers_.count(event) == 0, "Can not register a second handler for %02hhx (%s)",… in register_event()
172 EventCodeText(event).c_str()); in register_event()
173 event_handlers_[event] = handler; in register_event()
176 void unregister_event(EventCode event) { in unregister_event()
177 event_handlers_.erase(event_handlers_.find(event)); in unregister_event()
180 void register_le_event(SubeventCode event, ContextualCallback<void(LeMetaEventView)> handler) { in register_le_event()
181 …ASSERT_LOG(subevent_handlers_.count(event) == 0, "Can not register a second handler for %02hhx (%s… in register_le_event()
182 SubeventCodeText(event).c_str()); in register_le_event()
183 subevent_handlers_[event] = handler; in register_le_event()
186 void unregister_le_event(SubeventCode event) { in unregister_le_event()
187 subevent_handlers_.erase(subevent_handlers_.find(event)); in unregister_le_event()
190 void on_hci_event(EventPacketView event) { in on_hci_event()
191 ASSERT(event.IsValid()); in on_hci_event()
192 EventCode event_code = event.GetEventCode(); in on_hci_event()
197 event_handlers_[event_code].Invoke(event); in on_hci_event()
200 void on_le_meta_event(EventPacketView event) { in on_le_meta_event()
201 LeMetaEventView meta_event_view = LeMetaEventView::Create(event); in on_le_meta_event()
232 EventPacketView event = EventPacketView::Create(packet); in hciEventReceived() local
233 module_.CallOn(module_.impl_, &impl::on_hci_event, move(event)); in hciEventReceived()
268 void HciLayer::RegisterEventHandler(EventCode event, ContextualCallback<void(EventPacketView)> hand… in RegisterEventHandler() argument
269 CallOn(impl_, &impl::register_event, event, handler); in RegisterEventHandler()
272 void HciLayer::UnregisterEventHandler(EventCode event) { in UnregisterEventHandler() argument
273 CallOn(impl_, &impl::unregister_event, event); in UnregisterEventHandler()
276 void HciLayer::RegisterLeEventHandler(SubeventCode event, ContextualCallback<void(LeMetaEventView)>… in RegisterLeEventHandler() argument
277 CallOn(impl_, &impl::register_le_event, event, handler); in RegisterLeEventHandler()
280 void HciLayer::UnregisterLeEventHandler(SubeventCode event) { in UnregisterLeEventHandler() argument
281 CallOn(impl_, &impl::unregister_le_event, event); in UnregisterLeEventHandler()
305 for (const auto event : AclConnectionEvents) { in GetAclConnectionInterface() local
306 RegisterEventHandler(event, event_handler); in GetAclConnectionInterface()
315 for (const auto event : LeConnectionManagementEvents) { in GetLeAclConnectionInterface() local
316 RegisterLeEventHandler(event, event_handler); in GetLeAclConnectionInterface()
323 for (const auto event : SecurityEvents) { in GetSecurityInterface() local
324 RegisterEventHandler(event, event_handler); in GetSecurityInterface()