/external/ltp/testcases/open_posix_testsuite/stress/threads/sem_open/ |
testfrmw.c | 49 char *ts = "[??:??:??]"; local 57 printf(ts);
|
/external/strace/tests/ |
attach-p-cmd-p.c | 87 static const struct timespec ts = { .tv_nsec = 123456789 }; local 88 if (nanosleep(&ts, NULL))
|
clock_nanosleep.c | 50 struct timespec ts; member in struct:__anon35358 53 .ts.tv_nsec = 0xc0de1, 56 .ts = { .tv_sec = 0xc0de2, .tv_nsec = 0xc0de3 }, 66 if (syscall(__NR_clock_nanosleep, CLOCK_REALTIME, 0, &req.ts, NULL)) 70 (long long) req.ts.tv_sec, 71 zero_extend_signed_to_ull(req.ts.tv_nsec)); 74 NULL, &rem.ts) == -1); 76 " = -1 EFAULT (%m)\n", &rem.ts); 79 &req.ts, &rem.ts) == 0) [all...] |
nanosleep.c | 48 struct timespec ts; member in struct:__anon35380 51 .ts.tv_nsec = 0xc0de1, 54 .ts = { .tv_sec = 0xc0de2, .tv_nsec = 0xc0de3 }, 61 if (nanosleep(&req.ts, NULL)) 64 (long long) req.ts.tv_sec, 65 zero_extend_signed_to_ull(req.ts.tv_nsec)); 67 assert(nanosleep(NULL, &rem.ts) == -1); 68 printf("nanosleep(NULL, %p) = -1 EFAULT (%m)\n", &rem.ts); 70 if (nanosleep(&req.ts, &rem.ts)) [all...] |
/external/strace/tests-m32/ |
attach-p-cmd-p.c | 87 static const struct timespec ts = { .tv_nsec = 123456789 }; local 88 if (nanosleep(&ts, NULL))
|
clock_nanosleep.c | 50 struct timespec ts; member in struct:__anon35432 53 .ts.tv_nsec = 0xc0de1, 56 .ts = { .tv_sec = 0xc0de2, .tv_nsec = 0xc0de3 }, 66 if (syscall(__NR_clock_nanosleep, CLOCK_REALTIME, 0, &req.ts, NULL)) 70 (long long) req.ts.tv_sec, 71 zero_extend_signed_to_ull(req.ts.tv_nsec)); 74 NULL, &rem.ts) == -1); 76 " = -1 EFAULT (%m)\n", &rem.ts); 79 &req.ts, &rem.ts) == 0) [all...] |
nanosleep.c | 48 struct timespec ts; member in struct:__anon35454 51 .ts.tv_nsec = 0xc0de1, 54 .ts = { .tv_sec = 0xc0de2, .tv_nsec = 0xc0de3 }, 61 if (nanosleep(&req.ts, NULL)) 64 (long long) req.ts.tv_sec, 65 zero_extend_signed_to_ull(req.ts.tv_nsec)); 67 assert(nanosleep(NULL, &rem.ts) == -1); 68 printf("nanosleep(NULL, %p) = -1 EFAULT (%m)\n", &rem.ts); 70 if (nanosleep(&req.ts, &rem.ts)) [all...] |
/external/strace/tests-mx32/ |
attach-p-cmd-p.c | 87 static const struct timespec ts = { .tv_nsec = 123456789 }; local 88 if (nanosleep(&ts, NULL))
|
clock_nanosleep.c | 50 struct timespec ts; member in struct:__anon35506 53 .ts.tv_nsec = 0xc0de1, 56 .ts = { .tv_sec = 0xc0de2, .tv_nsec = 0xc0de3 }, 66 if (syscall(__NR_clock_nanosleep, CLOCK_REALTIME, 0, &req.ts, NULL)) 70 (long long) req.ts.tv_sec, 71 zero_extend_signed_to_ull(req.ts.tv_nsec)); 74 NULL, &rem.ts) == -1); 76 " = -1 EFAULT (%m)\n", &rem.ts); 79 &req.ts, &rem.ts) == 0) [all...] |
nanosleep.c | 48 struct timespec ts; member in struct:__anon35528 51 .ts.tv_nsec = 0xc0de1, 54 .ts = { .tv_sec = 0xc0de2, .tv_nsec = 0xc0de3 }, 61 if (nanosleep(&req.ts, NULL)) 64 (long long) req.ts.tv_sec, 65 zero_extend_signed_to_ull(req.ts.tv_nsec)); 67 assert(nanosleep(NULL, &rem.ts) == -1); 68 printf("nanosleep(NULL, %p) = -1 EFAULT (%m)\n", &rem.ts); 70 if (nanosleep(&req.ts, &rem.ts)) [all...] |
/external/valgrind/drd/tests/ |
hold_lock.c | 16 struct timespec ts; local 19 ts.tv_sec = ms / 1000; 20 ts.tv_nsec = (ms % 1000) * 1000 * 1000; 21 nanosleep(&ts, 0);
|
/external/valgrind/none/tests/ |
ppoll_alarm.c | 27 struct timespec ts = {10000, 0}; local 28 ppoll(NULL, 0, &ts, &ss);
|
pselect_alarm.c | 28 struct timespec ts = {10000, 0}; local 29 pselect(0, NULL, NULL, NULL, &ts, &ss);
|
/external/webrtc/webrtc/modules/audio_processing/transient/ |
common.h | 14 namespace ts { namespace in namespace:webrtc 25 } // namespace ts
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
LaunchpadTabActivity.java | 37 TabHost.TabSpec ts = th.newTabSpec("1"); local 38 ts.setIndicator("One"); 39 ts.setContent(tabIntent); 40 th.addTab(ts);
|
/hardware/interfaces/confirmationui/1.0/default/ |
PlatformSpecifics.cpp | 31 timespec ts; local 32 if (!clock_gettime(CLOCK_BOOTTIME, &ts)) { 33 return TimeStamp(ts.tv_sec * UINT64_C(1000) + ts.tv_nsec / UINT64_C(1000000));
|
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-test/src/ |
cam_semaphore_tests.cpp | 30 static inline void timespec_add_ms(timespec& ts, size_t ms) { 31 ts.tv_sec += ms / 1000; 32 ts.tv_nsec += (ms % 1000) * 1000000; 33 if (ts.tv_nsec >= NS_PER_S) { 34 ts.tv_sec++; 35 ts.tv_nsec -= NS_PER_S; 55 timespec ts; local 56 ASSERT_EQ(0, clock_gettime(CLOCK_MONOTONIC, &ts)); 57 timespec_add_ms(ts, 100); 60 ASSERT_EQ(-1, cam_sem_timedwait(&sem, &ts)); [all...] |
/packages/apps/Nfc/nci/jni/ |
IntervalTimer.cpp | 45 struct itimerspec ts; local 46 ts.it_value.tv_sec = ms / 1000; 47 ts.it_value.tv_nsec = (ms % 1000) * 1000000; 49 ts.it_interval.tv_sec = 0; 50 ts.it_interval.tv_nsec = 0; 52 stat = timer_settime(mTimerId, 0, &ts, 0);
|
/prebuilts/go/darwin-x86/misc/cgo/testcshared/ |
main5.c | 35 struct timespec ts; local 82 ts.tv_sec = 0; 83 ts.tv_nsec = 1000000; 84 nanosleep(&ts, NULL); 187 ts.tv_sec = 0; 188 ts.tv_nsec = 1000000; 189 nanosleep(&ts, NULL);
|
/prebuilts/go/darwin-x86/src/runtime/cgo/ |
gcc_windows_386.c | 28 _cgo_sys_thread_start(ThreadStart *ts) 32 thandle = _beginthread(threadentry, 0, ts); 42 ThreadStart ts; local 44 ts = *(ThreadStart*)v; 47 ts.g->stackhi = (uintptr)&ts; 48 ts.g->stacklo = (uintptr)&ts - STACKSIZE + 8*1024; 57 :: "r"(ts.tls), "r"(ts.g) : "%eax [all...] |
gcc_windows_amd64.c | 28 _cgo_sys_thread_start(ThreadStart *ts) 32 thandle = _beginthread(threadentry, 0, ts); 42 ThreadStart ts; local 44 ts = *(ThreadStart*)v; 47 ts.g->stackhi = (uintptr)&ts; 48 ts.g->stacklo = (uintptr)&ts - STACKSIZE + 8*1024; 57 :: "r"(ts.tls), "r"(ts.g) : "%rax [all...] |
/prebuilts/go/linux-x86/misc/cgo/testcshared/ |
main5.c | 35 struct timespec ts; local 82 ts.tv_sec = 0; 83 ts.tv_nsec = 1000000; 84 nanosleep(&ts, NULL); 187 ts.tv_sec = 0; 188 ts.tv_nsec = 1000000; 189 nanosleep(&ts, NULL);
|
/prebuilts/go/linux-x86/src/runtime/cgo/ |
gcc_windows_386.c | 28 _cgo_sys_thread_start(ThreadStart *ts) 32 thandle = _beginthread(threadentry, 0, ts); 42 ThreadStart ts; local 44 ts = *(ThreadStart*)v; 47 ts.g->stackhi = (uintptr)&ts; 48 ts.g->stacklo = (uintptr)&ts - STACKSIZE + 8*1024; 57 :: "r"(ts.tls), "r"(ts.g) : "%eax [all...] |
gcc_windows_amd64.c | 28 _cgo_sys_thread_start(ThreadStart *ts) 32 thandle = _beginthread(threadentry, 0, ts); 42 ThreadStart ts; local 44 ts = *(ThreadStart*)v; 47 ts.g->stackhi = (uintptr)&ts; 48 ts.g->stacklo = (uintptr)&ts - STACKSIZE + 8*1024; 57 :: "r"(ts.tls), "r"(ts.g) : "%rax [all...] |
/system/core/libutils/ |
SystemClock.cpp | 60 struct timespec ts; local 61 int err = clock_gettime(CLOCK_BOOTTIME, &ts); 68 return seconds_to_nanoseconds(ts.tv_sec) + ts.tv_nsec;
|