Hide permanent allow list methods.
Bug: 183052977 Test: m Change-Id: I78736c648b0b50a87029b2dd48d9a5a42117f3a7
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -8290,12 +8290,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
|
||||
|
||||
Reference in New Issue
Block a user