Home
last modified time | relevance | path

Searched refs:timeout_ms (Results 1 – 25 of 26) sorted by relevance

12

/packages/modules/Bluetooth/system/audio_hal_interface/aidl/
Dclient_interface_aidl.cc450 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/
Dclient_interface_hidl.cc774 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/
Dasync_helper.rs33 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()
Dsocket_manager.rs387 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/
DDvbManager.h80 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);
DDvbManager.cpp118 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()
Dtunertvinput_jni.cpp57 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/
DTunerHal.java153 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/
Dfdevent_poll.cpp139 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()
Dfdevent_epoll.cpp126 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/
Dbta_dm_pm.cc281 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/
Dreactor.cc131 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/
DEvsVehicleListener.h53 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/
Dl2c_link.cc209 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()
Dl2c_utils.cc1516 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/
Dffi.rs265 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/
Ddoh.h106 uint8_t* response, size_t response_len, uint64_t timeout_ms);
/packages/modules/Bluetooth/system/test/mock/
Dmock_stack_btm_inq.cc112 uint64_t timeout_ms, tBTM_CMPL_CB* p_cb) { in btm_initiate_rem_name() argument
/packages/modules/Bluetooth/system/stack/eatt/
Deatt_impl.h241 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/
Dusb.cpp271 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/
Dbtm_inq.cc198 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/
Dgatt_utils.cc565 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/
Dbtif_rc.cc232 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/
Dstream_apis.cc923 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/
Diface_bluetooth.rs845 fn accept(&mut self, callback: CallbackId, id: SocketId, timeout_ms: Option<u32>) -> BtStatus { in accept()

12