/system/bt/gd/hci/ |
D | security_interface.h | 25 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 …]
|
D | acl_connection_interface.h | 27 constexpr EventCode AclConnectionEvents[] = { 28 EventCode::CONNECTION_PACKET_TYPE_CHANGED, 29 EventCode::ROLE_CHANGE, 30 EventCode::CONNECTION_COMPLETE, 31 EventCode::CONNECTION_REQUEST, 32 EventCode::AUTHENTICATION_COMPLETE, 33 EventCode::READ_CLOCK_OFFSET_COMPLETE, 34 EventCode::MODE_CHANGE, 35 EventCode::SNIFF_SUBRATING, 36 EventCode::QOS_SETUP_COMPLETE, [all …]
|
D | hci_layer.cc | 240 void register_event(EventCode event, ContextualCallback<void(EventView)> handler) { in register_event() 242 event != EventCode::LE_META_EVENT, in register_event() 244 EventCode::LE_META_EVENT, in register_event() 245 EventCodeText(EventCode::LE_META_EVENT).c_str()); in register_event() 251 void unregister_event(EventCode event) { in unregister_event() 257 event_handlers_.count(EventCode::LE_META_EVENT) == 0, in register_le_meta_event() 259 EventCode::LE_META_EVENT, in register_le_meta_event() 260 EventCodeText(EventCode::LE_META_EVENT).c_str()); in register_le_meta_event() 261 event_handlers_[EventCode::LE_META_EVENT] = handler; in register_le_meta_event() 265 unregister_event(EventCode::LE_META_EVENT); in unregister_le_meta_event() [all …]
|
D | hci_metrics_logging.cc | 30 EventCode event_code = event_view.GetEventCode(); in log_hci_event() 32 case EventCode::COMMAND_COMPLETE: { in log_hci_event() 38 case EventCode::COMMAND_STATUS: { in log_hci_event() 46 case EventCode::LE_META_EVENT: { in log_hci_event() 319 EventCode event_code = packet.GetEventCode(); in log_link_layer_connection_other_hci_event() 328 case EventCode::CONNECTION_COMPLETE: { in log_link_layer_connection_other_hci_event() 340 case EventCode::CONNECTION_REQUEST: { in log_link_layer_connection_other_hci_event() 348 case EventCode::DISCONNECTION_COMPLETE: { in log_link_layer_connection_other_hci_event() 356 case EventCode::SYNCHRONOUS_CONNECTION_COMPLETE: { in log_link_layer_connection_other_hci_event() 365 case EventCode::SYNCHRONOUS_CONNECTION_CHANGED: { in log_link_layer_connection_other_hci_event() [all …]
|
D | hci_layer.h | 61 …virtual void RegisterEventHandler(EventCode event_code, common::ContextualCallback<void(EventView)… 63 virtual void UnregisterEventHandler(EventCode event_code);
|
/system/bt/main/shim/ |
D | hci_layer.cc | 58 bool is_valid_event_code(bluetooth::hci::EventCode event_code) { in is_valid_event_code() 60 case bluetooth::hci::EventCode::INQUIRY_COMPLETE: in is_valid_event_code() 61 case bluetooth::hci::EventCode::INQUIRY_RESULT: in is_valid_event_code() 62 case bluetooth::hci::EventCode::CONNECTION_COMPLETE: in is_valid_event_code() 63 case bluetooth::hci::EventCode::CONNECTION_REQUEST: in is_valid_event_code() 64 case bluetooth::hci::EventCode::DISCONNECTION_COMPLETE: in is_valid_event_code() 65 case bluetooth::hci::EventCode::AUTHENTICATION_COMPLETE: in is_valid_event_code() 66 case bluetooth::hci::EventCode::REMOTE_NAME_REQUEST_COMPLETE: in is_valid_event_code() 67 case bluetooth::hci::EventCode::ENCRYPTION_CHANGE: in is_valid_event_code() 68 case bluetooth::hci::EventCode::CHANGE_CONNECTION_LINK_KEY_COMPLETE: in is_valid_event_code() [all …]
|
/system/bt/gd/btaa/linux_generic/ |
D | cmd_evt_classification.cc | 330 CmdEvtActivityClassification lookup_event(hci::EventCode event_code) { in lookup_event() 333 case hci::EventCode::INQUIRY_COMPLETE: in lookup_event() 336 case hci::EventCode::CONNECTION_COMPLETE: in lookup_event() 337 case hci::EventCode::SYNCHRONOUS_CONNECTION_COMPLETE: in lookup_event() 341 case hci::EventCode::CONNECTION_REQUEST: in lookup_event() 342 case hci::EventCode::PIN_CODE_REQUEST: in lookup_event() 343 case hci::EventCode::LINK_KEY_REQUEST: in lookup_event() 344 case hci::EventCode::LINK_KEY_NOTIFICATION: in lookup_event() 345 case hci::EventCode::USER_PASSKEY_NOTIFICATION: in lookup_event() 346 case hci::EventCode::KEYPRESS_NOTIFICATION: in lookup_event() [all …]
|
D | hci_processor.cc | 64 hci::EventCode event_code, in process_special_event() 71 case hci::EventCode::INQUIRY_RESULT: in process_special_event() 72 case hci::EventCode::INQUIRY_RESULT_WITH_RSSI: { in process_special_event() 84 case hci::EventCode::NUMBER_OF_COMPLETED_PACKETS: { in process_special_event() 97 case hci::EventCode::RETURN_LINK_KEYS: { in process_special_event() 172 case hci::EventCode::COMMAND_COMPLETE: { in process_event() 181 case hci::EventCode::COMMAND_STATUS: { in process_event() 191 case hci::EventCode::LE_META_EVENT: in process_event() 194 case hci::EventCode::VENDOR_SPECIFIC: in process_event()
|
/system/bt/gd/rust/hci/src/ |
D | lib.rs | 22 CommandExpectations, CommandPacket, ErrorCode, EventCode, EventPacket, LeMetaEventPacket, 124 evt_handlers: Arc<Mutex<HashMap<EventCode, Sender<EventPacket>>>>, 130 pub async fn register(&mut self, code: EventCode, sender: Sender<EventPacket>) { in register() argument 132 EventCode::CommandStatus in register() 133 | EventCode::CommandComplete in register() 134 | EventCode::LeMetaEvent in register() 135 | EventCode::PageScanRepetitionModeChange in register() 136 | EventCode::MaxSlotsChange in register() 137 | EventCode::VendorSpecific => panic!("{:?} is a protected event", code), in register() 149 pub async fn unregister(&mut self, code: EventCode) { in unregister() argument [all …]
|
/system/bt/gd/security/cert/ |
D | cert_security.py | 94 …hci_packets.EventCode.ENCRYPTION_CHANGE, hci_packets.EventCode.CHANGE_CONNECTION_LINK_KEY_COMPLETE, 95 hci_packets.EventCode.CENTRAL_LINK_KEY_COMPLETE, hci_packets.EventCode.RETURN_LINK_KEYS, 96 hci_packets.EventCode.PIN_CODE_REQUEST, hci_packets.EventCode.LINK_KEY_REQUEST, 97 …hci_packets.EventCode.LINK_KEY_NOTIFICATION, hci_packets.EventCode.ENCRYPTION_KEY_REFRESH_COMPLETE, 98 … hci_packets.EventCode.IO_CAPABILITY_REQUEST, hci_packets.EventCode.IO_CAPABILITY_RESPONSE, 99 … hci_packets.EventCode.REMOTE_OOB_DATA_REQUEST, hci_packets.EventCode.SIMPLE_PAIRING_COMPLETE, 100 … hci_packets.EventCode.USER_PASSKEY_NOTIFICATION, hci_packets.EventCode.KEYPRESS_NOTIFICATION, 101 … hci_packets.EventCode.USER_CONFIRMATION_REQUEST, hci_packets.EventCode.USER_PASSKEY_REQUEST, 102 hci_packets.EventCode.REMOTE_HOST_SUPPORTED_FEATURES_NOTIFICATION) 203 …assertThat(self._hci_event_stream).emits(HciMatchers.EventWithCode(hci_packets.EventCode.USER_PASS…
|
/system/bt/gd/cert/ |
D | captures.py | 89 HciMatchers.EventWithCode(hci_packets.EventCode.CONNECTION_REQUEST), 91 … HciMatchers.ExtractEventWithCode(packet.payload, hci_packets.EventCode.CONNECTION_REQUEST))) 96 HciMatchers.EventWithCode(hci_packets.EventCode.CONNECTION_COMPLETE), 98 … HciMatchers.ExtractEventWithCode(packet.payload, hci_packets.EventCode.CONNECTION_COMPLETE))) 103 HciMatchers.EventWithCode(hci_packets.EventCode.DISCONNECTION_COMPLETE), 105 … HciMatchers.ExtractEventWithCode(packet.payload, hci_packets.EventCode.DISCONNECTION_COMPLETE))) 114 return Capture(HciMatchers.EventWithCode(hci_packets.EventCode.SIMPLE_PAIRING_COMPLETE), 116 … HciMatchers.ExtractEventWithCode(packet.payload, hci_packets.EventCode.SIMPLE_PAIRING_COMPLETE)))
|
D | matchers.py | 22 from bluetooth_packets_python3.hci_packets import EventCode 47 event = HciMatchers._extract_matching_event(packet_bytes, EventCode.COMMAND_COMPLETE) 73 event = HciMatchers._extract_matching_event(packet_bytes, EventCode.COMMAND_STATUS) 116 …inner_event = HciMatchers._extract_matching_event(packet_bytes, hci_packets.EventCode.LE_META_EVEN… 151 return lambda event: HciMatchers.EventWithCode(EventCode.LINK_KEY_REQUEST) 155 return lambda event: HciMatchers.EventWithCode(EventCode.IO_CAPABILITY_REQUEST) 159 return lambda event: HciMatchers.EventWithCode(EventCode.IO_CAPABILITY_RESPONSE) 163 return lambda event: HciMatchers.EventWithCode(EventCode.USER_PASSKEY_NOTIFICATION) 167 return lambda event: HciMatchers.EventWithCode(EventCode.USER_PASSKEY_REQUEST) 171 return lambda event: HciMatchers.EventWithCode(EventCode.USER_CONFIRMATION_REQUEST) [all …]
|
D | py_hci.py | 124 …self.register_for_events(hci_packets.EventCode.ROLE_CHANGE, hci_packets.EventCode.CONNECTION_REQUE… 125 hci_packets.EventCode.CONNECTION_COMPLETE, 126 hci_packets.EventCode.CONNECTION_PACKET_TYPE_CHANGED)
|
/system/bt/gd/security/test/ |
D | fake_hci_layer.h | 29 using hci::EventCode; 86 …void RegisterEventHandler(EventCode event_code, common::ContextualCallback<void(EventView)> event_… in RegisterEventHandler() 90 void UnregisterEventHandler(EventCode event_code) override { in UnregisterEventHandler() 98 EventCode event_code = event.GetEventCode(); in IncomingEvent() 108 std::map<EventCode, common::ContextualCallback<void(EventView)>> registered_events_;
|
/system/bt/gd/hci/acl_manager/ |
D | classic_impl.h | 79 EventCode event_code = event_packet.GetEventCode(); in on_classic_event() 81 case EventCode::CONNECTION_COMPLETE: in on_classic_event() 84 case EventCode::CONNECTION_REQUEST: in on_classic_event() 87 case EventCode::CONNECTION_PACKET_TYPE_CHANGED: in on_classic_event() 90 case EventCode::AUTHENTICATION_COMPLETE: in on_classic_event() 93 case EventCode::READ_CLOCK_OFFSET_COMPLETE: in on_classic_event() 96 case EventCode::MODE_CHANGE: in on_classic_event() 99 case EventCode::SNIFF_SUBRATING: in on_classic_event() 102 case EventCode::QOS_SETUP_COMPLETE: in on_classic_event() 105 case EventCode::ROLE_CHANGE: in on_classic_event() [all …]
|
/system/bt/gd/neighbor/ |
D | inquiry.cc | 199 case hci::EventCode::INQUIRY_COMPLETE: { in OnEvent() 208 case hci::EventCode::INQUIRY_RESULT: { in OnEvent() 215 case hci::EventCode::INQUIRY_RESULT_WITH_RSSI: { in OnEvent() 222 case hci::EventCode::EXTENDED_INQUIRY_RESULT: { in OnEvent() 248 hci::EventCode::INQUIRY_RESULT, handler_->BindOn(this, &InquiryModule::impl::OnEvent)); in RegisterCallbacks() 250 … hci::EventCode::INQUIRY_RESULT_WITH_RSSI, handler_->BindOn(this, &InquiryModule::impl::OnEvent)); in RegisterCallbacks() 252 … hci::EventCode::EXTENDED_INQUIRY_RESULT, handler_->BindOn(this, &InquiryModule::impl::OnEvent)); in RegisterCallbacks() 254 hci::EventCode::INQUIRY_COMPLETE, handler_->BindOn(this, &InquiryModule::impl::OnEvent)); in RegisterCallbacks() 258 hci_layer_->UnregisterEventHandler(hci::EventCode::INQUIRY_COMPLETE); in UnregisterCallbacks() 259 hci_layer_->UnregisterEventHandler(hci::EventCode::EXTENDED_INQUIRY_RESULT); in UnregisterCallbacks() [all …]
|
D | inquiry_test.cc | 234 …hci::EventCode event_code, common::ContextualCallback<void(hci::EventView)> event_handler) overrid… in RegisterEventHandler() 236 case hci::EventCode::INQUIRY_RESULT: in RegisterEventHandler() 239 case hci::EventCode::INQUIRY_RESULT_WITH_RSSI: in RegisterEventHandler() 242 case hci::EventCode::EXTENDED_INQUIRY_RESULT: in RegisterEventHandler() 245 case hci::EventCode::INQUIRY_COMPLETE: in RegisterEventHandler() 254 void UnregisterEventHandler(hci::EventCode event_code) override { in UnregisterEventHandler() 261 case hci::EventCode::INQUIRY_RESULT: in UnregisterEventHandler() 264 case hci::EventCode::INQUIRY_RESULT_WITH_RSSI: in UnregisterEventHandler() 267 case hci::EventCode::EXTENDED_INQUIRY_RESULT: in UnregisterEventHandler() 270 case hci::EventCode::INQUIRY_COMPLETE: in UnregisterEventHandler()
|
/system/bt/gd/security/channel/ |
D | security_manager_channel_unittest.cc | 156 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 …]
|
/system/bt/gd/security/internal/ |
D | security_manager_impl.cc | 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() 286 const hci::EventCode code = event.GetEventCode(); in OnHciEventReceived() 288 case hci::EventCode::PIN_CODE_REQUEST: in OnHciEventReceived() 291 case hci::EventCode::LINK_KEY_REQUEST: in OnHciEventReceived() 294 case hci::EventCode::LINK_KEY_NOTIFICATION: in OnHciEventReceived() 297 case hci::EventCode::IO_CAPABILITY_REQUEST: in OnHciEventReceived() 300 case hci::EventCode::IO_CAPABILITY_RESPONSE: in OnHciEventReceived() 303 case hci::EventCode::SIMPLE_PAIRING_COMPLETE: in OnHciEventReceived() 306 case hci::EventCode::REMOTE_OOB_DATA_REQUEST: in OnHciEventReceived() [all …]
|
/system/bt/gd/btaa/ |
D | cmd_evt_classification.h | 32 CmdEvtActivityClassification lookup_event(hci::EventCode event_code);
|
/system/bt/gd/hci/cert/ |
D | direct_hci_test.py | 28 from bluetooth_packets_python3.hci_packets import EventCode 105 self.dut_hci.register_for_events(EventCode.LOOPBACK_COMMAND) 112 self.dut_hci.register_for_events(EventCode.INQUIRY_RESULT) 118 …assertThat(self.dut_hci.get_event_stream()).emits(HciMatchers.EventWithCode(EventCode.INQUIRY_RESU… 227 …lambda packet: packet.payload[0] == int(EventCode.LE_META_EVENT) and packet.payload[2] == int(Sube…
|
/system/bt/gd/security/pairing/ |
D | classic_pairing_handler_unittest.cc | 92 const hci::EventCode code = event.GetEventCode(); in OnHciEventReceived() 94 case hci::EventCode::PIN_CODE_REQUEST: in OnHciEventReceived() 97 case hci::EventCode::LINK_KEY_REQUEST: in OnHciEventReceived() 100 case hci::EventCode::LINK_KEY_NOTIFICATION: in OnHciEventReceived() 103 case hci::EventCode::IO_CAPABILITY_REQUEST: in OnHciEventReceived() 106 case hci::EventCode::IO_CAPABILITY_RESPONSE: in OnHciEventReceived() 109 case hci::EventCode::SIMPLE_PAIRING_COMPLETE: in OnHciEventReceived() 112 case hci::EventCode::RETURN_LINK_KEYS: in OnHciEventReceived() 115 case hci::EventCode::REMOTE_OOB_DATA_REQUEST: in OnHciEventReceived() 118 case hci::EventCode::USER_PASSKEY_NOTIFICATION: in OnHciEventReceived() [all …]
|
/system/bt/gd/rust/link/src/acl/ |
D | core.rs | 8 use bt_packets::hci::{AclPacket, EventCode, EventPacket}; 87 events.register(EventCode::NumberOfCompletedPackets, evt_tx.clone()).await; in provide_acl_dispatch() 88 events.register(EventCode::DisconnectionComplete, evt_tx).await; in provide_acl_dispatch()
|
/system/bt/gd/rust/link/src/acl/classic/ |
D | mod.rs | 12 DisconnectBuilder, DisconnectReason, ErrorCode, EventChild, EventCode, EventPacket, 150 events.register(EventCode::ConnectionComplete, evt_tx.clone()).await; in provide_acl_manager() 151 events.register(EventCode::ConnectionRequest, evt_tx.clone()).await; in provide_acl_manager() 152 events.register(EventCode::AuthenticationComplete, evt_tx).await; in provide_acl_manager()
|
/system/bt/gd/hci/fuzz/ |
D | fuzz_hci_layer.h | 78 …void RegisterEventHandler(hci::EventCode event, common::ContextualCallback<void(hci::EventView)> h… in RegisterEventHandler() 82 void UnregisterEventHandler(hci::EventCode event) override { in UnregisterEventHandler() 179 std::map<hci::EventCode, common::ContextualCallback<void(hci::EventView)>> event_handlers_;
|