Loading services/core/java/com/android/server/am/ActivityRecord.java +6 −2 Original line number Diff line number Diff line Loading @@ -1309,8 +1309,12 @@ final class ActivityRecord { state == ActivityState.RESUMED; } public void setSleeping(boolean _sleeping) { if (sleeping == _sleeping) { void setSleeping(boolean _sleeping) { setSleeping(_sleeping, false); } void setSleeping(boolean _sleeping, boolean force) { if (!force && sleeping == _sleeping) { return; } if (app != null && app.thread != null) { Loading services/core/java/com/android/server/am/ActivityStack.java +0 −9 Original line number Diff line number Diff line Loading @@ -4512,15 +4512,6 @@ final class ActivityStack { return true; } // TODO: We could probably make the condition below just check that the activity state is // stopped, but also checking the sleep state for now to reduce change impact late in // development cycle. if (mService.isSleepingOrShuttingDownLocked() && r.state == ActivityState.STOPPED) { if (DEBUG_SWITCH || DEBUG_CONFIGURATION) Slog.v(TAG_CONFIGURATION, "Skipping config check (stopped while sleeping): " + r); return true; } if (DEBUG_SWITCH || DEBUG_CONFIGURATION) Slog.v(TAG_CONFIGURATION, "Ensuring correct configuration: " + r); Loading services/core/java/com/android/server/am/ActivityStackSupervisor.java +6 −0 Original line number Diff line number Diff line Loading @@ -3708,6 +3708,12 @@ public final class ActivityStackSupervisor implements DisplayListener { void activityRelaunchedLocked(IBinder token) { mWindowManager.notifyAppRelaunchingFinished(token); if (mService.isSleepingOrShuttingDownLocked()) { final ActivityRecord r = ActivityRecord.isInStackLocked(token); if (r != null) { r.setSleeping(true, true); } } } void activityRelaunchingLocked(ActivityRecord r) { Loading Loading
services/core/java/com/android/server/am/ActivityRecord.java +6 −2 Original line number Diff line number Diff line Loading @@ -1309,8 +1309,12 @@ final class ActivityRecord { state == ActivityState.RESUMED; } public void setSleeping(boolean _sleeping) { if (sleeping == _sleeping) { void setSleeping(boolean _sleeping) { setSleeping(_sleeping, false); } void setSleeping(boolean _sleeping, boolean force) { if (!force && sleeping == _sleeping) { return; } if (app != null && app.thread != null) { Loading
services/core/java/com/android/server/am/ActivityStack.java +0 −9 Original line number Diff line number Diff line Loading @@ -4512,15 +4512,6 @@ final class ActivityStack { return true; } // TODO: We could probably make the condition below just check that the activity state is // stopped, but also checking the sleep state for now to reduce change impact late in // development cycle. if (mService.isSleepingOrShuttingDownLocked() && r.state == ActivityState.STOPPED) { if (DEBUG_SWITCH || DEBUG_CONFIGURATION) Slog.v(TAG_CONFIGURATION, "Skipping config check (stopped while sleeping): " + r); return true; } if (DEBUG_SWITCH || DEBUG_CONFIGURATION) Slog.v(TAG_CONFIGURATION, "Ensuring correct configuration: " + r); Loading
services/core/java/com/android/server/am/ActivityStackSupervisor.java +6 −0 Original line number Diff line number Diff line Loading @@ -3708,6 +3708,12 @@ public final class ActivityStackSupervisor implements DisplayListener { void activityRelaunchedLocked(IBinder token) { mWindowManager.notifyAppRelaunchingFinished(token); if (mService.isSleepingOrShuttingDownLocked()) { final ActivityRecord r = ActivityRecord.isInStackLocked(token); if (r != null) { r.setSleeping(true, true); } } } void activityRelaunchingLocked(ActivityRecord r) { Loading