Home
last modified time | relevance | path

Searched refs:EventCode (Results 1 – 25 of 42) sorted by relevance

12

/packages/modules/Bluetooth/system/gd/hci/
Dsecurity_interface.h25 constexpr hci::EventCode SecurityEvents[] = {
26 hci::EventCode::ENCRYPTION_CHANGE,
27 hci::EventCode::CHANGE_CONNECTION_LINK_KEY_COMPLETE,
28 hci::EventCode::CENTRAL_LINK_KEY_COMPLETE,
29 hci::EventCode::RETURN_LINK_KEYS,
30 hci::EventCode::PIN_CODE_REQUEST,
31 hci::EventCode::LINK_KEY_REQUEST,
32 hci::EventCode::LINK_KEY_NOTIFICATION,
33 hci::EventCode::ENCRYPTION_KEY_REFRESH_COMPLETE,
34 hci::EventCode::IO_CAPABILITY_REQUEST,
[all …]
Dacl_connection_interface.h25 constexpr EventCode AclConnectionEvents[] = {
26 EventCode::CONNECTION_PACKET_TYPE_CHANGED,
27 EventCode::ROLE_CHANGE,
28 EventCode::CONNECTION_COMPLETE,
29 EventCode::AUTHENTICATION_COMPLETE,
30 EventCode::READ_CLOCK_OFFSET_COMPLETE,
31 EventCode::MODE_CHANGE,
32 EventCode::SNIFF_SUBRATING,
33 EventCode::QOS_SETUP_COMPLETE,
34 EventCode::FLOW_SPECIFICATION_COMPLETE,
[all …]
Dhci_layer.cc326 void register_event(EventCode event, ContextualCallback<void(EventView)> handler) { in register_event()
328 event != EventCode::LE_META_EVENT, in register_event()
330 EventCodeText(EventCode::LE_META_EVENT)); in register_event()
332 if (event == EventCode::CONNECTION_REQUEST && !module_.on_acl_connection_request_) { in register_event()
343 void unregister_event(EventCode event) { in unregister_event()
401 if (event_code == EventCode::COMMAND_COMPLETE) { in on_hci_event()
412 if (event_code == EventCode::COMMAND_STATUS) { in on_hci_event()
429 EventCode event_code = event.GetEventCode(); in on_hci_event()
431 if (event_code == EventCode::VENDOR_SPECIFIC) { in on_hci_event()
444 case EventCode::COMMAND_COMPLETE: in on_hci_event()
[all …]
Dhci_metrics_logging.cc32 EventCode event_code = event_view.GetEventCode(); in log_hci_event()
34 case EventCode::COMMAND_COMPLETE: { in log_hci_event()
45 case EventCode::COMMAND_STATUS: { in log_hci_event()
56 case EventCode::LE_META_EVENT: { in log_hci_event()
574 EventCode event_code = packet.GetEventCode(); in log_link_layer_connection_other_hci_event()
583 case EventCode::CONNECTION_COMPLETE: { in log_link_layer_connection_other_hci_event()
605 case EventCode::CONNECTION_REQUEST: { in log_link_layer_connection_other_hci_event()
614 case EventCode::DISCONNECTION_COMPLETE: { in log_link_layer_connection_other_hci_event()
624 case EventCode::SYNCHRONOUS_CONNECTION_COMPLETE: { in log_link_layer_connection_other_hci_event()
635 case EventCode::SYNCHRONOUS_CONNECTION_CHANGED: { in log_link_layer_connection_other_hci_event()
[all …]
Dhci_layer_fake.cc123 EventCode event_code, common::ContextualCallback<void(EventView)> event_handler) { in RegisterEventHandler()
127 void HciLayerFake::UnregisterEventHandler(EventCode event_code) { in UnregisterEventHandler()
154 EventCode event_code = event.GetEventCode(); in IncomingEvent()
155 if (event_code == EventCode::COMMAND_COMPLETE) { in IncomingEvent()
157 } else if (event_code == EventCode::COMMAND_STATUS) { in IncomingEvent()
Dhci_layer_fake.h50 …void RegisterEventHandler(EventCode event_code, common::ContextualCallback<void(EventView)> event_…
52 void UnregisterEventHandler(EventCode event_code) override;
97 std::map<EventCode, common::ContextualCallback<void(EventView)>> registered_events_;
Dremote_name_request.cc40 EventCode::REMOTE_HOST_SUPPORTED_FEATURES_NOTIFICATION, in Start()
44 EventCode::REMOTE_NAME_REQUEST_COMPLETE, in Start()
50 hci_layer_->UnregisterEventHandler(EventCode::REMOTE_HOST_SUPPORTED_FEATURES_NOTIFICATION); in Stop()
51 hci_layer_->UnregisterEventHandler(EventCode::REMOTE_NAME_REQUEST_COMPLETE); in Stop()
Dhci_layer_mock.h50 (EventCode, common::ContextualCallback<void(EventView)>),
52 MOCK_METHOD((void), UnregisterEventHandler, (EventCode), (override));
Dhci_interface.h59 EventCode event_code, common::ContextualCallback<void(EventView)> event_handler) = 0;
61 virtual void UnregisterEventHandler(EventCode event_code) = 0;
/packages/modules/Bluetooth/system/blueberry/tests/gd/cert/
Dmatchers.py40 event = HciMatchers._extract_matching_event(packet_bytes, hci.EventCode.COMMAND_COMPLETE)
61 event = HciMatchers._extract_matching_event(packet_bytes, hci.EventCode.COMMAND_STATUS)
100 event = HciMatchers._extract_matching_event(packet_bytes, hci.EventCode.LE_META_EVENT)
156 return HciMatchers.EventWithCode(hci.EventCode.LINK_KEY_REQUEST)
160 return HciMatchers.EventWithCode(hci.EventCode.IO_CAPABILITY_REQUEST)
164 return HciMatchers.EventWithCode(hci.EventCode.IO_CAPABILITY_RESPONSE)
168 return HciMatchers.EventWithCode(hci.EventCode.USER_PASSKEY_NOTIFICATION)
172 return HciMatchers.EventWithCode(hci.EventCode.USER_PASSKEY_REQUEST)
176 return HciMatchers.EventWithCode(hci.EventCode.USER_CONFIRMATION_REQUEST)
180 return HciMatchers.EventWithCode(hci.EventCode.LINK_KEY_NOTIFICATION)
[all …]
Dcaptures.py74 return Capture(HciMatchers.EventWithCode(hci.EventCode.CONNECTION_REQUEST),
79 return Capture(HciMatchers.EventWithCode(hci.EventCode.CONNECTION_COMPLETE),
84 return Capture(HciMatchers.EventWithCode(hci.EventCode.DISCONNECTION_COMPLETE),
94 return Capture(HciMatchers.EventWithCode(hci.EventCode.SIMPLE_PAIRING_COMPLETE),
Dpy_hci.py145 self.register_for_events(hci.EventCode.ROLE_CHANGE, hci.EventCode.CONNECTION_REQUEST,
146 … hci.EventCode.CONNECTION_COMPLETE, hci.EventCode.CONNECTION_PACKET_TYPE_CHANGED)
/packages/modules/Bluetooth/system/stack/btm/
Dsecurity_event_parser.cc42 static void log_address_and_status(const Address& bda, EventCode event_code, in log_address_and_status()
53 static void log_address(const Address& bda, EventCode event_code) { in log_address()
243 case EventCode::ENCRYPTION_CHANGE: in OnSecurityEvent()
246 case EventCode::CHANGE_CONNECTION_LINK_KEY_COMPLETE: in OnSecurityEvent()
249 case EventCode::CENTRAL_LINK_KEY_COMPLETE: in OnSecurityEvent()
252 case EventCode::RETURN_LINK_KEYS: in OnSecurityEvent()
255 case EventCode::PIN_CODE_REQUEST: in OnSecurityEvent()
258 case EventCode::LINK_KEY_REQUEST: in OnSecurityEvent()
261 case EventCode::LINK_KEY_NOTIFICATION: in OnSecurityEvent()
264 case EventCode::ENCRYPTION_KEY_REFRESH_COMPLETE: in OnSecurityEvent()
[all …]
/packages/modules/Bluetooth/system/main/shim/
Dhci_layer.cc62 bool register_event_code(bluetooth::hci::EventCode event_code) { in register_event_code()
65 case bluetooth::hci::EventCode::SYNCHRONOUS_CONNECTION_COMPLETE: in register_event_code()
66 case bluetooth::hci::EventCode::SYNCHRONOUS_CONNECTION_CHANGED: in register_event_code()
69 case bluetooth::hci::EventCode::ENCRYPTION_CHANGE: in register_event_code()
70 case bluetooth::hci::EventCode::PIN_CODE_REQUEST: in register_event_code()
71 case bluetooth::hci::EventCode::LINK_KEY_REQUEST: in register_event_code()
72 case bluetooth::hci::EventCode::LINK_KEY_NOTIFICATION: in register_event_code()
73 case bluetooth::hci::EventCode::ENCRYPTION_KEY_REFRESH_COMPLETE: in register_event_code()
74 case bluetooth::hci::EventCode::IO_CAPABILITY_REQUEST: in register_event_code()
75 case bluetooth::hci::EventCode::IO_CAPABILITY_RESPONSE: in register_event_code()
[all …]
/packages/modules/Bluetooth/system/blueberry/tests/gd/security/
Dcert_security.py93 self._hci.register_for_events(hci.EventCode.ENCRYPTION_CHANGE,
94 hci.EventCode.CHANGE_CONNECTION_LINK_KEY_COMPLETE,
95 … hci.EventCode.CENTRAL_LINK_KEY_COMPLETE, hci.EventCode.RETURN_LINK_KEYS,
96 … hci.EventCode.PIN_CODE_REQUEST, hci.EventCode.LINK_KEY_REQUEST,
97 hci.EventCode.LINK_KEY_NOTIFICATION,
98 hci.EventCode.ENCRYPTION_KEY_REFRESH_COMPLETE,
99 … hci.EventCode.IO_CAPABILITY_REQUEST, hci.EventCode.IO_CAPABILITY_RESPONSE,
100 … hci.EventCode.REMOTE_OOB_DATA_REQUEST, hci.EventCode.SIMPLE_PAIRING_COMPLETE,
101 … hci.EventCode.USER_PASSKEY_NOTIFICATION, hci.EventCode.KEYPRESS_NOTIFICATION,
102 … hci.EventCode.USER_CONFIRMATION_REQUEST, hci.EventCode.USER_PASSKEY_REQUEST)
[all …]
/packages/modules/Bluetooth/system/gd/security/test/
Dfake_hci_layer.h31 using hci::EventCode;
90 …void RegisterEventHandler(EventCode event_code, common::ContextualCallback<void(EventView)> event_… in RegisterEventHandler()
94 void UnregisterEventHandler(EventCode event_code) override { in UnregisterEventHandler()
102 EventCode event_code = event.GetEventCode(); in IncomingEvent()
112 std::map<EventCode, common::ContextualCallback<void(EventView)>> registered_events_;
/packages/modules/Bluetooth/system/gd/security/channel/
Dsecurity_manager_channel_unittest.cc156 const hci::EventCode code = event.GetEventCode(); in OnHciEventReceived()
158 case hci::EventCode::CHANGE_CONNECTION_LINK_KEY_COMPLETE: in OnHciEventReceived()
161 case hci::EventCode::CENTRAL_LINK_KEY_COMPLETE: in OnHciEventReceived()
164 case hci::EventCode::PIN_CODE_REQUEST: in OnHciEventReceived()
167 case hci::EventCode::LINK_KEY_REQUEST: in OnHciEventReceived()
170 case hci::EventCode::LINK_KEY_NOTIFICATION: in OnHciEventReceived()
173 case hci::EventCode::IO_CAPABILITY_REQUEST: in OnHciEventReceived()
176 case hci::EventCode::IO_CAPABILITY_RESPONSE: in OnHciEventReceived()
179 case hci::EventCode::SIMPLE_PAIRING_COMPLETE: in OnHciEventReceived()
182 case hci::EventCode::RETURN_LINK_KEYS: in OnHciEventReceived()
[all …]
/packages/modules/Bluetooth/system/gd/hci/acl_manager/
Dclassic_impl.h85 EventCode event_code = event_packet.GetEventCode(); in on_classic_event()
87 case EventCode::CONNECTION_COMPLETE: in on_classic_event()
90 case EventCode::CONNECTION_PACKET_TYPE_CHANGED: in on_classic_event()
93 case EventCode::AUTHENTICATION_COMPLETE: in on_classic_event()
96 case EventCode::READ_CLOCK_OFFSET_COMPLETE: in on_classic_event()
99 case EventCode::MODE_CHANGE: in on_classic_event()
102 case EventCode::SNIFF_SUBRATING: in on_classic_event()
105 case EventCode::QOS_SETUP_COMPLETE: in on_classic_event()
108 case EventCode::ROLE_CHANGE: in on_classic_event()
111 case EventCode::FLOW_SPECIFICATION_COMPLETE: in on_classic_event()
[all …]
/packages/modules/Bluetooth/system/blueberry/tests/gd/hal/
Dsimple_hal_test.py73 self.dut_hal.unmask_event(hci.EventCode.LE_META_EVENT)
97 self.cert_hal.unmask_event(hci.EventCode.LE_META_EVENT)
102 self.dut_hal.unmask_event(hci.EventCode.LE_META_EVENT)
118 self.dut_hal.unmask_event(hci.EventCode.LE_META_EVENT)
123 self.cert_hal.unmask_event(hci.EventCode.LE_META_EVENT)
/packages/modules/Bluetooth/system/gd/security/internal/
Dsecurity_manager_impl.cc275 …if (event_code != hci::EventCode::LINK_KEY_REQUEST && event_code != hci::EventCode::PIN_CODE_REQUE… in HandleEvent()
276 event_code != hci::EventCode::IO_CAPABILITY_RESPONSE) { in HandleEvent()
304 const hci::EventCode code = event.GetEventCode(); in OnHciEventReceived()
306 case hci::EventCode::PIN_CODE_REQUEST: in OnHciEventReceived()
309 case hci::EventCode::LINK_KEY_REQUEST: in OnHciEventReceived()
312 case hci::EventCode::LINK_KEY_NOTIFICATION: in OnHciEventReceived()
315 case hci::EventCode::IO_CAPABILITY_REQUEST: in OnHciEventReceived()
318 case hci::EventCode::IO_CAPABILITY_RESPONSE: in OnHciEventReceived()
321 case hci::EventCode::SIMPLE_PAIRING_COMPLETE: in OnHciEventReceived()
324 case hci::EventCode::REMOTE_OOB_DATA_REQUEST: in OnHciEventReceived()
[all …]
/packages/modules/Bluetooth/system/blueberry/tests/gd/hci/
Ddirect_hci_test.py54 self.dut_hci.register_for_events(hci.EventCode.LOOPBACK_COMMAND)
61 self.dut_hci.register_for_events(hci.EventCode.INQUIRY_RESULT)
65 …assertThat(self.dut_hci.get_event_stream()).emits(HciMatchers.EventWithCode(hci.EventCode.INQUIRY_…
172 self.cert_hal.unmask_event(hci.EventCode.LE_META_EVENT)
191 …hci.EventCode.LE_META_EVENT) and packet.payload[2] == int(hci.SubeventCode.READ_REMOTE_FEATURES_CO…
215 self.cert_hal.unmask_event(hci.EventCode.LE_META_EVENT)
241 self.cert_hal.unmask_event(hci.EventCode.LE_META_EVENT)
276 self.cert_hal.unmask_event(hci.EventCode.LE_META_EVENT)
/packages/modules/Bluetooth/system/gd/security/pairing/
Dclassic_pairing_handler_unittest.cc93 const hci::EventCode code = event.GetEventCode(); in OnHciEventReceived()
95 case hci::EventCode::PIN_CODE_REQUEST: in OnHciEventReceived()
98 case hci::EventCode::LINK_KEY_REQUEST: in OnHciEventReceived()
101 case hci::EventCode::LINK_KEY_NOTIFICATION: in OnHciEventReceived()
104 case hci::EventCode::IO_CAPABILITY_REQUEST: in OnHciEventReceived()
107 case hci::EventCode::IO_CAPABILITY_RESPONSE: in OnHciEventReceived()
110 case hci::EventCode::SIMPLE_PAIRING_COMPLETE: in OnHciEventReceived()
113 case hci::EventCode::RETURN_LINK_KEYS: in OnHciEventReceived()
116 case hci::EventCode::REMOTE_OOB_DATA_REQUEST: in OnHciEventReceived()
119 case hci::EventCode::USER_PASSKEY_NOTIFICATION: in OnHciEventReceived()
[all …]
/packages/modules/Bluetooth/system/bta/ras/
Dras_types.h78 enum class EventCode : uint8_t { enum
105 EventCode event_code_;
/packages/modules/Bluetooth/system/gd/hci/fuzz/
Dfuzz_hci_layer.h87 …void RegisterEventHandler(hci::EventCode event, common::ContextualCallback<void(hci::EventView)> h… in RegisterEventHandler()
91 void UnregisterEventHandler(hci::EventCode event) override { in UnregisterEventHandler()
197 std::map<hci::EventCode, common::ContextualCallback<void(hci::EventView)>> event_handlers_;
/packages/modules/Bluetooth/tools/rootcanal/lib/hci/
Dpcap_filter.cc100 case EventCode::LE_META_EVENT: { in FilterHciEvent()
113 case EventCode::COMMAND_COMPLETE: { in FilterHciEvent()
126 case EventCode::REMOTE_NAME_REQUEST_COMPLETE: in FilterHciEvent()
128 case EventCode::EXTENDED_INQUIRY_RESULT: in FilterHciEvent()

12