diff options
| author | Dianne Hackborn <hackbod@google.com> | 2010-06-24 11:23:39 -0700 |
|---|---|---|
| committer | Dianne Hackborn <hackbod@google.com> | 2010-06-24 11:38:47 -0700 |
| commit | baf42c625c3ef4cb7b732956a97953efd93b23bc (patch) | |
| tree | 42065f9b14d2bc9a5c123625b7248c5ee27387f3 /core/java/android/app/ActivityManager.java | |
| parent | 7fd22aab4506f65b7929ed1030bdd71c56f7db77 (diff) | |
Add APIs for finding heavy-weight apps.
Change-Id: I6c865cce404cac1a08eee056f963de5d276d5898
Diffstat (limited to 'core/java/android/app/ActivityManager.java')
| -rw-r--r-- | core/java/android/app/ActivityManager.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/core/java/android/app/ActivityManager.java b/core/java/android/app/ActivityManager.java index 7f95bf5d4b5b..eb7520f1c151 100644 --- a/core/java/android/app/ActivityManager.java +++ b/core/java/android/app/ActivityManager.java @@ -717,9 +717,24 @@ public class ActivityManager { */ public int uid; + /** + * All packages that have been loaded into the process. + */ public String pkgList[]; /** + * Constant for {@link #flags}: this is a heavy-weight process, + * meaning it will not be killed while in the background. + */ + public static final int FLAG_HEAVY_WEIGHT = 1<<0; + + /** + * Flags of information. May be any of + * {@link #FLAG_HEAVY_WEIGHT}. + */ + public int flags; + + /** * Constant for {@link #importance}: this process is running the * foreground UI. */ @@ -846,6 +861,7 @@ public class ActivityManager { dest.writeInt(pid); dest.writeInt(uid); dest.writeStringArray(pkgList); + dest.writeInt(this.flags); dest.writeInt(importance); dest.writeInt(lru); dest.writeInt(importanceReasonCode); @@ -858,6 +874,7 @@ public class ActivityManager { pid = source.readInt(); uid = source.readInt(); pkgList = source.readStringArray(); + flags = source.readInt(); importance = source.readInt(); lru = source.readInt(); importanceReasonCode = source.readInt(); |
