/system/bt/common/ |
D | time_util_unittest.cc | 70 struct timespec delay = {}; in TEST() local 72 delay.tv_sec = TEST_TIME_SLEEP_MS / 1000; in TEST() 73 delay.tv_nsec = 1000 * 1000 * (TEST_TIME_SLEEP_MS % 1000); in TEST() 77 int err = nanosleep(&delay, &delay); in TEST() 91 struct timespec delay = {}; in TEST() local 93 delay.tv_sec = TEST_TIME_SLEEP_US / (1000 * 1000); in TEST() 94 delay.tv_nsec = 1000 * (TEST_TIME_SLEEP_US % (1000 * 1000)); in TEST() 98 int err = nanosleep(&delay, &delay); in TEST() 132 struct timespec delay = {}; in TEST() local 134 delay.tv_sec = TEST_TIME_SLEEP_US / (1000 * 1000); in TEST() [all …]
|
D | once_timer.cc | 37 base::OnceClosure task, base::TimeDelta delay) { in Schedule() argument 39 uint64_t time_next_task_us = time_now_us + delay.InMicroseconds(); in Schedule() 50 delay_ = delay; in Schedule()
|
/system/bpf/libbpf_android/include/ |
D | libbpf_android.h | 38 for (int delay = 5;; delay *= 2) { in waitForProgsLoaded() local 39 if (delay > 60) delay = 60; in waitForProgsLoaded() 40 if (android::base::WaitForProperty("bpf.progs_loaded", "1", std::chrono::seconds(delay))) in waitForProgsLoaded() 42 ALOGW("Waited %ds for bpf.progs_loaded, still waiting...", delay); in waitForProgsLoaded()
|
/system/extras/tests/cpueater/ |
D | daemonize.c | 34 unsigned int delay = 0; in main() local 59 delay = atoi(*argv); in main() 61 delay = atoi(*++argv); in main() 99 if(delay) { in main() 108 if(delay) { in main() 109 sleep(delay); in main() 116 if(delay) { in main()
|
/system/update_engine/common/ |
D | scoped_task_id.h | 54 base::TimeDelta delay = {}) noexcept { 55 return PostTask<decltype(callback)>(from_here, std::move(callback), delay); 59 base::TimeDelta delay = {}) noexcept { 60 return PostTask<decltype(callback)>(from_here, std::move(callback), delay); 96 base::TimeDelta delay) noexcept { in PostTask() argument 107 delay); in PostTask()
|
D | mock_http_fetcher.h | 116 void set_delay(bool delay) { delay_ = delay; } in set_delay() argument
|
/system/extras/iotop/ |
D | iotop.cpp | 104 int delay = 1; in main() local 132 delay = atoi(optarg); in main() 236 const int delay_div = accumulated ? 1 : delay; in main() 260 statistics.minflt(), TimeToTgidPercent(statistics.delay_io(), delay, statistics), in main() 261 TimeToTgidPercent(statistics.delay_swap(), delay, statistics), in main() 262 TimeToTgidPercent(statistics.delay_sched(), delay, statistics), in main() 263 TimeToTgidPercent(statistics.delay_mem(), delay, statistics), in main() 264 TimeToTgidPercent(statistics.delay_total(), delay, statistics)); in main() 276 sleep(delay); in main()
|
/system/chre/host/common/ |
D | socket_client.cc | 187 auto delay = kMinDelay; in reconnect() local 193 mShutdownCond.wait_for(lock, delay, in reconnect() 200 bool suppressErrorLogs = (delay == kMinDelay); in reconnect() 204 delay.count()); in reconnect() 207 delay *= 2; in reconnect() 209 if (delay > kMaxDelay) { in reconnect() 210 delay = kMaxDelay; in reconnect()
|
/system/chre/platform/linux/ |
D | system_timer.cc | 78 Nanoseconds delay) { in set() argument 81 if (delay.toRawNanoseconds() == 0) { in set() 82 delay = Nanoseconds(1); in set() 88 return setInternal(delay.toRawNanoseconds()); in set()
|
/system/bt/vendor_libs/test_vendor_lib/desktop/ |
D | test_environment.h | 72 std::chrono::milliseconds delay, 74 return async_manager_.ExecAsync(user_id, delay, task); 78 std::chrono::milliseconds delay, std::chrono::milliseconds period, 80 return async_manager_.ExecAsyncPeriodically(user_id, delay, period,
|
/system/bt/test/rootcanal/ |
D | bluetooth_hci.h | 93 std::chrono::milliseconds delay, 95 return async_manager_.ExecAsync(user_id, delay, task); 99 std::chrono::milliseconds delay, std::chrono::milliseconds period, 101 return async_manager_.ExecAsyncPeriodically(user_id, delay, period,
|
/system/nfc/src/gki/ulinux/ |
D | gki_ulinux.cc | 384 struct timespec delay; in timer_thread() local 389 delay.tv_sec = timeout / 1000; in timer_thread() 390 delay.tv_nsec = 1000 * 1000 * (timeout % 1000); in timer_thread() 395 err = nanosleep(&delay, &delay); in timer_thread() 422 struct timespec delay; in GKI_run() local 457 delay.tv_sec = LINUX_SEC / 1000; in GKI_run() 458 delay.tv_nsec = 1000 * 1000 * (LINUX_SEC % 1000); in GKI_run() 462 err = nanosleep(&delay, &delay); in GKI_run() 676 struct timespec delay; in GKI_delay() local 682 delay.tv_sec = timeout / 1000; in GKI_delay() [all …]
|
/system/bt/test/common/ |
D | main_handler.cc | 46 const base::TimeDelta& delay) { in do_in_main_thread_delayed() argument 47 ASSERT_LOG(!main_thread.DoInThreadDelayed(from_here, std::move(task), delay), in do_in_main_thread_delayed()
|
/system/bt/common/benchmark/ |
D | timer_performance_benchmark.cc | 188 for (const auto& delay : g_map) { in BENCHMARK_DEFINE_F() local 189 state.counters[std::to_string(delay.first)] = delay.second; in BENCHMARK_DEFINE_F() 253 for (const auto& delay : g_map) { in BENCHMARK_DEFINE_F() local 254 state.counters[std::to_string(delay.first)] = delay.second; in BENCHMARK_DEFINE_F()
|
/system/bt/vendor_libs/test_vendor_lib/model/setup/ |
D | async_manager.cc | 273 AsyncTaskId ExecAsync(AsyncUserId user_id, std::chrono::milliseconds delay, in ExecAsync() argument 276 std::chrono::steady_clock::now() + delay, callback, user_id)); in ExecAsync() 280 std::chrono::milliseconds delay, in ExecAsyncPeriodically() argument 284 std::chrono::steady_clock::now() + delay, period, callback, user_id)); in ExecAsyncPeriodically() 520 std::chrono::milliseconds delay, in ExecAsync() argument 522 return taskManager_p_->ExecAsync(user_id, delay, callback); in ExecAsync() 526 AsyncUserId user_id, std::chrono::milliseconds delay, in ExecAsyncPeriodically() argument 528 return taskManager_p_->ExecAsyncPeriodically(user_id, delay, period, in ExecAsyncPeriodically()
|
D | async_manager.h | 66 AsyncTaskId ExecAsync(AsyncUserId user_id, std::chrono::milliseconds delay, 74 std::chrono::milliseconds delay,
|
/system/chre/platform/slpi/ |
D | system_timer.cc | 58 Nanoseconds delay) { in set() argument 64 slpiTimerSet64(&mTimerHandle, Microseconds(delay).getMicroseconds(), 0, in set()
|
/system/bt/service/common/bluetooth/ |
D | scan_settings.h | 135 void set_report_delay(const base::TimeDelta& delay) { in set_report_delay() argument 136 report_delay_ms_ = delay; in set_report_delay()
|
/system/extras/tests/suspend_stress/ |
D | suspend_stress.cpp | 99 struct itimerspec delay = itimerspec(); in main() local 100 delay.it_value.tv_sec = alarm_time; in main() 122 ret = timerfd_settime(fd, 0, &delay, NULL); in main()
|
/system/bt/gd/os/linux_generic/ |
D | alarm.cc | 55 void Alarm::Schedule(OnceClosure task, std::chrono::milliseconds delay) { in Schedule() argument 57 long delay_ms = delay.count(); in Schedule()
|
/system/bt/stack/btu/ |
D | btu_task.cc | 102 const base::TimeDelta& delay) { in do_in_main_thread_delayed() argument 103 if (!main_thread.DoInThreadDelayed(from_here, std::move(task), delay)) { in do_in_main_thread_delayed()
|
/system/bt/btif/include/ |
D | btif_a2dp_control.h | 44 void btif_a2dp_control_set_audio_delay(uint16_t delay);
|
/system/bt/gd/os/ |
D | alarm_benchmark.cc | 127 for (const auto& delay : map_) { in BENCHMARK_DEFINE_F() local 128 state.counters[std::to_string(delay.first)] = delay.second; in BENCHMARK_DEFINE_F()
|
/system/bt/bta/sys/ |
D | bta_sys_main.cc | 173 void bta_sys_sendmsg_delayed(void* p_msg, const base::TimeDelta& delay) { in bta_sys_sendmsg_delayed() argument 177 delay) != BT_STATUS_SUCCESS) { in bta_sys_sendmsg_delayed()
|
/system/chre/platform/include/chre/platform/ |
D | system_timer.h | 77 bool set(SystemTimerCallback *callback, void *data, Nanoseconds delay);
|