/system/core/liblog/ |
D | log_time.cpp | 38 tv_nsec = 0; in strptime() 108 tv_nsec = 0; in strptime() 112 tv_nsec = tv_nsec + (*ret - '0') * mul; in strptime() 131 tv_nsec = 0; in strptime() 142 if (this->tv_nsec < (unsigned long int)T.tv_nsec) { in operator -=() 144 this->tv_nsec = NS_PER_SEC + this->tv_nsec - T.tv_nsec; in operator -=() 146 this->tv_nsec -= T.tv_nsec; in operator -=() 154 this->tv_nsec += (unsigned long int)T.tv_nsec; in operator +=() 155 if (this->tv_nsec >= NS_PER_SEC) { in operator +=() 156 this->tv_nsec -= NS_PER_SEC; in operator +=() [all …]
|
D | log_read.c | 542 logger_list->start.tv_nsec = 0; in android_logger_list_alloc() 668 || (buf.l.realtime.tv_nsec >= NS_PER_SEC)) { in android_logger_list_read_pstore() 681 if ((logger_list->start.tv_sec || logger_list->start.tv_nsec) in android_logger_list_read_pstore() 684 && (logger_list->start.tv_nsec > buf.l.realtime.tv_nsec)))) { in android_logger_list_read_pstore() 712 log_msg->entry_v3.nsec = buf.l.realtime.tv_nsec; in android_logger_list_read_pstore() 799 if (logger_list->start.tv_sec || logger_list->start.tv_nsec) { in android_logger_list_read() 802 logger_list->start.tv_nsec); in android_logger_list_read()
|
/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 …]
|
D | logprint.h | 49 long tv_nsec; member
|
/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 | 46 int value = ts.tv_nsec; in TEST() 108 __libc_fatal_no_abort("%u.%09u", (unsigned)ts.tv_sec, (unsigned)ts.tv_nsec); in TEST() 109 snprintf(b, sizeof(b),"%u.%09u", (unsigned)ts.tv_sec, (unsigned)ts.tv_nsec); in TEST()
|
D | benchmark_main.cpp | 54 t.tv_sec = t.tv_nsec = 0; in NanoTime() 56 return static_cast<uint64_t>(t.tv_sec) * 1000000000ULL + t.tv_nsec; in NanoTime()
|
/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 | 133 timestamp = seconds_to_nanoseconds(ts.tv_sec) + ts.tv_nsec; in elapsedRealtimeNano() 141 timestamp = seconds_to_nanoseconds(ts.tv_sec) + ts.tv_nsec; in elapsedRealtimeNano()
|
/system/bt/gki/ulinux/ |
D | gki_ulinux.c | 68 return (timespec.tv_sec * 1000) + (timespec.tv_nsec / 1000000); in GKI_get_os_tick_count() 75 delay.tv_nsec = 1000 * 1000 * (timeout_ms % 1000); in GKI_delay()
|
/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/bt/test/suite/support/ |
D | hal.c | 100 new_value.it_value.tv_nsec = (delay_millis % 1000) * 1000 * 1000; in set_wake_alarm() 102 new_value.it_interval.tv_nsec = 0; in set_wake_alarm()
|
/system/bt/osi/src/ |
D | alarm.c | 257 return (ts.tv_sec * 1000LL) + (ts.tv_nsec / 1000000LL); in now() 314 wakeup_time.it_value.tv_nsec = (next->deadline % 1000) * 1000000LL; in reschedule_root_alarm() 321 timer_set = wakeup_time.it_value.tv_sec != 0 || wakeup_time.it_value.tv_nsec != 0; in reschedule_root_alarm() 341 if (time_to_expire.it_value.tv_sec == 0 && time_to_expire.it_value.tv_nsec == 0) { in reschedule_root_alarm()
|
/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 | 34 t.tv_sec = t.tv_nsec = 0; in system_time() 36 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/core/toolbox/ |
D | uptime.c | 71 float up_time = up_timespec.tv_sec + up_timespec.tv_nsec / 1e9; in uptime_main()
|
/system/bt/osi/test/ |
D | AlarmTestHarness.cpp | 67 wakeup_time.it_value.tv_nsec = (delay_millis % 1000) * 1000000LL; in set_wake_alarm()
|
/system/core/healthd/ |
D | healthd.cpp | 164 itval.it_interval.tv_nsec = 0; in wakealarm_set_interval() 166 itval.it_value.tv_nsec = 0; in wakealarm_set_interval()
|
/system/extras/tests/bionic/libc/common/ |
D | test_pthread_rwlock.c | 78 return (double)ts->tv_sec + ts->tv_nsec/1e9; in time_now() 88 ts.tv_nsec = (long)((delay - ts.tv_sec)*1e9); in time_sleep()
|