| /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/ |
| 4-3.c | 139 struct timespec ts; local 156 ret = clock_gettime(CLOCK_REALTIME, &ts); 161 ts.tv_nsec += TIMEOUT; 162 while (ts.tv_nsec >= 1000000000) { 163 ts.tv_nsec -= 1000000000; 164 ts.tv_sec += 1; 170 &ts); 196 struct timespec ts, tsrem; local 207 ts.tv_sec = 0; 208 ts.tv_nsec = INTERVAL [all...] |
| /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/ |
| 4-1.c | 207 struct timespec ts, tsrem; local 209 ts.tv_sec = 0; 218 ts.tv_sec = 0; 219 ts.tv_nsec = INTERVAL; 220 while (ts.tv_nsec >= 1000000000) { 221 ts.tv_nsec -= 1000000000; 222 ts.tv_sec += 1; 226 tsrem.tv_sec = ts.tv_sec; 227 tsrem.tv_nsec = ts.tv_nsec;
|
| /external/mesa3d/src/gallium/drivers/svga/ |
| svga_state_tss.c | 179 SVGA3dTextureState *ts; local 182 &ts, 189 ts[i].stage = queue.bind[i].unit; 190 ts[i].name = SVGA3D_TS_BIND_TEXTURE; 199 &ts[i].value, 262 SVGA3dTextureState *ts; local 265 &ts, 274 ts[i].stage = queue.bind[i].unit; 275 ts[i].name = SVGA3D_TS_BIND_TEXTURE; 280 &ts[i].value 310 SVGA3dTextureState ts[PIPE_MAX_SAMPLERS*SVGA3D_TS_MAX]; member in struct:ts_queue 408 SVGA3dTextureState *ts; local [all...] |
| /external/strace/tests/ |
| xstatx.c | 263 static const struct timespec ts[] = { local 276 if (futimens(0, ts)) {
|
| /external/strace/tests-m32/ |
| xstatx.c | 263 static const struct timespec ts[] = { local 276 if (futimens(0, ts)) {
|
| /external/strace/tests-mx32/ |
| xstatx.c | 263 static const struct timespec ts[] = { local 276 if (futimens(0, ts)) {
|
| /external/stressapptest/src/ |
| disk_blocks.cc | 148 struct timespec ts; local 151 ts.tv_sec = tp.tv_sec; 152 ts.tv_nsec = tp.tv_usec * 1000; 153 ts.tv_sec += 2; // Wait for 2 seconds. 157 result = pthread_cond_timedwait(&data_condition_, &data_mutex_, &ts);
|
| /frameworks/av/media/libcpustats/ |
| ThreadCpuUsage.cpp | 63 struct timespec ts; local 64 rc = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts); 68 long long delta = (ts.tv_sec - mPreviousTs.tv_sec) * 1000000000LL + 69 (ts.tv_nsec - mPreviousTs.tv_nsec); 72 mPreviousTs = ts; 105 struct timespec ts; local 107 rc = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts); 113 long long delta = (ts.tv_sec - mPreviousTs.tv_sec) * 1000000000LL + 114 (ts.tv_nsec - mPreviousTs.tv_nsec); 116 mPreviousTs = ts; 136 struct timespec ts; local [all...] |
| /frameworks/base/cmds/incidentd/src/ |
| incidentd_util.cpp | 118 timespec ts; local 119 clock_gettime(CLOCK_MONOTONIC, &ts); 120 return static_cast<uint64_t>(ts.tv_sec * NANOS_PER_SEC + ts.tv_nsec);
|
| /frameworks/wilhelm/src/ |
| locks.cpp | 34 void init_time_spec(timespec* ts, long delta) { 35 clock_gettime(CLOCK_REALTIME, ts); 36 ts->tv_nsec += delta; 38 if (ts->tv_nsec >= 1000000000L) { 39 ts->tv_sec++; 40 ts->tv_nsec -= 1000000000L; 55 timespec ts; local 56 memset(&ts, 0, sizeof(timespec)); 58 init_time_spec(&ts, nanoBackoffs[i]); 59 ok = pthread_mutex_timedlock(&thiz->mMutex, &ts); [all...] |
| /hardware/broadcom/libbt/src/ |
| upio.c | 215 struct itimerspec ts; local 220 ts.it_value.tv_sec = PROC_BTWRITE_TIMER_TIMEOUT_MS/1000; 221 ts.it_value.tv_nsec = 1000000*(PROC_BTWRITE_TIMER_TIMEOUT_MS%1000); 222 ts.it_interval.tv_sec = 0; 223 ts.it_interval.tv_nsec = 0; 227 memset(&ts, 0, sizeof(ts)); 230 if (timer_settime(lpm_proc_cb.timer_id, 0, &ts, 0) == 0) {
|
| /hardware/qcom/data/ipacfg-mgr/msm8998/ipacm/src/ |
| IPACM_Conntrack_NATApp.cpp | 534 uint32_t ts; local 539 ts = 0; 544 if(ipa_nat_query_timestamp(nat_table_hdl, cache[cnt].rule_hdl, &ts) < 0) 550 if(cache[cnt].timestamp == ts) 553 cache[cnt].timestamp, ts); 562 UpdateCTUdpTs(&cache[cnt], ts);
|
| /hardware/qcom/display/msm8909/sdm/include/utils/ |
| locker.h | 143 struct timespec ts; local 146 ts.tv_sec = tv.tv_sec + ms/1000; 147 ts.tv_nsec = tv.tv_usec*1000 + (ms%1000)*1000000; 148 ts.tv_sec += ts.tv_nsec/1000000000L; 149 ts.tv_nsec %= 1000000000L; 150 return pthread_cond_timedwait(&condition_, &mutex_, &ts);
|
| /hardware/qcom/display/msm8909w_3100/sdm/include/utils/ |
| locker.h | 143 struct timespec ts; local 146 ts.tv_sec = tv.tv_sec + ms/1000; 147 ts.tv_nsec = tv.tv_usec*1000 + (ms%1000)*1000000; 148 ts.tv_sec += ts.tv_nsec/1000000000L; 149 ts.tv_nsec %= 1000000000L; 150 return pthread_cond_timedwait(&condition_, &mutex_, &ts);
|
| /hardware/qcom/display/msm8996/sdm/include/utils/ |
| locker.h | 143 struct timespec ts; local 146 ts.tv_sec = tv.tv_sec + ms/1000; 147 ts.tv_nsec = tv.tv_usec*1000 + (ms%1000)*1000000; 148 ts.tv_sec += ts.tv_nsec/1000000000L; 149 ts.tv_nsec += ts.tv_nsec%1000000000L; 150 return pthread_cond_timedwait(&condition_, &mutex_, &ts);
|
| /hardware/qcom/display/msm8998/sdm/include/utils/ |
| locker.h | 143 struct timespec ts; local 146 ts.tv_sec = tv.tv_sec + ms/1000; 147 ts.tv_nsec = tv.tv_usec*1000 + (ms%1000)*1000000; 148 ts.tv_sec += ts.tv_nsec/1000000000L; 149 ts.tv_nsec %= 1000000000L; 150 return pthread_cond_timedwait(&condition_, &mutex_, &ts);
|
| /libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
| CodeSignerTest.java | 41 private Timestamp ts = new Timestamp(now, cpath); field in class:CodeSignerTest 48 new CodeSigner(null, ts); 72 CodeSigner cs = new CodeSigner(cpath, ts); 84 CodeSigner one = new CodeSigner(cpath, ts); 85 CodeSigner two = new CodeSigner(cpath, ts); 116 assertSame(new CodeSigner(cpath, ts).getTimestamp(), ts); 124 assertTrue(new CodeSigner(cpath, ts).toString().contains("")); 127 assertTrue(new CodeSigner(cpath, ts).toString().contains(ts.toString())) [all...] |
| /libcore/ojluni/src/test/java/nio/file/attribute/ |
| FileTimeTest.java | 181 ts(1L, DAYS, "1970-01-02T00:00:00Z"); 182 ts(1L, HOURS, "1970-01-01T01:00:00Z"); 183 ts(1L, MINUTES, "1970-01-01T00:01:00Z"); 184 ts(1L, SECONDS, "1970-01-01T00:00:01Z"); 185 ts(1L, MILLISECONDS, "1970-01-01T00:00:00.001Z"); 186 ts(1L, MICROSECONDS, "1970-01-01T00:00:00.000001Z"); 187 ts(1L, NANOSECONDS, "1970-01-01T00:00:00.000000001Z"); 188 ts(999999999L, NANOSECONDS, "1970-01-01T00:00:00.999999999Z"); 189 ts(9999999999L, NANOSECONDS, "1970-01-01T00:00:09.999999999Z"); 191 ts(-1L, DAYS, "1969-12-31T00:00:00Z") 211 ts(Instant.MIN, "-1000000001-01-01T00:00:00Z"); method 212 ts(Instant.MAX, "1000000000-12-31T23:59:59.999999999Z"); method 333 static void ts(long v, TimeUnit unit, String expected) { method in class:FileTimeTest 343 static void ts(Instant instant, String expected) { method in class:FileTimeTest [all...] |
| /packages/apps/Nfc/nci/jni/extns/pn54x/src/ |
| phNxpExtns.cpp | 581 struct timespec ts; local 583 clock_gettime(CLOCK_REALTIME, &ts); 584 ts.tv_sec += 0; 585 ts.tv_nsec += 100 * 1000 * 1000; // 100 milisec 586 if (ts.tv_nsec >= 1000 * 1000 * 1000) { 587 ts.tv_sec += 1; 588 ts.tv_nsec = ts.tv_nsec - (1000 * 1000 * 1000); 591 if (sem_timedwait(&gAuthCmdBuf.semPresenceCheck, &ts)) {
|
| /system/core/base/ |
| properties.cpp | 108 static void DurationToTimeSpec(timespec& ts, const std::chrono::milliseconds d) { 111 ts.tv_sec = std::min<std::chrono::seconds::rep>(s.count(), std::numeric_limits<time_t>::max()); 112 ts.tv_nsec = ns.count(); 118 static void UpdateTimeSpec(timespec& ts, std::chrono::milliseconds relative_timeout, 123 ts = { 0, 0 }; 126 DurationToTimeSpec(ts, remaining_timeout); 143 timespec ts; local 144 UpdateTimeSpec(ts, relative_timeout, start_time); 145 if (!__system_property_wait(nullptr, global_serial, &global_serial, &ts)) return nullptr; 160 timespec ts; local [all...] |
| /system/core/libstats/ |
| stats_event_list.c | 135 struct timespec ts; local 146 clock_gettime(CLOCK_REALTIME, &ts); 151 retval = (*statsdLoggerWrite.write)(&ts, vec, nr);
|
| /system/core/libutils/include/utils/ |
| Mutex.h | 194 const struct timespec ts = { local 198 return -pthread_mutex_timedlock(&mMutex, &ts);
|
| /bionic/libc/kernel/uapi/linux/ |
| ptp_clock.h | 57 struct ptp_clock_time ts[2 * PTP_MAX_SAMPLES + 1]; member in struct:ptp_sys_offset
|
| /bionic/libc/upstream-netbsd/lib/libc/isc/ |
| ev_timers.c | 168 struct timespec ts; local 170 ts.tv_sec = tv.tv_sec; 171 ts.tv_nsec = tv.tv_usec * 1000; 172 return (ts); 176 evTimeVal(struct timespec ts) { 179 tv.tv_sec = ts.tv_sec; 180 tv.tv_usec = (suseconds_t)(ts.tv_nsec / 1000);
|
| /bionic/tests/ |
| time_test.cpp | 300 itimerspec ts; local 301 ts.it_value.tv_sec = value_s; 302 ts.it_value.tv_nsec = value_ns; 303 ts.it_interval.tv_sec = interval_s; 304 ts.it_interval.tv_nsec = interval_ns; 305 ASSERT_EQ(0, timer_settime(t, 0, &ts, NULL)); 354 itimerspec ts; local 355 ts.it_value.tv_sec = 0; 356 ts.it_value.tv_nsec = 1; 357 ts.it_interval.tv_sec = 0 591 itimerspec ts; local 633 timespec ts; local 638 timespec ts; local 643 timespec ts; local 648 timespec ts; local 653 timespec ts; local 659 timespec ts; local 665 timespec ts; local 672 timespec ts; local 679 timespec ts; local 684 timespec ts; local 689 timespec ts; local 697 timespec ts = { -1, -1 }; local 722 timespec ts; local 729 timespec ts; local 749 timespec ts; local [all...] |