/device/google/cuttlefish/common/libs/time/ |
D | monotonic_time.h | 30 ts_.tv_sec = seconds; in TimeDifference() 55 rval.ts_.tv_sec = ts_.tv_sec * factor; 62 rval.ts_.tv_sec += (tv_nsec / kNanosecondsPerSecond); 70 ret.tv_sec = (ts_.tv_sec + other.ts_.tv_sec) + 80 ret.tv_sec = (ts_.tv_sec - other.ts_.tv_sec) - 86 return ts_.tv_sec < other.ts_.tv_sec || 87 (ts_.tv_sec == other.ts_.tv_sec && ts_.tv_nsec < other.ts_.tv_nsec); 91 return ts_.tv_sec * (kNanosecondsPerSecond / scale_) + ts_.tv_nsec / scale_; in count() 95 return ts_.tv_sec; in seconds() 108 struct timespec rval = { ts_.tv_sec, subseconds_in_ns()}; in GetTS() [all …]
|
/device/generic/goldfish/radio/libril/ |
D | ril_event.cpp | 40 (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; \ 43 (vvp)->tv_sec++; \ 51 ((a)->tv_sec == (b)->tv_sec \ 53 : (a)->tv_sec op (b)->tv_sec) 59 (res)->tv_sec = (a)->tv_sec - (b)->tv_sec; \ 63 (res)->tv_sec -= 1; \ 86 dlog(" timeout = %ds + %dus", (int)ev->timeout.tv_sec, (int)ev->timeout.tv_usec); in dump_event() 100 tv->tv_sec = ts.tv_sec; in getNow() 169 dlog("~~~~ Looking for timers <= %ds + %dus ~~~~", (int)now.tv_sec, (int)now.tv_usec); in processTimeouts() 228 dlog("~~~~ now = %ds + %dus ~~~~", (int)now.tv_sec, (int)now.tv_usec); in calcNextTimeout() [all …]
|
/device/google/cuttlefish/guest/hals/ril/libril/ |
D | ril_event.cpp | 40 (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; \ 43 (vvp)->tv_sec++; \ 51 ((a)->tv_sec == (b)->tv_sec \ 53 : (a)->tv_sec op (b)->tv_sec) 59 (res)->tv_sec = (a)->tv_sec - (b)->tv_sec; \ 63 (res)->tv_sec -= 1; \ 86 dlog(" timeout = %ds + %dus", (int)ev->timeout.tv_sec, (int)ev->timeout.tv_usec); in dump_event() 100 tv->tv_sec = ts.tv_sec; in getNow() 169 dlog("~~~~ Looking for timers <= %ds + %dus ~~~~", (int)now.tv_sec, (int)now.tv_usec); in processTimeouts() 228 dlog("~~~~ now = %ds + %dus ~~~~", (int)now.tv_sec, (int)now.tv_usec); in calcNextTimeout() [all …]
|
/device/google/cuttlefish/guest/hals/ril/reference-libril/ |
D | ril_event.cpp | 40 (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; \ 43 (vvp)->tv_sec++; \ 51 ((a)->tv_sec == (b)->tv_sec \ 53 : (a)->tv_sec op (b)->tv_sec) 59 (res)->tv_sec = (a)->tv_sec - (b)->tv_sec; \ 63 (res)->tv_sec -= 1; \ 86 dlog(" timeout = %ds + %dus", (int)ev->timeout.tv_sec, (int)ev->timeout.tv_usec); in dump_event() 100 tv->tv_sec = ts.tv_sec; in getNow() 169 dlog("~~~~ Looking for timers <= %ds + %dus ~~~~", (int)now.tv_sec, (int)now.tv_usec); in processTimeouts() 228 dlog("~~~~ now = %ds + %dus ~~~~", (int)now.tv_sec, (int)now.tv_usec); in calcNextTimeout() [all …]
|
/device/linaro/hikey/hifi/xaf/host-apf/include/os/android/ |
D | xf-osal.h | 123 ts.tv_sec = tv.tv_sec + timeout / 1000; in __xf_wait() 125 (ts.tv_nsec >= 1000000000 ? ts.tv_sec++, ts.tv_nsec -= 1000000000 : 0); in __xf_wait()
|
/device/linaro/hikey/hifi/xaf/host-apf/include/os/xos/ |
D | xf-osal.h | 117 ts.tv_sec = tv.tv_sec + timeout / 1000; 119 (ts.tv_nsec >= 1000000000 ? ts.tv_sec++, ts.tv_nsec -= 1000000000 : 0);
|
/device/generic/goldfish/radio/librilutils/ |
D | librilutils.c | 23 return now.tv_sec * 1000000000LL + now.tv_nsec; in ril_nano_time()
|
/device/linaro/dragonboard/qcom/qrtr/src/ |
D | util.c | 12 return (uint64_t)tv.tv_sec*1000 + tv.tv_usec/1000; in time_ms()
|
D | lookup.c | 173 tv.tv_sec = 1; in main()
|
/device/generic/goldfish/network/netmgr/ |
D | poller.cpp | 38 ts->tv_sec = 0; in calculateTimeout() 49 ts->tv_sec = seconds.count(); in calculateTimeout()
|
/device/generic/goldfish/network/wifi_forwarder/ |
D | poller.cpp | 37 ts->tv_sec = 0; in calculateTimeout() 48 ts->tv_sec = seconds.count(); in calculateTimeout()
|
/device/generic/goldfish-opengl/android-emu/android/base/threads/ |
D | AndroidWorkPool.cpp | 114 ++deadlineUs.tv_sec; in getDeadline() 117 deadlineNs.tv_sec = deadlineUs.tv_sec; in getDeadline() 125 return (uint64_t)(tv.tv_sec * 1000000LL + tv.tv_usec); in currTimeUs()
|
/device/google/cuttlefish/guest/hals/hwcomposer/common/ |
D | hwcomposer.cpp | 109 int64_t timestamp = int64_t(rt.tv_sec) * 1e9 + rt.tv_nsec; in hwc_vsync_thread() 114 rt.tv_sec = timestamp / 1e9; in hwc_vsync_thread() 140 if (rt.tv_sec - last_logged > log_interval) { in hwc_vsync_thread() 142 last_logged = rt.tv_sec; in hwc_vsync_thread() 532 dev->vsync_data.vsync_base_timestamp = int64_t(rt.tv_sec) * 1e9 + rt.tv_nsec; in cvd_hwc_open()
|
/device/generic/goldfish/dhcp/client/ |
D | timer.cpp | 24 return static_cast<uint64_t>(time.tv_sec) * 1000u + in now()
|
D | dhcpclient.cpp | 226 ts.tv_sec = timeout / 1000; in waitAndReceive() 227 ts.tv_nsec = (timeout - ts.tv_sec * 1000) * 1000000; in waitAndReceive()
|
/device/linaro/hikey/hifi/xaf/host-apf/proxy/ |
D | xf-trace.c | 47 return (u32)((tv.tv_sec % 100) * 1000000 + tv.tv_usec); in xf_timenow()
|
D | xf-fio.c | 95 (timeout ? tv.tv_sec = timeout / 1000, tv.tv_usec = (timeout % 1000) * 1000 : 0); in xf_ipc_wait()
|
/device/generic/goldfish/radio/ril/ |
D | atchannel.c | 97 p_ts->tv_sec = tv.tv_sec + (msec / 1000); in setTimespecRelative() 101 p_ts->tv_sec++; in setTimespecRelative() 111 ts.tv_sec = (msec / 1000); in sleepMsec()
|
/device/google/cuttlefish/guest/hals/ril/reference-ril/ |
D | atchannel.c | 96 p_ts->tv_sec = tv.tv_sec + (msec / 1000); in setTimespecRelative() 100 p_ts->tv_sec++; in setTimespecRelative() 110 ts.tv_sec = (msec / 1000); in sleepMsec()
|
/device/generic/car/emulator/audio/driver/ |
D | audio_hw.c | 287 struct timespec curtime = { .tv_sec = 0, .tv_nsec = 0 }; in get_current_output_position() 289 const int64_t now_us = (curtime.tv_sec * 1000000000LL + curtime.tv_nsec) / 1000; in get_current_output_position() 297 const int64_t first_us = (out->underrun_time.tv_sec * 1000000000LL + in get_current_output_position() 355 const uint64_t now_us = (current_time.tv_sec * 1000000000LL + in out_write() 703 struct timespec t = { .tv_sec = 0, .tv_nsec = 0 }; in get_current_input_position() 705 const int64_t now_us = (t.tv_sec * 1000000000LL + t.tv_nsec) / 1000; in get_current_input_position() 713 const int64_t first_us = (in->standby_exit_time.tv_sec * 1000000000LL + in get_current_input_position() 941 *time = (current_time.tv_sec * 1000000000LL + current_time.tv_nsec); in in_get_capture_position() 1004 out->underrun_time.tv_sec = 0; in adev_open_output_stream() 1214 in->standby_exit_time.tv_sec = 0; in adev_open_input_stream()
|
/device/linaro/dragonboard/audio/ |
D | audio_hw.c | 500 struct timespec curtime = { .tv_sec = 0, .tv_nsec = 0 }; in get_current_output_position() 502 const int64_t now_us = (curtime.tv_sec * 1000000000LL + curtime.tv_nsec) / 1000; in get_current_output_position() 510 const int64_t first_us = (out->underrun_time.tv_sec * 1000000000LL + in get_current_output_position() 552 const uint64_t now_us = (current_time.tv_sec * 1000000000LL + in out_write() 935 struct timespec t = { .tv_sec = 0, .tv_nsec = 0 }; in get_current_input_position() 937 const int64_t now_us = (t.tv_sec * 1000000000LL + t.tv_nsec) / 1000; in get_current_input_position() 945 const int64_t first_us = (in->standby_exit_time.tv_sec * 1000000000LL + in get_current_input_position() 1163 *time = (current_time.tv_sec * 1000000000LL + current_time.tv_nsec); in in_get_capture_position() 1244 out->underrun_time.tv_sec = 0; in adev_open_output_stream() 1483 in->standby_exit_time.tv_sec = 0; in adev_open_input_stream()
|
/device/google/cuttlefish/guest/hals/audio/ |
D | audio_hw.c | 503 struct timespec curtime = { .tv_sec = 0, .tv_nsec = 0 }; in get_current_output_position() 505 const int64_t now_us = (curtime.tv_sec * 1000000000LL + curtime.tv_nsec) / 1000; in get_current_output_position() 513 const int64_t first_us = (out->underrun_time.tv_sec * 1000000000LL + in get_current_output_position() 555 const uint64_t now_us = (current_time.tv_sec * 1000000000LL + in out_write() 938 struct timespec t = { .tv_sec = 0, .tv_nsec = 0 }; in get_current_input_position() 940 const int64_t now_us = (t.tv_sec * 1000000000LL + t.tv_nsec) / 1000; in get_current_input_position() 948 const int64_t first_us = (in->standby_exit_time.tv_sec * 1000000000LL + in get_current_input_position() 1166 *time = (current_time.tv_sec * 1000000000LL + current_time.tv_nsec); in in_get_capture_position() 1247 out->underrun_time.tv_sec = 0; in adev_open_output_stream() 1486 in->standby_exit_time.tv_sec = 0; in adev_open_input_stream()
|
/device/linaro/hikey/power/ |
D | power_hikey.c | 153 return ts.tv_sec * NSEC_PER_SEC + ts.tv_nsec; in gettime_ns() 159 ts.tv_sec = ns/NSEC_PER_SEC; in nanosleep_ns()
|
/device/linaro/hikey/bluetooth/ |
D | async_fd_watcher.cc | 128 timeout.tv_sec = timeout_ms_.count() / 1000; in ThreadRoutine()
|
/device/generic/goldfish-opengl/android-emu/android/base/synchronization/ |
D | AndroidConditionVariable.h | 148 abstime.tv_sec = waitUntilUs / 1000000LL; in timedWait()
|