/packages/modules/Bluetooth/system/audio_hal_interface/aidl/ |
D | client_interface_aidl.cc | 559 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/ |
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 | 393 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/ |
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/modules/Bluetooth/system/audio_hal_interface/hidl/ |
D | client_interface_hidl.cc | 771 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/ |
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/Bluetooth/system/bta/dm/ |
D | bta_dm_pm.cc | 300 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/ |
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 | 129 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/ |
D | socket_manager.py | 331 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/ |
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/gd/os/linux_generic/ |
D | reactor.cc | 132 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/ |
D | BpfRingbuf.h | 46 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/ |
D | Bpf.cpp | 78 std::vector<int32_t> pollRingBuf(const char *map_path, int timeout_ms) { in pollRingBuf() argument 81 if (!result.value()->wait(timeout_ms)) { in pollRingBuf()
|
D | UprobeStats.cpp | 60 auto timeout_ms = static_cast<int>( in doPoll() local 63 auto result = bpf::pollRingBuf(map_path.c_str(), timeout_ms); in doPoll()
|
D | Bpf.h | 28 std::vector<int32_t> pollRingBuf(const char *map_path, int timeout_ms);
|
/packages/modules/Bluetooth/system/stack/l2cap/ |
D | l2c_link.cc | 133 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()
|
D | l2c_utils.cc | 1513 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/ |
D | ApfIntegrationTest.kt | 114 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/ |
D | ffi.rs | 280 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/ |
D | doh.h | 106 uint8_t* response, size_t response_len, uint64_t timeout_ms);
|
/packages/modules/Bluetooth/floss/pandora/server/ |
D | bluetooth.py | 440 def accept_socket(self, socket_id, timeout_ms=None): argument 441 return self.socket_manager.accept(socket_id, timeout_ms)
|
/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()
|