summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorHui Yu <huiyu@google.com>2021-03-01 16:30:58 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2021-03-01 16:30:58 +0000
commit2533037dc52dfde1561c3d319cf18219164feefb (patch)
treea640ed7e1b748179930b51c2d940442002a1c079 /core/java
parent6d5cc3989be7a7b9a873e21d212d32c4ee5a31fb (diff)
parenta31f4f26c4a73344f4b22710fcddef719c493f0f (diff)
Merge "Call new API setTemporaryAppAllowlist() and specify temp-allowlist reasonCode." into sc-dev
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/app/BroadcastOptions.java17
1 files changed, 0 insertions, 17 deletions
diff --git a/core/java/android/app/BroadcastOptions.java b/core/java/android/app/BroadcastOptions.java
index 2e06e9b80595..477e96b16daf 100644
--- a/core/java/android/app/BroadcastOptions.java
+++ b/core/java/android/app/BroadcastOptions.java
@@ -144,23 +144,6 @@ public class BroadcastOptions {
* Set a duration for which the system should temporary place an application on the
* power allowlist when this broadcast is being delivered to it, specify the temp allowlist
* type.
- * @param type one of {@link TempAllowListType}
- * @param duration the duration in milliseconds; 0 means to not place on allowlist.
- * @deprecated use {@link #setTemporaryAppAllowlist(long, int, int, String)} instead.
- */
- @Deprecated
- @RequiresPermission(anyOf = {android.Manifest.permission.CHANGE_DEVICE_IDLE_TEMP_WHITELIST,
- android.Manifest.permission.START_ACTIVITIES_FROM_BACKGROUND,
- android.Manifest.permission.START_FOREGROUND_SERVICES_FROM_BACKGROUND})
- public void setTemporaryAppWhitelistDuration(@TempAllowListType int type, long duration) {
- setTemporaryAppAllowlist(duration, type,
- PowerWhitelistManager.REASON_UNKNOWN, null);
- }
-
- /**
- * Set a duration for which the system should temporary place an application on the
- * power allowlist when this broadcast is being delivered to it, specify the temp allowlist
- * type.
* @param duration the duration in milliseconds; 0 means to not place on allowlist.
* @param type one of {@link TempAllowListType}
* @param reasonCode one of {@link ReasonCode}, use