Home
last modified time | relevance | path

Searched refs:tv (Results 1 – 25 of 64) sorted by relevance

123

/hardware/samsung_slsi/exynos5/mobicore/daemon/Common/
DConnection.cpp111 struct timeval tv; in readData() local
120 tv.tv_sec = timeout / 1000; in readData()
121 tv.tv_usec = (timeout - (tv.tv_sec * 1000)) * 1000; in readData()
122 ptv = &tv; in readData()
181 struct timeval tv; in waitData() local
189 tv.tv_sec = timeout / 1000; in waitData()
190 tv.tv_usec = (timeout - (tv.tv_sec * 1000)) * 1000; in waitData()
191 ptv = &tv; in waitData()
/hardware/ril/libril/
Dril_event.cpp96 static void getNow(struct timeval * tv) in getNow() argument
101 tv->tv_sec = ts.tv_sec; in getNow()
102 tv->tv_usec = ts.tv_nsec/1000; in getNow()
104 gettimeofday(tv, NULL); in getNow()
216 static int calcNextTimeout(struct timeval * tv) in calcNextTimeout() argument
233 timersub(&tev->timeout, &now, tv); in calcNextTimeout()
236 tv->tv_sec = tv->tv_usec = 0; in calcNextTimeout()
287 void ril_timer_add(struct ril_event * ev, struct timeval * tv) in ril_timer_add() argument
293 if (tv != NULL) { in ril_timer_add()
300 timeradd(&now, tv, &ev->timeout); in ril_timer_add()
[all …]
/hardware/qcom/gps/platform_lib_abstractions/
Dplatform_lib_macros.h36 struct timeval tv; \
39 gettimeofday(&tv, &tz); \
40 hh = tv.tv_sec/3600%24; \
41 mm = (tv.tv_sec%3600)/60; \
42 ss = tv.tv_sec%60; \
43 fprintf(stdout,"%02d:%02d:%02d.%06ld]" format "\n", hh, mm, ss, tv.tv_usec,##x); \
/hardware/qcom/gps/msm8960/platform_lib_abstractions/
Dplatform_lib_macros.h36 struct timeval tv; \
39 gettimeofday(&tv, &tz); \
40 hh = tv.tv_sec/3600%24; \
41 mm = (tv.tv_sec%3600)/60; \
42 ss = tv.tv_sec%60; \
43 fprintf(stdout,"%02d:%02d:%02d.%06ld]" format "\n", hh, mm, ss, tv.tv_usec,##x); \
/hardware/qcom/media/mm-video-legacy/vidc/venc/test/
Dvenc_util.c44 struct timeval tv; in GetTimeStamp() local
46 gettimeofday(&tv, NULL); in GetTimeStamp()
47 microsec = (tv.tv_sec * 1000000) + (tv.tv_usec); in GetTimeStamp()
/hardware/invensense/6515/libsensors_iio/software/simple_apps/common/
Dconsole_helper.c29 struct timeval tv; in ConsoleKbhit()
32 tv.tv_sec=0; in ConsoleKbhit()
33 tv.tv_usec=0; in ConsoleKbhit()
37 if(select(1, &read_fd, NULL, NULL, &tv) == -1) in ConsoleKbhit()
/hardware/qcom/gps/msm8960/utils/
Dloc_log.cpp224 struct timeval tv; in get_timestamp() local
227 gettimeofday(&tv, &tz); in get_timestamp()
228 hh = tv.tv_sec/3600%24; in get_timestamp()
229 mm = (tv.tv_sec%3600)/60; in get_timestamp()
230 ss = tv.tv_sec%60; in get_timestamp()
231 snprintf(str, buf_size, "%02d:%02d:%02d.%06ld", hh, mm, ss, tv.tv_usec); in get_timestamp()
/hardware/qcom/gps/utils/
Dloc_log.cpp230 struct timeval tv; in get_timestamp() local
233 gettimeofday(&tv, &tz); in get_timestamp()
234 hh = tv.tv_sec/3600%24; in get_timestamp()
235 mm = (tv.tv_sec%3600)/60; in get_timestamp()
236 ss = tv.tv_sec%60; in get_timestamp()
237 snprintf(str, buf_size, "%02d:%02d:%02d.%06ld", hh, mm, ss, tv.tv_usec); in get_timestamp()
/hardware/ti/omap3/omx/video/src/openmax_il/video_decode/src/
DOMX_VideoDec_Thread.c109 struct timeval tv; in OMX_VidDec_Thread() local
112 struct timespec tv; in OMX_VidDec_Thread() local
165 tv.tv_sec = 0; in OMX_VidDec_Thread()
166 tv.tv_usec = VIDD_TIMEOUT * 30; in OMX_VidDec_Thread()
168 tv.tv_sec = 0; in OMX_VidDec_Thread()
169 tv.tv_nsec = 30000; in OMX_VidDec_Thread()
364 struct timeval tv; in OMX_VidDec_Return() local
367 struct timespec tv; in OMX_VidDec_Return() local
402 tv.tv_sec = 0; in OMX_VidDec_Return()
403 tv.tv_usec = VIDD_TIMEOUT * 30; in OMX_VidDec_Return()
[all …]
/hardware/ti/omap3/omx/audio/src/openmax_il/g726_dec/src/
DOMX_G726Dec_CompThread.c94 struct timespec tv; in G726DEC_ComponentThread() local
115 tv.tv_sec = 1; in G726DEC_ComponentThread()
116 tv.tv_nsec = 0; in G726DEC_ComponentThread()
122 status = pselect (fdmax+1, &rfds, NULL, NULL, &tv, &set); in G726DEC_ComponentThread()
124 status = select (fdmax+1, &rfds, NULL, NULL, &tv); in G726DEC_ComponentThread()
/hardware/ti/omap3/omx/audio/src/openmax_il/g711_dec/src/
DOMX_G711Dec_ComponentThread.c66 struct timespec tv; in ComponentThread() local
88 tv.tv_sec = 1; in ComponentThread()
89 tv.tv_nsec = 0; in ComponentThread()
96 status = pselect (fdmax+1, &rfds, NULL, NULL, &tv, &set); in ComponentThread()
98 status = select (fdmax+1, &rfds, NULL, NULL, &tv); in ComponentThread()
/hardware/invensense/6515/libsensors_iio/software/core/mllite/linux/
Dmlos_linux.c181 struct timeval tv; in inv_get_tick_count() local
183 if (gettimeofday(&tv, NULL) != 0) in inv_get_tick_count()
186 return (long)((tv.tv_sec * 1000000LL + tv.tv_usec) / 1000LL); in inv_get_tick_count()
/hardware/invensense/60xx/libsensors_iio/software/core/mllite/linux/
Dmlos_linux.c181 struct timeval tv; in inv_get_tick_count() local
183 if (gettimeofday(&tv, NULL) != 0) in inv_get_tick_count()
186 return (long)((tv.tv_sec * 1000000LL + tv.tv_usec) / 1000LL); in inv_get_tick_count()
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/linux/
Dmlos_linux.c181 struct timeval tv; in inv_get_tick_count() local
183 if (gettimeofday(&tv, NULL) != 0) in inv_get_tick_count()
186 return (long)((tv.tv_sec * 1000000LL + tv.tv_usec) / 1000LL); in inv_get_tick_count()
/hardware/invensense/60xx/mlsdk/platform/linux/
Dmlos_linux.c195 struct timeval tv; in inv_get_tick_count() local
197 if (gettimeofday(&tv, NULL) !=0) in inv_get_tick_count()
200 return (long)((tv.tv_sec * 1000000LL + tv.tv_usec) / 1000LL); in inv_get_tick_count()
/hardware/ti/omap3/omx/audio/src/openmax_il/g711_enc/src/
DOMX_G711Enc_ComponentThread.c89 struct timespec tv; in G711ENC_CompThread() local
108 tv.tv_sec = 1; in G711ENC_CompThread()
109 tv.tv_nsec = 0; in G711ENC_CompThread()
115 status = pselect (fdmax+1, &rfds, NULL, NULL, &tv, &set); in G711ENC_CompThread()
117 status = select (fdmax+1, &rfds, NULL, NULL, &tv); in G711ENC_CompThread()
/hardware/ti/omap3/omx/audio/src/openmax_il/g729_enc/src/
DOMX_G729Enc_ComponentThread.c107 struct timespec tv; in G729ENC_CompThread() local
134 tv.tv_sec = 1; in G729ENC_CompThread()
135 tv.tv_nsec = 0; in G729ENC_CompThread()
141 status = pselect (fdmax+1, &rfds, NULL, NULL, &tv, &set); in G729ENC_CompThread()
143 status = select (fdmax+1, &rfds, NULL, NULL, &tv); in G729ENC_CompThread()
/hardware/ti/omap3/omx/audio/src/openmax_il/aac_dec/src/
DOMX_AacDec_CompThread.c105 struct timespec tv; in AACDEC_ComponentThread() local
136 tv.tv_sec = 1; in AACDEC_ComponentThread()
137 tv.tv_nsec = 0; in AACDEC_ComponentThread()
143 status = pselect (fdmax+1, &rfds, NULL, NULL, &tv, &set); in AACDEC_ComponentThread()
145 status = select (fdmax+1, &rfds, NULL, NULL, &tv); in AACDEC_ComponentThread()
/hardware/ti/omap3/omx/audio/src/openmax_il/wbamr_enc/src/
DOMX_WbAmrEnc_CompThread.c92 struct timespec tv; in WBAMRENC_CompThread() local
123 tv.tv_sec = 1; in WBAMRENC_CompThread()
124 tv.tv_nsec = 0; in WBAMRENC_CompThread()
130 status = pselect (fdmax + 1, &rfds, NULL, NULL, &tv, &set); in WBAMRENC_CompThread()
132 status = select (fdmax + 1, &rfds, NULL, NULL, &tv); in WBAMRENC_CompThread()
/hardware/ti/omap3/omx/audio/src/openmax_il/mp3_dec/src/
DOMX_Mp3Dec_CompThread.c104 struct timespec tv; in MP3DEC_ComponentThread() local
135 tv.tv_sec = 1; in MP3DEC_ComponentThread()
136 tv.tv_nsec = 0; in MP3DEC_ComponentThread()
142 status = pselect (fdmax+1, &rfds, NULL, NULL, &tv, &set); in MP3DEC_ComponentThread()
144 status = select (fdmax+1, &rfds, NULL, NULL, &tv); in MP3DEC_ComponentThread()
/hardware/ti/omap3/omx/audio/src/openmax_il/wbamr_dec/src/
DOMX_WbAmrDec_ComponentThread.c87 struct timespec tv; in WBAMR_DEC_ComponentThread() local
121 tv.tv_sec = 1; in WBAMR_DEC_ComponentThread()
122 tv.tv_nsec = 0; in WBAMR_DEC_ComponentThread()
129 status = pselect (fdmax+1, &rfds, NULL, NULL, &tv, &set); in WBAMR_DEC_ComponentThread()
131 status = select (fdmax+1, &rfds, NULL, NULL, &tv); in WBAMR_DEC_ComponentThread()
/hardware/ti/omap3/omx/audio/src/openmax_il/g726_enc/src/
DOMX_G726Enc_ComponentThread.c86 struct timespec tv; in G726ENC_CompThread() local
105 tv.tv_sec = 1; in G726ENC_CompThread()
106 tv.tv_nsec = 0; in G726ENC_CompThread()
111 status = pselect (fdmax+1, &rfds, NULL, NULL, &tv, &set); in G726ENC_CompThread()
/hardware/ti/omap3/omx/audio/src/openmax_il/nbamr_dec/src/
DOMX_AmrDec_ComponentThread.c68 struct timespec tv; in NBAMRDEC_ComponentThread() local
97 tv.tv_sec = 1; in NBAMRDEC_ComponentThread()
98 tv.tv_nsec = 0; in NBAMRDEC_ComponentThread()
104 status = pselect (fdmax+1, &rfds, NULL, NULL, &tv, &set); in NBAMRDEC_ComponentThread()
106 status = select (fdmax+1, &rfds, NULL, NULL, &tv); in NBAMRDEC_ComponentThread()
/hardware/ti/omap3/omx/audio/src/openmax_il/nbamr_enc/src/
DOMX_AmrEnc_ComponentThread.c99 struct timespec tv; in NBAMRENC_CompThread() local
125 tv.tv_sec = 1; in NBAMRENC_CompThread()
126 tv.tv_nsec = 0; in NBAMRENC_CompThread()
132 status = pselect (fdmax+1, &rfds, NULL, NULL, &tv, &set); in NBAMRENC_CompThread()
134 status = select (fdmax+1, &rfds, NULL, NULL, &tv); in NBAMRENC_CompThread()
/hardware/ti/omap3/omx/audio/src/openmax_il/wma_dec/src/
DOMX_WmaDec_ComponentThread.c80 struct timespec tv; in WMADEC_ComponentThread() local
111 tv.tv_sec = 1; in WMADEC_ComponentThread()
112 tv.tv_nsec = 0;/*WMAD_TIMEOUT * 1000;*/ in WMADEC_ComponentThread()
118 status = pselect (fdmax+1, &rfds, NULL, NULL, &tv, &set); in WMADEC_ComponentThread()
120 status = select (fdmax+1, &rfds, NULL, NULL, &tv); in WMADEC_ComponentThread()

123