Home
last modified time | relevance | path

Searched refs:tv_sec (Results 1 – 25 of 59) sorted by relevance

123

/device/google/cuttlefish/common/libs/time/
Dmonotonic_time.h30 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/
Dril_event.cpp40 (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/
Dril_event.cpp40 (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/
Dril_event.cpp40 (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/
Dxf-osal.h123 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/
Dxf-osal.h117 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/
Dlibrilutils.c23 return now.tv_sec * 1000000000LL + now.tv_nsec; in ril_nano_time()
/device/linaro/dragonboard/qcom/qrtr/src/
Dutil.c12 return (uint64_t)tv.tv_sec*1000 + tv.tv_usec/1000; in time_ms()
Dlookup.c173 tv.tv_sec = 1; in main()
/device/generic/goldfish/network/netmgr/
Dpoller.cpp38 ts->tv_sec = 0; in calculateTimeout()
49 ts->tv_sec = seconds.count(); in calculateTimeout()
/device/generic/goldfish/network/wifi_forwarder/
Dpoller.cpp37 ts->tv_sec = 0; in calculateTimeout()
48 ts->tv_sec = seconds.count(); in calculateTimeout()
/device/generic/goldfish-opengl/android-emu/android/base/threads/
DAndroidWorkPool.cpp114 ++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/
Dhwcomposer.cpp109 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/
Dtimer.cpp24 return static_cast<uint64_t>(time.tv_sec) * 1000u + in now()
Ddhcpclient.cpp226 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/
Dxf-trace.c47 return (u32)((tv.tv_sec % 100) * 1000000 + tv.tv_usec); in xf_timenow()
Dxf-fio.c95 (timeout ? tv.tv_sec = timeout / 1000, tv.tv_usec = (timeout % 1000) * 1000 : 0); in xf_ipc_wait()
/device/generic/goldfish/radio/ril/
Datchannel.c97 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/
Datchannel.c96 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/
Daudio_hw.c287 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/
Daudio_hw.c500 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/
Daudio_hw.c503 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/
Dpower_hikey.c153 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/
Dasync_fd_watcher.cc128 timeout.tv_sec = timeout_ms_.count() / 1000; in ThreadRoutine()
/device/generic/goldfish-opengl/android-emu/android/base/synchronization/
DAndroidConditionVariable.h148 abstime.tv_sec = waitUntilUs / 1000000LL; in timedWait()

123