| /system/utest/timers/ |
| A D | timers.cpp | 35 zx::timer timer; in timer_set_negative_deadline() local 36 ASSERT_EQ(zx::timer::create(0, ZX_CLOCK_MONOTONIC, &timer), ZX_OK); in timer_set_negative_deadline() 47 zx::timer timer; in timer_set_negative_deadline_max() local 48 ASSERT_EQ(zx::timer::create(0, ZX_CLOCK_MONOTONIC, &timer), ZX_OK); in timer_set_negative_deadline_max() 59 zx::timer timer; in timer_set_negative_slack() local 67 zx::timer timer; in basic_test() local 88 zx::timer timer; in restart_test() local 107 zx::timer timer; in invalid_calls() local 117 zx::timer timer; in edge_cases() local 132 zx::timer timer; in restart_race() local [all …]
|
| /system/ulib/zx/include/lib/zx/ |
| A D | timer.h | 15 class timer : public object<timer> { 19 constexpr timer() = default; 21 explicit timer(zx_handle_t value) : object(value) {} in timer() function 23 explicit timer(handle&& h) : object(h.release()) {} in timer() function 25 timer(timer&& other) : object(other.release()) {} in timer() function 27 timer& operator=(timer&& other) { 32 static zx_status_t create(uint32_t options, zx_clock_t clock_id, timer* result); 43 using unowned_timer = unowned<timer>;
|
| /system/utest/perftest/ |
| A D | timer-test.cpp | 37 zx::timer timer; in TimerWaitTest() local 39 status = zx::timer::create(slack_type, ZX_CLOCK_MONOTONIC, &timer); in TimerWaitTest() 43 status = timer.set(zx::deadline_after(timer_state.wait_time), in TimerWaitTest() 46 zx_status_t status = timer.wait_one( in TimerWaitTest() 61 for (auto timer : timers) { in RegisterTests() local 64 timer.wait_time.to_msecs(), in RegisterTests() 66 timer.slack_time.to_usecs()); in RegisterTests() 67 perftest::RegisterTest(name.c_str(), TimerWaitTest, timer, slack_type); in RegisterTests()
|
| A D | rules.mk | 23 $(LOCAL_DIR)/timer-test.cpp \
|
| /system/utest/cobalt-client/ |
| A D | timer_test.cpp | 36 TimerBase<FakeClock> timer(true); in TestCollecting() local 38 ASSERT_EQ(timer.End().to_nsecs(), fzl::TicksToNs(zx::ticks(3)).to_nsecs()); in TestCollecting() 45 TimerBase<FakeClock> timer(false); in TestNotCollecting() local 47 ASSERT_EQ(timer.End().to_nsecs(), fzl::TicksToNs(zx::ticks(0)).to_nsecs()); in TestNotCollecting() 54 TimerBase<FakeClock> timer(true); in TestReset() local 56 timer.Reset(); in TestReset() 58 ASSERT_EQ(timer.End().to_nsecs(), fzl::TicksToNs(zx::ticks(4)).to_nsecs()); in TestReset() 65 TimerBase<FakeClock> timer(false); in TestResetNotCollecting() local 67 timer.Reset(); in TestResetNotCollecting() 69 ASSERT_EQ(timer.End().to_nsecs(), fzl::TicksToNs(zx::ticks(0)).to_nsecs()); in TestResetNotCollecting()
|
| /system/ulib/zx/ |
| A D | timer.cpp | 11 zx_status_t timer::create(uint32_t options, zx_clock_t clock_id, timer* result) { in create()
|
| A D | rules.mk | 31 $(LOCAL_DIR)/timer.cpp \
|
| /system/core/virtcon/ |
| A D | keyboard.cpp | 71 zx_handle_t timer; member 127 zx_handle_close(vi->timer); in vc_input_destroy() 144 zx_timer_set(vi->timer, zx_deadline_after(vi->repeat_interval), 0); in vc_timer_cb() 172 zx_timer_set(vi->timer, zx_deadline_after(vi->repeat_interval), 0); in vc_input_cb() 203 if ((r = zx_timer_create(0, ZX_CLOCK_MONOTONIC, &vi->timer)) < 0) { in vc_input_create() 210 zx_handle_close(vi->timer); in vc_input_create() 217 zx_handle_close(vi->timer); in vc_input_create() 222 vi->th.handle = vi->timer; in vc_input_create()
|
| /system/ulib/dispatcher-pool/ |
| A D | dispatcher-timer.cpp | 37 zx::timer timer; in Activate() local 38 zx_status_t res = zx::timer::create(0, ZX_CLOCK_MONOTONIC, &timer); in Activate() 44 res = ActivateLocked(std::move(timer), std::move(domain)); in Activate()
|
| A D | rules.mk | 19 $(LOCAL_DIR)/dispatcher-timer.cpp \
|
| /system/utest/libzx/ |
| A D | traits.cpp | 180 zx::timer timer; in traits_test() local 181 ASSERT_EQ(zx::timer::create(0u, ZX_CLOCK_MONOTONIC, &timer), ZX_OK); in traits_test() 182 duplicating(timer); in traits_test() 183 user_signaling(timer); in traits_test() 184 waiting(timer); in traits_test() 185 peering(timer); in traits_test()
|
| /system/fidl/fuchsia-cobalt/ |
| A D | cobalt.fidl | 347 // the timer. A corresponding invocation of EndTimer() with the same 364 // |timer_id| The ID of the timer being started. This is an arbitrary 387 // timer_id. In that case this call creates a new timer with 389 // (ii) Cobalt currently has a timer with the given timer_id for 392 // timer and invoke LogElapsedTime() using the difference 399 // timestamp. In the last case Cobalt will delete the timer with 410 // the timer. A corresponding invocation of StartTimer() with the same 417 // |timer_id| The ID of the timer being ended. This is an arbitrary 440 // timer_id. In that case this call creates a new timer with 442 // (ii) Cobalt currently has a timer with the given timer_id for [all …]
|
| /system/ulib/async-loop/ |
| A D | loop.c | 81 zx_handle_t timer; // immutable member 168 status = zx_timer_create(0u, ZX_CLOCK_MONOTONIC, &loop->timer); in async_loop_create() 170 status = zx_object_wait_async(loop->timer, loop->port, KEY_CONTROL, in async_loop_create() 193 zx_handle_close(loop->timer); in async_loop_destroy() 732 zx_status_t status = zx_timer_set(loop->timer, deadline, 0); in async_loop_restart_timer_locked()
|
| /system/dev/audio/sherlock-pdm-input/ |
| A D | audio-stream-in.cpp | 172 [pdm = this](dispatcher::Timer * timer)->zx_status_t { in InitPost() argument
|
| /system/host/banjo/examples/ |
| A D | types.banjo | 251 handle<timer> timer_handle; 270 handle<timer>? nullable_timer_handle;
|
| /system/dev/audio/astro-pdm-input/ |
| A D | audio-stream-in.cpp | 173 [pdm = this](dispatcher::Timer * timer)->zx_status_t { in InitPost() argument
|
| /system/host/fidl/examples/ |
| A D | types.fidl | 251 handle<timer> timer_handle; 271 handle<timer>? nullable_timer_handle;
|
| /system/dev/audio/astro-tdm-output/ |
| A D | audio-stream-out.cpp | 143 [tdm = this](dispatcher::Timer * timer)->zx_status_t { in InitPost() argument
|
| /system/dev/audio/sherlock-tdm-output/ |
| A D | audio-stream-out.cpp | 178 [tdm = this](dispatcher::Timer * timer)->zx_status_t { in InitPost() argument
|
| /system/dev/bus/virtio/ |
| A D | socket.h | 404 zx::timer tx_retry_timer_ TA_GUARDED(lock_);
|
| A D | socket.cpp | 314 rc = zx::timer::create(ZX_TIMER_SLACK_CENTER, ZX_CLOCK_MONOTONIC, &tx_retry_timer_); in Init()
|
| /system/public/zircon/ |
| A D | syscalls.abigen | 73 #^ Read the number of high-precision timer ticks since boot. 78 #^ Read the number of high-precision timer ticks in a second. 566 #^ create a timer 571 #^ start a timer 577 #^ cancel a timer
|
| /system/dev/audio/gauss-tdm/ |
| A D | gauss-tdm-stream.cpp | 86 [tdm = stream](dispatcher::Timer * timer)->zx_status_t { in Create() argument
|