Home
last modified time | relevance | path

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

12

/system/media/audio_utils/tests/
Dtimestampverifier_tests.cpp29 android::TimestampVerifier<int64_t, int64_t> tv; in makeVerifier() local
34 tv.add(f, t, sampleRate); in makeVerifier()
39 tv.discontinuity(tv.DISCONTINUITY_MODE_CONTINUOUS); 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()
105 android::TimestampVerifier<int64_t, int64_t> tv; in TEST() local
[all …]
Dgetch.c37 struct timeval tv = { 0L, 0L }; in kbhit() local
41 return select(1, &fds, NULL, NULL, &tv); in kbhit()
/system/extras/simpleperf/
DIOEventLoop_test.cpp127 timeval tv; in TestPeriodicEvents() local
128 tv.tv_sec = period_in_us / 1000000; in TestPeriodicEvents()
129 tv.tv_usec = period_in_us % 1000000; in TestPeriodicEvents()
135 ASSERT_TRUE(loop.AddPeriodicEvent(tv, [&]() { in TestPeriodicEvents()
197 timeval tv; in TEST() local
198 tv.tv_sec = 0; in TEST()
199 tv.tv_usec = 500000; in TEST()
201 ASSERT_TRUE(loop.AddPeriodicEvent(tv, [&]() { in TEST()
224 timeval tv; in TEST() local
225 tv.tv_sec = 0; in TEST()
[all …]
Dutils.cpp365 timeval tv; in SecondToTimeval() local
366 tv.tv_sec = static_cast<time_t>(time_in_sec); in SecondToTimeval()
367 tv.tv_usec = static_cast<int>((time_in_sec - tv.tv_sec) * 1000000); in SecondToTimeval()
368 return tv; in SecondToTimeval()
/system/bt/common/
Dtime_util.cc39 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/
Dutil.cpp41 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/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()
/system/extras/simpleperf/demo/SimpleperfExampleWithNative/app/src/main/java/com/example/simpleperf/simpleperfexamplewithnative/
DMainActivity.java20 TextView tv = (TextView) findViewById(R.id.sample_text); in onCreate() local
21 tv.setText(stringFromJNI()); in onCreate()
/system/core/libstats/push_compat/
Dstats_event_list.c163 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/update_engine/aosp/
Dlogging_android.cc167 timeval tv; in GetPrefix() local
168 gettimeofday(&tv, nullptr); in GetPrefix()
169 time_t t = tv.tv_sec; in GetPrefix()
176 << tm_time->tm_sec << '.' << std::setw(6) << tv.tv_usec << "] "; in GetPrefix()
/system/nfc/src/adaptation/
Ddebug_nfcsnoop.cc130 struct timeval tv; in nfcsnoop_capture() local
131 gettimeofday(&tv, nullptr); in nfcsnoop_capture()
132 uint64_t timestamp = static_cast<uint64_t>(tv.tv_sec) * USEC_PER_SEC + in nfcsnoop_capture()
133 static_cast<uint64_t>(tv.tv_usec); in nfcsnoop_capture()
/system/core/debuggerd/
Dcrash_dump.cpp155 struct timeval tv = { in activity_manager_notify() local
159 if (setsockopt(amfd.get(), SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(tv)) == -1) { in activity_manager_notify()
163 tv.tv_sec = 3 * android::base::HwTimeoutMultiplier(); // 3 seconds on handshake read in activity_manager_notify()
164 if (setsockopt(amfd.get(), SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) == -1) { in activity_manager_notify()
/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/tools/aidl/
Dhiddenapi-greylist230 "android.media.tv.ITvInputClient",
231 "android.media.tv.ITvInputHardware",
232 "android.media.tv.ITvInputHardwareCallback",
233 "android.media.tv.ITvInputManager",
234 "android.media.tv.ITvInputManagerCallback",
235 "android.media.tv.ITvInputService",
236 "android.media.tv.ITvInputServiceCallback",
237 "android.media.tv.ITvInputSession",
238 "android.media.tv.ITvInputSessionCallback",
239 "android.media.tv.ITvRemoteProvider",
[all …]
/system/core/debuggerd/client/
Ddebuggerd_client.cpp66 static void populate_timeval(struct timeval* tv, const Duration& duration) { in populate_timeval() argument
69 tv->tv_sec = static_cast<long>(seconds.count()); in populate_timeval()
70 tv->tv_usec = static_cast<long>(microseconds.count()); in populate_timeval()
/system/linkerconfig/testdata/root/system/apex/com.android.vndk.vR/etc/
Dvndkcore.libraries.R.txt135 android.hardware.tv.cec@1.0.so
136 android.hardware.tv.cec@2.0.so
137 android.hardware.tv.input@1.0.so
138 android.hardware.tv.tuner@1.0.so
/system/sepolicy/prebuilts/api/30.0/private/
Dhwservice_contexts67 android.hardware.tv.cec::IHdmiCec u:object_r:hal_tv_cec_hwservice:s0
68 android.hardware.tv.input::ITvInput u:object_r:hal_tv_input_hwservice:s0
69 android.hardware.tv.tuner::ITuner u:object_r:hal_tv_tuner_hwservice:s0
/system/sepolicy/prebuilts/api/31.0/private/
Dhwservice_contexts66 android.hardware.tv.cec::IHdmiCec u:object_r:hal_tv_cec_hwservice:s0
67 android.hardware.tv.input::ITvInput u:object_r:hal_tv_input_hwservice:s0
68 android.hardware.tv.tuner::ITuner u:object_r:hal_tv_tuner_hwservice:s0
/system/sepolicy/private/
Dhwservice_contexts66 android.hardware.tv.cec::IHdmiCec u:object_r:hal_tv_cec_hwservice:s0
67 android.hardware.tv.input::ITvInput u:object_r:hal_tv_input_hwservice:s0
68 android.hardware.tv.tuner::ITuner u:object_r:hal_tv_tuner_hwservice:s0
/system/sepolicy/prebuilts/api/26.0/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/sepolicy/prebuilts/api/27.0/private/
Dhwservice_contexts41 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/bt/audio_hearing_aid_hw/src/
Daudio_hearing_aid_hw.cc271 struct timeval tv; in skt_connect() local
272 tv.tv_sec = SOCK_SEND_TIMEOUT_MS / 1000; in skt_connect()
273 tv.tv_usec = (SOCK_SEND_TIMEOUT_MS % 1000) * 1000; in skt_connect()
275 ret = setsockopt(skt_fd, SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(tv)); in skt_connect()
278 tv.tv_sec = SOCK_RECV_TIMEOUT_MS / 1000; in skt_connect()
279 tv.tv_usec = (SOCK_RECV_TIMEOUT_MS % 1000) * 1000; in skt_connect()
281 ret = setsockopt(skt_fd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)); in skt_connect()
/system/core/trusty/libtrusty/tipc-test/
Dtipc_test.c463 struct timeval tv; in _wait_for_msg() local
472 tv.tv_sec = timeout; in _wait_for_msg()
473 tv.tv_usec = 0; in _wait_for_msg()
476 rc = select(fd+1, &rfds, NULL, NULL, &tv); in _wait_for_msg()
/system/sepolicy/prebuilts/api/28.0/private/
Dhwservice_contexts53 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/
Daudio_a2dp_hw.cc265 struct timeval tv; in skt_connect() local
266 tv.tv_sec = SOCK_SEND_TIMEOUT_MS / 1000; in skt_connect()
267 tv.tv_usec = (SOCK_SEND_TIMEOUT_MS % 1000) * 1000; in skt_connect()
269 ret = setsockopt(skt_fd, SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(tv)); in skt_connect()
272 tv.tv_sec = SOCK_RECV_TIMEOUT_MS / 1000; in skt_connect()
273 tv.tv_usec = (SOCK_RECV_TIMEOUT_MS % 1000) * 1000; in skt_connect()
275 ret = setsockopt(skt_fd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)); in skt_connect()

12