/system/extras/simpleperf/ |
D | IOEventLoop_test.cpp | 125 timeval tv; in TestPeriodicEvents() local 126 tv.tv_sec = period_in_us / 1000000; in TestPeriodicEvents() 127 tv.tv_usec = period_in_us % 1000000; in TestPeriodicEvents() 133 ASSERT_TRUE(loop.AddPeriodicEvent(tv, [&]() { in TestPeriodicEvents() 195 timeval tv; in TEST() local 196 tv.tv_sec = 0; in TEST() 197 tv.tv_usec = 500000; in TEST() 199 ASSERT_TRUE(loop.AddPeriodicEvent(tv, [&]() { in TEST() 222 timeval tv; in TEST() local 223 tv.tv_sec = 0; in TEST() [all …]
|
D | InplaceSamplerClient.cpp | 85 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()
|
D | inplace_sampler_lib.cpp | 191 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()
|
D | utils.cpp | 402 timeval tv; in SecondToTimeval() local 403 tv.tv_sec = static_cast<time_t>(time_in_sec); in SecondToTimeval() 404 tv.tv_usec = static_cast<int>((time_in_sec - tv.tv_sec) * 1000000); in SecondToTimeval() 405 return tv; in SecondToTimeval()
|
/system/media/audio_utils/tests/ |
D | timestampverifier_tests.cpp | 29 android::TimestampVerifier<int64_t, int64_t> tv; in makeVerifier() local 34 tv.add(f, t, sampleRate); in makeVerifier() 39 tv.discontinuity(); in makeVerifier() 42 tv.error(); in makeVerifier() 44 return tv; in makeVerifier() 49 constexpr android::TimestampVerifier<int64_t, int64_t> tv; in TEST() local 53 static_assert(std::is_trivially_copyable<decltype(tv)>::value, in TEST() 55 static_assert(std::is_trivially_destructible<decltype(tv)>::value, in TEST() 58 constexpr android::audio_utils::Statistics<double> s = tv.getJitterMs(); in TEST()
|
D | getch.c | 37 struct timeval tv = { 0L, 0L }; in kbhit() local 41 return select(1, &fds, NULL, NULL, &tv); in kbhit()
|
/system/bt/common/ |
D | time_util.cc | 39 struct timeval tv = {}; in time_gettimeofday_us() local 40 gettimeofday(&tv, nullptr); 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/ |
D | util.cpp | 41 struct timeval tv; in now() local 42 gettimeofday(&tv, NULL); in now() 43 return (double)tv.tv_sec + (double)tv.tv_usec / 1000000; in now()
|
/system/core/libcutils/ |
D | sockets_unix.cpp | 35 timeval tv; in socket_set_receive_timeout() local 36 tv.tv_sec = timeout_ms / 1000; in socket_set_receive_timeout() 37 tv.tv_usec = (timeout_ms % 1000) * 1000; in socket_set_receive_timeout() 38 return setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)); in socket_set_receive_timeout()
|
/system/extras/ioshark/ |
D | ioshark_bench.h | 107 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()
|
D | compile_ioshark.c | 99 init_prev_time(struct timeval *tv) in init_prev_time() argument 101 tv->tv_sec = tv->tv_usec = 0; in init_prev_time()
|
/system/extras/simpleperf/demo/SimpleperfExampleWithNative/app/src/main/java/com/example/simpleperf/simpleperfexamplewithnative/ |
D | MainActivity.java | 20 TextView tv = (TextView) findViewById(R.id.sample_text); in onCreate() local 21 tv.setText(stringFromJNI()); in onCreate()
|
/system/nfc/src/adaptation/ |
D | debug_nfcsnoop.cc | 118 struct timeval tv; in nfcsnoop_capture() local 119 gettimeofday(&tv, nullptr); in nfcsnoop_capture() 120 uint64_t timestamp = static_cast<uint64_t>(tv.tv_sec) * USEC_PER_SEC + in nfcsnoop_capture() 121 static_cast<uint64_t>(tv.tv_usec); in nfcsnoop_capture()
|
/system/core/libstats/ |
D | stats_event_list.c | 163 struct timeval tv; in __write_to_stats_daemon() local 164 gettimeofday(&tv, NULL); in __write_to_stats_daemon() 165 ts.tv_sec = tv.tv_sec; in __write_to_stats_daemon() 166 ts.tv_nsec = tv.tv_usec * 1000; in __write_to_stats_daemon()
|
/system/core/debuggerd/ |
D | crash_dump.cpp | 153 struct timeval tv = { in activity_manager_notify() local 157 if (setsockopt(amfd.get(), SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(tv)) == -1) { in activity_manager_notify() 161 tv.tv_sec = 3; // 3 seconds on handshake read in activity_manager_notify() 162 if (setsockopt(amfd.get(), SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) == -1) { in activity_manager_notify()
|
/system/core/debuggerd/client/ |
D | debuggerd_client.cpp | 61 static void populate_timeval(struct timeval* tv, const Duration& duration) { in populate_timeval() argument 64 tv->tv_sec = static_cast<long>(seconds.count()); in populate_timeval() 65 tv->tv_usec = static_cast<long>(microseconds.count()); in populate_timeval()
|
/system/bt/osi/test/ |
D | fixed_queue_test.cc | 26 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/adb/daemon/ |
D | file_sync_service.cpp | 449 struct timeval tv[2]; in do_send() local 450 tv[0].tv_sec = timestamp; in do_send() 451 tv[0].tv_usec = 0; in do_send() 452 tv[1].tv_sec = timestamp; in do_send() 453 tv[1].tv_usec = 0; in do_send() 454 lutimes(path.c_str(), tv); in do_send()
|
/system/core/liblog/ |
D | logger_write.cpp | 350 struct timeval tv; in __write_to_log_daemon() local 351 gettimeofday(&tv, NULL); in __write_to_log_daemon() 352 ts.tv_sec = tv.tv_sec; in __write_to_log_daemon() 353 ts.tv_nsec = tv.tv_usec * 1000; in __write_to_log_daemon()
|
/system/sepolicy/prebuilts/api/26.0/private/ |
D | hwservice_contexts | 38 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/sepolicy/prebuilts/api/27.0/private/ |
D | hwservice_contexts | 41 android.hardware.tv.cec::IHdmiCec u:object_r:hal_tv_cec_hwservice:s0 42 android.hardware.tv.input::ITvInput u:object_r:hal_tv_input_hwservice:s0
|
/system/core/trusty/libtrusty/tipc-test/ |
D | tipc_test.c | 458 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_hearing_aid_hw/src/ |
D | audio_hearing_aid_hw.cc | 250 struct timeval tv; in skt_connect() local 251 tv.tv_sec = SOCK_SEND_TIMEOUT_MS / 1000; in skt_connect() 252 tv.tv_usec = (SOCK_SEND_TIMEOUT_MS % 1000) * 1000; in skt_connect() 254 ret = setsockopt(skt_fd, SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(tv)); in skt_connect() 257 tv.tv_sec = SOCK_RECV_TIMEOUT_MS / 1000; in skt_connect() 258 tv.tv_usec = (SOCK_RECV_TIMEOUT_MS % 1000) * 1000; in skt_connect() 260 ret = setsockopt(skt_fd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)); in skt_connect()
|
/system/sepolicy/prebuilts/api/28.0/private/ |
D | hwservice_contexts | 53 android.hardware.tv.cec::IHdmiCec u:object_r:hal_tv_cec_hwservice:s0 54 android.hardware.tv.input::ITvInput u:object_r:hal_tv_input_hwservice:s0
|
/system/bt/audio_a2dp_hw/src/ |
D | audio_a2dp_hw.cc | 266 struct timeval tv; in skt_connect() local 267 tv.tv_sec = SOCK_SEND_TIMEOUT_MS / 1000; in skt_connect() 268 tv.tv_usec = (SOCK_SEND_TIMEOUT_MS % 1000) * 1000; in skt_connect() 270 ret = setsockopt(skt_fd, SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(tv)); in skt_connect() 273 tv.tv_sec = SOCK_RECV_TIMEOUT_MS / 1000; in skt_connect() 274 tv.tv_usec = (SOCK_RECV_TIMEOUT_MS % 1000) * 1000; in skt_connect() 276 ret = setsockopt(skt_fd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)); in skt_connect()
|