diff options
| author | Hui Yu <huiyu@google.com> | 2021-01-19 21:52:26 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2021-01-19 21:52:26 +0000 |
| commit | bc503754fde2a60cfc81ad035aaa60bbea7bf719 (patch) | |
| tree | e4ad99c93c00c0073116400cd9316160c656e4fa /core/java/android/app/ActivityManagerInternal.java | |
| parent | 0533a1bfe44526ab17a4e69c64ceb59787c01cad (diff) | |
| parent | 19b558678dc2a69068f64fc5b137e5c0e03c0a25 (diff) | |
Merge "DeviceIdleController updates AMS with temp allowlist type."
Diffstat (limited to 'core/java/android/app/ActivityManagerInternal.java')
| -rw-r--r-- | core/java/android/app/ActivityManagerInternal.java | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/core/java/android/app/ActivityManagerInternal.java b/core/java/android/app/ActivityManagerInternal.java index f7f42a6e2713..986051cccd51 100644 --- a/core/java/android/app/ActivityManagerInternal.java +++ b/core/java/android/app/ActivityManagerInternal.java @@ -98,7 +98,7 @@ public abstract class ActivityManagerInternal { public abstract void killForegroundAppsForUser(@UserIdInt int userId); /** - * Sets how long a {@link PendingIntent} can be temporarily whitelist to by bypass restrictions + * Sets how long a {@link PendingIntent} can be temporarily allowlisted to bypass restrictions * such as Power Save mode. * @param target * @param whitelistToken @@ -132,9 +132,14 @@ public abstract class ActivityManagerInternal { /** * Update information about which app IDs are on the temp whitelist. - */ - public abstract void updateDeviceIdleTempWhitelist(int[] appids, int changingAppId, - boolean adding); + * @param appids the updated list of appIds in temp allowlist. + * @param changingUid uid to add or remove to temp allowlist. + * @param adding true to add to temp allowlist, false to remove from temp allowlist. + * @param durationMs when adding is true, the duration to be in temp allowlist. + * @param type temp allowlist type defined at {@link BroadcastOptions.TempAllowListType}. + */ + public abstract void updateDeviceIdleTempWhitelist(int[] appids, int changingUid, + boolean adding, long durationMs, @BroadcastOptions.TempAllowListType int type); /** * Get the procstate for the UID. The return value will be between |
