/packages/modules/Bluetooth/system/stack/btm/ |
D | btm_iso_impl.h | 129 cig_create_cmpl_evt evt; in on_set_cig_params() local 134 STREAM_TO_UINT8(evt.status, stream); in on_set_cig_params() 135 STREAM_TO_UINT8(evt.cig_id, stream); in on_set_cig_params() 144 "cig_id:0x%02x, status: %s", evt.cig_id, in on_set_cig_params() 145 hci_status_code_text((tHCI_STATUS)(evt.status)).c_str())); in on_set_cig_params() 147 if (evt.status == HCI_SUCCESS) { in on_set_cig_params() 155 if (cis_it->second->cig_id == evt.cig_id) in on_set_cig_params() 162 evt.conn_handles.reserve(cis_cnt); in on_set_cig_params() 166 evt.conn_handles.push_back(conn_handle); in on_set_cig_params() 178 cig_callbacks_->OnCigEvent(evt_code, &evt); in on_set_cig_params() [all …]
|
/packages/modules/Bluetooth/system/stack/avdt/ |
D | avdt_api.cc | 260 tAVDT_CCB_EVT evt; in AVDT_DiscoverReq() local 281 evt.discover.p_sep_info = p_sep_info; in AVDT_DiscoverReq() 282 evt.discover.num_seps = max_seps; in AVDT_DiscoverReq() 283 evt.discover.p_cback = p_cback; in AVDT_DiscoverReq() 284 avdt_ccb_event(p_ccb, AVDT_CCB_API_DISCOVER_REQ_EVT, &evt); in AVDT_DiscoverReq() 407 tAVDT_SCB_EVT evt; in AVDT_DelayReport() local 418 evt.apidelay.hdr.seid = seid; in AVDT_DelayReport() 419 evt.apidelay.delay = delay; in AVDT_DelayReport() 420 avdt_scb_event(p_scb, AVDT_SCB_API_DELAY_RPT_REQ_EVT, &evt); in AVDT_DelayReport() 449 tAVDT_SCB_EVT evt; in AVDT_OpenReq() local [all …]
|
/packages/modules/Bluetooth/system/bta/ras/ |
D | ras_client.cc | 163 void OnGattConnected(const tBTA_GATTC_OPEN& evt) { in OnGattConnected() argument 164 log::info("{}, conn_id=0x{:04x}, transport:{}, status:{}", evt.remote_bda, in OnGattConnected() 165 evt.conn_id, bt_transport_text(evt.transport), in OnGattConnected() 166 gatt_status_text(evt.status)); in OnGattConnected() 168 if (evt.transport != BT_TRANSPORT_LE) { in OnGattConnected() 170 bt_transport_text(evt.transport)); in OnGattConnected() 171 BTA_GATTC_Close(evt.conn_id); in OnGattConnected() 175 auto tracker = FindTrackerByAddress(evt.remote_bda); in OnGattConnected() 177 log::warn("Skipping unknown device, address: {}", evt.remote_bda); in OnGattConnected() 178 BTA_GATTC_Close(evt.conn_id); in OnGattConnected() [all …]
|
/packages/modules/Bluetooth/tools/rootcanal/scripts/ |
D | controller_info.py | 60 evt = hci.Event.parse_all(header + (await reader.readexactly(header[1]))) 62 self.evt_queue.append(evt) 82 evt = await self.recv_evt() 83 assert isinstance(evt, expected_evt) 84 if not isinstance(evt, expected_evt): 86 evt.show() 89 return evt 105 evt = await host.expect_evt(hci.ReadBufferSizeComplete) 113 evt = await host.expect_evt(hci.ReadNumberOfSupportedIacComplete) 120 evt = await host.expect_evt(hci.LeReadLocalSupportedFeaturesComplete) [all …]
|
/packages/modules/Bluetooth/system/btif/src/ |
D | btif_debug_conn.cc | 72 conn_event_t* evt = &connection_events[current_event]; in btif_debug_conn_state() local 73 evt->ts = bluetooth::common::time_gettimeofday_us(); in btif_debug_conn_state() 74 evt->state = state; in btif_debug_conn_state() 75 evt->disconnect_reason = disconnect_reason; in btif_debug_conn_state() 76 evt->bda = bda; in btif_debug_conn_state() 89 conn_event_t* evt = &connection_events[dump_event]; in btif_debug_conn_dump() local 90 dprintf(fd, " %s %s %s", format_ts(evt->ts, ts_buffer, sizeof(ts_buffer)), in btif_debug_conn_dump() 91 format_state(evt->state), ADDRESS_TO_LOGGABLE_CSTR(evt->bda)); in btif_debug_conn_dump() 92 if (evt->state == BTIF_DEBUG_DISCONNECTED) in btif_debug_conn_dump() 93 dprintf(fd, " reason=%d", evt->disconnect_reason); in btif_debug_conn_dump()
|
/packages/modules/Bluetooth/system/bta/hf_client/ |
D | bta_hf_client_at.cc | 633 tBTA_HF_CLIENT evt; in bta_hf_client_ind() local 635 memset(&evt, 0, sizeof(evt)); in bta_hf_client_ind() 637 evt.ind.type = type; in bta_hf_client_ind() 638 evt.ind.value = value; in bta_hf_client_ind() 640 evt.ind.bd_addr = client_cb->peer_addr; in bta_hf_client_ind() 641 bta_hf_client_app_callback(BTA_HF_CLIENT_IND_EVT, &evt); in bta_hf_client_ind() 657 tBTA_HF_CLIENT evt; in bta_hf_client_evt_val() local 659 memset(&evt, 0, sizeof(evt)); in bta_hf_client_evt_val() 661 evt.val.bd_addr = client_cb->peer_addr; in bta_hf_client_evt_val() 662 evt.val.value = value; in bta_hf_client_evt_val() [all …]
|
D | bta_hf_client_act.cc | 293 tBTA_HF_CLIENT evt; in bta_hf_client_rfc_close() local 294 memset(&evt, 0, sizeof(evt)); in bta_hf_client_rfc_close() 295 evt.conn.bd_addr = client_cb->peer_addr; in bta_hf_client_rfc_close() 306 tBTA_HF_CLIENT evt; in bta_hf_client_rfc_close() local 307 memset(&evt, 0, sizeof(evt)); in bta_hf_client_rfc_close() 308 evt.reg.bd_addr = client_cb->peer_addr; in bta_hf_client_rfc_close() 309 bta_hf_client_app_callback(BTA_HF_CLIENT_DISABLE_EVT, &evt); in bta_hf_client_rfc_close() 436 tBTA_HF_CLIENT evt; in bta_hf_client_svc_conn_open() local 438 memset(&evt, 0, sizeof(evt)); in bta_hf_client_svc_conn_open() 445 evt.conn.bd_addr = client_cb->peer_addr; in bta_hf_client_svc_conn_open() [all …]
|
D | bta_hf_client_sco.cc | 87 tBTA_HF_CLIENT evt; in bta_hf_client_cback_sco() local 89 memset(&evt, 0, sizeof(evt)); in bta_hf_client_cback_sco() 90 evt.bd_addr = client_cb->peer_addr; in bta_hf_client_cback_sco() 93 bta_hf_client_app_callback(event, &evt); in bta_hf_client_cback_sco()
|
D | bta_hf_client_main.cc | 756 tBTA_HF_CLIENT evt; in bta_hf_client_sm_execute() local 757 memset(&evt, 0, sizeof(evt)); in bta_hf_client_sm_execute() 758 evt.bd_addr = client_cb->peer_addr; in bta_hf_client_sm_execute() 760 bta_hf_client_app_callback(BTA_HF_CLIENT_CLOSE_EVT, &evt); in bta_hf_client_sm_execute() 764 evt.open.handle = client_cb->handle; in bta_hf_client_sm_execute() 765 bta_hf_client_app_callback(BTA_HF_CLIENT_OPEN_EVT, &evt); in bta_hf_client_sm_execute()
|
/packages/services/Car/tools/keventreader/server/ |
D | inputsource.cpp | 54 kevent evt; in read() local 56 auto cnt = ::read(mDescriptor, &evt, sizeof(evt)); in read() 59 if (cnt < static_cast<decltype(cnt)>(sizeof(evt))) { in read() 62 if (!evt.isKeypress()) { in read() 67 mFilePath.c_str(), evt.code, evt.isKeydown() ? "true" : "false"); in read() 68 return com::android::car::keventreader::KeypressEvent(mFilePath, evt.code, evt.isKeydown()); in read()
|
D | eventgatherer.cpp | 53 while(auto evt = dev->read()) { in read() local 54 result.push_back(*evt); in read()
|
/packages/modules/Bluetooth/system/bta/le_audio/broadcaster/ |
D | state_machine.cc | 535 auto* evt = static_cast<big_create_cmpl_evt*>(data); in HandleHciEvent() local 537 if (evt->big_id != GetAdvertisingSid()) { in HandleHciEvent() 539 ToString(GetState()), event, evt->big_id); in HandleHciEvent() 543 if (evt->status == 0x00) { in HandleHciEvent() 544 log::info("BIG create BIG complete, big_id={}", evt->big_id); in HandleHciEvent() 546 .status = evt->status, in HandleHciEvent() 547 .big_id = evt->big_id, in HandleHciEvent() 548 .big_sync_delay = evt->big_sync_delay, in HandleHciEvent() 549 .transport_latency_big = evt->transport_latency_big, in HandleHciEvent() 550 .phy = evt->phy, in HandleHciEvent() [all …]
|
D | state_machine_test.cc | 236 big_create_cmpl_evt evt; in ConfigureIsoManagerMock() local 237 evt.big_id = big_id; in ConfigureIsoManagerMock() 245 evt.conn_handles.push_back(conn_msb | conn_lsb++); in ConfigureIsoManagerMock() 248 bit->second->HandleHciEvent(HCI_BLE_CREATE_BIG_CPL_EVT, &evt); in ConfigureIsoManagerMock() 287 big_terminate_cmpl_evt evt; in ConfigureIsoManagerMock() local 288 evt.big_id = big_id; in ConfigureIsoManagerMock() 289 evt.reason = reason; in ConfigureIsoManagerMock() 291 bit->second->HandleHciEvent(HCI_BLE_TERM_BIG_CPL_EVT, &evt); in ConfigureIsoManagerMock() 544 big_create_cmpl_evt evt; in TEST_F() local 545 evt.big_id = big_id; in TEST_F() [all …]
|
/packages/modules/Bluetooth/system/stack/test/ |
D | btm_iso_test.cc | 574 bluetooth::hci::iso_manager::cig_create_cmpl_evt evt; in TEST_F() local 575 evt.status = 0x01; in TEST_F() 579 .WillOnce([&evt](uint8_t /* type */, void* data) { in TEST_F() 580 evt = *static_cast<bluetooth::hci::iso_manager::cig_create_cmpl_evt*>( in TEST_F() 588 ASSERT_EQ(evt.status, HCI_SUCCESS); in TEST_F() 641 bluetooth::hci::iso_manager::cig_create_cmpl_evt evt; in TEST_F() local 645 .WillOnce([&evt](uint8_t /* type */, void* data) { in TEST_F() 646 evt = *static_cast<bluetooth::hci::iso_manager::cig_create_cmpl_evt*>( in TEST_F() 652 ASSERT_EQ(evt.cig_id, rsp_cig_id); in TEST_F() 653 ASSERT_EQ(evt.status, rsp_status); in TEST_F() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/map/ |
D | BluetoothMapContentObserver.java | 1205 void sendEvent(Event evt) { in sendEvent() argument 1215 + evt.eventType in sendEvent() 1217 + evt.handle in sendEvent() 1219 + evt.folder in sendEvent() 1221 + evt.oldFolder in sendEvent() 1223 + evt.msgType in sendEvent() 1225 + evt.datetime in sendEvent() 1227 + evt.subject in sendEvent() 1229 + evt.senderName in sendEvent() 1231 + evt.priority); in sendEvent() [all …]
|
/packages/modules/Bluetooth/tools/rootcanal/py/ |
D | controller.py | 177 evt = hci.Event.parse_all(packet) 178 evt.show() 208 evt = hci.Event.parse_all(packet) 209 if evt != expected_evt: 214 evt.show() 264 evt = await self.expect_cmd_complete(hci.LeReadLocalSupportedFeaturesComplete) 265 controller.le_features = LeFeatures(evt.le_features) 269 evt = hci.Event.parse_all(packet) 271 if isinstance(expected_evt, type) and not isinstance(evt, expected_evt): 275 evt.show() [all …]
|
/packages/modules/Bluetooth/system/bta/has/ |
D | has_client.cc | 1826 void OnGattConnected(const tBTA_GATTC_OPEN& evt) { in OnGattConnected() argument 1828 evt.remote_bda, evt.conn_id, bt_transport_text(evt.transport), in OnGattConnected() 1829 gatt_status_text(evt.status), evt.status); in OnGattConnected() 1831 if (evt.transport != BT_TRANSPORT_LE) { in OnGattConnected() 1833 bt_transport_text(evt.transport)); in OnGattConnected() 1834 BTA_GATTC_Close(evt.conn_id); in OnGattConnected() 1839 HasDevice::MatchAddress(evt.remote_bda)); in OnGattConnected() 1841 log::warn("Skipping unknown device, address={}", evt.remote_bda); in OnGattConnected() 1842 BTA_GATTC_Close(evt.conn_id); in OnGattConnected() 1846 if (evt.status != GATT_SUCCESS) { in OnGattConnected() [all …]
|
/packages/modules/Bluetooth/system/bta/csis/ |
D | csis_client.cc | 1934 void OnGattConnected(const tBTA_GATTC_OPEN& evt) { in OnGattConnected() argument 1936 evt.remote_bda, evt.conn_id, bt_transport_text(evt.transport), in OnGattConnected() 1937 gatt_status_text(evt.status), evt.status); in OnGattConnected() 1939 if (evt.transport != BT_TRANSPORT_LE) { in OnGattConnected() 1941 bt_transport_text(evt.transport)); in OnGattConnected() 1942 BTA_GATTC_Close(evt.conn_id); in OnGattConnected() 1946 auto device = FindDeviceByAddress(evt.remote_bda); in OnGattConnected() 1948 log::debug("Skipping unknown device, address= {}", evt.remote_bda); in OnGattConnected() 1949 BTA_GATTC_Close(evt.conn_id); in OnGattConnected() 1953 if (evt.status != GATT_SUCCESS) { in OnGattConnected() [all …]
|
/packages/services/Car/tests/CarLibTests/src/android/car/ |
D | CarProjectionManagerTest.java | 193 for (int evt = 0; evt < CarProjectionManager.NUM_KEY_EVENTS; evt++) { in keyEventHandler_canRegisterAllEvents() 194 events.add(evt); in keyEventHandler_canRegisterAllEvents() 199 for (int evt : events) { in keyEventHandler_canRegisterAllEvents() 200 mController.fireKeyEvent(evt); in keyEventHandler_canRegisterAllEvents() 201 verify(eventHandler).onKeyEvent(evt); in keyEventHandler_canRegisterAllEvents()
|
/packages/modules/Bluetooth/system/stack/include/ |
D | btm_sec_api_types.h | 188 inline std::string sp_evt_to_text(const tBTM_SP_EVT evt) { in sp_evt_to_text() argument 189 switch (evt) { in sp_evt_to_text() 199 return base::StringPrintf("UNKNOWN[%hhu]", evt); in sp_evt_to_text() 430 inline std::string ble_evt_to_text(const tBTM_LE_EVT evt) { in ble_evt_to_text() argument 431 switch (evt) { in ble_evt_to_text() 448 return base::StringPrintf("UNKNOWN[%hhu]", evt); in ble_evt_to_text()
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/ |
D | RenderOverlay.java | 34 public boolean onTouchEvent(MotionEvent evt); in onTouchEvent() argument 135 public boolean onTouchEvent(MotionEvent evt) { in onTouchEvent() argument 137 return mTouchTarget.onTouchEvent(evt); in onTouchEvent() 142 res |= client.onTouchEvent(evt); in onTouchEvent()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hap/ |
D | HapClientTest.java | 1064 HapClientStackEvent evt = in verifyConnectingDevice() local 1066 evt.device = device; in verifyConnectingDevice() 1067 evt.valueInt1 = HapClientStackEvent.CONNECTION_STATE_CONNECTED; in verifyConnectingDevice() 1068 mService.messageFromNative(evt); in verifyConnectingDevice() 1082 evt = new HapClientStackEvent(HapClientStackEvent.EVENT_TYPE_DEVICE_AVAILABLE); in verifyConnectingDevice() 1083 evt.device = device; in verifyConnectingDevice() 1084 evt.valueInt1 = 0x01; // features in verifyConnectingDevice() 1085 mService.messageFromNative(evt); in verifyConnectingDevice() 1096 evt = new HapClientStackEvent(HapClientStackEvent.EVENT_TYPE_DEVICE_FEATURES); in verifyConnectingDevice() 1097 evt.device = device; in verifyConnectingDevice() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/ |
D | RenderOverlay.java | 36 boolean onTouchEvent(MotionEvent evt); in onTouchEvent() argument 114 public boolean onTouchEvent(MotionEvent evt) { in onTouchEvent() argument 118 res |= client.onTouchEvent(evt); in onTouchEvent()
|
/packages/modules/Bluetooth/system/test/mock/ |
D | mock_btif_util.h | 216 std::function<const char*(bt_cb_thread_evt evt)> body{ 218 const char* operator()(bt_cb_thread_evt evt) { return body(evt); }; in operator()
|
/packages/modules/Bluetooth/system/btif/test/ |
D | btif_hh_test.cc | 154 bt_callbacks.thread_evt_cb = [](bt_cb_thread_evt evt) { in SetUp() argument 155 g_thread_evt_promise.set_value(evt); in SetUp() 169 bt_callbacks.thread_evt_cb = [](bt_cb_thread_evt evt) { in TearDown() argument 170 g_thread_evt_promise.set_value(evt); in TearDown()
|