Searched refs:tv (Results 1 - 20 of 20) sorted by path

/system/core/adb/
H A Dfile_sync_client.c40 struct timeval tv; local
41 gettimeofday(&tv, 0);
42 return ((long long) tv.tv_usec) +
43 1000000LL * ((long long) tv.tv_sec);
H A Dusb_linux.c290 struct timeval tv; local
319 gettimeofday(&tv, NULL);
320 ts.tv_sec = tv.tv_sec + 5;
321 ts.tv_nsec = tv.tv_usec * 1000L;
/system/core/fastboot/
H A Dengine.c39 struct timeval tv; local
40 gettimeofday(&tv, NULL);
41 return (double)tv.tv_sec + (double)tv.tv_usec / 1000000;
H A Dusbtest.c43 struct timeval tv; local
44 gettimeofday(&tv, 0);
46 return (((long long) tv.tv_sec) * ((long long) 1000000)) +
47 (((long long) tv.tv_usec));
/system/core/init/
H A Ddevices.c263 struct timeval tv; local
264 gettimeofday(&tv, 0);
265 return tv.tv_sec * (suseconds_t) 1000000 + tv.tv_usec;
/system/core/libnl_2/genl/
H A Dgenl.c51 struct timeval tv; local
67 if (gettimeofday(&tv, NULL))
70 nlh->nlmsg_seq = (int) tv.tv_sec;
/system/core/libnl_2/
H A Dnetlink.c32 struct timeval tv; local
41 if (gettimeofday(&tv, NULL))
44 nlh->nlmsg_seq = (int) tv.tv_sec;
H A Dsocket.c37 struct timeval tv; local
47 if (gettimeofday(&tv, NULL))
50 sk->s_seq_next = (int) tv.tv_sec;
/system/core/toolbox/
H A Dalarm.c102 time(&tv.tv_sec);
109 //tv.tv_sec = mktime(&tm);
110 //tv.tv_usec = 0;
120 //strtotimeval(argv[optind], &tv);
H A Ddate.c49 struct timeval tv; local
114 //tv.tv_sec = mktime(&tm);
115 //tv.tv_usec = 0;
116 strtotimeval(argv[optind], &tv);
117 printf("time %s -> %d.%d\n", argv[optind], tv.tv_sec, tv.tv_usec);
119 ts.tv_sec = tv.tv_sec;
120 ts.tv_nsec = tv.tv_usec * 1000;
122 //res = settimeofday(&tv, NULL);
H A Ddd.c991 #define tv2mS(tv) ((tv).tv_sec * 1000LL + ((tv).tv_usec + 500) / 1000)
998 struct timeval tv; local
1003 (void)gettimeofday(&tv, NULL);
1004 mS = tv2mS(tv) - tv2mS(st.start);
H A Dnewfs_msdos.c259 struct timeval tv; local
616 gettimeofday(&tv, NULL);
617 now = tv.tv_sec;
673 (u_int)(tv.tv_usec / 10))) << 16 |
H A Dpowerd.c163 struct timeval tv; local
298 tv.tv_sec = idle_time;
299 tv.tv_usec = 0;
302 tv.tv_sec = 0;
303 tv.tv_usec = 500000;
311 res = select(((notifyfd > eventfd) ? notifyfd : eventfd) + 1, &rfds, NULL, NULL, &tv);
329 tv.tv_sec = 60*60*24;
330 tv.tv_usec = 0;
365 tv.tv_sec = key_light_time;
372 tv
[all...]
/system/extras/tests/bionic/libc/other/
H A Dbench_locks.c9 struct timeval tv; local
10 gettimeofday(&tv, NULL);
11 return tv.tv_sec + tv.tv_usec/1000000.0;
H A Dtest_jpeg.c230 struct timeval tv;
231 if (gettimeofday( &tv, NULL ) < 0)
234 return tv.tv_sec*1000000. + tv.tv_usec*1.0;
H A Dtest_zlib.c167 struct timeval tv;
168 if (gettimeofday( &tv, NULL ) < 0)
171 return tv.tv_sec*1000000. + tv.tv_usec*1.0;
/system/extras/tests/framebuffer/
H A Dfb_test.c47 struct timespec tv, tv2; variable in typeref:struct:timespec
/system/media/mca/filterfw/native/core/
H A Dtime_util.cpp31 struct timeval tv; local
33 gettimeofday(&tv, 0);
35 basesec = tv.tv_sec;
37 nowtime = (uint64_t)(tv.tv_sec - basesec) * (uint64_t)1000000 +
38 (uint64_t)tv.tv_usec;
/system/media/mca/filterpacks/base/native/
H A Dtime_util.cpp29 struct timeval tv; local
31 gettimeofday(&tv, 0);
33 basesec = tv.tv_sec;
35 nowtime = (uint64_t)(tv.tv_sec - basesec) * (uint64_t)1000000 +
36 (uint64_t)tv.tv_usec;
/system/media/wilhelm/tests/sandbox/
H A Dgetch.c37 struct timeval tv = { 0L, 0L }; local
41 return select(1, &fds, NULL, NULL, &tv);

Completed in 247 milliseconds