diff options
| author | Wale Ogunwale <ogunwale@google.com> | 2018-05-09 07:41:32 -0700 |
|---|---|---|
| committer | Wale Ogunwale <ogunwale@google.com> | 2018-06-21 15:11:21 -0700 |
| commit | a6191b4fa1255f334afbfad15faf00423934a463 (patch) | |
| tree | 97accfb14093cde13a4e345b50be9027bb181690 /core/java/android/app/ActivityTaskManagerInternal.java | |
| parent | 553ac6feb35ee0c18226489763649ea865a117c1 (diff) | |
Moved more stuff from ActivityManagerService to ActivityTaskManagerService (9/n)
Moved more stuff related to activities out of the current service to the new one.
Test: Existing tests pass
Test: go/wm-smoke-auto
Bug: 80414790
Change-Id: I16863dd977bf09136cc23b0ab3aa197c613879ea
Diffstat (limited to 'core/java/android/app/ActivityTaskManagerInternal.java')
| -rw-r--r-- | core/java/android/app/ActivityTaskManagerInternal.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/core/java/android/app/ActivityTaskManagerInternal.java b/core/java/android/app/ActivityTaskManagerInternal.java index 170cb52e41f4..fa78db5c3d6d 100644 --- a/core/java/android/app/ActivityTaskManagerInternal.java +++ b/core/java/android/app/ActivityTaskManagerInternal.java @@ -243,4 +243,24 @@ public abstract class ActivityTaskManagerInternal { */ public abstract void notifyActiveVoiceInteractionServiceChanged(ComponentName component); + /** + * Set a uid that is allowed to bypass stopped app switches, launching an app + * whenever it wants. + * + * @param type Type of the caller -- unique string the caller supplies to identify itself + * and disambiguate with other calles. + * @param uid The uid of the app to be allowed, or -1 to clear the uid for this type. + * @param userId The user it is allowed for. + */ + public abstract void setAllowAppSwitches(@NonNull String type, int uid, int userId); + + /** + * Called when a user has been deleted. This can happen during normal device usage + * or just at startup, when partially removed users are purged. Any state persisted by the + * ActivityManager should be purged now. + * + * @param userId The user being cleaned up. + */ + public abstract void onUserStopped(int userId); + public abstract boolean isGetTasksAllowed(String caller, int callingPid, int callingUid); } |
