Loading services/core/java/com/android/server/wm/ActivityTaskSupervisor.java +1 −1 Original line number Diff line number Diff line Loading @@ -2538,7 +2538,7 @@ public class ActivityTaskSupervisor implements RecentTasks.Callbacks { void wakeUp(int displayId, String reason) { mPowerManager.wakeUp(SystemClock.uptimeMillis(), PowerManager.WAKE_REASON_APPLICATION, "android.server.am:TURN_ON:" + reason, displayId); "android.server.wm:TURN_ON:" + reason, displayId); } /** Starts a batch of visibility updates. */ Loading services/core/java/com/android/server/wm/Task.java +9 −3 Original line number Diff line number Diff line Loading @@ -5230,10 +5230,16 @@ class Task extends TaskFragment { // to ensure any necessary pause logic occurs. In the case where the Activity will be // shown regardless of the lock screen, the call to // {@link ActivityTaskSupervisor#checkReadyForSleepLocked} is skipped. if (shouldSleepActivities()) { final ActivityRecord next = topRunningActivity(true /* focusableOnly */); if (next == null || !next.canTurnScreenOn()) { if (next != null && next.canTurnScreenOn() && !mWmService.mPowerManager.isInteractive()) { mTaskSupervisor.wakeUp(getDisplayId(), "resumeTop-turnScreenOnFlag"); next.setCurrentLaunchCanTurnScreenOn(false); } else { checkReadyForSleep(); } } } finally { mInResumeTopActivity = false; } Loading Loading
services/core/java/com/android/server/wm/ActivityTaskSupervisor.java +1 −1 Original line number Diff line number Diff line Loading @@ -2538,7 +2538,7 @@ public class ActivityTaskSupervisor implements RecentTasks.Callbacks { void wakeUp(int displayId, String reason) { mPowerManager.wakeUp(SystemClock.uptimeMillis(), PowerManager.WAKE_REASON_APPLICATION, "android.server.am:TURN_ON:" + reason, displayId); "android.server.wm:TURN_ON:" + reason, displayId); } /** Starts a batch of visibility updates. */ Loading
services/core/java/com/android/server/wm/Task.java +9 −3 Original line number Diff line number Diff line Loading @@ -5230,10 +5230,16 @@ class Task extends TaskFragment { // to ensure any necessary pause logic occurs. In the case where the Activity will be // shown regardless of the lock screen, the call to // {@link ActivityTaskSupervisor#checkReadyForSleepLocked} is skipped. if (shouldSleepActivities()) { final ActivityRecord next = topRunningActivity(true /* focusableOnly */); if (next == null || !next.canTurnScreenOn()) { if (next != null && next.canTurnScreenOn() && !mWmService.mPowerManager.isInteractive()) { mTaskSupervisor.wakeUp(getDisplayId(), "resumeTop-turnScreenOnFlag"); next.setCurrentLaunchCanTurnScreenOn(false); } else { checkReadyForSleep(); } } } finally { mInResumeTopActivity = false; } Loading