Home
last modified time | relevance | path

Searched refs:TimerState (Results 1 – 4 of 4) sorted by relevance

/frameworks/native/services/surfaceflinger/Scheduler/
DOneShotTimer.cpp37 mState = TimerState::RESET; in start()
45 mState = TimerState::STOPPED; in stop()
59 if (mState == TimerState::STOPPED) { in loop()
63 if (mState == TimerState::IDLE) { in loop()
68 if (mState == TimerState::RESET) { in loop()
78 if (mState == TimerState::STOPPED) { in loop()
83 mState = TimerState::WAITING; in loop()
84 while (mState == TimerState::WAITING) { in loop()
88 if (mState == TimerState::RESET) { in loop()
90 mState = TimerState::WAITING; in loop()
[all …]
DScheduler.h172 enum class TimerState { Reset, Expired }; enum
188 void kernelIdleTimerCallback(TimerState);
189 void idleTimerCallback(TimerState);
190 void touchTimerCallback(TimerState);
191 void displayPowerTimerCallback(TimerState);
251 TimerState idleTimer = TimerState::Reset;
253 TimerState displayPowerTimer = TimerState::Expired;
DOneShotTimer.h53 enum class TimerState { enum
83 TimerState mState GUARDED_BY(mMutex) = TimerState::RESET;
DScheduler.cpp126 [this, callback] { std::invoke(callback, this, TimerState::Reset); }, in Scheduler()
127 [this, callback] { std::invoke(callback, this, TimerState::Expired); }); in Scheduler()
135 [this] { touchTimerCallback(TimerState::Reset); }, in Scheduler()
136 [this] { touchTimerCallback(TimerState::Expired); }); in Scheduler()
143 [this] { displayPowerTimerCallback(TimerState::Reset); }, in Scheduler()
144 [this] { displayPowerTimerCallback(TimerState::Expired); }); in Scheduler()
537 void Scheduler::kernelIdleTimerCallback(TimerState state) { in kernelIdleTimerCallback()
544 if (state == TimerState::Reset && refreshRate.getFps() > FPS_THRESHOLD_FOR_KERNEL_TIMER) { in kernelIdleTimerCallback()
549 } else if (state == TimerState::Expired && in kernelIdleTimerCallback()
557 mSchedulerCallback.kernelTimerChanged(state == TimerState::Expired); in kernelIdleTimerCallback()
[all …]