ShortcutManager: Update foreground check.

am: 33525d2f1a

Change-Id: I08769ba85f38c6768515450696d49a9755c698fb
This commit is contained in:
Makoto Onuki
2016-08-04 19:35:41 +00:00
committed by android-build-merger
4 changed files with 30 additions and 2 deletions

View File

@@ -171,4 +171,12 @@ public abstract class ActivityManagerInternal {
*/
public abstract int startActivitiesAsPackage(String packageName,
int userId, Intent[] intents, Bundle bOptions);
/**
* Get the procstate for the UID. The return value will be between
* {@link ActivityManager#MIN_PROCESS_STATE} and {@link ActivityManager#MAX_PROCESS_STATE}.
* Note if the UID doesn't exist, it'll return {@link ActivityManager#PROCESS_STATE_NONEXISTENT}
* (-1).
*/
public abstract int getUidProcessState(int uid);
}