Home
last modified time | relevance | path

Searched refs:delay (Results 1 – 25 of 73) sorted by relevance

123

/system/bt/common/
Dtime_util_unittest.cc70 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 …]
Donce_timer.cc37 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/
Dlibbpf_android.h38 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/
Ddaemonize.c34 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/
Dscoped_task_id.h54 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()
Dmock_http_fetcher.h116 void set_delay(bool delay) { delay_ = delay; } in set_delay() argument
/system/extras/iotop/
Diotop.cpp104 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/
Dsocket_client.cc187 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/
Dsystem_timer.cc78 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/
Dtest_environment.h72 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/
Dbluetooth_hci.h93 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/
Dgki_ulinux.cc384 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/
Dmain_handler.cc46 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/
Dtimer_performance_benchmark.cc188 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/
Dasync_manager.cc273 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()
Dasync_manager.h66 AsyncTaskId ExecAsync(AsyncUserId user_id, std::chrono::milliseconds delay,
74 std::chrono::milliseconds delay,
/system/chre/platform/slpi/
Dsystem_timer.cc58 Nanoseconds delay) { in set() argument
64 slpiTimerSet64(&mTimerHandle, Microseconds(delay).getMicroseconds(), 0, in set()
/system/bt/service/common/bluetooth/
Dscan_settings.h135 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/
Dsuspend_stress.cpp99 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/
Dalarm.cc55 void Alarm::Schedule(OnceClosure task, std::chrono::milliseconds delay) { in Schedule() argument
57 long delay_ms = delay.count(); in Schedule()
/system/bt/stack/btu/
Dbtu_task.cc102 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/
Dbtif_a2dp_control.h44 void btif_a2dp_control_set_audio_delay(uint16_t delay);
/system/bt/gd/os/
Dalarm_benchmark.cc127 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/
Dbta_sys_main.cc173 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/
Dsystem_timer.h77 bool set(SystemTimerCallback *callback, void *data, Nanoseconds delay);

123