am 82677b95: am e57c3a88: Merge "Add APIs for finding heavy-weight apps." into gingerbread

Merge commit '82677b9585968806800abff65c5b1529f509a313'

* commit '82677b9585968806800abff65c5b1529f509a313':
  Add APIs for finding heavy-weight apps.
This commit is contained in:
Dianne Hackborn
2010-06-24 12:46:31 -07:00
committed by Android Git Automerger
3 changed files with 41 additions and 0 deletions

View File

@@ -717,8 +717,23 @@ 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();