Home
last modified time | relevance | path

Searched refs:sleep_time (Results 1 – 3 of 3) sorted by relevance

/hardware/interfaces/keymaster/4.0/vts/functional/
DVerificationTokenTest.cpp55 struct timespec sleep_time = {static_cast<time_t>(milliseconds / 1000), in sleep_ms() local
57 while (sleep_time.tv_sec || sleep_time.tv_nsec) { in sleep_ms()
58 if (nanosleep(&sleep_time /* to wait */, in sleep_ms()
59 &sleep_time /* remaining (on interrruption) */) == 0) { in sleep_ms()
60 sleep_time = {}; in sleep_ms()
/hardware/libhardware/modules/audio/
Daudio_hw.c167 int64_t sleep_time = bytes * 1000000LL / audio_stream_out_frame_size(stream) / in out_write() local
169 if (sleep_time > 0) { in out_write()
170 usleep(sleep_time); in out_write()
173 sleep_time = 0; in out_write()
175 out->last_write_time_us = now + sleep_time; in out_write()
312 int64_t sleep_time = bytes * 1000000LL / audio_stream_in_frame_size(stream) / in in_read() local
314 if (sleep_time > 0) { in in_read()
315 usleep(sleep_time); in in_read()
317 sleep_time = 0; in in_read()
319 in->last_read_time_us = now + sleep_time; in in_read()
/hardware/google/pixel/power-libperfmgr/libperfmgr/tests/
DRequestGroupTest.cc45 auto sleep_time = 200ms; in TEST() local
46 std::this_thread::sleep_for(sleep_time); in TEST()
49 EXPECT_NEAR((duration - sleep_time).count(), expire_time.count(), in TEST()