Loading services/core/java/com/android/server/display/DisplayPowerController.java +1 −5 Original line number Diff line number Diff line Loading @@ -2243,12 +2243,8 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call // This surface is essentially the final state of the color fade animation and // it is only removed once the window manager tells us that the activity has // finished drawing underneath. // If mPendingScreenOffUnblocker is not null, it means we are waiting for // the window manager policy to unblock the screen off. This policy is doing something // like creating a snapshot, so should not report the screen off. if (isOff && mReportedScreenStateToPolicy != REPORTED_TO_POLICY_SCREEN_OFF && !mDisplayPowerProximityStateController.isScreenOffBecauseOfProximity() && mPendingScreenOffUnblocker == null) { && !mDisplayPowerProximityStateController.isScreenOffBecauseOfProximity()) { setReportedScreenState(REPORTED_TO_POLICY_SCREEN_OFF); unblockScreenOn(); mWindowManagerPolicy.screenTurnedOff(mDisplayId, mIsInTransition); Loading Loading
services/core/java/com/android/server/display/DisplayPowerController.java +1 −5 Original line number Diff line number Diff line Loading @@ -2243,12 +2243,8 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call // This surface is essentially the final state of the color fade animation and // it is only removed once the window manager tells us that the activity has // finished drawing underneath. // If mPendingScreenOffUnblocker is not null, it means we are waiting for // the window manager policy to unblock the screen off. This policy is doing something // like creating a snapshot, so should not report the screen off. if (isOff && mReportedScreenStateToPolicy != REPORTED_TO_POLICY_SCREEN_OFF && !mDisplayPowerProximityStateController.isScreenOffBecauseOfProximity() && mPendingScreenOffUnblocker == null) { && !mDisplayPowerProximityStateController.isScreenOffBecauseOfProximity()) { setReportedScreenState(REPORTED_TO_POLICY_SCREEN_OFF); unblockScreenOn(); mWindowManagerPolicy.screenTurnedOff(mDisplayId, mIsInTransition); Loading