/system/core/include/log/ |
D | log_read.h | 33 uint32_t tv_sec; // good to Feb 5 2106 41 tv_sec = T.tv_sec; in log_time() 46 tv_sec = sec; in log_time() 57 tv_sec = T.tv_sec; in log_time() 63 tv_sec = c[0] | (c[1] << 8) | (c[2] << 16) | (c[3] << 24); in log_time() 70 return (tv_sec == static_cast<uint32_t>(T.tv_sec)) 79 return (tv_sec < static_cast<uint32_t>(T.tv_sec)) 80 || ((tv_sec == static_cast<uint32_t>(T.tv_sec)) 89 return (tv_sec > static_cast<uint32_t>(T.tv_sec)) 90 || ((tv_sec == static_cast<uint32_t>(T.tv_sec)) [all …]
|
/system/extras/tests/timetest/ |
D | timetest.c | 22 return (((long long) t.tv_sec) * 1000000000LL) + in nanotime() 29 r.tv_sec = a.tv_sec - b.tv_sec; in ts_sub() 32 r.tv_sec--; in ts_sub() 35 if(r.tv_sec < 0 && r.tv_nsec > 0) { in ts_sub() 36 r.tv_sec++; 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() 65 dtmin.tv_sec = INT_MAX; in main() 67 dtminp.tv_sec = INT_MAX; in main() 69 dtmax.tv_sec = 0; in main() [all …]
|
/system/core/liblog/ |
D | log_time.cpp | 34 now = tv_sec; in strptime() 37 tv_sec = now; in strptime() 75 tv_sec = 0; in strptime() 77 tv_sec = tv_sec * 10 + *ret - '0'; in strptime() 80 now = tv_sec; in strptime() 121 tv_sec = mktime(ptm); in strptime() 130 tv_sec = now; in strptime() 143 --this->tv_sec; in operator -=() 148 this->tv_sec -= T.tv_sec; in operator -=() 157 ++this->tv_sec; in operator +=() [all …]
|
D | log_read.c | 541 logger_list->start.tv_sec = 0; in android_logger_list_alloc() 681 if ((logger_list->start.tv_sec || logger_list->start.tv_nsec) in android_logger_list_read_pstore() 682 && ((logger_list->start.tv_sec > buf.l.realtime.tv_sec) in android_logger_list_read_pstore() 683 || ((logger_list->start.tv_sec == buf.l.realtime.tv_sec) in android_logger_list_read_pstore() 711 log_msg->entry_v3.sec = buf.l.realtime.tv_sec; in android_logger_list_read_pstore() 799 if (logger_list->start.tv_sec || logger_list->start.tv_nsec) { in android_logger_list_read() 801 logger_list->start.tv_sec, in android_logger_list_read()
|
/system/extras/tests/lib/testUtil/ |
D | testUtil.c | 51 rv = val->tv_sec; in ts2double() 62 rv = val->tv_sec; in tv2double() 73 rv.tv_sec = floor(amt); in double2ts() 74 rv.tv_nsec = (amt - rv.tv_sec) * nSecsPerSec; in double2ts() 78 rv.tv_sec++; in double2ts() 89 rv.tv_sec = floor(amt); in double2tv() 90 rv.tv_usec = (amt - rv.tv_sec) * uSecsPerSec; in double2tv() 94 rv.tv_sec++; in double2tv() 112 rv.tv_sec = second->tv_sec - first->tv_sec; in tsDelta() 117 rv.tv_sec--; in tsDelta() [all …]
|
/system/extras/tests/icachetest/ |
D | icache_main.c | 22 t = (tm.tv_sec*1000000LL+tm.tv_usec) - (now.tv_sec*1000000LL+now.tv_usec); in main() 29 t = (tm.tv_sec*1000000LL+tm.tv_usec) - (now.tv_sec*1000000LL+now.tv_usec); in main()
|
/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() 48 t.tv_sec = t.tv_usec = 0; in systemTime() 50 return nsecs_t(t.tv_sec)*1000000000LL + nsecs_t(t.tv_usec)*1000LL; 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/core/include/utils/ |
D | Condition.h | 111 ts.tv_sec = reltime/1000000000; in waitRelative() 122 ts.tv_sec = t.tv_sec; in waitRelative() 125 ts.tv_sec += reltime/1000000000; in waitRelative() 129 ts.tv_sec += 1; in waitRelative()
|
/system/media/audio_utils/ |
D | echo_reference.c | 122 er->wr_render_time.tv_sec = 0; in echo_reference_reset_l() 154 (int)buffer->time_stamp.tv_sec, 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() 177 er->wr_render_time.tv_sec = buffer->time_stamp.tv_sec; 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() 339 ts.tv_sec += timeoutMs/1000; in echo_reference_read() 343 ts.tv_sec += 1; in echo_reference_read() 361 if ((er->wr_render_time.tv_sec == 0 && er->wr_render_time.tv_nsec == 0) || in echo_reference_read() 362 (buffer->time_stamp.tv_sec == 0 && buffer->time_stamp.tv_nsec == 0)) { in echo_reference_read() [all …]
|
/system/extras/tests/suspend_stress/ |
D | suspend_stress.cpp | 36 return ((long long)(a->tv_sec - b->tv_sec)) * NSEC_PER_SEC + in timediff_ns() 101 delay.it_value.tv_sec = alarm_time; in main() 134 expected_time.tv_sec += alarm_time; in main() 182 (long long)actual_time.tv_sec, in main() 187 (long long)actual_time.tv_sec, in main()
|
/system/extras/tests/ext4/ |
D | rand_emmc_perf.c | 78 fprintf(full_stats, "%lld\n", (t.tv_sec * 1000000LL) + t.tv_usec); in print_stats() 87 max_usecs = (max.tv_sec * 1000000LL) + max.tv_usec; in print_stats() 88 total_usecs = (sum.tv_sec * 1000000LL) + sum.tv_usec; in print_stats() 101 x = (t.tv_sec * 1000000LL) + t.tv_usec; /* Convert to long long */ in print_stats() 153 res.tv_sec = 0; in perf_test() 155 while (res.tv_sec < TEST_LEN) { in perf_test() 179 msecs = (res.tv_sec * 1000) + (res.tv_usec / 1000); in perf_test()
|
/system/extras/tests/sdcard/ |
D | stopwatch.cpp | 62 mStart.tv_sec = 0; in StopWatch() 136 long second = mData[i * 2].mTime.tv_sec - mStart.tv_sec; in sprint() 172 long second = mData[i + 1].mTime.tv_sec - mData[i].mTime.tv_sec; in processSamples() 211 double val = double(time.tv_nsec) / 1.0e9 + double(time.tv_sec); in timespecToDouble()
|
/system/extras/tests/schedtest/ |
D | schedtest.c | 37 long usec = (tv2.tv_sec - tv1.tv_sec) * 1000000 + tv2.tv_usec - tv1.tv_usec; in main()
|
/system/security/keystore/ |
D | keystore_keymaster_enforcement.h | 35 if (err || tp.tv_sec < 0) in get_current_time() 37 return static_cast<uint32_t>(tp.tv_sec); in get_current_time()
|
/system/bt/gki/ulinux/ |
D | gki_ulinux.c | 68 return (timespec.tv_sec * 1000) + (timespec.tv_nsec / 1000000); in GKI_get_os_tick_count() 74 delay.tv_sec = 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/extras/tests/pagingtest/ |
D | mmap_test.c | 41 printf("mmap: %llu us\n", total_time_mmap.tv_sec * USEC_PER_SEC + total_time_mmap.tv_usec); in mmap_test() 42 … printf("munmap: %llu us\n", total_time_munmap.tv_sec * USEC_PER_SEC + total_time_munmap.tv_usec); in mmap_test()
|
D | pageinout_test.c | 79 (1024 * 1024 * (total_time_in.tv_sec * USEC_PER_SEC + total_time_in.tv_usec))); in pageinout_test() 81 (1024 * 1024 * (total_time_out.tv_sec * USEC_PER_SEC + total_time_out.tv_usec))); in pageinout_test()
|
/system/core/toolbox/ |
D | uptime.c | 71 float up_time = up_timespec.tv_sec + up_timespec.tv_nsec / 1e9; in uptime_main() 78 int elapsed = elapsed_timespec.tv_sec; in uptime_main()
|
/system/core/liblog/tests/ |
D | libc_test.cpp | 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()
|
/system/bt/test/suite/support/ |
D | hal.c | 99 new_value.it_value.tv_sec = delay_millis / 1000; in set_wake_alarm() 101 new_value.it_interval.tv_sec = 0; in set_wake_alarm()
|
/system/bt/btif/src/ |
D | btif_hf.c | 317 conn_time_delta.tv_sec = now.tv_sec; in btif_hf_latest_connected_idx() 323 if ((now.tv_sec - btif_hf_cb[i].connected_timestamp.tv_sec) in btif_hf_latest_connected_idx() 324 < conn_time_delta.tv_sec) in btif_hf_latest_connected_idx() 326 conn_time_delta.tv_sec = in btif_hf_latest_connected_idx() 327 now.tv_sec - btif_hf_cb[i].connected_timestamp.tv_sec; in btif_hf_latest_connected_idx() 446 btif_hf_cb[idx].connected_timestamp.tv_sec = 0; in btif_hf_upstreams_evt() 1506 if (now.tv_sec < btif_hf_cb[0].call_end_timestamp.tv_sec + in btif_hf_call_terminated_recently() 1513 btif_hf_cb[0].call_end_timestamp.tv_sec = 0; in btif_hf_call_terminated_recently()
|
D | btif_debug.c | 46 return (tv.tv_sec * 1000000LL) + tv.tv_usec; in btif_debug_ts()
|
/system/bt/osi/src/ |
D | alarm.c | 265 return (ts.tv_sec * 1000LL) + (ts.tv_nsec / 1000000LL); in now() 321 wakeup_time.it_value.tv_sec = (next->deadline / 1000); in reschedule_root_alarm() 329 timer_set = wakeup_time.it_value.tv_sec != 0 || wakeup_time.it_value.tv_nsec != 0; in reschedule_root_alarm() 349 if (time_to_expire.it_value.tv_sec == 0 && time_to_expire.it_value.tv_nsec == 0) { in reschedule_root_alarm()
|