Include process state in association tracking

Bug: 26165863
Change-Id: Ic1f3237d85dd9f9b55a412bc8609e60e6c2f3fd2
This commit is contained in:
Joe Onorato
2016-03-30 15:13:46 -07:00
parent e015cd4de7
commit 05c9ecc08a
3 changed files with 75 additions and 13 deletions

View File

@@ -377,6 +377,12 @@ public class ActivityManager {
/** @hide Process is being cached for later use and is empty. */
public static final int PROCESS_STATE_CACHED_EMPTY = 16;
/** @hide The lowest process state number */
public static final int MIN_PROCESS_STATE = PROCESS_STATE_NONEXISTENT;
/** @hide The highest process state number */
public static final int MAX_PROCESS_STATE = PROCESS_STATE_CACHED_EMPTY;
/** @hide Should this process state be considered a background state? */
public static final boolean isProcStateBackground(int procState) {
return procState >= PROCESS_STATE_BACKUP;