summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/com/android/settings/applications/ProcessStatsUi.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/com/android/settings/applications/ProcessStatsUi.java b/src/com/android/settings/applications/ProcessStatsUi.java
index a5ebd22..14e0b90 100644
--- a/src/com/android/settings/applications/ProcessStatsUi.java
+++ b/src/com/android/settings/applications/ProcessStatsUi.java
@@ -370,11 +370,19 @@ public class ProcessStatsUi extends PreferenceFragment
mAppListGroup.addPreference(notAvailable);
}
+ /**
+ * All states in which we consider a process to be actively running (rather than
+ * something that can be freely killed to reclaim RAM). Note this also includes
+ * the HOME state, because we prioritize home over all cached processes even when
+ * it is in the background, so it is effectively always running from the perspective
+ * of the information we want to show the user here.
+ */
public static final int[] BACKGROUND_AND_SYSTEM_PROC_STATES = new int[] {
ProcessStats.STATE_PERSISTENT, ProcessStats.STATE_IMPORTANT_FOREGROUND,
ProcessStats.STATE_IMPORTANT_BACKGROUND, ProcessStats.STATE_BACKUP,
ProcessStats.STATE_HEAVY_WEIGHT, ProcessStats.STATE_SERVICE,
- ProcessStats.STATE_SERVICE_RESTARTING, ProcessStats.STATE_RECEIVER
+ ProcessStats.STATE_SERVICE_RESTARTING, ProcessStats.STATE_RECEIVER,
+ ProcessStats.STATE_HOME
};
public static final int[] FOREGROUND_PROC_STATES = new int[] {