| /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/ |
| 18-1.c | 34 struct timespec ts; local 46 ts.tv_sec = time(NULL) - 1; 47 ts.tv_nsec = 0; 48 if (mq_timedsend(queue, msgptr, strlen(msgptr), 1, &ts) != 0) {
|
| 11-1.c | 32 struct timespec ts; local 44 ts.tv_sec = time(NULL) + 1; 45 ts.tv_nsec = 0; 46 if (mq_timedsend(queue + 1, msgptr, strlen(msgptr), 1, &ts) != -1) {
|
| 11-2.c | 32 struct timespec ts; local 44 ts.tv_sec = time(NULL) + 1; 45 ts.tv_nsec = 0; 46 if (mq_timedsend(queue, msgptr, strlen(msgptr), 1, &ts) != -1) {
|
| 4-1.c | 31 struct timespec ts; local 43 ts.tv_sec = time(NULL) + 1; 44 ts.tv_nsec = 0; 45 if (mq_timedsend(queue, msgptr, strlen(msgptr), MQ_PRIO_MAX + 1, &ts)
|
| 4-2.c | 31 struct timespec ts; local 43 ts.tv_sec = time(NULL) + 1; 44 ts.tv_nsec = 0; 45 if (mq_timedsend(queue, msgptr, strlen(msgptr), MQ_PRIO_MAX, &ts)
|
| /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/speculative/ |
| 18-2.c | 34 struct timespec ts; local 46 ts.tv_sec = time(NULL) - 1; 47 ts.tv_nsec = -1; 48 if (mq_timedsend(queue, msgptr, strlen(msgptr), 1, &ts) == -1) {
|
| /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/ |
| 7-1.c | 37 struct timespec ts; local 45 ts.tv_sec = time(NULL); 46 ts.tv_nsec = 0; 48 while (sem_timedwait(&mysemp, &ts) == -1) {
|
| 1-1.c | 32 struct timespec ts; local 40 ts.tv_sec = time(NULL); 41 ts.tv_nsec = 0; 44 sts = sem_timedwait(&mysemp, &ts);
|
| /external/perfetto/src/base/ |
| time_unittest.cc | 31 struct timespec ts = ToPosixTimespec(TimeMillis(0)); local 32 EXPECT_EQ(0, ts.tv_sec); 33 EXPECT_EQ(0, ts.tv_nsec); 36 struct timespec ts = ToPosixTimespec(TimeMillis(1)); local 37 EXPECT_EQ(0, ts.tv_sec); 38 EXPECT_EQ(1000000, ts.tv_nsec); 41 struct timespec ts = ToPosixTimespec(TimeMillis(12345)); local 42 EXPECT_EQ(12, ts.tv_sec); 43 EXPECT_EQ(345000000, ts.tv_nsec); 46 struct timespec ts = ToPosixTimespec(TimeMillis(1000000000001LL)) local [all...] |
| /hardware/qcom/gps/msm8909w_3100/utils/platform_lib_abstractions/loc_stub/src/ |
| loc_stub_time.cpp | 44 struct timespec ts; local 46 clock_gettime(CLOCK_BOOTTIME, &ts); 47 time_ms += (ts.tv_sec * 1000000000LL); /* Seconds to nanoseconds */ 48 time_ms += ts.tv_nsec; /* Add Nanoseconds */
|
| /hardware/qcom/gps/msm8998/utils/platform_lib_abstractions/loc_stub/src/ |
| loc_stub_time.cpp | 44 struct timespec ts; local 46 clock_gettime(CLOCK_BOOTTIME, &ts); 47 time_ms += (ts.tv_sec * 1000000000LL); /* Seconds to nanoseconds */ 48 time_ms += ts.tv_nsec; /* Add Nanoseconds */
|
| /prebuilts/go/darwin-x86/misc/cgo/testcshared/ |
| main2.c | 20 struct timespec ts; local 35 ts.tv_sec = 0; 36 ts.tv_nsec = 1000000; 37 nanosleep(&ts, NULL);
|
| /prebuilts/go/darwin-x86/src/runtime/cgo/ |
| gcc_util.c | 11 ThreadStart *ts; local 15 ts = malloc(sizeof *ts); 17 if(ts == nil) { 21 *ts = *arg; 23 _cgo_sys_thread_start(ts); /* OS-dependent half */
|
| /prebuilts/go/linux-x86/misc/cgo/testcshared/ |
| main2.c | 20 struct timespec ts; local 35 ts.tv_sec = 0; 36 ts.tv_nsec = 1000000; 37 nanosleep(&ts, NULL);
|
| /prebuilts/go/linux-x86/src/runtime/cgo/ |
| gcc_util.c | 11 ThreadStart *ts; local 15 ts = malloc(sizeof *ts); 17 if(ts == nil) { 21 *ts = *arg; 23 _cgo_sys_thread_start(ts); /* OS-dependent half */
|
| /libcore/luni/src/test/java/libcore/java/util/ |
| OldTreeSetTest.java | 31 TreeSet ts; field in class:OldTreeSetTest 74 ts.add(new Integer(-8)); 75 assertTrue("Failed to add Object", ts.contains(new Integer(-8))); 76 ts.add(objArray[0]); 77 assertTrue("Added existing element", ts.size() == objArray.length + 1); 84 ts.add("Wrong element"); 95 s.addAll(ts); 96 assertTrue("Incorrect size after add", s.size() == ts.size()); 97 Iterator i = ts.iterator(); 123 ts.first() == objArray[0]) [all...] |
| /cts/tests/app/app/src/android/app/stubs/ |
| LaunchpadTabActivity.java | 37 final TabHost.TabSpec ts = th.newTabSpec("1"); local 38 ts.setIndicator("One"); 39 ts.setContent(tabIntent); 40 th.addTab(ts);
|
| /device/google/marlin/camera/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...] |
| /external/autotest/client/site_tests/platform_TraceClockMonotonic/src/ |
| ftrace-clock-monotonic.c | 20 struct timespec ts; local 24 ret = clock_gettime(CLOCK_MONOTONIC, &ts); 33 usec = ts.tv_nsec / 1000; 35 name, ts.tv_sec, usec);
|
| /external/libxml2/python/tests/ |
| thread2.py | 60 ts = [] variable 64 ts.append(Thread(target=test,args=(0,))) 65 for t in ts: 67 for t in ts: 76 ts = [] variable 79 ts.append(Thread(target=test,args=(1,))) 80 for t in ts: 82 for t in ts:
|
| /external/linux-kselftest/android/include/sys/ |
| timeb.h | 15 struct timespec ts; local 17 int err = clock_gettime(CLOCK_REALTIME, &ts); 21 tp->time = ts.tv_sec; 22 tp->millitm = ts.tv_nsec / ONE_MS_IN_NS;
|
| /external/linux-kselftest/tools/testing/selftests/timers/ |
| leapcrash.c | 61 struct timespec ts; local 75 clock_gettime(CLOCK_REALTIME, &ts); 78 next_leap = ts.tv_sec;
|
| /external/ltp/android/include/sys/ |
| timeb.h | 15 struct timespec ts; local 17 int err = clock_gettime(CLOCK_REALTIME, &ts); 21 tp->time = ts.tv_sec; 22 tp->millitm = ts.tv_nsec / ONE_MS_IN_NS;
|
| /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/ |
| 11-1.c | 32 struct timespec ts = {.tv_sec = 1,.tv_nsec = 1 }; local 34 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts); 37 if (ts.tv_sec != 0 || ts.tv_nsec >= 100000000) { 38 printf("FAIL: ts.tv_sec: %ld, ts.tv_nsec: %ld\n", 39 ts.tv_sec, ts.tv_nsec);
|
| /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_detach/ |
| 2-2.c | 139 struct timespec ts; local 221 ret = clock_gettime(CLOCK_REALTIME, &ts); 226 ts.tv_sec += TIMEOUT; 229 ret = sem_timedwait(&(scenarii[sc].sem), &ts);
|