Home
last modified time | relevance | path

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

12

/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/bt/osi/test/
Dtime_test.cpp63 struct timespec delay; in TEST_F() local
65 delay.tv_sec = TEST_TIME_SLEEP_MS / 1000; in TEST_F()
66 delay.tv_nsec = 1000 * 1000 * (TEST_TIME_SLEEP_MS % 1000); in TEST_F()
70 int err = nanosleep(&delay, &delay); in TEST_F()
/system/extras/iotop/
Diotop.cpp103 int delay = 1; in main() local
131 delay = atoi(optarg); in main()
241 const int delay_div = accumulated ? 1 : delay; in main()
262 TimeToTgidPercent(statistics.delay_io(), delay, statistics), in main()
263 TimeToTgidPercent(statistics.delay_swap(), delay, statistics), in main()
264 TimeToTgidPercent(statistics.delay_sched(), delay, statistics), in main()
265 TimeToTgidPercent(statistics.delay_mem(), delay, statistics), in main()
266 TimeToTgidPercent(statistics.delay_total(), delay, statistics)); in main()
278 sleep(delay); in main()
/system/core/crash_reporter/
Dperiodic_scheduler47 local delay="$1"
53 [ -z "${delay}" ] && exit 1
70 if [ ${time_diff} -gt ${delay} ]; then
/system/bt/vendor_libs/test_vendor_lib/src/
Dhci_transport.cc135 base::TimeDelta delay) { in PostDelayedEventResponse() argument
152 delay.InMilliseconds()); in PostDelayedEventResponse()
155 std::make_unique<TimeStampedEvent>(std::move(event), delay)); in PostDelayedEventResponse()
159 std::unique_ptr<EventPacket> event, base::TimeDelta delay) in TimeStampedEvent() argument
160 : event_(std::move(event)), time_stamp_(base::TimeTicks::Now() + delay) {} in TimeStampedEvent()
Dvendor_manager.cc129 base::TimeDelta delay) { in PostDelayedTask() argument
130 return thread_.task_runner()->PostDelayedTask(FROM_HERE, task, delay); in PostDelayedTask()
Ddual_mode_controller.cc237 void DualModeController::SetEventDelay(int64_t delay) { in SetEventDelay() argument
238 if (delay < 0) in SetEventDelay()
239 delay = 0; in SetEventDelay()
241 base::TimeDelta::FromMilliseconds(delay)); in SetEventDelay()
/system/core/toolbox/
Diftop.c229 int count = 0, header_interval = 22, delay = 1, i; in iftop_main() local
238 delay = atoi(argv[i++]); in iftop_main()
239 if (!delay) in iftop_main()
240 delay = 1; in iftop_main()
267 sleep(delay); in iftop_main()
Dtop.c90 static int max_procs, delay, iterations, threads; variable
117 delay = 3; in top_main()
145 delay = atoi(argv[++i]); in top_main()
191 if (iterations != 0) sleep(delay); in top_main()
/system/extras/tests/suspend_stress/
Dsuspend_stress.cpp100 struct itimerspec delay = itimerspec(); in main() local
101 delay.it_value.tv_sec = alarm_time; in main()
123 ret = timerfd_settime(fd, 0, &delay, NULL); in main()
/system/bt/vendor_libs/test_vendor_lib/include/
Dhci_transport.h70 base::TimeDelta delay);
77 TimeStampedEvent(std::unique_ptr<EventPacket> event, base::TimeDelta delay);
Dvendor_manager.h76 bool PostDelayedTask(const base::Closure& task, base::TimeDelta delay);
Ddual_mode_controller.h334 void SetEventDelay(int64_t delay);
/system/bt/service/common/bluetooth/
Dscan_settings.h138 void set_report_delay(const base::TimeDelta& delay) { in set_report_delay() argument
139 report_delay_ms_ = delay; in set_report_delay()
/system/bt/bta/include/
Dbta_av_co.h376 extern void bta_av_co_audio_delay(tBTA_AV_HNDL hndl, UINT16 delay);
389 extern void bta_av_co_video_delay(tBTA_AV_HNDL hndl, UINT16 delay);
/system/media/audio_utils/
Dresampler.c65 int32_t delay = (int32_t)((1000000000 * (int64_t)rsmp->frames_in) / rsmp->in_sample_rate); in resampler_delay_ns() local
66 delay += rsmp->speex_delay_ns; in resampler_delay_ns()
68 return delay; in resampler_delay_ns()
/system/extras/latencytop/
Dlatencytop.c71 int delay, iterations; in main() local
76 delay = 1; in main()
86 delay = atoi(argv[++i]); in main()
143 sleep(delay); in main()
/system/extras/cpustats/
Dcpustats.c53 static int cpu_count, delay, iterations; variable
74 delay = 3; in main()
95 delay = atoi(argv[++i]); in main()
147 sleep(delay); in main()
/system/connectivity/shill/
Dconnectivity_trial_unittest.cc129 bool StartTrialWithDelay(const string& url_string, int delay) { in StartTrialWithDelay() argument
130 bool ret = connectivity_trial_->Start(url_string, delay); in StartTrialWithDelay()
172 void ExpectTrialRetry(const ConnectivityTrial::Result& result, int delay) { in ExpectTrialRetry() argument
179 EXPECT_CALL(dispatcher(), PostDelayedTask(_, delay)); in ExpectTrialRetry()
/system/bt/stack/include/
Davdt_api.h324 UINT16 delay; /* Delay value */ member
620 extern UINT16 AVDT_DelayReport(UINT8 handle, UINT8 seid, UINT16 delay);
/system/core/init/
Dbuiltins.cpp674 unsigned int delay = 0; in do_powerctl() local
676 if (android::base::ParseUint(timeout.c_str(), &delay) && delay > 0) { in do_powerctl()
682 while (t.duration() < delay) { in do_powerctl()
/system/extras/micro_bench/
Dmicro_bench.cpp382 int delay = cmd_data.args[0]; in benchmarkSleep() local
383 MAINLOOP(cmd_data, sleep(delay), in benchmarkSleep()
385 printf("sleep(%d) took %.06f seconds\n", delay, avg);, in benchmarkSleep()
387 delay, running_avg, computeStdDev(square_avg, running_avg), \ in benchmarkSleep()
/system/bt/stack/avdt/
Davdt_api.c476 UINT16 AVDT_DelayReport(UINT8 handle, UINT8 seid, UINT16 delay) in AVDT_DelayReport() argument
491 evt.apidelay.delay = delay; in AVDT_DelayReport()
/system/bt/stack/l2cap/
Dl2c_fcr.c2434 UINT32 timestamp, delay; in l2c_fcr_collect_ack_delay() local
2472 delay = time_get_os_boottime_ms() - timestamp; in l2c_fcr_collect_ack_delay()
2474 p_ccb->fcrb.ack_delay_avg[index] += delay; in l2c_fcr_collect_ack_delay()
2475 if ( delay > p_ccb->fcrb.ack_delay_max[index] ) in l2c_fcr_collect_ack_delay()
2476 p_ccb->fcrb.ack_delay_max[index] = delay; in l2c_fcr_collect_ack_delay()
2477 if ( delay < p_ccb->fcrb.ack_delay_min[index] ) in l2c_fcr_collect_ack_delay()
2478 p_ccb->fcrb.ack_delay_min[index] = delay; in l2c_fcr_collect_ack_delay()
/system/weaved/buffet/
Dmanager.cc171 base::TimeDelta delay) override { in PostDelayedTask() argument
172 brillo::MessageLoop::current()->PostDelayedTask(from_here, task, delay); in PostDelayedTask()

12