diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2019-08-23 03:18:18 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2019-08-23 03:18:18 +0000 |
commit | 7253439818c39c46bc26dc6fae73b708efb62589 (patch) | |
tree | 01939d3273798fe7a7b9832c9bde7d29ffa55e61 | |
parent | 88f11bd85c7fb859ff734c52e68d78e8935b401d (diff) | |
parent | 1fb00f5480d6a0fe3741fd323a751062f183c7f4 (diff) | |
download | base-7253439818c39c46bc26dc6fae73b708efb62589.tar.gz |
Merge cherrypicks of [9256783, 9255501, 9255502, 9256667, 9256422, 9256668] into qt-c2f2-releaseandroid-10.0.0_r7
Change-Id: I5847668b6d045b44d527dace05a8b6144cab5b3a
-rw-r--r-- | services/core/java/com/android/server/power/PowerManagerService.java | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/services/core/java/com/android/server/power/PowerManagerService.java b/services/core/java/com/android/server/power/PowerManagerService.java index dc56b03bb100..aa49ba62f48b 100644 --- a/services/core/java/com/android/server/power/PowerManagerService.java +++ b/services/core/java/com/android/server/power/PowerManagerService.java @@ -2735,17 +2735,6 @@ public final class PowerManagerService extends SystemService if (mScreenBrightnessBoostInProgress) { return true; } - - // Because summoning the sandman is asyncronous, there is a time-gap where - // we release the display suspend blocker before the dream service acquires - // their own wakelock. Within this gap, we can end up suspending before - // dream service has a chance to start. To avoid this, we check if we want - // to doze and the sandman is scheduled and if so, keep the display on until - // that has passed. - if (mWakefulness == WAKEFULNESS_DOZING && mSandmanScheduled) { - return true; - } - // Let the system suspend if the screen is off or dozing. return false; } |