/aosp12/system/bt/gd/hci/ |
H A D | security_interface.h | 25 constexpr hci::EventCode SecurityEvents[] = { 26 hci::EventCode::ENCRYPTION_CHANGE, 29 hci::EventCode::RETURN_LINK_KEYS, 30 hci::EventCode::PIN_CODE_REQUEST, 31 hci::EventCode::LINK_KEY_REQUEST, 32 hci::EventCode::LINK_KEY_NOTIFICATION, 34 hci::EventCode::IO_CAPABILITY_REQUEST, 35 hci::EventCode::IO_CAPABILITY_RESPONSE, 36 hci::EventCode::REMOTE_OOB_DATA_REQUEST, 39 hci::EventCode::KEYPRESS_NOTIFICATION, [all …]
|
H A D | acl_connection_interface.h | 27 constexpr EventCode AclConnectionEvents[] = { 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, 37 EventCode::FLOW_SPECIFICATION_COMPLETE, [all …]
|
H A D | hci_layer.cc | 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() 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() 303 EventCode event_code = event.GetEventCode(); in on_hci_event() 305 if (event_code == EventCode::VENDOR_SPECIFIC) { in on_hci_event() [all …]
|
H A D | hci_metrics_logging.cc | 32 case EventCode::COMMAND_COMPLETE: { in log_hci_event() 43 case EventCode::COMMAND_STATUS: { in log_hci_event() 54 case EventCode::LE_META_EVENT: { in log_hci_event() 336 case EventCode::CONNECTION_COMPLETE: { in log_link_layer_connection_other_hci_event() 348 case EventCode::CONNECTION_REQUEST: { in log_link_layer_connection_other_hci_event() 404 EventCode event_code = EventCode::LE_META_EVENT; in log_link_layer_connection_event_le_meta() 435 case EventCode::IO_CAPABILITY_REQUEST: { in log_classic_pairing_other_hci_event() 447 case EventCode::LINK_KEY_REQUEST: { in log_classic_pairing_other_hci_event() 459 case EventCode::USER_PASSKEY_REQUEST: { in log_classic_pairing_other_hci_event() 510 case EventCode::ENCRYPTION_CHANGE: { in log_classic_pairing_other_hci_event() [all …]
|
H A D | le_scanning_manager_test.cc | 117 …void RegisterEventHandler(EventCode event_code, common::ContextualCallback<void(EventView)> event_… in RegisterEventHandler() 121 void UnregisterEventHandler(EventCode event_code) override { in UnregisterEventHandler() 138 EventCode event_code = event.GetEventCode(); in IncomingEvent() 172 RegisterEventHandler(EventCode::COMMAND_COMPLETE, in Start() 174 …RegisterEventHandler(EventCode::COMMAND_STATUS, GetHandler()->BindOn(this, &TestHciLayer::CommandS… in Start() 179 std::map<EventCode, common::ContextualCallback<void(EventView)>> registered_events_;
|
/aosp12/system/bt/main/shim/ |
H A D | hci_layer.cc | 61 case bluetooth::hci::EventCode::INQUIRY_RESULT: in is_valid_event_code() 74 case bluetooth::hci::EventCode::COMMAND_STATUS: in is_valid_event_code() 75 case bluetooth::hci::EventCode::HARDWARE_ERROR: in is_valid_event_code() 77 case bluetooth::hci::EventCode::ROLE_CHANGE: in is_valid_event_code() 79 case bluetooth::hci::EventCode::MODE_CHANGE: in is_valid_event_code() 89 case bluetooth::hci::EventCode::QOS_VIOLATION: in is_valid_event_code() 163 bluetooth::hci::EventCode event_code) { in event_already_registered_in_hci_layer() 183 bluetooth::hci::EventCode event_code) { in event_already_registered_in_controller_layer() 194 bluetooth::hci::EventCode event_code) { in event_already_registered_in_acl_layer() 256 bluetooth::hci::EventCode event_code) { in event_already_registered_in_le_advertising_manager() [all …]
|
/aosp12/system/bt/gd/btaa/linux_generic/ |
H A D | cmd_evt_classification.cc | 333 case hci::EventCode::INQUIRY_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() 358 case hci::EventCode::ENCRYPTION_CHANGE: in lookup_event() 366 case hci::EventCode::MODE_CHANGE: in lookup_event() 372 case hci::EventCode::SNIFF_SUBRATING: in lookup_event() 380 case hci::EventCode::FLUSH_OCCURRED: in lookup_event() 381 case hci::EventCode::MAX_SLOTS_CHANGE: in lookup_event() 382 case hci::EventCode::QOS_VIOLATION: in lookup_event() [all …]
|
H A 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()
|
/aosp12/system/bt/gd/rust/hci/src/ |
H A 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 …]
|
/aosp12/system/bt/gd/security/cert/ |
H A 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…
|
/aosp12/system/bt/gd/cert/ |
H A 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)))
|
H A D | matchers.py | 22 from bluetooth_packets_python3.hci_packets import EventCode 73 event = HciMatchers._extract_matching_event(packet_bytes, EventCode.COMMAND_STATUS) 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) 167 return lambda event: HciMatchers.EventWithCode(EventCode.USER_PASSKEY_REQUEST) 179 return lambda event: HciMatchers.EventWithCode(EventCode.LINK_KEY_NOTIFICATION) 187 return lambda event: HciMatchers.EventWithCode(EventCode.DISCONNECT) 191 return lambda event: HciMatchers.EventWithCode(EventCode.DISCONNECTION_COMPLETE) 199 return lambda event: HciMatchers.EventWithCode(EventCode.PIN_CODE_REQUEST) [all …]
|
H A 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)
|
/aosp12/system/bt/gd/security/test/ |
H A 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_;
|
/aosp12/system/bt/gd/hci/acl_manager/ |
H A D | classic_impl.h | 81 case EventCode::CONNECTION_COMPLETE: in on_classic_event() 84 case EventCode::CONNECTION_REQUEST: 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() 108 case EventCode::FLOW_SPECIFICATION_COMPLETE: in on_classic_event() 111 case EventCode::FLUSH_OCCURRED: in on_classic_event() [all …]
|
/aosp12/system/bt/gd/neighbor/ |
H A 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() 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() 260 hci_layer_->UnregisterEventHandler(hci::EventCode::INQUIRY_RESULT_WITH_RSSI); in UnregisterCallbacks() [all …]
|
H A 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()
|
H A D | name.cc | 123 case hci::EventCode::REMOTE_NAME_REQUEST_COMPLETE: { in OnEvent() 144 … hci::EventCode::REMOTE_NAME_REQUEST_COMPLETE, handler_->BindOn(this, &NameModule::impl::OnEvent)); in Start() 148 hci_layer_->UnregisterEventHandler(hci::EventCode::REMOTE_NAME_REQUEST_COMPLETE); in Stop()
|
/aosp12/system/bt/gd/security/channel/ |
H A D | security_manager_channel_unittest.cc | 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() 185 case hci::EventCode::ENCRYPTION_CHANGE: in OnHciEventReceived() 191 case hci::EventCode::REMOTE_OOB_DATA_REQUEST: in OnHciEventReceived() 197 case hci::EventCode::KEYPRESS_NOTIFICATION: in OnHciEventReceived() [all …]
|
/aosp12/system/bt/gd/security/internal/ |
H A D | security_manager_impl.cc | 259 …if (event_code != hci::EventCode::LINK_KEY_REQUEST && event_code != hci::EventCode::PIN_CODE_REQUE… in HandleEvent() 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() 312 case hci::EventCode::KEYPRESS_NOTIFICATION: in OnHciEventReceived() 318 case hci::EventCode::USER_PASSKEY_REQUEST: in OnHciEventReceived() [all …]
|
/aosp12/system/bt/gd/security/pairing/ |
H A 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() 121 case hci::EventCode::KEYPRESS_NOTIFICATION: in OnHciEventReceived() [all …]
|
/aosp12/system/bt/gd/hci/cert/ |
H A 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…
|
/aosp12/system/bt/gd/rust/link/src/acl/classic/ |
H A 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()
|
/aosp12/system/bt/gd/rust/link/src/acl/ |
H A 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()
|
/aosp12/system/bt/gd/hci/fuzz/ |
H A 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_;
|