Home
last modified time | relevance | path

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

/system/bt/gd/security/test/
Dfake_hci_layer.h83 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/
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_advertising_manager_test.py37 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))
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.py57 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/
Dpy_hci.py101 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))
Dmatchers.py44 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/
Dhci_packets.pdl688 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 …]
Dle_scanning_manager_test.cc115 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()
Dhci_layer.h56 virtual void RegisterEventHandler(EventCode event_code,
59 virtual void UnregisterEventHandler(EventCode event_code);
Dhci_layer.cc192 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()
Dle_advertising_manager_test.cc143 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()
Dcontroller_test.cc201 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()
Dacl_manager_test.cc190 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/
Dhci_layer.cc638 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()
Dhci_packet_parser.cc234 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/
Dclassic_impl.h55 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/
Dinquiry_test.cc234 …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/
Davdt_api.cc524 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/
Dsecurity_manager_impl.cc224 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()