/external/ltp/testcases/kernel/syscalls/alarm/ |
alarm07.c | 87 int sleep_time = 5; local 112 sleep(sleep_time);
|
/external/ltp/tools/pounder21/src/time_tests/ |
drift-test.py | 25 # Usage: drift-test.py [-s] [ntp_server [sleep_time]] 36 sleep_time = 0 variable 45 elif sleep_time == 0: 46 sleep_time = string.atoi(arg) variable 50 if sleep_time == 0: 51 sleep_time = sleep_time_default variable 90 time.sleep(sleep_time)
|
/external/tensorflow/tensorflow/core/platform/posix/ |
env.cc | 65 timespec sleep_time; variable 66 sleep_time.tv_sec = 0; 67 sleep_time.tv_nsec = 0; 70 sleep_time.tv_sec = 72 micros -= static_cast<int64>(sleep_time.tv_sec) * 1e6; 75 sleep_time.tv_nsec = 1000 * micros; 78 while (nanosleep(&sleep_time, &sleep_time) != 0 && errno == EINTR) {
|
/system/extras/libperfmgr/tests/ |
RequestGroupTest.cc | 45 auto sleep_time = 200ms; local 46 std::this_thread::sleep_for(sleep_time); 49 EXPECT_NEAR((duration - sleep_time).count(), expire_time.count(),
|
/external/ltp/testcases/kernel/mem/mmapstress/ |
mmapstress06.c | 67 int sleep_time = 0; local 73 if (argc != 2 || !(sleep_time = atoi(argv[1]))) { 74 (void)fprintf(stderr, "usage: %s sleep_time\n", argv[0]); 97 (void)sleep(sleep_time);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/ |
14-1.c | 54 static volatile unsigned long sleep_time; variable 83 * then start increasing sleep_time to make sure all threads 86 sleep_time++; 87 if (sleep_time / SIGNALS_WITHOUT_DELAY > 0) 88 usleep(sleep_time / SIGNALS_WITHOUT_DELAY); 136 sleep_time = 0;
|
/hardware/interfaces/keymaster/4.0/vts/functional/ |
VerificationTokenTest.cpp | 55 struct timespec sleep_time = {static_cast<time_t>(milliseconds / 1000), local 57 while (sleep_time.tv_sec || sleep_time.tv_nsec) { 58 if (nanosleep(&sleep_time /* to wait */, 59 &sleep_time /* remaining (on interrruption) */) == 0) { 60 sleep_time = {};
|
/system/core/libsuspend/ |
autosuspend_wakeup_count.cpp | 51 static int sleep_time = BASE_SLEEP_TIME; variable 58 sleep_time = BASE_SLEEP_TIME; 62 sleep_time = MIN(sleep_time * 2, MAX_SLEEP_TIME); 70 usleep(sleep_time);
|
/external/libchrome/base/threading/ |
platform_thread_posix.cc | 169 struct timespec sleep_time, remaining; local 174 sleep_time.tv_sec = duration.InSeconds(); 175 duration -= TimeDelta::FromSeconds(sleep_time.tv_sec); 176 sleep_time.tv_nsec = duration.InMicroseconds() * 1000; // nanoseconds 178 while (nanosleep(&sleep_time, &remaining) == -1 && errno == EINTR) 179 sleep_time = remaining;
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_detach/ |
4-3.c | 69 static unsigned long sleep_time; variable 112 * then start increasing sleep_time to make sure all threads 114 sleep_time++; 115 if (sleep_time / SIGNALS_WITHOUT_DELAY > 0) 116 usleep(sleep_time / SIGNALS_WITHOUT_DELAY); 175 sleep_time = 0;
|
/external/libvncserver/examples/ |
mac.c | 51 static unsigned long sleep_time; variable 91 &sleep_time) != kIOReturnSuccess) 106 sleep_time) != kIOReturnSuccess) 110 sleep_time = 0;
|
/external/python/cpython3/Lib/test/eintrdata/ |
eintr_tester.py | 45 # sleep_time > signal_period 46 sleep_time = 0.2 variable in class:EINTRBaseTest 79 code = 'import time; time.sleep(%r)' % self.sleep_time 125 'sleep_time = %r' % self.sleep_time, 129 ' time.sleep(sleep_time)', 152 'sleep_time = %r' % self.sleep_time, 157 'time.sleep(sleep_time)', 199 'sleep_time = %r' % self.sleep_time [all...] |
/external/tensorflow/tensorflow/core/platform/ |
env_test.cc | 268 const int64 sleep_time = 1e6 + 5e5; local 269 env_->SleepForMicroseconds(sleep_time); 272 // Subtract 200 from the sleep_time for this check because NowMicros can 275 EXPECT_GE(delta, sleep_time - 200);
|
/external/walt/android/WALT/app/src/main/jni/ |
sync_clock.c | 211 int sleep_time = (clk->maxE - minE) / kSleepTimeDivider; local 212 if(sleep_time > kMaxSleepUs) sleep_time = kMaxSleepUs; 213 if(sleep_time < kMinSleepUs) sleep_time = kMinSleepUs; 222 microsleep(sleep_time); 245 LOGD("E is between %d and %d us, sleep_time=%d\n", clk->minE, clk->maxE, sleep_time);
|
/external/ltp/lib/ |
tst_timer_test.c | 45 static int sleep_time = -1; variable 414 do_timer_test(sleep_time, sample_cnt); 428 if (tst_parse_int(str_sleep_time, &sleep_time, 0, INT_MAX)) { 442 if (sleep_time < 0) 443 sleep_time = 10000; 448 long long timeout = sleep_time * sample_cnt / 1000000;
|
/external/tensorflow/tensorflow/core/kernels/batching_util/ |
adaptive_shared_batch_scheduler.h | 557 const int64 sleep_time = local 559 if (sleep_time > 0) { 560 GetEnv()->SleepForMicroseconds(sleep_time);
|
/hardware/libhardware/modules/audio/ |
audio_hw.c | 167 int64_t sleep_time = bytes * 1000000LL / audio_stream_out_frame_size(stream) / local 169 if (sleep_time > 0) { 170 usleep(sleep_time); 173 sleep_time = 0; 175 out->last_write_time_us = now + sleep_time; 312 int64_t sleep_time = bytes * 1000000LL / audio_stream_in_frame_size(stream) / local 314 if (sleep_time > 0) { 315 usleep(sleep_time); 317 sleep_time = 0; 319 in->last_read_time_us = now + sleep_time; [all...] |
/art/runtime/jit/ |
profile_saver.cc | 138 uint64_t sleep_time = 0; local 149 sleep_time = NanoTime() - sleep_start; 160 while (min_save_period_ns * 0.9 > sleep_time) { 163 period_condition_.TimedWait(self, NsToMs(min_save_period_ns - sleep_time), 0); 164 sleep_time = NanoTime() - sleep_start; [all...] |
/system/core/logd/tests/ |
logd_test.cpp | 835 static const unsigned sleep_time = sndtimeo + 3; local 836 static const unsigned alarm_time = sleep_time + 5; 864 sleep(sleep_time); [all...] |
/test/vts/runners/target/gtest/ |
gtest_main.cpp | 780 timespec sleep_time; local 781 sleep_time.tv_sec = 0; 782 sleep_time.tv_nsec = 1000000; 783 nanosleep(&sleep_time, NULL); [all...] |
/bionic/tests/ |
gtest_main.cpp | 824 timespec sleep_time; local 825 sleep_time.tv_sec = 0; 826 sleep_time.tv_nsec = 1000000; 827 nanosleep(&sleep_time, NULL); [all...] |
/external/adhd/cras/src/server/ |
audio_thread.c | 1004 struct timespec sleep_time; local 1036 &sleep_time); 1038 add_timespecs(&adev->wake_ts, &sleep_time); [all...] |