/packages/modules/Bluetooth/system/audio_hal_interface/aidl/ |
D | client_interface_aidl.cc | 450 int timeout_ms = kDefaultDataReadTimeoutMs; in ReadAudioData() local 465 } else if (timeout_ms >= kDefaultDataReadPollIntervalMs) { in ReadAudioData() 468 timeout_ms -= kDefaultDataReadPollIntervalMs; in ReadAudioData() 472 << " no data " << (kDefaultDataReadTimeoutMs - timeout_ms) in ReadAudioData() 478 if (timeout_ms < in ReadAudioData() 480 timeout_ms >= kDefaultDataReadPollIntervalMs) { in ReadAudioData() 482 << " read " << (kDefaultDataReadTimeoutMs - timeout_ms) << " ms"; in ReadAudioData() 516 int timeout_ms = kDefaultDataWriteTimeoutMs; in WriteAudioData() local 532 } else if (timeout_ms >= kDefaultDataWritePollIntervalMs) { in WriteAudioData() 535 timeout_ms -= kDefaultDataWritePollIntervalMs; in WriteAudioData() [all …]
|
/packages/modules/Bluetooth/system/audio_hal_interface/hidl/ |
D | client_interface_hidl.cc | 774 int timeout_ms = kDefaultDataReadTimeoutMs; in ReadAudioData() local 789 } else if (timeout_ms >= kDefaultDataReadPollIntervalMs) { in ReadAudioData() 792 timeout_ms -= kDefaultDataReadPollIntervalMs; in ReadAudioData() 796 << " no data " << (kDefaultDataReadTimeoutMs - timeout_ms) in ReadAudioData() 802 if (timeout_ms < in ReadAudioData() 804 timeout_ms >= kDefaultDataReadPollIntervalMs) { in ReadAudioData() 806 << " read " << (kDefaultDataReadTimeoutMs - timeout_ms) << " ms"; in ReadAudioData() 851 int timeout_ms = kDefaultDataWriteTimeoutMs; in WriteAudioData() local 866 } else if (timeout_ms >= kDefaultDataWritePollIntervalMs) { in WriteAudioData() 869 timeout_ms -= kDefaultDataWritePollIntervalMs; in WriteAudioData() [all …]
|
/packages/modules/Bluetooth/system/gd/rust/linux/stack/src/ |
D | async_helper.rs | 33 pub(crate) async fn call_method<F>(&mut self, f: F, timeout_ms: Option<u64>) -> Result<R, ()> in call_method() 54 if let Some(timeout_ms) = timeout_ms { in call_method() 58 tokio::time::sleep(Duration::from_millis(timeout_ms)).await; in call_method()
|
D | socket_manager.rs | 387 fn accept(&mut self, callback: CallbackId, id: SocketId, timeout_ms: Option<u32>) -> BtStatus; in accept() 1416 fn accept(&mut self, callback: CallbackId, id: SocketId, timeout_ms: Option<u32>) -> BtStatus { in accept() 1421 let timeout_duration = match timeout_ms { in accept()
|
/packages/apps/TV/jni/ |
D | DvbManager.h | 80 const int frequency, const char *modulationStr, int timeout_ms); 83 const char *modulationStr, int timeout_ms); 86 uint8_t *tsBuffer, int tsBufferSize, int timeout_ms); 97 const char *modulationStr, int timeout_ms);
|
D | DvbManager.cpp | 118 const int frequency, const char *modulationStr, int timeout_ms) { in tune() argument 120 modulationStr, timeout_ms); in tune() 125 const char *modulationStr, int timeout_ms) { in tune() argument 127 modulationStr, timeout_ms); in tune() 132 const char *modulationStr, int timeout_ms) { in tuneInternal() argument 281 while (currentTimeMillis() - tuneClock < timeout_ms) { in tuneInternal() 478 uint8_t *tsBuffer, int tsBufferSize, int timeout_ms) { in readTsStream() argument 492 int poll_result = poll(&pollFd, NUM_POLLFDS, timeout_ms); in readTsStream()
|
D | tunertvinput_jni.cpp | 57 jstring modulation, jint timeout_ms) { in Java_com_android_tv_tuner_TunerHal_nativeTune__JILjava_lang_String_2I() argument 67 env->GetStringUTFChars(modulation, 0), timeout_ms); in Java_com_android_tv_tuner_TunerHal_nativeTune__JILjava_lang_String_2I() 79 jint frequency, jstring modulation, jint timeout_ms) { in Java_com_android_tv_tuner_TunerHal_nativeTune__JIILjava_lang_String_2I() argument 90 env->GetStringUTFChars(modulation, 0), timeout_ms); in Java_com_android_tv_tuner_TunerHal_nativeTune__JIILjava_lang_String_2I()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/ |
D | TunerHal.java | 153 int timeout_ms = in tuneInternal() local 162 tuneStatus = nativeTune(getDeviceId(), frequency, modulation, timeout_ms); in tuneInternal() 167 timeout_ms); in tuneInternal() 191 @ModulationType String modulation, int timeout_ms); in nativeTune() argument 195 @ModulationType String modulation, int timeout_ms); in nativeTune() argument
|
/packages/modules/adb/fdevent/ |
D | fdevent_poll.cpp | 139 int timeout_ms; in Loop() local 141 timeout_ms = -1; in Loop() 143 timeout_ms = timeout->count(); in Loop() 146 int ret = adb_poll(pollfds.data(), pollfds.size(), timeout_ms); in Loop()
|
D | fdevent_epoll.cpp | 126 int timeout_ms; in Loop() local 128 timeout_ms = -1; in Loop() 130 timeout_ms = timeout->count(); in Loop() 133 rc = epoll_wait(epoll_fd_.get(), epoll_events.data(), epoll_events.size(), timeout_ms); in Loop()
|
/packages/modules/Bluetooth/system/bta/dm/ |
D | bta_dm_pm.cc | 281 uint64_t timeout_ms, uint8_t srvc_id, in bta_dm_pm_start_timer() argument 295 alarm_set_on_mloop(p_timer->timer[timer_idx], timeout_ms, in bta_dm_pm_start_timer() 509 uint64_t timeout_ms = 0; in bta_dm_pm_set_mode() local 574 timeout_ms = p_act0->timeout; in bta_dm_pm_set_mode() 584 timeout_ms = p_act1->timeout; in bta_dm_pm_set_mode() 600 timeout_ms = 0; in bta_dm_pm_set_mode() 605 if ((pm_req != BTA_DM_PM_EXECUTE) && (timeout_ms > 0)) { in bta_dm_pm_set_mode() 613 if (remaining_ms < timeout_ms) { in bta_dm_pm_set_mode() 623 bta_dm_pm_start_timer(&bta_dm_cb.pm_timer[i], timer_idx, timeout_ms, in bta_dm_pm_set_mode() 640 timeout_ms, p_srvcs->id, pm_action); in bta_dm_pm_set_mode()
|
/packages/modules/Bluetooth/system/gd/os/linux_generic/ |
D | reactor.cc | 131 int timeout_ms = -1; in Run() local 140 RUN_NO_INTR(count = epoll_wait(epoll_fd_, events, kEpollMaxEvents, timeout_ms)); in Run() 143 timeout_ms = -1; in Run() 162 timeout_ms = 30; in Run()
|
/packages/services/Car/cpp/evs/apps/default/inc/ |
D | EvsVehicleListener.h | 53 bool waitForEvents(int timeout_ms) { in waitForEvents() argument 55 std::cv_status result = mEventCond.wait_for(g, std::chrono::milliseconds(timeout_ms)); in waitForEvents()
|
/packages/modules/Bluetooth/system/stack/l2cap/ |
D | l2c_link.cc | 209 uint64_t timeout_ms = L2CAP_LINK_STARTUP_TOUT * 1000; in l2c_link_hci_conn_comp() local 210 alarm_set_on_mloop(p_lcb->l2c_lcb_timer, timeout_ms, in l2c_link_hci_conn_comp() 518 uint64_t timeout_ms; in l2c_link_timeout() local 532 timeout_ms = L2CAP_LINK_DISCONNECT_TIMEOUT_MS; in l2c_link_timeout() 548 timeout_ms = L2CAP_LINK_DISCONNECT_TIMEOUT_MS; in l2c_link_timeout() 551 timeout_ms = BT_1SEC_TIMEOUT_MS; in l2c_link_timeout() 555 alarm_set_on_mloop(p_lcb->l2c_lcb_timer, timeout_ms, in l2c_link_timeout()
|
D | l2c_utils.cc | 1516 uint64_t timeout_ms = L2CAP_BONDING_TIMEOUT * 1000; in l2cu_start_post_bond_timer() local 1523 timeout_ms = L2CAP_LINK_DISCONNECT_TIMEOUT_MS; in l2cu_start_post_bond_timer() 1525 alarm_set_on_mloop(p_lcb->l2c_lcb_timer, timeout_ms, in l2cu_start_post_bond_timer() 1527 LOG_DEBUG("Started link IDLE timeout_ms:%lu", (unsigned long)timeout_ms); in l2cu_start_post_bond_timer() 2698 uint64_t timeout_ms = p_lcb->idle_timeout * 1000; in l2cu_no_dynamic_ccbs() local 2705 (p_lcb->p_fixed_ccbs[xx]->fixed_chnl_idle_tout * 1000 > timeout_ms)) { in l2cu_no_dynamic_ccbs() 2712 timeout_ms = p_lcb->p_fixed_ccbs[xx]->fixed_chnl_idle_tout * 1000; in l2cu_no_dynamic_ccbs() 2730 if (timeout_ms == 0) { in l2cu_no_dynamic_ccbs() 2740 timeout_ms = L2CAP_LINK_DISCONNECT_TIMEOUT_MS; in l2cu_no_dynamic_ccbs() 2753 timeout_ms = L2CAP_LINK_DISCONNECT_TIMEOUT_MS; in l2cu_no_dynamic_ccbs() [all …]
|
/packages/modules/DnsResolver/doh/ |
D | ffi.rs | 265 timeout_ms: uint64_t, in doh_query() 270 let t = Duration::from_millis(timeout_ms); in doh_query() 284 error!("Bad timeout parameter: {}", timeout_ms); in doh_query()
|
/packages/modules/DnsResolver/ |
D | doh.h | 106 uint8_t* response, size_t response_len, uint64_t timeout_ms);
|
/packages/modules/Bluetooth/system/test/mock/ |
D | mock_stack_btm_inq.cc | 112 uint64_t timeout_ms, tBTM_CMPL_CB* p_cb) { in btm_initiate_rem_name() argument
|
/packages/modules/Bluetooth/system/stack/eatt/ |
D | eatt_impl.h | 241 void upper_tester_delay_connect(const RawAddress& bda, int timeout_ms) { in upper_tester_delay_connect() 247 base::TimeDelta::FromMilliseconds(timeout_ms) in upper_tester_delay_connect() 249 base::Milliseconds(timeout_ms) in upper_tester_delay_connect()
|
/packages/modules/adb/daemon/ |
D | usb.cpp | 271 int timeout_ms = bound ? -1 : 1000; in StartMonitor() local 273 int rc = TEMP_FAILURE_RETRY(adb_poll(pfd, 2, timeout_ms)); in StartMonitor()
|
/packages/modules/Bluetooth/system/stack/btm/ |
D | btm_inq.cc | 198 uint8_t origin, uint64_t timeout_ms, 1560 uint64_t timeout_ms, in btm_initiate_rem_name() argument 1575 alarm_set_on_mloop(p_inq->remote_name_timer, timeout_ms, in btm_initiate_rem_name()
|
/packages/modules/Bluetooth/system/stack/gatt/ |
D | gatt_utils.cc | 565 uint64_t timeout_ms = GATT_WAIT_FOR_RSP_TIMEOUT_MS; in gatt_start_rsp_timer() local 569 timeout_ms = GATT_WAIT_FOR_DISC_RSP_TIMEOUT_MS; in gatt_start_rsp_timer() 577 alarm_set_on_mloop(p_clcb->gatt_rsp_timer_ent, timeout_ms, gatt_rsp_timeout, in gatt_start_rsp_timer()
|
/packages/modules/Bluetooth/system/btif/src/ |
D | btif_rc.cc | 232 static void sleep_ms(uint64_t timeout_ms); 279 uint64_t timeout_ms); 5374 uint64_t timeout_ms) { in start_transaction_timer() argument 5391 alarm_set_on_mloop(transaction->timer, timeout_ms, in start_transaction_timer() 5693 static void sleep_ms(uint64_t timeout_ms) { in sleep_ms() argument 5695 delay.tv_sec = timeout_ms / 1000; in sleep_ms() 5696 delay.tv_nsec = 1000 * 1000 * (timeout_ms % 1000); in sleep_ms()
|
/packages/modules/Bluetooth/system/audio_bluetooth_hw/ |
D | stream_apis.cc | 923 uint16_t timeout_ms) { in in_state_transition_timeout() argument 931 if (--timeout_ms <= 0) { in in_state_transition_timeout()
|
/packages/modules/Bluetooth/system/gd/rust/linux/service/src/ |
D | iface_bluetooth.rs | 845 fn accept(&mut self, callback: CallbackId, id: SocketId, timeout_ms: Option<u32>) -> BtStatus { in accept()
|