/system/bt/gd/security/test/ |
D | fake_hci_layer.h | 83 void RegisterEventHandler(EventCode event_code, in RegisterEventHandler() argument 85 registered_events_[event_code] = event_handler; in RegisterEventHandler() 88 void UnregisterEventHandler(EventCode event_code) override { in UnregisterEventHandler() argument 89 registered_events_.erase(event_code); in UnregisterEventHandler() 96 EventCode event_code = event.GetEventCode(); in IncomingEvent() local 97 ASSERT_TRUE(registered_events_.find(event_code) != registered_events_.end()); in IncomingEvent() 98 registered_events_[event_code].Invoke(event); in IncomingEvent()
|
/system/bt/gd/hci/cert/ |
D | le_scanning_with_security_test.py | 33 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))
|
D | le_advertising_manager_test.py | 37 def register_for_event(self, event_code): argument 38 msg = hci_facade.EventCodeMsg(code=int(event_code)) 41 def register_for_le_event(self, event_code): argument 42 msg = hci_facade.LeSubeventCodeMsg(code=int(event_code))
|
D | le_scanning_manager_test.py | 38 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))
|
D | le_acl_manager_test.py | 57 def register_for_event(self, event_code): argument 58 msg = hci_facade.EventCodeMsg(code=int(event_code)) 61 def register_for_le_event(self, event_code): argument 62 msg = hci_facade.LeSubeventCodeMsg(code=int(event_code))
|
/system/bt/gd/cert/ |
D | py_hci.py | 101 for event_code in event_codes: 102 msg = hci_facade.EventCodeMsg(code=int(event_code)) 106 for event_code in event_codes: 107 msg = hci_facade.EventCodeMsg(code=int(event_code))
|
D | matchers.py | 44 def EventWithCode(event_code): argument 45 return lambda msg: HciMatchers.extract_hci_event_with_code(msg.event, event_code) 48 def extract_hci_event_with_code(packet_bytes, event_code=None): argument 52 if event_code is not None and hci_event.GetEventCode() != event_code:
|
/system/bt/gd/hci/ |
D | hci_packets.pdl | 688 event_code : EventCode, 789 packet CommandComplete : EventPacket (event_code = COMMAND_COMPLETE){ 795 packet CommandStatus : EventPacket (event_code = COMMAND_STATUS){ 3851 packet InquiryComplete : EventPacket (event_code = INQUIRY_COMPLETE){ 3865 packet InquiryResult : EventPacket (event_code = INQUIRY_RESULT){ 3875 packet ConnectionComplete : EventPacket (event_code = CONNECTION_COMPLETE){ 3890 packet ConnectionRequest : EventPacket (event_code = CONNECTION_REQUEST){ 3896 packet DisconnectionComplete : EventPacket (event_code = DISCONNECTION_COMPLETE){ 3903 packet AuthenticationComplete : EventPacket (event_code = AUTHENTICATION_COMPLETE){ 3909 packet RemoteNameRequestComplete : EventPacket (event_code = REMOTE_NAME_REQUEST_COMPLETE){ [all …]
|
D | le_scanning_manager_test.cc | 115 void RegisterEventHandler(EventCode event_code, in RegisterEventHandler() argument 117 registered_events_[event_code] = event_handler; in RegisterEventHandler() 129 EventCode event_code = event.GetEventCode(); in IncomingEvent() local 130 …ASSERT_NE(registered_events_.find(event_code), registered_events_.end()) << EventCodeText(event_co… in IncomingEvent() 131 registered_events_[event_code].Invoke(event); in IncomingEvent()
|
D | hci_layer.h | 56 virtual void RegisterEventHandler(EventCode event_code, 59 virtual void UnregisterEventHandler(EventCode event_code);
|
D | hci_layer.cc | 192 EventCode event_code = event.GetEventCode(); in on_hci_event() local 193 if (event_handlers_.find(event_code) == event_handlers_.end()) { in on_hci_event() 194 …EBUG("Dropping unregistered event of type 0x%02hhx (%s)", event_code, EventCodeText(event_code).c_… in on_hci_event() 197 event_handlers_[event_code].Invoke(event); in on_hci_event()
|
D | le_advertising_manager_test.cc | 143 void RegisterEventHandler(EventCode event_code, in RegisterEventHandler() argument 145 registered_events_[event_code] = event_handler; in RegisterEventHandler() 157 EventCode event_code = event.GetEventCode(); in IncomingEvent() local 158 …ASSERT_NE(registered_events_.find(event_code), registered_events_.end()) << EventCodeText(event_co… in IncomingEvent() 159 registered_events_[event_code].Invoke(event); in IncomingEvent()
|
D | controller_test.cc | 201 void RegisterEventHandler(EventCode event_code, in RegisterEventHandler() argument 203 …EXPECT_EQ(event_code, EventCode::NUMBER_OF_COMPLETED_PACKETS) << "Only NUMBER_OF_COMPLETED_PACKETS… in RegisterEventHandler() 207 void UnregisterEventHandler(EventCode event_code) override { in UnregisterEventHandler() argument 208 …EXPECT_EQ(event_code, EventCode::NUMBER_OF_COMPLETED_PACKETS) << "Only NUMBER_OF_COMPLETED_PACKETS… in UnregisterEventHandler()
|
D | acl_manager_test.cc | 190 void RegisterEventHandler(EventCode event_code, in RegisterEventHandler() argument 192 registered_events_[event_code] = event_handler; in RegisterEventHandler() 195 void UnregisterEventHandler(EventCode event_code) override { in UnregisterEventHandler() argument 196 registered_events_.erase(event_code); in UnregisterEventHandler() 212 EventCode event_code = event.GetEventCode(); in IncomingEvent() local 213 …ASSERT_NE(registered_events_.find(event_code), registered_events_.end()) << EventCodeText(event_co… in IncomingEvent() 214 registered_events_[event_code].Invoke(event); in IncomingEvent()
|
/system/bt/hci/src/ |
D | hci_layer.cc | 638 uint8_t event_code; in filter_incoming_event() local 642 STREAM_TO_UINT8(event_code, stream); in filter_incoming_event() 645 if (event_code == HCI_COMMAND_COMPLETE_EVT) { in filter_incoming_event() 670 } else if (event_code == HCI_COMMAND_STATUS_EVT) { in filter_incoming_event() 694 } else if (event_code == HCI_VENDOR_SPECIFIC_EVT) { in filter_incoming_event() 723 if (event_code == HCI_COMMAND_STATUS_EVT || in filter_incoming_event() 728 if (event_code == HCI_COMMAND_COMPLETE_EVT || !wait_entry->status_callback) in filter_incoming_event()
|
D | hci_packet_parser.cc | 234 uint8_t event_code; in read_command_complete_header() local 236 STREAM_TO_UINT8(event_code, stream); in read_command_complete_header() 242 CHECK(event_code == HCI_COMMAND_COMPLETE_EVT); in read_command_complete_header()
|
/system/bt/gd/hci/acl_manager/ |
D | classic_impl.h | 55 for (auto event_code : AclConnectionEvents) { in ~classic_impl() local 56 hci_layer_->UnregisterEventHandler(event_code); in ~classic_impl() 63 EventCode event_code = event_packet.GetEventCode(); in on_classic_event() local 64 switch (event_code) { in on_classic_event() 108 LOG_ALWAYS_FATAL("Unhandled event code %s", EventCodeText(event_code).c_str()); in on_classic_event()
|
/system/bt/gd/neighbor/ |
D | inquiry_test.cc | 234 …hci::EventCode event_code, common::ContextualCallback<void(hci::EventPacketView)> event_handler) o… 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/avdt/ |
D | avdt_api.cc | 524 uint8_t event_code; in AVDT_ConfigRsp() local 546 event_code = AVDT_SCB_API_SETCONFIG_RSP_EVT; in AVDT_ConfigRsp() 548 event_code = AVDT_SCB_API_SETCONFIG_REJ_EVT; in AVDT_ConfigRsp() 550 avdt_scb_event(p_scb, event_code, &evt); in AVDT_ConfigRsp()
|
/system/bt/gd/security/internal/ |
D | security_manager_impl.cc | 224 auto event_code = packet.GetEventCode(); in HandleEvent() local 226 if (event_code != hci::EventCode::LINK_KEY_REQUEST) { in HandleEvent() 228 hci::EventCodeText(event_code).c_str()); in HandleEvent()
|