/system/core/liblog/ |
D | log_time.cpp | 39 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 …]
|
D | logprint.c | 466 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 …]
|
D | pmsg_writer.c | 150 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()
|
D | pmsg_reader.c | 187 || (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/ |
D | timetest.c | 23 ((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/ |
D | log_read.h | 34 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/ |
D | testUtil.c | 52 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/ |
D | echo_reference.c | 123 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/ |
D | Condition.h | 112 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/ |
D | stopwatch.cpp | 63 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/ |
D | suspend_stress.cpp | 37 (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/ |
D | libc_test.cpp | 44 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()
|
D | liblog_benchmark.cpp | 136 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/core/libutils/ |
D | Timers.cpp | 37 t.tv_sec = t.tv_nsec = 0; in systemTime() 39 return nsecs_t(t.tv_sec)*1000000000LL + t.tv_nsec; in systemTime()
|
D | SystemClock.cpp | 132 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/update_engine/common/ |
D | clock.cc | 39 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/extras/tests/pftest/ |
D | pftest.c | 40 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/ |
D | LogTimes.cpp | 47 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/ |
D | shill_time.cc | 75 tv->tv_usec = ts.tv_nsec / 1000; in GetTimeMonotonic() 86 tv->tv_usec = ts.tv_nsec / 1000; in GetTimeBoottime()
|
/system/bt/osi/src/ |
D | time.c | 28 return (timespec.tv_sec * 1000) + (timespec.tv_nsec / 1000000); in time_get_os_boottime_ms()
|
/system/extras/tests/memtest/ |
D | fptest.cpp | 41 t.tv_sec = t.tv_nsec = 0; in system_time() 43 return nsecs_t(t.tv_sec)*1000000000LL + t.tv_nsec; in system_time()
|
D | memtest.cpp | 33 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/ |
D | refresh.c | 22 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/ |
D | time_test.cpp | 66 delay.tv_nsec = 1000 * 1000 * (TEST_TIME_SLEEP_MS % 1000); in TEST_F()
|
/system/extras/memory_replay/ |
D | Action.cpp | 34 t.tv_sec = t.tv_nsec = 0; in nanotime() 36 return static_cast<uint64_t>(t.tv_sec) * 1000000000LL + t.tv_nsec; in nanotime()
|