Home
last modified time | relevance | path

Searched refs:NS_PER_S (Results 1 – 8 of 8) sorted by relevance

/aosp12/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-test/src/
H A Dcam_semaphore_tests.cpp25 #define NS_PER_S 1000000000 macro
33 if (ts.tv_nsec >= NS_PER_S) { in timespec_add_ms()
35 ts.tv_nsec -= NS_PER_S; in timespec_add_ms()
43 return (int64_t)(ts_end.tv_sec - 1 - ts_start.tv_sec) * NS_PER_S + in time_diff()
44 ts_end.tv_nsec + NS_PER_S - ts_start.tv_nsec; in time_diff()
/aosp12/bionic/libc/private/
H A Dbionic_time_conversions.h56 if (ts->tv_nsec < 0 || ts->tv_nsec >= NS_PER_S) { in check_timespec()
70 if (abs_ts.tv_nsec >= NS_PER_S) { in absolute_timespec_from_timespec()
71 abs_ts.tv_nsec -= NS_PER_S; in absolute_timespec_from_timespec()
H A Dbionic_constants.h20 #define NS_PER_S 1000000000 macro
/aosp12/bionic/libc/bionic/
H A Dbionic_time_conversions.cpp65 if (monotonic_time.tv_nsec >= NS_PER_S) { in monotonic_time_from_realtime_time()
66 monotonic_time.tv_nsec -= NS_PER_S; in monotonic_time_from_realtime_time()
69 monotonic_time.tv_nsec += NS_PER_S; in monotonic_time_from_realtime_time()
H A Dclock.cpp39 return (ts.tv_sec * CLOCKS_PER_SEC) + (ts.tv_nsec / (NS_PER_S / CLOCKS_PER_SEC)); in clock()
/aosp12/bionic/tests/
H A Dsemaphore_test.cpp102 if (ts.tv_nsec >= NS_PER_S) { in timespec_add_ms()
104 ts.tv_nsec -= NS_PER_S; in timespec_add_ms()
127 ts.tv_nsec = NS_PER_S; in sem_timedwait_helper()
132 ts.tv_nsec = NS_PER_S - 1; in sem_timedwait_helper()
H A Dpthread_test.cpp1090 ts.tv_nsec = NS_PER_S; in pthread_rwlock_wakeup_timeout_helper()
1092 ts.tv_nsec = NS_PER_S - 1; in pthread_rwlock_wakeup_timeout_helper()
1654 ts.tv_nsec = NS_PER_S; in pthread_cond_timedwait_timeout_helper()
1656 ts.tv_nsec = NS_PER_S - 1; in pthread_cond_timedwait_timeout_helper()
2350 ts.tv_nsec = NS_PER_S; in pthread_mutex_timedlock_helper()
2352 ts.tv_nsec = NS_PER_S - 1; in pthread_mutex_timedlock_helper()
/aosp12/hardware/ril/reference-ril/
H A Datchannel.c89 #define NS_PER_S 1000000000 macro
99 if (p_ts->tv_nsec >= NS_PER_S) { in setTimespecRelative()
101 p_ts->tv_nsec -= NS_PER_S; in setTimespecRelative()