Lines Matching refs:timer
92 void (*timer_init)(Looper* looper, LoopTimer* timer, LoopTimerFunc callback, void* opaque);
129 loopTimer_init(LoopTimer* timer, in loopTimer_init() argument
134 looper->timer_init(looper, timer, callback, opaque); in loopTimer_init()
139 loopTimer_done(LoopTimer* timer) in loopTimer_done() argument
141 timer->clazz->done(timer->impl); in loopTimer_done()
142 timer->clazz = NULL; in loopTimer_done()
143 timer->impl = NULL; in loopTimer_done()
151 loopTimer_startRelative(LoopTimer* timer, Duration timeout_ms) in loopTimer_startRelative() argument
153 timer->clazz->startRelative(timer->impl, timeout_ms); in loopTimer_startRelative()
163 loopTimer_startAbsolute(LoopTimer* timer, Duration deadline_ms) in loopTimer_startAbsolute() argument
165 timer->clazz->startAbsolute(timer->impl, deadline_ms); in loopTimer_startAbsolute()
170 loopTimer_stop(LoopTimer* timer) in loopTimer_stop() argument
172 timer->clazz->stop(timer->impl); in loopTimer_stop()
177 loopTimer_isActive(LoopTimer* timer) in loopTimer_isActive() argument
179 return timer->clazz->isActive(timer->impl); in loopTimer_isActive()