Home
last modified time | relevance | path

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

12

/packages/modules/Bluetooth/system/audio_hal_interface/aidl/
Dclient_interface_aidl.cc559 int timeout_ms = kDefaultDataReadTimeoutMs; in ReadAudioData() local
573 } else if (timeout_ms >= kDefaultDataReadPollIntervalMs) { in ReadAudioData()
576 timeout_ms -= kDefaultDataReadPollIntervalMs; in ReadAudioData()
580 kDefaultDataReadTimeoutMs - timeout_ms); in ReadAudioData()
585 if (timeout_ms < in ReadAudioData()
587 timeout_ms >= kDefaultDataReadPollIntervalMs) { in ReadAudioData()
589 kDefaultDataReadTimeoutMs - timeout_ms); in ReadAudioData()
622 int timeout_ms = kDefaultDataWriteTimeoutMs; in WriteAudioData() local
637 } else if (timeout_ms >= kDefaultDataWritePollIntervalMs) { in WriteAudioData()
640 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.rs393 fn accept(&mut self, callback: CallbackId, id: SocketId, timeout_ms: Option<u32>) -> BtStatus; in accept()
1467 fn accept(&mut self, callback: CallbackId, id: SocketId, timeout_ms: Option<u32>) -> BtStatus { in accept()
1472 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/modules/Bluetooth/system/audio_hal_interface/hidl/
Dclient_interface_hidl.cc771 int timeout_ms = kDefaultDataReadTimeoutMs; in ReadAudioData() local
785 } else if (timeout_ms >= kDefaultDataReadPollIntervalMs) { in ReadAudioData()
788 timeout_ms -= kDefaultDataReadPollIntervalMs; in ReadAudioData()
792 kDefaultDataReadTimeoutMs - timeout_ms); in ReadAudioData()
797 if (timeout_ms < in ReadAudioData()
799 timeout_ms >= kDefaultDataReadPollIntervalMs) { in ReadAudioData()
801 kDefaultDataReadTimeoutMs - timeout_ms); in ReadAudioData()
846 int timeout_ms = kDefaultDataWriteTimeoutMs; in WriteAudioData() local
860 } else if (timeout_ms >= kDefaultDataWritePollIntervalMs) { in WriteAudioData()
863 timeout_ms -= kDefaultDataWritePollIntervalMs; in WriteAudioData()
[all …]
/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/Bluetooth/system/bta/dm/
Dbta_dm_pm.cc300 uint64_t timeout_ms, uint8_t srvc_id, in bta_dm_pm_start_timer() argument
314 alarm_set_on_mloop(p_timer->timer[timer_idx], timeout_ms, in bta_dm_pm_start_timer()
366 uint64_t timeout_ms = 0; in bta_dm_sniff_cback() local
395 timeout_ms = p_act0->timeout; in bta_dm_sniff_cback()
399 timeout_ms = p_act1->timeout; in bta_dm_sniff_cback()
410 bta_dm_pm_start_timer(&bta_dm_cb.pm_timer[i], timer_idx, timeout_ms, id, in bta_dm_sniff_cback()
595 uint64_t timeout_ms = 0; in bta_dm_pm_set_mode() local
659 timeout_ms = p_act0->timeout; in bta_dm_pm_set_mode()
669 timeout_ms = p_act1->timeout; in bta_dm_pm_set_mode()
685 timeout_ms = 0; in bta_dm_pm_set_mode()
[all …]
/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.cpp129 int timeout_ms; in Loop() local
131 timeout_ms = -1; in Loop()
133 timeout_ms = timeout->count(); in Loop()
136 rc = epoll_wait(epoll_fd_.get(), epoll_events.data(), epoll_events.size(), timeout_ms); in Loop()
/packages/modules/Bluetooth/floss/pandora/floss/
Dsocket_manager.py331 def accept(self, socket_id, timeout_ms=None): argument
341 timeout_ms = self._make_dbus_timeout(timeout_ms)
342 return self.proxy().Accept(self.callback_id, socket_id, timeout_ms)
/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/gd/os/linux_generic/
Dreactor.cc132 int timeout_ms = -1; in Run() local
141 RUN_NO_INTR(count = epoll_wait(epoll_fd_, events, kEpollMaxEvents, timeout_ms)); in Run()
144 timeout_ms = -1; in Run()
163 timeout_ms = 30; in Run()
/packages/modules/Connectivity/staticlibs/native/bpf_headers/include/bpf/
DBpfRingbuf.h46 bool wait(int timeout_ms = -1);
212 inline bool BpfRingbufBase::wait(int timeout_ms) { in wait() argument
218 (void)poll(&pfd, 1, timeout_ms); // 'best effort' poll in wait()
/packages/modules/UprobeStats/src/
DBpf.cpp78 std::vector<int32_t> pollRingBuf(const char *map_path, int timeout_ms) { in pollRingBuf() argument
81 if (!result.value()->wait(timeout_ms)) { in pollRingBuf()
DUprobeStats.cpp60 auto timeout_ms = static_cast<int>( in doPoll() local
63 auto result = bpf::pollRingBuf(map_path.c_str(), timeout_ms); in doPoll()
DBpf.h28 std::vector<int32_t> pollRingBuf(const char *map_path, int timeout_ms);
/packages/modules/Bluetooth/system/stack/l2cap/
Dl2c_link.cc133 uint64_t timeout_ms = L2CAP_LINK_STARTUP_TOUT * 1000; in l2c_link_hci_conn_comp() local
134 alarm_set_on_mloop(p_lcb->l2c_lcb_timer, timeout_ms, in l2c_link_hci_conn_comp()
461 uint64_t timeout_ms; in l2c_link_timeout() local
475 timeout_ms = L2CAP_LINK_DISCONNECT_TIMEOUT_MS; in l2c_link_timeout()
491 timeout_ms = L2CAP_LINK_DISCONNECT_TIMEOUT_MS; in l2c_link_timeout()
494 timeout_ms = BT_1SEC_TIMEOUT_MS; in l2c_link_timeout()
498 alarm_set_on_mloop(p_lcb->l2c_lcb_timer, timeout_ms, in l2c_link_timeout()
Dl2c_utils.cc1513 uint64_t timeout_ms = L2CAP_BONDING_TIMEOUT * 1000; in l2cu_start_post_bond_timer() local
1520 timeout_ms = L2CAP_LINK_DISCONNECT_TIMEOUT_MS; in l2cu_start_post_bond_timer()
1522 alarm_set_on_mloop(p_lcb->l2c_lcb_timer, timeout_ms, in l2cu_start_post_bond_timer()
1524 log::debug("Started link IDLE timeout_ms:{}", (unsigned long)timeout_ms); in l2cu_start_post_bond_timer()
2719 uint64_t timeout_ms = p_lcb->idle_timeout * 1000; in l2cu_no_dynamic_ccbs() local
2726 (p_lcb->p_fixed_ccbs[xx]->fixed_chnl_idle_tout * 1000 > timeout_ms)) { in l2cu_no_dynamic_ccbs()
2733 timeout_ms = p_lcb->p_fixed_ccbs[xx]->fixed_chnl_idle_tout * 1000; in l2cu_no_dynamic_ccbs()
2750 if (timeout_ms == 0) { in l2cu_no_dynamic_ccbs()
2759 timeout_ms = L2CAP_LINK_DISCONNECT_TIMEOUT_MS; in l2cu_no_dynamic_ccbs()
2772 timeout_ms = L2CAP_LINK_DISCONNECT_TIMEOUT_MS; in l2cu_no_dynamic_ccbs()
[all …]
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DApfIntegrationTest.kt114 fun pollingCheck(condition: () -> Boolean, timeout_ms: Int): Boolean { in pollingCheck()
120 } while (polling_time < timeout_ms) in pollingCheck()
127 val result = pollingCheck({ !powerManager.isInteractive() }, timeout_ms = 2000) in turnScreenOff()
134 val result = pollingCheck({ powerManager.isInteractive() }, timeout_ms = 2000) in turnScreenOn()
/packages/modules/DnsResolver/doh/
Dffi.rs280 timeout_ms: uint64_t, in doh_query()
287 let t = Duration::from_millis(timeout_ms); in doh_query()
301 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/floss/pandora/server/
Dbluetooth.py440 def accept_socket(self, socket_id, timeout_ms=None): argument
441 return self.socket_manager.accept(socket_id, timeout_ms)
/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()

12