/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/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/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/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/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/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/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/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/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/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/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/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/sdm845/media/mm-video-v4l2/vidc/common/inc/ |
D | vidc_debug.h | 161 struct timespec ts; in wait() local 169 clock_gettime(CLOCK_REALTIME, &ts); in wait() 170 ts.tv_sec += timeout_nsec / 1000000000; in wait() 171 ts.tv_nsec += timeout_nsec % 1000000000; in wait() 172 if (ts.tv_nsec >= 1000000000) { in wait() 173 ts.tv_nsec -= 1000000000; in wait() 174 ts.tv_sec += 1; in wait() 176 int ret = pthread_cond_timedwait(&condition, &mutex, &ts); in wait()
|
/hardware/interfaces/audio/common/all-versions/test/utility/include/utility/ |
D | ReturnIn.h | 36 ReturnIn(ResultStore&... ts) : results(ts...) {} in ReturnIn() argument 64 detail::ReturnIn<ResultStore...> returnIn(ResultStore&... ts) { in returnIn() argument 65 return {ts...}; in returnIn()
|
/hardware/broadcom/libbt/src/ |
D | upio.c | 215 struct itimerspec ts; in upio_start_stop_timer() local 220 ts.it_value.tv_sec = PROC_BTWRITE_TIMER_TIMEOUT_MS/1000; in upio_start_stop_timer() 221 ts.it_value.tv_nsec = 1000000*(PROC_BTWRITE_TIMER_TIMEOUT_MS%1000); in upio_start_stop_timer() 222 ts.it_interval.tv_sec = 0; in upio_start_stop_timer() 223 ts.it_interval.tv_nsec = 0; in upio_start_stop_timer() 227 memset(&ts, 0, sizeof(ts)); in upio_start_stop_timer() 230 if (timer_settime(lpm_proc_cb.timer_id, 0, &ts, 0) == 0) { in upio_start_stop_timer()
|
/hardware/libhardware/modules/local_time/ |
D | local_time_hw.c | 40 struct timespec ts; in ltdev_get_local_time() local 44 ret = clock_gettime(CLOCK_MONOTONIC, &ts); in ltdev_get_local_time() 51 now = (((uint64_t)ts.tv_sec) * 1000000000ull) + in ltdev_get_local_time() 52 ((uint64_t)ts.tv_nsec); in ltdev_get_local_time()
|