Home
last modified time | relevance | path

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

12345

/aosp_15_r20/external/pigweed/pw_bluetooth_sapphire/public/pw_bluetooth_sapphire/internal/host/hci-spec/
H A Dprotocol.h48 using EventCode = uint8_t; variable
463 constexpr EventCode kVendorDebugEventCode = 0xFF;
467 constexpr EventCode kInquiryCompleteEventCode = 0x01;
471 constexpr EventCode kInquiryResultEventCode = 0x02;
475 constexpr EventCode kConnectionCompleteEventCode = 0x03;
479 constexpr EventCode kConnectionRequestEventCode = 0x04;
483 constexpr EventCode kDisconnectionCompleteEventCode = 0x05;
487 constexpr EventCode kAuthenticationCompleteEventCode = 0x06;
491 constexpr EventCode kRemoteNameRequestCompleteEventCode = 0x07;
495 constexpr EventCode kEncryptionChangeEventCode = 0x08;
[all …]
/aosp_15_r20/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_metrics_logging.cc33 EventCode event_code = event_view.GetEventCode(); in log_hci_event()
35 case EventCode::COMMAND_COMPLETE: { in log_hci_event()
46 case EventCode::COMMAND_STATUS: { in log_hci_event()
57 case EventCode::LE_META_EVENT: { in log_hci_event()
545 EventCode event_code = packet.GetEventCode(); in log_link_layer_connection_other_hci_event()
554 case EventCode::CONNECTION_COMPLETE: { in log_link_layer_connection_other_hci_event()
572 case EventCode::CONNECTION_REQUEST: { in log_link_layer_connection_other_hci_event()
581 case EventCode::DISCONNECTION_COMPLETE: { in log_link_layer_connection_other_hci_event()
590 case EventCode::SYNCHRONOUS_CONNECTION_COMPLETE: { in log_link_layer_connection_other_hci_event()
601 case EventCode::SYNCHRONOUS_CONNECTION_CHANGED: { in log_link_layer_connection_other_hci_event()
[all …]
Dhci_layer.cc370 void register_event(EventCode event, ContextualCallback<void(EventView)> handler) { in register_event()
371 log::assert_that(event != EventCode::LE_META_EVENT, "Can not register handler for {}", in register_event()
372 EventCodeText(EventCode::LE_META_EVENT)); in register_event()
374 if (event == EventCode::CONNECTION_REQUEST && !module_.on_acl_connection_request_) { in register_event()
383 void unregister_event(EventCode event) { event_handlers_.erase(event); } in unregister_event()
441 if (event_code == EventCode::COMMAND_COMPLETE) { in on_hci_event()
450 if (event_code == EventCode::COMMAND_STATUS) { in on_hci_event()
466 EventCode event_code = event.GetEventCode(); in on_hci_event()
468 if (event_code == EventCode::VENDOR_SPECIFIC) { in on_hci_event()
481 case EventCode::COMMAND_COMPLETE: in on_hci_event()
[all …]
Dinquiry_interface.h25 constexpr hci::EventCode InquiryEvents[] = {
26 hci::EventCode::INQUIRY_COMPLETE,
27 hci::EventCode::INQUIRY_RESULT,
28 hci::EventCode::INQUIRY_RESULT_WITH_RSSI,
29 hci::EventCode::EXTENDED_INQUIRY_RESULT,
Dhci_layer_fake.cc145 void HciLayerFake::RegisterEventHandler(EventCode event_code, in RegisterEventHandler()
150 void HciLayerFake::UnregisterEventHandler(EventCode event_code) { in UnregisterEventHandler()
178 EventCode event_code = event.GetEventCode(); in IncomingEvent()
179 if (event_code == EventCode::COMMAND_COMPLETE) { in IncomingEvent()
181 } else if (event_code == EventCode::COMMAND_STATUS) { in IncomingEvent()
Dremote_name_request.cc40 EventCode::REMOTE_HOST_SUPPORTED_FEATURES_NOTIFICATION, in Start()
44 EventCode::REMOTE_NAME_REQUEST_COMPLETE, in Start()
51 hci_layer_->UnregisterEventHandler(EventCode::REMOTE_HOST_SUPPORTED_FEATURES_NOTIFICATION); in Stop()
52 hci_layer_->UnregisterEventHandler(EventCode::REMOTE_NAME_REQUEST_COMPLETE); in Stop()
Dhci_layer_fake.h53 void RegisterEventHandler(EventCode event_code,
56 void UnregisterEventHandler(EventCode event_code) override;
102 std::map<EventCode, common::ContextualCallback<void(EventView)>> registered_events_;
/aosp_15_r20/external/pigweed/pw_bluetooth_sapphire/public/pw_bluetooth_sapphire/internal/host/transport/
H A Dcommand_channel.h103 hci_spec::EventCode complete_event_code =
114 hci_spec::EventCode le_meta_subevent_code);
124 hci_spec::EventCode complete_event_code =
133 std::optional<hci_spec::EventCode> le_meta_subevent_code,
196 EventHandlerId AddEventHandler(hci_spec::EventCode event_code,
204 hci_spec::EventCode le_meta_subevent_code, EventCallback event_callback);
210 EventHandlerId AddVendorEventHandler(hci_spec::EventCode vendor_subevent_code,
235 hci_spec::EventCode complete_event_code,
236 std::optional<hci_spec::EventCode> le_meta_subevent_code = std::nullopt,
260 hci_spec::EventCode complete_event_code,
[all …]
H A Dcontrol_packets.h93 static EventPacketT<T> New(pw::bluetooth::emboss::EventCode event_code) { in New()
105 static EventPacketT<T> New(hci_spec::EventCode event_code) { in New()
122 static EventPacketT<T> New(hci_spec::EventCode event_code, in New()
134 hci_spec::EventCode event_code() const;
/aosp_15_r20/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()
52 static void log_address(const Address& bda, EventCode event_code) { in log_address()
233 case EventCode::ENCRYPTION_CHANGE: in OnSecurityEvent()
236 case EventCode::CHANGE_CONNECTION_LINK_KEY_COMPLETE: in OnSecurityEvent()
239 case EventCode::CENTRAL_LINK_KEY_COMPLETE: in OnSecurityEvent()
242 case EventCode::RETURN_LINK_KEYS: in OnSecurityEvent()
245 case EventCode::PIN_CODE_REQUEST: in OnSecurityEvent()
248 case EventCode::LINK_KEY_REQUEST: in OnSecurityEvent()
251 case EventCode::LINK_KEY_NOTIFICATION: in OnSecurityEvent()
254 case EventCode::ENCRYPTION_KEY_REFRESH_COMPLETE: in OnSecurityEvent()
[all …]
/aosp_15_r20/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.py73 return Capture(HciMatchers.EventWithCode(hci.EventCode.CONNECTION_REQUEST),
78 return Capture(HciMatchers.EventWithCode(hci.EventCode.CONNECTION_COMPLETE),
83 return Capture(HciMatchers.EventWithCode(hci.EventCode.DISCONNECTION_COMPLETE),
93 return Capture(HciMatchers.EventWithCode(hci.EventCode.SIMPLE_PAIRING_COMPLETE),
/aosp_15_r20/packages/modules/Bluetooth/system/main/shim/
Dhci_layer.cc64 bool register_event_code(bluetooth::hci::EventCode event_code) { in register_event_code()
67 case bluetooth::hci::EventCode::SYNCHRONOUS_CONNECTION_COMPLETE: in register_event_code()
68 case bluetooth::hci::EventCode::SYNCHRONOUS_CONNECTION_CHANGED: in register_event_code()
71 case bluetooth::hci::EventCode::ENCRYPTION_CHANGE: in register_event_code()
72 case bluetooth::hci::EventCode::PIN_CODE_REQUEST: in register_event_code()
73 case bluetooth::hci::EventCode::LINK_KEY_REQUEST: in register_event_code()
74 case bluetooth::hci::EventCode::LINK_KEY_NOTIFICATION: in register_event_code()
75 case bluetooth::hci::EventCode::ENCRYPTION_KEY_REFRESH_COMPLETE: in register_event_code()
76 case bluetooth::hci::EventCode::IO_CAPABILITY_REQUEST: in register_event_code()
77 case bluetooth::hci::EventCode::IO_CAPABILITY_RESPONSE: in register_event_code()
[all …]
/aosp_15_r20/external/pigweed/pw_bluetooth_sapphire/host/transport/
H A Dcommand_channel.cc30 static bool IsAsync(hci_spec::EventCode code) { in IsAsync()
59 hci_spec::EventCode complete_event_code, in TransactionData()
60 std::optional<hci_spec::EventCode> le_meta_subevent_code, in TransactionData()
151 const hci_spec::EventCode complete_event_code) { in SendCommand()
159 hci_spec::EventCode le_meta_subevent_code) { in SendLeAsyncCommand()
167 const hci_spec::EventCode complete_event_code, in SendExclusiveCommand()
179 std::optional<hci_spec::EventCode> le_meta_subevent_code, in SendLeAsyncExclusiveCommand()
191 hci_spec::EventCode complete_event_code, in SendExclusiveCommandInternal()
192 std::optional<hci_spec::EventCode> le_meta_subevent_code, in SendExclusiveCommandInternal()
271 hci_spec::EventCode event_code, EventCallback event_callback) { in AddEventHandler()
[all …]
H A Dcommand_channel_test.cc113 EXPECT_EQ(pw::bluetooth::emboss::EventCode::COMMAND_COMPLETE, in TEST_F()
412 constexpr hci_spec::EventCode kTestEventCode0 = 0xFE; in TEST_F()
513 constexpr hci_spec::EventCode kTestEventCode0 = 0xF0; in TEST_F()
609 constexpr hci_spec::EventCode kTestEventCode0 = 0xFD; in TEST_F()
610 constexpr hci_spec::EventCode kTestEventCode1 = 0xFE; in TEST_F()
735 constexpr hci_spec::EventCode kTestEventCode = 0xFE; in TEST_F()
1119 constexpr hci_spec::EventCode kTestSubeventCode0 = 0x10; in TEST_F()
1120 constexpr hci_spec::EventCode kTestSubeventCode1 = 0x12; in TEST_F()
1190 constexpr hci_spec::EventCode kTestSubeventCode0 = 0xFE; in TEST_F()
1191 constexpr hci_spec::EventCode kTestSubeventCode1 = 0xFF; in TEST_F()
[all …]
/aosp_15_r20/packages/modules/Bluetooth/system/gd/hci/acl_manager/
Dclassic_impl.h79 EventCode event_code = event_packet.GetEventCode(); in on_classic_event()
81 case EventCode::CONNECTION_COMPLETE: in on_classic_event()
84 case EventCode::CONNECTION_PACKET_TYPE_CHANGED: in on_classic_event()
87 case EventCode::AUTHENTICATION_COMPLETE: in on_classic_event()
90 case EventCode::READ_CLOCK_OFFSET_COMPLETE: in on_classic_event()
93 case EventCode::MODE_CHANGE: in on_classic_event()
96 case EventCode::SNIFF_SUBRATING: in on_classic_event()
99 case EventCode::QOS_SETUP_COMPLETE: in on_classic_event()
102 case EventCode::ROLE_CHANGE: in on_classic_event()
105 case EventCode::FLOW_SPECIFICATION_COMPLETE: in on_classic_event()
[all …]
/aosp_15_r20/frameworks/base/core/java/android/app/ambientcontext/
H A DAmbientContextEvent.java91 public @interface EventCode {} annotation in AmbientContextEvent
123 @EventCode private final int mEventType;
253 @EventCode int eventType, in AmbientContextEvent()
261 EventCode.class, null, mEventType); in AmbientContextEvent()
282 public @EventCode int getEventType() { in getEventType()
405 EventCode.class, null, mEventType); in AmbientContextEvent()
446 private @EventCode int mEventType;
459 public @NonNull Builder setEventType(@EventCode int value) { in setEventType()
/aosp_15_r20/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)
/aosp_15_r20/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)
/aosp_15_r20/packages/modules/Bluetooth/system/stack/test/btm/
Dstack_btm_inq_test.cc60 using bluetooth::hci::EventCode::EXTENDED_INQUIRY_RESULT;
61 using bluetooth::hci::EventCode::INQUIRY_COMPLETE;
62 using bluetooth::hci::EventCode::INQUIRY_RESULT;
63 using bluetooth::hci::EventCode::INQUIRY_RESULT_WITH_RSSI;
/aosp_15_r20/external/pigweed/pw_bluetooth_sapphire/public/pw_bluetooth_sapphire/internal/host/hci/
H A Dsequential_command_runner.h73 hci_spec::EventCode complete_event_code =
81 hci_spec::EventCode le_meta_subevent_code,
127 hci_spec::EventCode complete_event_code;
/aosp_15_r20/external/pigweed/pw_bluetooth/
H A Demboss_test.cc247 cpp23::to_underlying(emboss::EventCode::NUMBER_OF_COMPLETED_PACKETS)); in TEST()
249 emboss::EventCode::NUMBER_OF_COMPLETED_PACKETS); in TEST()
252 cpp23::to_underlying(emboss::EventCode::NUMBER_OF_COMPLETED_PACKETS)); in TEST()
258 cpp23::to_underlying(emboss::EventCode::NUMBER_OF_COMPLETED_PACKETS)); in TEST()
261 cpp23::to_underlying(emboss::EventCode::CONNECTION_REQUEST)); in TEST()
263 cpp23::to_underlying(emboss::EventCode::CONNECTION_REQUEST)); in TEST()
/aosp_15_r20/external/pigweed/pw_bluetooth_proxy/
H A Dproxy_host.cc135 case emboss::EventCode::NUMBER_OF_COMPLETED_PACKETS: { in HandleEventFromController()
140 case emboss::EventCode::DISCONNECTION_COMPLETE: { in HandleEventFromController()
144 case emboss::EventCode::COMMAND_COMPLETE: { in HandleEventFromController()
148 case emboss::EventCode::CONNECTION_COMPLETE: { in HandleEventFromController()
152 case emboss::EventCode::LE_META_EVENT: { in HandleEventFromController()

12345