Searched refs:ts (Results 1 - 25 of 93) sorted by relevance

1234

/hardware/bsp/intel/peripheral/sensors/mraa/
H A DUtils.cpp21 struct timespec ts = {0, 0}; local
23 if (!clock_gettime(clock_id, &ts))
24 return 1000000000LL * ts.tv_sec + ts.tv_nsec;
/hardware/qcom/gps/msm8960/utils/
H A Dloc_timer.c49 struct timespec ts; local
74 clock_gettime(CLOCK_REALTIME, &ts);
76 ts.tv_sec += t.time_msec/1000;
80 ts.tv_nsec += t.time_msec * 1000000;
81 if(ts.tv_nsec > 999999999) {
83 ts.tv_sec += 1;
84 ts.tv_nsec -= 1000000000;
86 LOC_LOGD("%s:%d]: ts.tv_sec:%d; ts.tv_nsec:%d\n",
87 __func__, __LINE__, (int)ts
[all...]
H A Dlog_util.h141 char ts[32]; \
143 get_timestamp(ts, sizeof(ts)), ID, WHAT, __LINE__, VAL); \
/hardware/invensense/6515/libsensors_iio/software/simple_apps/playback/linux/
H A Dand_constructor.c112 inv_time_t ts; local
147 r = fread(&ts, sizeof(ts), 1, inv_construct.file);
148 inv_build_gyro(gyro, ts);
150 gyro[0], gyro[1], gyro[2], ts);
156 r = fread(&ts, sizeof(ts), 1, inv_construct.file);
158 inv_build_accel(accel, 0, ts);
160 buffer[0], buffer[1], buffer[2], ts);
167 r = fread(&ts, sizeo
[all...]
/hardware/qcom/display/msm8996/sdm/include/utils/
H A Dlocker.h143 struct timespec ts; local
146 ts.tv_sec = tv.tv_sec + ms/1000;
147 ts.tv_nsec = tv.tv_usec*1000 + (ms%1000)*1000000;
148 ts.tv_sec += ts.tv_nsec/1000000000L;
149 ts.tv_nsec += ts.tv_nsec%1000000000L;
150 return pthread_cond_timedwait(&condition_, &mutex_, &ts);
/hardware/qcom/gps/msm8084/utils/
H A Dloc_timer.c56 struct timespec ts; local
63 clock_gettime(CLOCK_REALTIME, &ts);
65 ts.tv_sec += t->time_msec/1000;
69 ts.tv_nsec += t->time_msec * 1000000;
70 if(ts.tv_nsec > 999999999) {
72 ts.tv_sec += 1;
73 ts.tv_nsec -= 1000000000;
75 LOC_LOGD("%s:%d]: ts.tv_sec:%d; ts.tv_nsec:%d\n"
77 __func__, __LINE__, (int)ts
[all...]
H A Dlog_util.h151 char ts[32]; \
153 get_timestamp(ts, sizeof(ts)), ID, WHAT, __LINE__, VAL); \
/hardware/qcom/gps/msm8994/utils/
H A Dloc_timer.c56 struct timespec ts; local
63 clock_gettime(CLOCK_REALTIME, &ts);
65 ts.tv_sec += t->time_msec/1000;
69 ts.tv_nsec += t->time_msec * 1000000;
70 if(ts.tv_nsec > 999999999) {
72 ts.tv_sec += 1;
73 ts.tv_nsec -= 1000000000;
75 LOC_LOGD("%s:%d]: ts.tv_sec:%d; ts.tv_nsec:%d\n"
77 __func__, __LINE__, (int)ts
[all...]
H A Dlog_util.h151 char ts[32]; \
153 get_timestamp(ts, sizeof(ts)), ID, WHAT, __LINE__, VAL); \
/hardware/qcom/gps/utils/
H A Dloc_timer.c56 struct timespec ts; local
63 clock_gettime(CLOCK_REALTIME, &ts);
65 ts.tv_sec += t->time_msec/1000;
69 ts.tv_nsec += t->time_msec * 1000000;
70 if(ts.tv_nsec > 999999999) {
72 ts.tv_sec += 1;
73 ts.tv_nsec -= 1000000000;
75 LOC_LOGD("%s:%d]: ts.tv_sec:%d; ts.tv_nsec:%d\n"
77 __func__, __LINE__, (int)ts
[all...]
H A Dlog_util.h151 char ts[32]; \
153 get_timestamp(ts, sizeof(ts)), ID, WHAT, __LINE__, VAL); \
/hardware/libhardware/modules/local_time/
H A Dlocal_time_hw.c37 struct timespec ts; local
41 ret = clock_gettime(CLOCK_MONOTONIC, &ts);
48 now = (((uint64_t)ts.tv_sec) * 1000000000ull) +
49 ((uint64_t)ts.tv_nsec);
71 struct timespec ts; local
/hardware/intel/common/utils/ituxd/src/com/intel/thermal/
H A DVirtualThermalZone.java84 ThermalSensor ts = getThermalSensorList().get(0);
85 ThermalSensorAttrib sa = mThermalSensorsAttribMap.get(ts.getSensorName());
115 ThermalSensor ts = list.get(0);
116 weightedTemp = getWeightedTemp(ts, ts.readSensorTemp());
122 for (ThermalSensor ts : list) {
123 if (ts != null && ts.getSensorActiveStatus()) {
124 weightedTemp = getWeightedTemp(ts, ts
207 getWeightedTemp(ThermalSensor ts) argument
211 getWeightedTemp(ThermalSensor ts, int rawSensorTemp) argument
[all...]
H A DThermalZone.java170 for (ThermalSensor ts : mThermalSensors) {
171 if (ts != null) {
172 s.append(ts.getSensorName());
437 for (ThermalSensor ts : mThermalSensors) {
438 if (ts != null && ts.getSensorActiveStatus()) {
/hardware/libhardware/modules/radio/
H A Dradio_hw.c118 struct timespec ts; member in struct:thread_command
132 struct timespec ts; local
148 clock_gettime(CLOCK_REALTIME, &ts);
150 ts.tv_sec += delay_ms/1000;
151 ts.tv_nsec += (delay_ms%1000) * 1000000;
152 if (ts.tv_nsec >= 1000000000) {
153 ts.tv_nsec -= 1000000000;
154 ts.tv_sec += 1;
156 cmd->ts = ts;
201 struct timespec ts; local
256 struct timespec ts = {0, 0}; local
[all...]
/hardware/broadcom/libbt/src/
H A Dupio.c212 struct itimerspec ts; local
217 ts.it_value.tv_sec = PROC_BTWRITE_TIMER_TIMEOUT_MS/1000;
218 ts.it_value.tv_nsec = 1000000*(PROC_BTWRITE_TIMER_TIMEOUT_MS%1000);
219 ts.it_interval.tv_sec = 0;
220 ts.it_interval.tv_nsec = 0;
224 memset(&ts, 0, sizeof(ts));
227 if (timer_settime(lpm_proc_cb.timer_id, 0, &ts, 0) == 0) {
/hardware/ti/omap3/omx/image/src/openmax_il/jpeg_dec/inc/
H A DOMX_JpegDec_Utils.h160 struct timespec ts; \
166 ts.tv_sec = sTime.tv_sec; \
167 ts.tv_sec += JPEGDEC_TIMEOUT; \
171 &ts); \
187 struct timespec ts; \
193 ts.tv_sec = sTime.tv_sec; \
194 ts.tv_sec += JPEGDEC_TIMEOUT; \
198 &ts); \
214 struct timespec ts; \
220 ts
[all...]
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/vdec/inc/
H A Dts_parser.h56 bool remove_time_stamp(OMX_TICKS ts, bool is_interlaced);
/hardware/qcom/gps/msm8909/utils/
H A Dlog_util.h153 char ts[32]; \
155 get_timestamp(ts, sizeof(ts)), ID, WHAT, __LINE__, VAL); \
/hardware/qcom/gps/msm8996/utils/
H A Dlog_util.h153 char ts[32]; \
155 get_timestamp(ts, sizeof(ts)), ID, WHAT, __LINE__, VAL); \
/hardware/ril/reference-ril/
H A Datchannel.c102 struct timespec ts; local
105 ts.tv_sec = (msec / 1000);
106 ts.tv_nsec = (msec % 1000) * 1000 * 1000;
109 err = nanosleep (&ts, &ts);
672 struct timespec ts; local
691 setTimespecRelative(&ts, timeoutMsec);
696 err = pthread_cond_timedwait(&s_commandcond, &s_commandmutex, &ts);
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/inc/
H A Dts_parser.h72 bool remove_time_stamp(OMX_TICKS ts, bool is_interlaced);
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/vdec/inc/
H A Dts_parser.h72 bool remove_time_stamp(OMX_TICKS ts, bool is_interlaced);
/hardware/invensense/6515/libsensors_iio/software/core/mllite/
H A Ddata_builder.c332 static int inv_raw_sensor_timestamp(int sensor_number, inv_time_t *ts) argument
337 *ts = sensors.quat.timestamp;
343 *ts = sensors.gyro.timestamp;
349 *ts = sensors.accel.timestamp;
355 *ts = sensors.compass.timestamp;
361 *ts = 0;
373 int inv_get_9_axis_timestamp(long sample_rate_us, inv_time_t *ts) argument
381 *ts = sensors.quat.timestamp;
399 return inv_raw_sensor_timestamp(idx, ts);
414 return inv_raw_sensor_timestamp(idx, ts);
438 inv_get_6_axis_compass_accel_timestamp(long sample_rate_us, inv_time_t *ts) argument
464 inv_get_6_axis_gyro_accel_timestamp(long sample_rate_us, inv_time_t *ts) argument
[all...]
/hardware/bsp/intel/peripheral/light/mraa/
H A Dlights.c136 struct timespec ts = {0, 0}; local
138 if (!clock_gettime(CLOCK_MONOTONIC, &ts)) {
139 return ONE_S_IN_NS * ts.tv_sec + ts.tv_nsec;

Completed in 2810 milliseconds

1234