Home
last modified time | relevance | path

Searched refs:tv_nsec (Results 1 – 25 of 58) sorted by relevance

123

/system/core/liblog/
Dlog_time.cpp39 tv_nsec = 0; in strptime()
109 tv_nsec = 0; in strptime()
113 tv_nsec = tv_nsec + (*ret - '0') * mul; in strptime()
132 tv_nsec = 0; in strptime()
143 if (this->tv_nsec < (unsigned long int)T.tv_nsec) { in operator -=()
145 this->tv_nsec = NS_PER_SEC + this->tv_nsec - T.tv_nsec; in operator -=()
147 this->tv_nsec -= T.tv_nsec; in operator -=()
155 this->tv_nsec += (unsigned long int)T.tv_nsec; in operator +=()
156 if (this->tv_nsec >= NS_PER_SEC) { in operator +=()
157 this->tv_nsec -= NS_PER_SEC; in operator +=()
[all …]
Dlogprint.c466 entry->tv_nsec = buf->nsec; in android_log_processLogBuffer()
764 entry->tv_nsec = buf->nsec; in android_log_processBinaryLogBuffer()
985 t->tv_nsec = 0; in readSeconds()
988 t->tv_nsec += (*p - '0') * multiplier; in readSeconds()
996 left->tv_nsec += right->tv_nsec; in sumTimespec()
998 if (left->tv_nsec >= (long)NS_PER_SEC) { in sumTimespec()
999 left->tv_nsec -= NS_PER_SEC; in sumTimespec()
1009 result->tv_nsec = left->tv_nsec - right->tv_nsec; in subTimespec()
1011 if (result->tv_nsec < 0) { in subTimespec()
1012 result->tv_nsec += NS_PER_SEC; in subTimespec()
[all …]
Dpmsg_writer.c150 header.realtime.tv_nsec = ts->tv_nsec; in pmsgWrite()
259 for (ts.tv_nsec = 0, length = len; in __android_log_pmsg_file_write()
261 ts.tv_nsec += ANDROID_LOG_PMSG_FILE_SEQUENCE) { in __android_log_pmsg_file_write()
265 if ((ts.tv_nsec / ANDROID_LOG_PMSG_FILE_SEQUENCE) >= in __android_log_pmsg_file_write()
Dpmsg_reader.c187 || (buf.l.realtime.tv_nsec >= NS_PER_SEC)) { in pmsgRead()
196 ((!logger_list->start.tv_sec && !logger_list->start.tv_nsec) || in pmsgRead()
199 (logger_list->start.tv_nsec <= in pmsgRead()
200 buf.l.realtime.tv_nsec)))) && in pmsgRead()
224 log_msg->entry_v4.nsec = buf.l.realtime.tv_nsec; in pmsgRead()
/system/extras/tests/timetest/
Dtimetest.c23 ((long long) t.tv_nsec); in nanotime()
30 r.tv_nsec = a.tv_nsec - b.tv_nsec; in ts_sub()
31 if(r.tv_nsec < 0) { in ts_sub()
33 r.tv_nsec += 1000 * 1000 * 1000; in ts_sub()
35 if(r.tv_sec < 0 && r.tv_nsec > 0) { in ts_sub()
37 r.tv_nsec -= 1000 * 1000 * 1000; in ts_sub()
44 if(a.tv_sec < b.tv_sec || (a.tv_sec == b.tv_sec && a.tv_nsec < b.tv_nsec)) in ts_min()
52 if(a.tv_sec < b.tv_sec || (a.tv_sec == b.tv_sec && a.tv_nsec < b.tv_nsec)) in ts_max()
66 dtmin.tv_nsec = 0; in main()
68 dtminp.tv_nsec = 0; in main()
[all …]
/system/core/include/log/
Dlog_read.h34 uint32_t tv_nsec; member
42 tv_nsec = T.tv_nsec; in log_time()
47 tv_nsec = nsec; in log_time()
58 tv_nsec = T.tv_nsec; in log_time()
64 tv_nsec = c[4] | (c[5] << 8) | (c[6] << 16) | (c[7] << 24); in log_time()
71 && (tv_nsec == static_cast<uint32_t>(T.tv_nsec));
81 && (tv_nsec < static_cast<uint32_t>(T.tv_nsec)));
91 && (tv_nsec > static_cast<uint32_t>(T.tv_nsec)));
113 return (tv_sec == T.tv_sec) && (tv_nsec == T.tv_nsec);
122 || ((tv_sec == T.tv_sec) && (tv_nsec < T.tv_nsec));
[all …]
/system/extras/tests/lib/testUtil/
DtestUtil.c52 rv += (double) val->tv_nsec / nSecsPerSec; in ts2double()
74 rv.tv_nsec = (amt - rv.tv_sec) * nSecsPerSec; in double2ts()
76 while ((unsigned) rv.tv_nsec >= nSecsPerSec) { in double2ts()
77 rv.tv_nsec -= nSecsPerSec; in double2ts()
110 assert(first->tv_nsec >= 0 && first->tv_nsec < nSecsPerSec); in tsDelta()
111 assert(second->tv_nsec >= 0 && second->tv_nsec < nSecsPerSec); in tsDelta()
113 if (second->tv_nsec >= first->tv_nsec) { in tsDelta()
114 rv.tv_nsec = second->tv_nsec - first->tv_nsec; in tsDelta()
116 rv.tv_nsec = (second->tv_nsec + nSecsPerSec) - first->tv_nsec; in tsDelta()
/system/media/audio_utils/
Decho_reference.c123 er->wr_render_time.tv_nsec = 0; in echo_reference_reset_l()
155 (int)buffer->time_stamp.tv_nsec, er->playback_delay); in echo_reference_write()
160 if ((buffer->time_stamp.tv_sec == 0) && (buffer->time_stamp.tv_nsec == 0) && in echo_reference_write()
161 (er->wr_render_time.tv_sec == 0) && (er->wr_render_time.tv_nsec == 0)) { in echo_reference_write()
178 er->wr_render_time.tv_nsec = buffer->time_stamp.tv_nsec; in echo_reference_write()
279 (int)er->wr_render_time.tv_sec, (int)er->wr_render_time.tv_nsec, er->playback_delay); in echo_reference_write()
340 ts.tv_nsec += (timeoutMs%1000) * 1000000; in echo_reference_read()
341 if (ts.tv_nsec >= 1000000000) { in echo_reference_read()
342 ts.tv_nsec -= 1000000000; in echo_reference_read()
361 if ((er->wr_render_time.tv_sec == 0 && er->wr_render_time.tv_nsec == 0) || in echo_reference_read()
[all …]
/system/core/include/utils/
DCondition.h112 ts.tv_nsec = reltime%1000000000; in waitRelative()
123 ts.tv_nsec= t.tv_usec*1000; in waitRelative()
126 ts.tv_nsec+= reltime%1000000000; in waitRelative()
127 if (ts.tv_nsec >= 1000000000) { in waitRelative()
128 ts.tv_nsec -= 1000000000; in waitRelative()
/system/extras/tests/sdcard/
Dstopwatch.cpp63 mStart.tv_nsec = 0; in StopWatch()
137 long nano = mData[i * 2].mTime.tv_nsec - mStart.tv_nsec; in sprint()
173 long nano = mData[i + 1].mTime.tv_nsec - mData[i].mTime.tv_nsec; in processSamples()
211 double val = double(time.tv_nsec) / 1.0e9 + double(time.tv_sec); in timespecToDouble()
/system/extras/tests/suspend_stress/
Dsuspend_stress.cpp37 (a->tv_nsec - b->tv_nsec); in timediff_ns()
183 actual_time.tv_nsec / NSEC_PER_MSEC, in main()
188 actual_time.tv_nsec / NSEC_PER_MSEC, in main()
/system/core/liblog/tests/
Dlibc_test.cpp44 int value = ts.tv_nsec; in TEST()
106 __libc_fatal_no_abort("%u.%09u", (unsigned)ts.tv_sec, (unsigned)ts.tv_nsec); in TEST()
107 snprintf(b, sizeof(b),"%u.%09u", (unsigned)ts.tv_sec, (unsigned)ts.tv_nsec); in TEST()
Dliblog_benchmark.cpp136 header.realtime.tv_nsec = ts.tv_nsec; in BM_pmsg_short()
223 buffer->header.realtime.tv_nsec = ts.tv_nsec; in BM_pmsg_short_aligned()
299 buffer->header.realtime.tv_nsec = ts.tv_nsec; in BM_pmsg_short_unaligned1()
375 buffer->header.realtime.tv_nsec = ts.tv_nsec; in BM_pmsg_long_aligned()
448 buffer->header.realtime.tv_nsec = ts.tv_nsec; in BM_pmsg_long_unaligned1()
/system/update_engine/common/
Dclock.cc39 now_tv.tv_usec = now_ts.tv_nsec/base::Time::kNanosecondsPerMicrosecond; in GetMonotonicTime()
54 now_tv.tv_usec = now_ts.tv_nsec/base::Time::kNanosecondsPerMicrosecond; in GetBootTime()
/system/core/libutils/
DTimers.cpp37 t.tv_sec = t.tv_nsec = 0; in systemTime()
39 return nsecs_t(t.tv_sec)*1000000000LL + t.tv_nsec; in systemTime()
DSystemClock.cpp132 timestamp = seconds_to_nanoseconds(ts.tv_sec) + ts.tv_nsec; in elapsedRealtimeNano()
140 timestamp = seconds_to_nanoseconds(ts.tv_sec) + ts.tv_nsec; in elapsedRealtimeNano()
/system/extras/tests/pftest/
Dpftest.c40 t.tv_sec = t.tv_nsec = 0; in stop_watch()
42 return t.tv_sec*1000000000ULL + t.tv_nsec; in stop_watch()
/system/core/logd/
DLogTimes.cpp47 mTimeout.tv_nsec = timeout % NS_PER_SEC; in LogTimeEntry()
139 if (me->mTimeout.tv_sec || me->mTimeout.tv_nsec) { in threadStart()
144 me->mTimeout.tv_nsec = 0; in threadStart()
174 if (!me->mTimeout.tv_sec && !me->mTimeout.tv_nsec) { in threadStart()
/system/connectivity/shill/net/
Dshill_time.cc75 tv->tv_usec = ts.tv_nsec / 1000; in GetTimeMonotonic()
86 tv->tv_usec = ts.tv_nsec / 1000; in GetTimeBoottime()
/system/bt/osi/src/
Dtime.c28 return (timespec.tv_sec * 1000) + (timespec.tv_nsec / 1000000); in time_get_os_boottime_ms()
/system/extras/tests/memtest/
Dfptest.cpp41 t.tv_sec = t.tv_nsec = 0; in system_time()
43 return nsecs_t(t.tv_sec)*1000000000LL + t.tv_nsec; in system_time()
Dmemtest.cpp33 t.tv_sec = t.tv_nsec = 0; in system_time()
35 return nsecs_t(t.tv_sec)*1000000000LL + t.tv_nsec; in system_time()
/system/extras/tests/framebuffer/
Drefresh.c22 t.tv_sec = t.tv_nsec = 0; in systemTime()
24 return (int64_t)(t.tv_sec)*1000000000LL + t.tv_nsec; in systemTime()
/system/bt/osi/test/
Dtime_test.cpp66 delay.tv_nsec = 1000 * 1000 * (TEST_TIME_SLEEP_MS % 1000); in TEST_F()
/system/extras/memory_replay/
DAction.cpp34 t.tv_sec = t.tv_nsec = 0; in nanotime()
36 return static_cast<uint64_t>(t.tv_sec) * 1000000000LL + t.tv_nsec; in nanotime()

123