diff options
| author | 2021-03-25 17:20:27 +0000 | |
|---|---|---|
| committer | 2021-03-25 17:20:27 +0000 | |
| commit | 8481c3ae9d07b3c86f4698dcec3a62689d38a55e (patch) | |
| tree | c129f3395613f5e909ca3799440f0ab2a7731495 | |
| parent | 8a42d0300c6302d45d0d04f448f20898ac883cc2 (diff) | |
| parent | b2f88488e9a639b67285527daf51d60e46311890 (diff) | |
Merge "Hide permanent allow list methods." into sc-dev
| -rw-r--r-- | apex/jobscheduler/framework/java/android/os/PowerExemptionManager.java | 6 | ||||
| -rw-r--r-- | core/api/system-current.txt | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/apex/jobscheduler/framework/java/android/os/PowerExemptionManager.java b/apex/jobscheduler/framework/java/android/os/PowerExemptionManager.java index 63b3959eeafd..fea7a11ba61a 100644 --- a/apex/jobscheduler/framework/java/android/os/PowerExemptionManager.java +++ b/apex/jobscheduler/framework/java/android/os/PowerExemptionManager.java @@ -378,6 +378,8 @@ public class PowerExemptionManager { /** * Add the specified package to the permanent power save allow list. + * + * @hide */ @RequiresPermission(android.Manifest.permission.DEVICE_POWER) public void addToPermanentAllowList(@NonNull String packageName) { @@ -386,6 +388,8 @@ public class PowerExemptionManager { /** * Add the specified packages to the permanent power save allow list. + * + * @hide */ @RequiresPermission(android.Manifest.permission.DEVICE_POWER) public void addToPermanentAllowList(@NonNull List<String> packageNames) { @@ -402,6 +406,7 @@ public class PowerExemptionManager { * * @param includingIdle Set to true if the app should be allow-listed from device idle as well * as other power save restrictions + * @hide */ @NonNull @RequiresPermission(android.Manifest.permission.DEVICE_POWER) @@ -443,6 +448,7 @@ public class PowerExemptionManager { * removed. Apps allow-listed by default by the system cannot be removed. * * @param packageName The app to remove from the allow list + * @hide */ @RequiresPermission(android.Manifest.permission.DEVICE_POWER) public void removeFromPermanentAllowList(@NonNull String packageName) { diff --git a/core/api/system-current.txt b/core/api/system-current.txt index e8bdd41467d9..a569ec764954 100644 --- a/core/api/system-current.txt +++ b/core/api/system-current.txt @@ -8313,12 +8313,8 @@ package android.os { } public class PowerExemptionManager { - method @RequiresPermission(android.Manifest.permission.DEVICE_POWER) public void addToPermanentAllowList(@NonNull String); - method @RequiresPermission(android.Manifest.permission.DEVICE_POWER) public void addToPermanentAllowList(@NonNull java.util.List<java.lang.String>); method @RequiresPermission(android.Manifest.permission.CHANGE_DEVICE_IDLE_TEMP_WHITELIST) public void addToTemporaryAllowList(@NonNull String, int, @Nullable String, long); method @RequiresPermission(android.Manifest.permission.CHANGE_DEVICE_IDLE_TEMP_WHITELIST) public long addToTemporaryAllowListForEvent(@NonNull String, int, @Nullable String, int); - method @NonNull @RequiresPermission(android.Manifest.permission.DEVICE_POWER) public int[] getAllowListedAppIds(boolean); - method @RequiresPermission(android.Manifest.permission.DEVICE_POWER) public void removeFromPermanentAllowList(@NonNull String); field public static final int EVENT_MMS = 2; // 0x2 field public static final int EVENT_SMS = 1; // 0x1 field public static final int EVENT_UNSPECIFIED = 0; // 0x0 |