Searched refs:tv (Results 1 - 24 of 24) sorted by relevance

/system/bt/osi/src/
H A Dtime.cc39 struct timeval tv; local
40 gettimeofday(&tv, NULL);
41 return static_cast<uint64_t>(tv.tv_sec) * 1000000ULL +
42 static_cast<uint64_t>(tv.tv_usec);
/system/core/fastboot/
H A Dutil.cpp40 struct timeval tv; local
41 gettimeofday(&tv, NULL);
42 return (double)tv.tv_sec + (double)tv.tv_usec / 1000000;
H A Dusbtest.cpp43 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/libcutils/
H A Dsockets_unix.cpp71 timeval tv; local
72 tv.tv_sec = timeout_ms / 1000;
73 tv.tv_usec = (timeout_ms % 1000) * 1000;
74 return setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv));
/system/extras/simpleperf/
H A DIOEventLoop_test.cpp123 timeval tv; local
124 tv.tv_sec = 0;
125 tv.tv_usec = 1000;
128 ASSERT_TRUE(loop.AddPeriodicEvent(tv, [&]() {
183 timeval tv; local
184 tv.tv_sec = 0;
185 tv.tv_usec = 500000;
187 ASSERT_TRUE(loop.AddPeriodicEvent(tv, [&]() {
H A DInplaceSamplerClient.cpp85 timeval tv; local
86 tv.tv_sec = 3;
87 tv.tv_usec = 0;
95 return loop.AddPeriodicEvent(tv, check_reply_callback);
H A Dutils.cpp335 timeval tv; local
336 tv.tv_sec = static_cast<time_t>(time_in_sec);
337 tv.tv_usec = static_cast<int>((time_in_sec - tv.tv_sec) * 1000000);
338 return tv;
H A Dinplace_sampler_lib.cpp191 timeval tv; local
192 tv.tv_sec = CHECK_THREADS_INTERVAL_IN_MS / 1000;
193 tv.tv_usec = CHECK_THREADS_INTERVAL_IN_MS % 1000 * 1000;
194 return loop_.AddPeriodicEvent(tv, [&]() {
H A Devent_selection_set.cpp665 timeval tv; local
666 tv.tv_sec = 1;
667 tv.tv_usec = 0;
668 if (!loop_->AddPeriodicEvent(tv, [&]() { return loop_->ExitLoop(); })) {
/system/media/audio_utils/tests/
H A Dgetch.c37 struct timeval tv = { 0L, 0L }; local
41 return select(1, &fds, NULL, NULL, &tv);
/system/extras/ioshark/
H A Dioshark_bench.h107 get_msecs(struct timeval *tv) argument
109 return ((tv->tv_sec * 1000) + (tv->tv_usec / 1000));
113 get_usecs(struct timeval *tv) argument
115 return (tv->tv_usec % 1000);
H A Dcompile_ioshark.c99 init_prev_time(struct timeval *tv) argument
101 tv->tv_sec = tv->tv_usec = 0;
/system/core/toolbox/upstream-netbsd/bin/dd/
H A Dmisc.c60 #define tv2mS(tv) ((tv).tv_sec * 1000LL + ((tv).tv_usec + 500) / 1000)
99 struct timeval tv; local
104 (void)gettimeofday(&tv, NULL);
105 mS = tv2mS(tv) - tv2mS(st.start);
199 struct timeval tv; local
201 (void)gettimeofday(&tv, NULL);
202 mS = tv2mS(tv) - tv2mS(st.start);
/system/nfc/halimpl/pn54x/tml/
H A DphTmlNfc_i2c.c122 struct timeval tv; local
143 tv.tv_sec = 2;
144 tv.tv_usec = 1;
147 select((int)((intptr_t)pDevHandle + (int)1), &rfds, NULL, NULL, &tv);
/system/core/debuggerd/
H A Dcrash_dump.cpp112 struct timeval tv = { local
116 if (setsockopt(amfd.get(), SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(tv)) == -1) {
120 tv.tv_sec = 3; // 3 seconds on handshake read
121 if (setsockopt(amfd.get(), SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) == -1) {
/system/bt/osi/test/
H A Dfixed_queue_test.cc26 struct timeval tv; local
29 tv.tv_sec = 0;
30 tv.tv_usec = 0;
33 int result = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
/system/core/debuggerd/client/
H A Ddebuggerd_client.cpp55 static void populate_timeval(struct timeval* tv, const Duration& duration) { argument
58 tv->tv_sec = static_cast<long>(seconds.count());
59 tv->tv_usec = static_cast<long>(microseconds.count());
/system/core/liblog/
H A Dlogger_write.c349 struct timeval tv; local
350 gettimeofday(&tv, NULL);
351 ts.tv_sec = tv.tv_sec;
352 ts.tv_nsec = tv.tv_usec * 1000;
/system/core/trusty/libtrusty/tipc-test/
H A Dtipc_test.c458 struct timeval tv; local
467 tv.tv_sec = timeout;
468 tv.tv_usec = 0;
471 rc = select(fd+1, &rfds, NULL, NULL, &tv);
/system/sepolicy/vendor/
H A Dfile_contexts28 /(vendor|system/vendor)/bin/hw/android\.hardware\.tv\.cec@1\.0-service u:object_r:hal_tv_cec_default_exec:s0
29 /(vendor|system/vendor)/bin/hw/android\.hardware\.tv\.input@1\.0-service u:object_r:hal_tv_input_default_exec:s0
/system/extras/app-launcher/
H A Dapp-launcher342 launch_app com.google.android.youtube.tv com.google.android.apps.youtube.tv.activity.TvGuideActivity > youtube-$model
/system/bt/audio_a2dp_hw/src/
H A Daudio_a2dp_hw.cc255 struct timeval tv; local
256 tv.tv_sec = SOCK_SEND_TIMEOUT_MS / 1000;
257 tv.tv_usec = (SOCK_SEND_TIMEOUT_MS % 1000) * 1000;
259 ret = setsockopt(skt_fd, SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(tv));
262 tv.tv_sec = SOCK_RECV_TIMEOUT_MS / 1000;
263 tv.tv_usec = (SOCK_RECV_TIMEOUT_MS % 1000) * 1000;
265 ret = setsockopt(skt_fd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv));
/system/extras/tests/framebuffer/
H A Dfb_test.c47 struct timespec tv, tv2; variable in typeref:struct:timespec
/system/core/toolbox/
H A Dnewfs_msdos.c251 struct timeval tv; local
638 gettimeofday(&tv, NULL);
639 now = tv.tv_sec;
692 (u_int)(tv.tv_usec / 10))) << 16 |

Completed in 453 milliseconds