/device/google/cuttlefish/common/libs/time/ |
D | monotonic_time.h | 31 ts_.tv_nsec = nanoseconds; in TimeDifference() 46 truncated_ns_ = ts_.tv_nsec; in TimeDifference() 61 int64_t tv_nsec = static_cast<int64_t>(ts_.tv_nsec) * factor; variable 62 rval.ts_.tv_sec += (tv_nsec / kNanosecondsPerSecond); 63 rval.ts_.tv_nsec = tv_nsec % kNanosecondsPerSecond; 69 ret.tv_nsec = (ts_.tv_nsec + other.ts_.tv_nsec) % 1000000000; 71 (ts_.tv_nsec + other.ts_.tv_nsec) / 1000000000; 79 ret.tv_nsec = (1000000000 + ts_.tv_nsec - other.ts_.tv_nsec) % 1000000000; 81 (ts_.tv_nsec < other.ts_.tv_nsec ? 1 : 0); 87 (ts_.tv_sec == other.ts_.tv_sec && ts_.tv_nsec < other.ts_.tv_nsec); [all …]
|
/device/linaro/hikey/hifi/xaf/host-apf/include/os/android/ |
D | xf-osal.h | 124 ts.tv_nsec = tv.tv_usec * 1000 + (timeout % 1000) * 1000000; 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 | 118 ts.tv_nsec = tv.tv_usec * 1000 + (timeout % 1000) * 1000000; 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/generic/goldfish/network/netmgr/ |
D | poller.cpp | 39 ts->tv_nsec = 0; in calculateTimeout() 50 ts->tv_nsec = nanos.count(); in calculateTimeout()
|
/device/generic/goldfish/network/wifi_forwarder/ |
D | poller.cpp | 38 ts->tv_nsec = 0; in calculateTimeout() 49 ts->tv_nsec = nanos.count(); in calculateTimeout()
|
/device/generic/goldfish/dhcp/client/ |
D | timer.cpp | 25 static_cast<uint64_t>(time.tv_nsec / 1000000u); in now()
|
/device/generic/goldfish/radio/ril/ |
D | atchannel.c | 98 p_ts->tv_nsec = (tv.tv_usec + (msec % 1000) * 1000L ) * 1000L; in setTimespecRelative() 100 if (p_ts->tv_nsec >= NS_PER_S) { in setTimespecRelative() 102 p_ts->tv_nsec -= NS_PER_S; in setTimespecRelative() 112 ts.tv_nsec = (msec % 1000) * 1000 * 1000; in sleepMsec()
|
/device/google/cuttlefish/guest/hals/ril/reference-ril/ |
D | atchannel.c | 97 p_ts->tv_nsec = (tv.tv_usec + (msec % 1000) * 1000L ) * 1000L; in setTimespecRelative() 99 if (p_ts->tv_nsec >= NS_PER_S) { in setTimespecRelative() 101 p_ts->tv_nsec -= NS_PER_S; in setTimespecRelative() 111 ts.tv_nsec = (msec % 1000) * 1000 * 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() 298 out->underrun_time.tv_nsec) / 1000; in get_current_output_position() 356 current_time.tv_nsec) / 1000; 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() 714 in->standby_exit_time.tv_nsec) / 1000; in get_current_input_position() 941 *time = (current_time.tv_sec * 1000000000LL + current_time.tv_nsec); in in_get_capture_position() 1005 out->underrun_time.tv_nsec = 0; in adev_open_output_stream() 1215 in->standby_exit_time.tv_nsec = 0; in adev_open_input_stream()
|
/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() 115 rt.tv_nsec = timestamp % static_cast<int32_t>(1e9); in hwc_vsync_thread() 532 dev->vsync_data.vsync_base_timestamp = int64_t(rt.tv_sec) * 1e9 + rt.tv_nsec; in cvd_hwc_open()
|
D | stats_keeper.cpp | 60 ts->tv_nsec = td.subseconds_in_ns(); in TimeDifferenceToTimeSpec()
|
/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() 511 out->underrun_time.tv_nsec) / 1000; in get_current_output_position() 553 current_time.tv_nsec) / 1000; 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() 946 in->standby_exit_time.tv_nsec) / 1000; in get_current_input_position() 1163 *time = (current_time.tv_sec * 1000000000LL + current_time.tv_nsec); in in_get_capture_position() 1245 out->underrun_time.tv_nsec = 0; in adev_open_output_stream() 1484 in->standby_exit_time.tv_nsec = 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() 514 out->underrun_time.tv_nsec) / 1000; in get_current_output_position() 556 current_time.tv_nsec) / 1000; 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() 949 in->standby_exit_time.tv_nsec) / 1000; in get_current_input_position() 1166 *time = (current_time.tv_sec * 1000000000LL + current_time.tv_nsec); in in_get_capture_position() 1248 out->underrun_time.tv_nsec = 0; in adev_open_output_stream() 1487 in->standby_exit_time.tv_nsec = 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() 160 ts.tv_nsec = ns%NSEC_PER_SEC; in nanosleep_ns()
|
/device/generic/goldfish-opengl/android-emu/android/base/synchronization/ |
D | AndroidConditionVariable.h | 149 abstime.tv_nsec = (waitUntilUs % 1000000LL) * 1000; in timedWait()
|
/device/amlogic/yukawa/hal/audio/ |
D | audio_hw.c | 73 ts->tv_nsec += adj_nsec; in timestamp_adjust() 74 while (ts->tv_nsec > 1E9L) { in timestamp_adjust() 76 ts->tv_nsec -= 1E9L; in timestamp_adjust() 78 if (ts->tv_nsec < 0) { in timestamp_adjust() 80 ts->tv_nsec += 1E9L; in timestamp_adjust() 92 info->timestamp.tv_nsec = 0; in get_pcm_timestamp()
|
/device/google/cuttlefish/host/commands/secure_env/ |
D | soft_gatekeeper.h | 95 return (time.tv_sec * 1000) + (time.tv_nsec / 1000 / 1000); in GetMillisecondsSinceBoot()
|
/device/google/coral-kernel/sm8150/kernel-headers/drm/ |
D | msm_drm.h | 35 __s64 tv_nsec; member
|
/device/google/bonito/sdm710/kernel-headers/drm/ |
D | msm_drm.h | 34 __s64 tv_nsec; member
|
/device/google/bonito/sdm710/original-kernel-headers/drm/ |
D | msm_drm.h | 61 __s64 tv_nsec; /* nanoseconds */ member
|
/device/google/crosshatch/sdm845/kernel-headers/drm/ |
D | msm_drm.h | 34 __s64 tv_nsec; member
|
/device/google/crosshatch/sdm845/original-kernel-headers/drm/ |
D | msm_drm.h | 61 __s64 tv_nsec; /* nanoseconds */ member
|
/device/google/coral-kernel/sm8150/original-kernel-headers/drm/ |
D | msm_drm.h | 68 __s64 tv_nsec; /* nanoseconds */ member
|
/device/google/contexthub/util/stm32_flash/ |
D | flash.c | 172 ts.tv_nsec = 200000000; in main()
|