Home
last modified time | relevance | path

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

/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/extras/tests/bionic/libc/common/
Dtest_pthread_mutex.c83 time_sleep(double delay) in time_sleep() argument
88 ts.tv_sec = (time_t)delay; in time_sleep()
89 ts.tv_nsec = (long)((delay - ts.tv_sec)*1e9); in time_sleep()
319 static void do_test_mutex_3(pthread_mutexattr_t *attr, double delay) in do_test_mutex_3() argument
326 s->waitDelay = delay; in do_test_mutex_3()
327 s->spinDelay = delay/20.; in do_test_mutex_3()
335 time_sleep(delay); in do_test_mutex_3()
343 static void do_test_3(double delay) in do_test_3() argument
347 do_test_mutex_3(NULL, delay); in do_test_3()
354 do_test_mutex_3(attr, delay); in do_test_3()
[all …]
Dtest_pthread_rwlock.c82 time_sleep(double delay) in time_sleep() argument
87 ts.tv_sec = (time_t)delay; in time_sleep()
88 ts.tv_nsec = (long)((delay - ts.tv_sec)*1e9); in time_sleep()
296 static void do_test_rwlock_rd3(pthread_rwlockattr_t *attr, double delay) in do_test_rwlock_rd3() argument
303 s->waitDelay = delay; in do_test_rwlock_rd3()
304 s->spinDelay = delay/20.; in do_test_rwlock_rd3()
312 time_sleep(delay); in do_test_rwlock_rd3()
320 static void do_test_3(double delay) in do_test_3() argument
324 do_test_rwlock_rd3(NULL, delay); in do_test_3()
331 do_test_rwlock_rd3(attr, delay); in do_test_3()
[all …]
/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()
Dvmstat.c74 int iterations, delay, header_interval; in vmstat_main() local
79 delay = 1; in vmstat_main()
96 delay = atoi(argv[++i]); in vmstat_main()
123 sleep(delay); in vmstat_main()
Dschedtop.c279 int delay = 3000000; in schedtop_main() local
289 delay = delay_f * 1000000; in schedtop_main()
332 usleep(delay); in schedtop_main()
Dtop.c87 static int max_procs, delay, iterations, threads; variable
116 delay = 3; in top_main()
144 delay = atoi(argv[++i]); in top_main()
186 sleep(delay); in top_main()
/system/extras/micro_bench/
Dmicro_bench.c40 static int do_sleep(int delay) { in do_sleep() argument
46 sleep(delay); in do_sleep()
51 printf("sleep(%d) took %ld.%06ld seconds\n", delay, tv2.tv_sec, tv2.tv_usec); in do_sleep()
/system/media/wilhelm/tests/listening/
DseekTorture.c121 SLmillisecond delay = 100 + (rand() & 8191); in main() local
122 printf("sleep %u\n", (unsigned) delay); in main()
123 usleep(delay * 1000); in main()
/system/bluetooth/tools/
Dasocket_test.c54 int delay; member
319 sleep(args->delay); in thread_delay_close()
360 sleep(args->delay); in thread_accept()
367 sleep(args->delay); in thread_connect()
374 sleep(args->delay); in thread_delay_close_write()
376 sleep(args->delay); in thread_delay_close_write()
383 sleep(args->delay); in thread_accept_write()
385 sleep(args->delay); in thread_accept_write()
392 sleep(args->delay); in thread_delay_connect()
Dsocktest.c53 int delay; member
333 sleep(args->delay); in thread_delay_close()
374 sleep(args->delay); in thread_accept()
381 sleep(args->delay); in thread_connect()
388 sleep(args->delay); in thread_delay_close_write()
390 sleep(args->delay); in thread_delay_close_write()
397 sleep(args->delay); in thread_accept_write()
399 sleep(args->delay); in thread_accept_write()
406 sleep(args->delay); in thread_delay_connect()
Dpipetest.c128 int delay = (int)((double)random() * (10000000.0 / 2147483647.0)); in thread_pollin_rand_delay() local
129 printf("%d: START (delay = %d)\n", gettid(), delay); in thread_pollin_rand_delay()
132 usleep(delay); in thread_pollin_rand_delay()
Dsock_shutdown_test.c52 int delay; member
220 sleep(args->delay); in thread_accept()
/system/media/wilhelm/tests/sandbox/
Dmultiplay.c217 SLmillisecond delay = 100 + (rand() & 1023); in main() local
218 printf("sleep %u\n", (unsigned) delay); in main()
219 usleep(delay * 1000); in main()
273 if ((playTimeInMilliseconds > 0) && ((playTimeInMilliseconds -= delay) < 0)) in main()
/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.c70 int delay, iterations; in main() local
75 delay = 1; in main()
85 delay = atoi(argv[++i]); in main()
142 sleep(delay); in main()
/system/media/mca/filterfw/java/android/filterfw/core/
DSyncRunner.java173 protected void scheduleFilterWake(Filter filter, int delay) { in scheduleFilterWake() argument
187 }, delay, TimeUnit.MILLISECONDS); in scheduleFilterWake()