/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-test/src/ |
D | cam_semaphore_tests.cpp | 30 static inline void timespec_add_ms(timespec& ts, size_t ms) { in timespec_add_ms() argument 31 ts.tv_sec += ms / 1000; in timespec_add_ms() 32 ts.tv_nsec += (ms % 1000) * 1000000; in timespec_add_ms() 33 if (ts.tv_nsec >= NS_PER_S) { in timespec_add_ms() 34 ts.tv_sec++; in timespec_add_ms() 35 ts.tv_nsec -= NS_PER_S; in timespec_add_ms() 55 timespec ts; in TEST() local 56 ASSERT_EQ(0, clock_gettime(CLOCK_MONOTONIC, &ts)); in TEST() 57 timespec_add_ms(ts, 100); in TEST() 60 ASSERT_EQ(-1, cam_sem_timedwait(&sem, &ts)); in TEST() [all …]
|
/hardware/invensense/6515/libsensors_iio/software/simple_apps/playback/linux/ |
D | and_constructor.c | 112 inv_time_t ts; in inv_playback() local 147 r = fread(&ts, sizeof(ts), 1, inv_construct.file); in inv_playback() 148 inv_build_gyro(gyro, ts); in inv_playback() 150 gyro[0], gyro[1], gyro[2], ts); in inv_playback() 156 r = fread(&ts, sizeof(ts), 1, inv_construct.file); in inv_playback() 158 inv_build_accel(accel, 0, ts); in inv_playback() 160 buffer[0], buffer[1], buffer[2], ts); in inv_playback() 167 r = fread(&ts, sizeof(ts), 1, inv_construct.file); in inv_playback() 169 inv_build_compass(compass, 0, ts); in inv_playback() 171 buffer[0], buffer[1], buffer[2], ts); in inv_playback() [all …]
|
/hardware/qcom/sdm845/gps/msm8960/utils/ |
D | loc_timer.c | 49 struct timespec ts; in timer_thread() local 74 clock_gettime(CLOCK_REALTIME, &ts); in timer_thread() 76 ts.tv_sec += t.time_msec/1000; in timer_thread() 80 ts.tv_nsec += t.time_msec * 1000000; in timer_thread() 81 if(ts.tv_nsec > 999999999) { in timer_thread() 83 ts.tv_sec += 1; in timer_thread() 84 ts.tv_nsec -= 1000000000; in timer_thread() 87 __func__, __LINE__, (int)ts.tv_sec, (int)ts.tv_nsec); in timer_thread() 91 ret = pthread_cond_timedwait(&timer_cond, &timer_mutex, &ts); in timer_thread()
|
/hardware/qcom/gps/msm8960/utils/ |
D | loc_timer.c | 49 struct timespec ts; in timer_thread() local 74 clock_gettime(CLOCK_REALTIME, &ts); in timer_thread() 76 ts.tv_sec += t.time_msec/1000; in timer_thread() 80 ts.tv_nsec += t.time_msec * 1000000; in timer_thread() 81 if(ts.tv_nsec > 999999999) { in timer_thread() 83 ts.tv_sec += 1; in timer_thread() 84 ts.tv_nsec -= 1000000000; in timer_thread() 87 __func__, __LINE__, (int)ts.tv_sec, (int)ts.tv_nsec); in timer_thread() 91 ret = pthread_cond_timedwait(&timer_cond, &timer_mutex, &ts); in timer_thread()
|
/hardware/st/secure_element2/secure_element/1.0/esehal/src/ |
D | transport.c | 74 struct timespec ts = { sec, ns }; in ts_add_ns() local 76 return ts; in ts_add_ns() 114 struct timespec ts, ts_timeout; in block_recv() local 122 clock_gettime(CLOCK_MONOTONIC, &ts); in block_recv() 126 ts_timeout = ts_add_ns(ts, bwt * NSEC_PER_MSEC); in block_recv() 132 ts = ts_add_ns(ts, 2 * NSEC_PER_MSEC); in block_recv() 133 while (clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, &ts, NULL)) in block_recv() 141 if (ts_compare(&ts, &ts_timeout) >= 0) in block_recv()
|
/hardware/qcom/sdm845/gps/msm8994/utils/ |
D | loc_timer.c | 56 struct timespec ts; in timer_thread() local 63 clock_gettime(CLOCK_REALTIME, &ts); in timer_thread() 65 ts.tv_sec += t->time_msec/1000; in timer_thread() 69 ts.tv_nsec += t->time_msec * 1000000; in timer_thread() 70 if(ts.tv_nsec > 999999999) { in timer_thread() 72 ts.tv_sec += 1; in timer_thread() 73 ts.tv_nsec -= 1000000000; in timer_thread() 77 __func__, __LINE__, (int)ts.tv_sec, (int)ts.tv_nsec, in timer_thread() 83 ret = pthread_cond_timedwait(&t->timer_cond, &t->timer_mutex, &ts); in timer_thread()
|
/hardware/qcom/gps/msm8084/utils/ |
D | loc_timer.c | 56 struct timespec ts; in timer_thread() local 63 clock_gettime(CLOCK_REALTIME, &ts); in timer_thread() 65 ts.tv_sec += t->time_msec/1000; in timer_thread() 69 ts.tv_nsec += t->time_msec * 1000000; in timer_thread() 70 if(ts.tv_nsec > 999999999) { in timer_thread() 72 ts.tv_sec += 1; in timer_thread() 73 ts.tv_nsec -= 1000000000; in timer_thread() 77 __func__, __LINE__, (int)ts.tv_sec, (int)ts.tv_nsec, in timer_thread() 83 ret = pthread_cond_timedwait(&t->timer_cond, &t->timer_mutex, &ts); in timer_thread()
|
/hardware/qcom/gps/utils/ |
D | loc_timer.c | 56 struct timespec ts; in timer_thread() local 63 clock_gettime(CLOCK_REALTIME, &ts); in timer_thread() 65 ts.tv_sec += t->time_msec/1000; in timer_thread() 69 ts.tv_nsec += t->time_msec * 1000000; in timer_thread() 70 if(ts.tv_nsec > 999999999) { in timer_thread() 72 ts.tv_sec += 1; in timer_thread() 73 ts.tv_nsec -= 1000000000; in timer_thread() 77 __func__, __LINE__, (int)ts.tv_sec, (int)ts.tv_nsec, in timer_thread() 83 ret = pthread_cond_timedwait(&t->timer_cond, &t->timer_mutex, &ts); in timer_thread()
|
/hardware/qcom/sdm845/gps/utils/ |
D | loc_timer.c | 56 struct timespec ts; in timer_thread() local 63 clock_gettime(CLOCK_REALTIME, &ts); in timer_thread() 65 ts.tv_sec += t->time_msec/1000; in timer_thread() 69 ts.tv_nsec += t->time_msec * 1000000; in timer_thread() 70 if(ts.tv_nsec > 999999999) { in timer_thread() 72 ts.tv_sec += 1; in timer_thread() 73 ts.tv_nsec -= 1000000000; in timer_thread() 77 __func__, __LINE__, (int)ts.tv_sec, (int)ts.tv_nsec, in timer_thread() 83 ret = pthread_cond_timedwait(&t->timer_cond, &t->timer_mutex, &ts); in timer_thread()
|
/hardware/qcom/gps/msm8994/utils/ |
D | loc_timer.c | 56 struct timespec ts; in timer_thread() local 63 clock_gettime(CLOCK_REALTIME, &ts); in timer_thread() 65 ts.tv_sec += t->time_msec/1000; in timer_thread() 69 ts.tv_nsec += t->time_msec * 1000000; in timer_thread() 70 if(ts.tv_nsec > 999999999) { in timer_thread() 72 ts.tv_sec += 1; in timer_thread() 73 ts.tv_nsec -= 1000000000; in timer_thread() 77 __func__, __LINE__, (int)ts.tv_sec, (int)ts.tv_nsec, in timer_thread() 83 ret = pthread_cond_timedwait(&t->timer_cond, &t->timer_mutex, &ts); in timer_thread()
|
/hardware/qcom/sdm845/gps/msm8084/utils/ |
D | loc_timer.c | 56 struct timespec ts; in timer_thread() local 63 clock_gettime(CLOCK_REALTIME, &ts); in timer_thread() 65 ts.tv_sec += t->time_msec/1000; in timer_thread() 69 ts.tv_nsec += t->time_msec * 1000000; in timer_thread() 70 if(ts.tv_nsec > 999999999) { in timer_thread() 72 ts.tv_sec += 1; in timer_thread() 73 ts.tv_nsec -= 1000000000; in timer_thread() 77 __func__, __LINE__, (int)ts.tv_sec, (int)ts.tv_nsec, in timer_thread() 83 ret = pthread_cond_timedwait(&t->timer_cond, &t->timer_mutex, &ts); in timer_thread()
|
/hardware/libhardware/modules/camera/3_4/metadata/ |
D | boottime_state_delegate.cpp | 30 struct timespec ts; in GetValue() local 32 int res = clock_gettime(CLOCK_BOOTTIME, &ts); in GetValue() 39 *value = ts.tv_sec * 1000000000ULL + ts.tv_nsec; in GetValue()
|
/hardware/qcom/display/msm8996/sdm/include/utils/ |
D | locker.h | 143 struct timespec ts; in WaitFinite() local 146 ts.tv_sec = tv.tv_sec + ms/1000; in WaitFinite() 147 ts.tv_nsec = tv.tv_usec*1000 + (ms%1000)*1000000; in WaitFinite() 148 ts.tv_sec += ts.tv_nsec/1000000000L; in WaitFinite() 149 ts.tv_nsec += ts.tv_nsec%1000000000L; in WaitFinite() 150 return pthread_cond_timedwait(&condition_, &mutex_, &ts); in WaitFinite()
|
/hardware/qcom/gps/msm8909w_3100/utils/platform_lib_abstractions/loc_stub/src/ |
D | loc_stub_time.cpp | 44 struct timespec ts; in elapsedMicrosSinceBoot() local 46 clock_gettime(CLOCK_BOOTTIME, &ts); in elapsedMicrosSinceBoot() 47 time_ms += (ts.tv_sec * 1000000000LL); /* Seconds to nanoseconds */ in elapsedMicrosSinceBoot() 48 time_ms += ts.tv_nsec; /* Add Nanoseconds */ in elapsedMicrosSinceBoot()
|
/hardware/qcom/gps/msm8998/utils/platform_lib_abstractions/loc_stub/src/ |
D | loc_stub_time.cpp | 44 struct timespec ts; in elapsedMicrosSinceBoot() local 46 clock_gettime(CLOCK_BOOTTIME, &ts); in elapsedMicrosSinceBoot() 47 time_ms += (ts.tv_sec * 1000000000LL); /* Seconds to nanoseconds */ in elapsedMicrosSinceBoot() 48 time_ms += ts.tv_nsec; /* Add Nanoseconds */ in elapsedMicrosSinceBoot()
|
/hardware/qcom/sdm845/gps/msm8998/utils/platform_lib_abstractions/loc_stub/src/ |
D | loc_stub_time.cpp | 44 struct timespec ts; in elapsedMicrosSinceBoot() local 46 clock_gettime(CLOCK_BOOTTIME, &ts); in elapsedMicrosSinceBoot() 47 time_ms += (ts.tv_sec * 1000000000LL); /* Seconds to nanoseconds */ in elapsedMicrosSinceBoot() 48 time_ms += ts.tv_nsec; /* Add Nanoseconds */ in elapsedMicrosSinceBoot()
|
/hardware/libhardware/modules/radio/ |
D | radio_hw.c | 133 struct timespec ts; member 147 struct timespec ts; in send_command_l() local 163 clock_gettime(CLOCK_REALTIME, &ts); in send_command_l() 165 ts.tv_sec += delay_ms/1000; in send_command_l() 166 ts.tv_nsec += (delay_ms%1000) * 1000000; in send_command_l() 167 if (ts.tv_nsec >= 1000000000) { in send_command_l() 168 ts.tv_nsec -= 1000000000; in send_command_l() 169 ts.tv_sec += 1; in send_command_l() 171 cmd->ts = ts; in send_command_l() 216 struct timespec ts; in prepare_metadata() local [all …]
|
/hardware/qcom/sm8150/gps/pla/oe/ |
D | loc_pla.h | 42 struct timespec ts; in uptimeMillis() local 44 clock_gettime(CLOCK_BOOTTIME, &ts); in uptimeMillis() 45 time_ms += (ts.tv_sec * 1000000000LL); in uptimeMillis() 46 time_ms += ts.tv_nsec + 500000LL; in uptimeMillis()
|
/hardware/qcom/display/msm8998/sdm/include/utils/ |
D | locker.h | 143 struct timespec ts; in WaitFinite() local 146 ts.tv_sec = tv.tv_sec + ms/1000; in WaitFinite() 147 ts.tv_nsec = tv.tv_usec*1000 + (ms%1000)*1000000; in WaitFinite() 148 ts.tv_sec += ts.tv_nsec/1000000000L; in WaitFinite() 149 ts.tv_nsec %= 1000000000L; in WaitFinite() 150 return pthread_cond_timedwait(&condition_, &mutex_, &ts); in WaitFinite()
|
/hardware/qcom/sdm845/display/sdm/include/utils/ |
D | locker.h | 147 struct timespec ts; in WaitFinite() local 148 if (clock_gettime(CLOCK_MONOTONIC, &ts)) { in WaitFinite() 151 uint64_t ns = (uint64_t)ts.tv_nsec + (ms * 1000000L); in WaitFinite() 152 ts.tv_sec = ts.tv_sec + (time_t)(ns / 1000000000L); in WaitFinite() 153 ts.tv_nsec = ns % 1000000000L; in WaitFinite() 154 return pthread_cond_timedwait(&condition_, &mutex_, &ts); in WaitFinite()
|
/hardware/qcom/display/msm8909w_3100/sdm/include/utils/ |
D | locker.h | 143 struct timespec ts; in WaitFinite() local 146 ts.tv_sec = tv.tv_sec + ms/1000; in WaitFinite() 147 ts.tv_nsec = tv.tv_usec*1000 + (ms%1000)*1000000; in WaitFinite() 148 ts.tv_sec += ts.tv_nsec/1000000000L; in WaitFinite() 149 ts.tv_nsec %= 1000000000L; in WaitFinite() 150 return pthread_cond_timedwait(&condition_, &mutex_, &ts); in WaitFinite()
|
/hardware/qcom/display/msm8909/sdm/include/utils/ |
D | locker.h | 143 struct timespec ts; in WaitFinite() local 146 ts.tv_sec = tv.tv_sec + ms/1000; in WaitFinite() 147 ts.tv_nsec = tv.tv_usec*1000 + (ms%1000)*1000000; in WaitFinite() 148 ts.tv_sec += ts.tv_nsec/1000000000L; in WaitFinite() 149 ts.tv_nsec %= 1000000000L; in WaitFinite() 150 return pthread_cond_timedwait(&condition_, &mutex_, &ts); in WaitFinite()
|
/hardware/qcom/sm8150/display/sdm/include/utils/ |
D | locker.h | 155 struct timespec ts; in WaitFinite() local 156 if (clock_gettime(CLOCK_MONOTONIC, &ts)) { in WaitFinite() 159 uint64_t ns = (uint64_t)ts.tv_nsec + (ms * 1000000L); in WaitFinite() 160 ts.tv_sec = ts.tv_sec + (time_t)(ns / 1000000000L); in WaitFinite() 161 ts.tv_nsec = ns % 1000000000L; in WaitFinite() 162 return pthread_cond_timedwait(&condition_, &mutex_, &ts); in WaitFinite()
|
/hardware/interfaces/confirmationui/1.0/default/ |
D | PlatformSpecifics.cpp | 31 timespec ts; in now() local 32 if (!clock_gettime(CLOCK_BOOTTIME, &ts)) { in now() 33 return TimeStamp(ts.tv_sec * UINT64_C(1000) + ts.tv_nsec / UINT64_C(1000000)); in now()
|
/hardware/qcom/sm8150/media/mm-video-v4l2/vidc/common/inc/ |
D | vidc_debug.h | 145 struct timespec ts; in wait() local 153 clock_gettime(CLOCK_REALTIME, &ts); in wait() 154 ts.tv_sec += timeout_nsec / 1000000000; in wait() 155 ts.tv_nsec += timeout_nsec % 1000000000; in wait() 156 if (ts.tv_nsec >= 1000000000) { in wait() 157 ts.tv_nsec -= 1000000000; in wait() 158 ts.tv_sec += 1; in wait() 160 int ret = pthread_cond_timedwait(&condition, &mutex, &ts); in wait()
|