am 42db3761: Merge "DO NOT MERGE Change display state modification during dozing" into klp-modular-dev

* commit '42db3761c9ee3df11a367cbc907f2ba433251634':
  DO NOT MERGE Change display state modification during dozing
This commit is contained in:
Prashant Malani
2014-06-06 00:16:35 +00:00
committed by Android Git Automerger

View File

@@ -706,8 +706,14 @@ final class DisplayPowerController {
// Turn the screen on. The contents of the screen may not yet
// be visible if the electron beam has not been dismissed because
// its last frame of animation is solid black.
setScreenState(mPowerRequest.screenState == DisplayPowerRequest.SCREEN_STATE_DOZE
? Display.STATE_DOZING : Display.STATE_ON);
if (mPowerRequest.screenState == DisplayPowerRequest.SCREEN_STATE_DOZE) {
if (!mScreenBrightnessRampAnimator.isAnimating()) {
setScreenState(Display.STATE_DOZING);
}
} else {
setScreenState(Display.STATE_ON);
}
if (mPowerRequest.blockScreenOn
&& mPowerState.getElectronBeamLevel() == 0.0f) {