Searched defs:ts (Results 1 - 25 of 34) sorted by relevance

12

/device/google/marlin/camera/QCamera2/stack/mm-camera-test/src/
H A Dcam_semaphore_tests.cpp30 static inline void timespec_add_ms(timespec& ts, size_t ms) { argument
31 ts.tv_sec += ms / 1000;
32 ts.tv_nsec += (ms % 1000) * 1000000;
33 if (ts.tv_nsec >= NS_PER_S) {
34 ts.tv_sec++;
35 ts.tv_nsec -= NS_PER_S;
55 timespec ts; local
56 ASSERT_EQ(0, clock_gettime(CLOCK_MONOTONIC, &ts));
57 timespec_add_ms(ts, 100);
60 ASSERT_EQ(-1, cam_sem_timedwait(&sem, &ts));
[all...]
/device/huawei/angler/camera/QCamera2/stack/mm-camera-test/src/
H A Dcam_semaphore_tests.cpp30 static inline void timespec_add_ms(timespec& ts, size_t ms) { argument
31 ts.tv_sec += ms / 1000;
32 ts.tv_nsec += (ms % 1000) * 1000000;
33 if (ts.tv_nsec >= NS_PER_S) {
34 ts.tv_sec++;
35 ts.tv_nsec -= NS_PER_S;
55 timespec ts; local
56 ASSERT_EQ(0, clock_gettime(CLOCK_MONOTONIC, &ts));
57 timespec_add_ms(ts, 100);
60 ASSERT_EQ(-1, cam_sem_timedwait(&sem, &ts));
[all...]
/device/lge/bullhead/camera/QCamera2/stack/mm-camera-test/src/
H A Dcam_semaphore_tests.cpp30 static inline void timespec_add_ms(timespec& ts, size_t ms) { argument
31 ts.tv_sec += ms / 1000;
32 ts.tv_nsec += (ms % 1000) * 1000000;
33 if (ts.tv_nsec >= NS_PER_S) {
34 ts.tv_sec++;
35 ts.tv_nsec -= NS_PER_S;
55 timespec ts; local
56 ASSERT_EQ(0, clock_gettime(CLOCK_MONOTONIC, &ts));
57 timespec_add_ms(ts, 100);
60 ASSERT_EQ(-1, cam_sem_timedwait(&sem, &ts));
[all...]
/device/google/contexthub/util/stm32_flash/
H A Dflash.c85 struct timespec ts; local
156 ts.tv_sec = 0;
157 ts.tv_nsec = 5000000;
158 nanosleep(&ts, NULL);
/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/
H A Dlstring.c100 TString *ts; local
103 ts = &luaC_newobj(L, tag, totalsize, list, 0)->ts;
104 ts->tsv.len = l;
105 ts->tsv.hash = h;
106 ts->tsv.extra = 0;
107 memcpy(ts+1, str, l*sizeof(char));
108 ((char *)(ts+1))[l] = '\0'; /* ending 0 */
109 return ts;
140 TString *ts local
[all...]
H A Dllex.c68 TString *ts = luaS_new(L, luaX_tokens[i]); local
69 luaS_fix(ts); /* reserved words are never collected */
70 ts->tsv.extra = cast_byte(i+1); /* reserved word */
127 TString *ts = luaS_newlstr(L, str, l); /* create new string */ local
128 setsvalue2s(L, L->top++, ts); /* temporarily anchor it in stack */
137 ts = rawtsvalue(keyfromval(o)); /* re-use value previously stored */
140 return ts;
300 seminfo->ts = luaX_newstring(ls, luaZ_buffer(ls->buff) + (2 + sep),
396 seminfo->ts = luaX_newstring(ls, luaZ_buffer(ls->buff) + 1,
490 TString *ts; local
[all...]
H A Dllex.h39 TString *ts; member in union:__anon2552
H A Dloslib.c246 struct tm ts; local
249 ts.tm_sec = getfield(L, "sec", 0);
250 ts.tm_min = getfield(L, "min", 0);
251 ts.tm_hour = getfield(L, "hour", 12);
252 ts.tm_mday = getfield(L, "day", -1);
253 ts.tm_mon = getfield(L, "month", -1) - 1;
254 ts.tm_year = getfield(L, "year", -1) - 1900;
255 ts.tm_isdst = getboolfield(L, "isdst");
256 t = mktime(&ts);
H A Dluac.c223 static void PrintString(const TString* ts) argument
225 const char* s=getstr(ts);
226 size_t i,n=ts->tsv.len;
H A Dlstate.h187 union TString ts; member in union:GCObject
201 check_exp(novariant((o)->gch.tt) == LUA_TSTRING, &((o)->ts))
H A Dlapi.c502 TString *ts; local
505 ts = luaS_newlstr(L, s, len);
506 setsvalue2s(L, L->top, ts);
509 return getstr(ts);
519 TString *ts; local
522 ts = luaS_new(L, s);
523 setsvalue2s(L, L->top, ts);
526 return getstr(ts);
H A Dlparser.c64 TString *ts = ls->t.seminfo.ts; local
65 luaX_newstring(ls, getstr(ts), ts->tsv.len);
140 TString *ts; local
142 ts = ls->t.seminfo.ts;
144 return ts;
844 codestring(ls, &args, ls->t.seminfo.ts);
947 codestring(ls, v, ls->t.seminfo.ts);
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
H A Dtest_structmembers.py11 ts=_test_structmembersType(False, 1, 2, 3, 4, 5, 6, 7, 8, variable
17 ts.T_BOOL = True
18 self.assertEqual(ts.T_BOOL, True)
19 ts.T_BOOL = False
20 self.assertEqual(ts.T_BOOL, False)
21 self.assertRaises(TypeError, setattr, ts, 'T_BOOL', 1)
24 ts.T_BYTE = CHAR_MAX
25 self.assertEqual(ts.T_BYTE, CHAR_MAX)
26 ts.T_BYTE = CHAR_MIN
27 self.assertEqual(ts
[all...]
/device/linaro/hikey/power/
H A Dpower_hikey.c99 struct timespec ts; local
101 clock_gettime(CLOCK_MONOTONIC, &ts);
102 return ts.tv_sec * NSEC_PER_SEC + ts.tv_nsec;
107 struct timespec ts; local
108 ts.tv_sec = ns/NSEC_PER_SEC;
109 ts.tv_nsec = ns%NSEC_PER_SEC;
110 nanosleep(&ts, NULL);
/device/generic/goldfish/fingerprint/
H A Dfingerprint.c572 struct timespec ts; local
573 clock_gettime(CLOCK_MONOTONIC, &ts);
575 htobe64((uint64_t)ts.tv_sec * 1000 + ts.tv_nsec / 1000000);
/device/generic/goldfish/sensors/
H A Dsensors_qemu.c124 struct timespec ts; local
125 clock_gettime(CLOCK_MONOTONIC, &ts);
126 return (int64_t)ts.tv_sec * 1000000000 + ts.tv_nsec;
/device/google/marlin/camera/usbcamcore/src/
H A DQCameraMjpegDecode.cpp683 struct timespec ts; local
684 int rc = clock_gettime(CLOCK_REALTIME, &ts);
688 ts.tv_sec += (ms/1000);
689 ts.tv_nsec += ((ms%1000) * 1000000);
691 ts.tv_nsec += (ms * 1000000);
694 rc = pthread_cond_timedwait(p_cond, p_mutex, &ts);
/device/google/marlin/camera/QCamera2/stack/common/
H A Dmm_camera_interface.h130 struct timespec ts; member in struct:mm_camera_buf_def
/device/google/marlin/camera/QCamera2/stack/mm-camera-interface/src/
H A Dmm_camera_stream.c1178 struct timespec ts; local
1179 clock_gettime(CLOCK_MONOTONIC, &ts);
1180 ts.tv_sec += WAIT_TIMEOUT;
1181 rc = pthread_cond_timedwait(&my_obj->buf_cond, &my_obj->buf_lock, &ts);
1451 timeStamp = (nsecs_t)(buf_info->buf->ts.tv_sec) *
1452 1000000000LL + buf_info->buf->ts.tv_nsec;
1476 stream_buf->ts.tv_sec = (frame_ts / 1000000000LL);
1477 stream_buf->ts.tv_nsec = (frame_ts - (stream_buf->ts.tv_sec * 1000000000LL));
1485 buf_info->buf->ts
[all...]
H A Dmm_camera.c1805 struct timespec ts; local
1809 clock_gettime(CLOCK_MONOTONIC, &ts);
1810 ts.tv_sec += WAIT_TIMEOUT;
1811 rc = pthread_cond_timedwait(&my_obj->evt_cond, &my_obj->evt_lock, &ts);
/device/huawei/angler/camera/QCamera2/stack/common/
H A Dmm_camera_interface.h126 struct timespec ts; member in struct:mm_camera_buf_def
/device/huawei/angler/camera/QCamera2/stack/mm-camera-interface/src/
H A Dmm_camera.c1713 struct timespec ts; local
1717 clock_gettime(CLOCK_MONOTONIC, &ts);
1718 ts.tv_sec += WAIT_TIMEOUT;
1719 rc = pthread_cond_timedwait(&my_obj->evt_cond, &my_obj->evt_lock, &ts);
/device/lge/bullhead/camera/QCamera2/stack/common/
H A Dmm_camera_interface.h126 struct timespec ts; member in struct:mm_camera_buf_def
/device/lge/bullhead/camera/QCamera2/stack/mm-camera-interface/src/
H A Dmm_camera.c1713 struct timespec ts; local
1717 clock_gettime(CLOCK_MONOTONIC, &ts);
1718 ts.tv_sec += WAIT_TIMEOUT;
1719 rc = pthread_cond_timedwait(&my_obj->evt_cond, &my_obj->evt_lock, &ts);
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/antlr/
H A Dgen.c1243 char *ts; local
1245 ts=TokenString(token);
1246 if (ts == NULL) {
1249 _gen2(" LA(%d)==%s",k,ts);

Completed in 367 milliseconds

12