Lines Matching refs:DisplayState
88 DisplayState ScreenController::GetState() in GetState()
93 DisplayState ScreenController::SetDelayOffState() in SetDelayOffState()
96 state_ = DisplayState::DISPLAY_DELAY_OFF; in SetDelayOffState()
100 DisplayState ScreenController::SetOnState() in SetOnState()
103 state_ = DisplayState::DISPLAY_ON; in SetOnState()
107 bool ScreenController::UpdateState(DisplayState state, uint32_t reason) in UpdateState()
114 case DisplayState::DISPLAY_ON: in UpdateState()
115 case DisplayState::DISPLAY_OFF: { in UpdateState()
116 function<void(DisplayState)> callback = in UpdateState()
125 case DisplayState::DISPLAY_DIM: in UpdateState()
126 case DisplayState::DISPLAY_SUSPEND: { in UpdateState()
149 return (state_ == DisplayState::DISPLAY_ON || state_ == DisplayState::DISPLAY_DIM); in IsScreenOn()
261 void ScreenController::OnStateChanged(DisplayState state, uint32_t reason) in OnStateChanged()
270 if (state == DisplayState::DISPLAY_ON) { in OnStateChanged()