/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/extras/tests/bionic/libc/common/ |
D | test_pthread_mutex.c | 83 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 …]
|
D | test_pthread_rwlock.c | 82 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/ |
D | iftop.c | 229 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()
|
D | vmstat.c | 74 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()
|
D | schedtop.c | 279 int delay = 3000000; in schedtop_main() local 289 delay = delay_f * 1000000; in schedtop_main() 332 usleep(delay); in schedtop_main()
|
D | top.c | 87 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/ |
D | micro_bench.c | 40 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/ |
D | seekTorture.c | 121 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/ |
D | asocket_test.c | 54 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()
|
D | socktest.c | 53 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()
|
D | pipetest.c | 128 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()
|
D | sock_shutdown_test.c | 52 int delay; member 220 sleep(args->delay); in thread_accept()
|
/system/media/wilhelm/tests/sandbox/ |
D | multiplay.c | 217 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/ |
D | resampler.c | 65 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/ |
D | latencytop.c | 70 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/ |
D | SyncRunner.java | 173 protected void scheduleFilterWake(Filter filter, int delay) { in scheduleFilterWake() argument 187 }, delay, TimeUnit.MILLISECONDS); in scheduleFilterWake()
|