Home
last modified time | relevance | path

Searched refs:event_code (Results 1 – 25 of 27) sorted by relevance

12

/system/bt/gd/security/test/
Dfake_hci_layer.h86 …void RegisterEventHandler(EventCode event_code, common::ContextualCallback<void(EventView)> event_… in RegisterEventHandler() argument
87 registered_events_[event_code] = event_handler; in RegisterEventHandler()
90 void UnregisterEventHandler(EventCode event_code) override { in UnregisterEventHandler() argument
91 registered_events_.erase(event_code); in UnregisterEventHandler()
98 EventCode event_code = event.GetEventCode(); in IncomingEvent() local
99 ASSERT_TRUE(registered_events_.find(event_code) != registered_events_.end()); in IncomingEvent()
100 registered_events_[event_code].Invoke(event); in IncomingEvent()
/system/bt/main/shim/
Dhci_layer.cc58 bool is_valid_event_code(bluetooth::hci::EventCode event_code) { in is_valid_event_code() argument
59 switch (event_code) { in is_valid_event_code()
163 bluetooth::hci::EventCode event_code) { in event_already_registered_in_hci_layer() argument
164 switch (event_code) { in event_already_registered_in_hci_layer()
183 bluetooth::hci::EventCode event_code) { in event_already_registered_in_controller_layer() argument
184 switch (event_code) { in event_already_registered_in_controller_layer()
194 bluetooth::hci::EventCode event_code) { in event_already_registered_in_acl_layer() argument
196 if (event == event_code) { in event_already_registered_in_acl_layer()
256 bluetooth::hci::EventCode event_code) { in event_already_registered_in_le_advertising_manager() argument
258 if (event == event_code) { in event_already_registered_in_le_advertising_manager()
[all …]
/system/bt/gd/hci/cert/
Dle_scanning_with_security_test.py33 def register_for_event(self, event_code): argument
34 msg = hci_facade.EventCodeMsg(code=int(event_code))
37 def register_for_le_event(self, event_code): argument
38 msg = hci_facade.LeSubeventCodeMsg(code=int(event_code))
Dle_scanning_manager_test.py38 def register_for_event(self, event_code): argument
39 msg = hci_facade.EventCodeMsg(code=int(event_code))
42 def register_for_le_event(self, event_code): argument
43 msg = hci_facade.LeSubeventCodeMsg(code=int(event_code))
Dle_acl_manager_test.py58 def register_for_event(self, event_code): argument
59 msg = hci_facade.EventRequest(code=int(event_code))
62 def register_for_le_event(self, event_code): argument
63 msg = hci_facade.EventRequest(code=int(event_code))
/system/bt/gd/hci/
Dhci_metrics_logging.cc30 EventCode event_code = event_view.GetEventCode(); in log_hci_event() local
31 switch (event_code) { in log_hci_event()
67 uint16_t event_code = android::bluetooth::hci::EVT_COMMAND_STATUS; in log_link_layer_connection_command_status() local
231 static_cast<uint16_t>(event_code), in log_link_layer_connection_command_status()
248 uint16_t event_code = android::bluetooth::hci::EVT_COMMAND_COMPLETE; in log_link_layer_connection_command_complete() local
312 static_cast<uint16_t>(event_code), in log_link_layer_connection_command_complete()
319 EventCode event_code = packet.GetEventCode(); in log_link_layer_connection_other_hci_event() local
327 switch (event_code) { in log_link_layer_connection_other_hci_event()
381 static_cast<uint16_t>(event_code), in log_link_layer_connection_other_hci_event()
396 EventCode event_code = EventCode::LE_META_EVENT; in log_link_layer_connection_event_le_meta() local
[all …]
Dle_scanning_manager_test.cc117 …void RegisterEventHandler(EventCode event_code, common::ContextualCallback<void(EventView)> event_… in RegisterEventHandler() argument
118 registered_events_[event_code] = event_handler; in RegisterEventHandler()
121 void UnregisterEventHandler(EventCode event_code) override { in UnregisterEventHandler() argument
122 registered_events_.erase(event_code); in UnregisterEventHandler()
138 EventCode event_code = event.GetEventCode(); in IncomingEvent() local
139 …ASSERT_NE(registered_events_.find(event_code), registered_events_.end()) << EventCodeText(event_co… in IncomingEvent()
140 registered_events_[event_code].Invoke(event); in IncomingEvent()
Dhci_packets.pdl726 event_code : EventCode,
830 packet CommandComplete : Event (event_code = COMMAND_COMPLETE) {
836 packet CommandStatus : Event (event_code = COMMAND_STATUS) {
4834 packet InquiryComplete : Event (event_code = INQUIRY_COMPLETE) {
4848 packet InquiryResult : Event (event_code = INQUIRY_RESULT) {
4858 packet ConnectionComplete : Event (event_code = CONNECTION_COMPLETE) {
4874 packet ConnectionRequest : Event (event_code = CONNECTION_REQUEST) {
4880 packet DisconnectionComplete : Event (event_code = DISCONNECTION_COMPLETE) {
4887 packet AuthenticationComplete : Event (event_code = AUTHENTICATION_COMPLETE) {
4893 packet RemoteNameRequestComplete : Event (event_code = REMOTE_NAME_REQUEST_COMPLETE) {
[all …]
Dhci_layer.h61 …virtual void RegisterEventHandler(EventCode event_code, common::ContextualCallback<void(EventView)…
63 virtual void UnregisterEventHandler(EventCode event_code);
Dhci_layer.cc303 EventCode event_code = event.GetEventCode(); in on_hci_event() local
305 if (event_code == EventCode::VENDOR_SPECIFIC) { in on_hci_event()
317 if (event_handlers_.find(event_code) == event_handlers_.end()) { in on_hci_event()
318 … LOG_WARN("Unhandled event of type 0x%02hhx (%s)", event_code, EventCodeText(event_code).c_str()); in on_hci_event()
321 event_handlers_[event_code].Invoke(event); in on_hci_event()
Dcontroller_test.cc206 …void RegisterEventHandler(EventCode event_code, common::ContextualCallback<void(EventView)> event_… in RegisterEventHandler() argument
207 …EXPECT_EQ(event_code, EventCode::NUMBER_OF_COMPLETED_PACKETS) << "Only NUMBER_OF_COMPLETED_PACKETS… in RegisterEventHandler()
211 void UnregisterEventHandler(EventCode event_code) override { in UnregisterEventHandler() argument
212 …EXPECT_EQ(event_code, EventCode::NUMBER_OF_COMPLETED_PACKETS) << "Only NUMBER_OF_COMPLETED_PACKETS… in UnregisterEventHandler()
Dle_advertising_manager_test.cc167 …void RegisterEventHandler(EventCode event_code, common::ContextualCallback<void(EventView)> event_… in RegisterEventHandler() argument
168 registered_events_[event_code] = event_handler; in RegisterEventHandler()
180 EventCode event_code = event.GetEventCode(); in IncomingEvent() local
181 …ASSERT_NE(registered_events_.find(event_code), registered_events_.end()) << EventCodeText(event_co… in IncomingEvent()
182 registered_events_[event_code].Invoke(event); in IncomingEvent()
Dacl_manager_test.cc199 …void RegisterEventHandler(EventCode event_code, common::ContextualCallback<void(EventView)> event_… in RegisterEventHandler() argument
200 registered_events_[event_code] = event_handler; in RegisterEventHandler()
203 void UnregisterEventHandler(EventCode event_code) override { in UnregisterEventHandler() argument
204 registered_events_.erase(event_code); in UnregisterEventHandler()
220 EventCode event_code = event.GetEventCode(); in IncomingEvent() local
221 …ASSERT_NE(registered_events_.find(event_code), registered_events_.end()) << EventCodeText(event_co… in IncomingEvent()
222 registered_events_[event_code].Invoke(event); in IncomingEvent()
/system/bt/gd/btaa/linux_generic/
Dhci_processor.cc64 hci::EventCode event_code, in process_special_event() argument
70 switch (event_code) { in process_special_event()
154 auto event_code = event.GetEventCode(); in process_event() local
155 auto event_info = lookup_event(event_code); in process_event()
171 switch (event_code) { in process_event()
198 process_special_event(btaa_hci_packets, event_code, byte_count, event); in process_event()
/system/bt/gd/btaa/
Dcmd_evt_classification.h32 CmdEvtActivityClassification lookup_event(hci::EventCode event_code);
Dhci_processor.h58 hci::EventCode event_code,
/system/bt/gd/cert/
Dpy_hci.py146 for event_code in event_codes:
147 self.device.hci.RequestEvent(hci_facade.EventRequest(code=int(event_code)))
150 for event_code in event_codes:
151 self.device.hci.RequestLeSubevent(hci_facade.EventRequest(code=int(event_code)))
Dmatchers.py86 def EventWithCode(event_code): argument
87 return lambda msg: HciMatchers._is_matching_event(msg.payload, event_code)
90 def ExtractEventWithCode(packet_bytes, event_code): argument
91 return HciMatchers._extract_matching_event(packet_bytes, event_code)
94 def _is_matching_event(packet_bytes, event_code): argument
95 return HciMatchers._extract_matching_event(packet_bytes, event_code) is not None
98 def _extract_matching_event(packet_bytes, event_code): argument
102 if event_code is not None and event.GetEventCode() != event_code:
/system/bt/hci/src/
Dhci_layer.cc653 uint8_t event_code; in filter_incoming_event() local
658 STREAM_TO_UINT8(event_code, stream); in filter_incoming_event()
661 if (event_code == HCI_COMMAND_COMPLETE_EVT) { in filter_incoming_event()
686 } else if (event_code == HCI_COMMAND_STATUS_EVT) { in filter_incoming_event()
715 } else if (event_code == HCI_VENDOR_SPECIFIC_EVT) { in filter_incoming_event()
744 if (event_code == HCI_COMMAND_STATUS_EVT || in filter_incoming_event()
749 if (event_code == HCI_COMMAND_COMPLETE_EVT || !wait_entry->status_callback) in filter_incoming_event()
Dhci_packet_parser.cc265 uint8_t event_code; in read_command_complete_header() local
267 STREAM_TO_UINT8(event_code, stream); in read_command_complete_header()
273 CHECK(event_code == HCI_COMMAND_COMPLETE_EVT); in read_command_complete_header()
/system/bt/gd/neighbor/
Dinquiry_test.cc234 …hci::EventCode event_code, common::ContextualCallback<void(hci::EventView)> event_handler) overrid… in RegisterEventHandler() argument
235 switch (event_code) { in RegisterEventHandler()
254 void UnregisterEventHandler(hci::EventCode event_code) override { in UnregisterEventHandler() argument
260 switch (event_code) { in UnregisterEventHandler()
/system/bt/stack/btm/
Dbtm_devctl.cc555 uint8_t event_code; in btm_vendor_specific_evt() local
557 STREAM_TO_UINT8(event_code, bqr_ptr); in btm_vendor_specific_evt()
560 if (len > 1 && evt_len > 1 && event_code == HCI_VENDOR_SPECIFIC_EVT) { in btm_vendor_specific_evt()
/system/bt/gd/hci/acl_manager/
Dclassic_impl.h62 for (auto event_code : AclConnectionEvents) { in ~classic_impl() local
63 hci_layer_->UnregisterEventHandler(event_code); in ~classic_impl()
79 EventCode event_code = event_packet.GetEventCode(); in on_classic_event() local
80 switch (event_code) { in on_classic_event()
127 LOG_ALWAYS_FATAL("Unhandled event code %s", EventCodeText(event_code).c_str()); in on_classic_event()
/system/bt/stack/avdt/
Davdt_api.cc509 uint8_t event_code; in AVDT_ConfigRsp() local
531 event_code = AVDT_SCB_API_SETCONFIG_RSP_EVT; in AVDT_ConfigRsp()
533 event_code = AVDT_SCB_API_SETCONFIG_REJ_EVT; in AVDT_ConfigRsp()
535 avdt_scb_event(p_scb, event_code, &evt); in AVDT_ConfigRsp()
/system/bt/gd/security/internal/
Dsecurity_manager_impl.cc257 auto event_code = packet.GetEventCode(); in HandleEvent() local
259 …if (event_code != hci::EventCode::LINK_KEY_REQUEST && event_code != hci::EventCode::PIN_CODE_REQUE… in HandleEvent()
260 event_code != hci::EventCode::IO_CAPABILITY_RESPONSE) { in HandleEvent()
262 hci::EventCodeText(event_code).c_str()); in HandleEvent()

12