/system/bt/osi/src/ |
H A D | time.cc | 39 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 D | util.cpp | 40 struct timeval tv; local 41 gettimeofday(&tv, NULL); 42 return (double)tv.tv_sec + (double)tv.tv_usec / 1000000;
|
H A D | usbtest.cpp | 43 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/extras/simpleperf/demo/SimpleperfExampleWithNative/app/src/main/java/com/example/simpleperf/simpleperfexamplewithnative/ |
H A D | MainActivity.java | 20 TextView tv = (TextView) findViewById(R.id.sample_text); 21 tv.setText(stringFromJNI());
|
/system/core/libcutils/ |
H A D | sockets_unix.cpp | 71 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 D | IOEventLoop_test.cpp | 123 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 D | InplaceSamplerClient.cpp | 85 timeval tv; local 86 tv.tv_sec = 3; 87 tv.tv_usec = 0; 95 return loop.AddPeriodicEvent(tv, check_reply_callback);
|
H A D | utils.cpp | 336 timeval tv; local 337 tv.tv_sec = static_cast<time_t>(time_in_sec); 338 tv.tv_usec = static_cast<int>((time_in_sec - tv.tv_sec) * 1000000); 339 return tv;
|
H A D | inplace_sampler_lib.cpp | 191 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 D | event_selection_set.cpp | 666 timeval tv; local 667 tv.tv_sec = 1; 668 tv.tv_usec = 0; 669 if (!loop_->AddPeriodicEvent(tv, [&]() { return loop_->ExitLoop(); })) {
|
/system/media/audio_utils/tests/ |
H A D | getch.c | 37 struct timeval tv = { 0L, 0L }; local 41 return select(1, &fds, NULL, NULL, &tv);
|
/system/extras/ioshark/ |
H A D | ioshark_bench.h | 107 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 D | compile_ioshark.c | 99 init_prev_time(struct timeval *tv) argument 101 tv->tv_sec = tv->tv_usec = 0;
|
/system/core/toolbox/upstream-netbsd/bin/dd/ |
H A D | misc.c | 60 #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 D | phTmlNfc_i2c.c | 122 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/nfc/src/adaptation/ |
H A D | debug_nfcsnoop.cc | 113 struct timeval tv; local 114 gettimeofday(&tv, NULL); 115 uint64_t timestamp = static_cast<uint64_t>(tv.tv_sec) * USEC_PER_SEC + 116 static_cast<uint64_t>(tv.tv_usec);
|
/system/core/debuggerd/ |
H A D | crash_dump.cpp | 115 struct timeval tv = { local 119 if (setsockopt(amfd.get(), SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(tv)) == -1) { 123 tv.tv_sec = 3; // 3 seconds on handshake read 124 if (setsockopt(amfd.get(), SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) == -1) {
|
/system/bt/osi/test/ |
H A D | fixed_queue_test.cc | 26 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 D | debuggerd_client.cpp | 58 static void populate_timeval(struct timeval* tv, const Duration& duration) { argument 61 tv->tv_sec = static_cast<long>(seconds.count()); 62 tv->tv_usec = static_cast<long>(microseconds.count());
|
/system/core/liblog/ |
H A D | logger_write.c | 349 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 D | tipc_test.c | 458 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 D | file_contexts | 30 /(vendor|system/vendor)/bin/hw/android\.hardware\.tv\.cec@1\.0-service u:object_r:hal_tv_cec_default_exec:s0 31 /(vendor|system/vendor)/bin/hw/android\.hardware\.tv\.input@1\.0-service u:object_r:hal_tv_input_default_exec:s0
|
/system/bt/audio_a2dp_hw/src/ |
H A D | audio_a2dp_hw.cc | 255 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/app-launcher/ |
H A D | app-launcher | 417 launch_app com.google.android.youtube.tv com.google.android.apps.youtube.tv.activity.TvGuideActivity > $BASHPID-youtube-$model
|
/system/extras/tests/framebuffer/ |
H A D | fb_test.c | 47 struct timespec tv, tv2; variable in typeref:struct:timespec
|