Home
last modified time | relevance | path

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

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