Add a new temp-allowlist reason for "account transfer"
Bug: 171305836 Test: Build. Change-Id: Id01331332a862ef10b0f108ffab6ca492357b51a
This commit is contained in:
@@ -193,6 +193,10 @@ public class PowerExemptionManager {
|
||||
* Set temp-allow-list for activity recognition.
|
||||
*/
|
||||
public static final int REASON_ACTIVITY_RECOGNITION = 103;
|
||||
/**
|
||||
* Set temp-allow-list for transferring accounts between users.
|
||||
*/
|
||||
public static final int REASON_ACCOUNT_TRANSFER = 104;
|
||||
|
||||
/* Reason code range 200-299 are reserved for broadcast actions */
|
||||
/**
|
||||
@@ -329,6 +333,7 @@ public class PowerExemptionManager {
|
||||
REASON_PUSH_MESSAGING,
|
||||
REASON_PUSH_MESSAGING_OVER_QUOTA,
|
||||
REASON_ACTIVITY_RECOGNITION,
|
||||
REASON_ACCOUNT_TRANSFER,
|
||||
REASON_BOOT_COMPLETED,
|
||||
REASON_PRE_BOOT_COMPLETED,
|
||||
REASON_LOCKED_BOOT_COMPLETED,
|
||||
@@ -579,6 +584,8 @@ public class PowerExemptionManager {
|
||||
return "PUSH_MESSAGING_OVER_QUOTA";
|
||||
case REASON_ACTIVITY_RECOGNITION:
|
||||
return "ACTIVITY_RECOGNITION";
|
||||
case REASON_ACCOUNT_TRANSFER:
|
||||
return "REASON_ACCOUNT_TRANSFER";
|
||||
case REASON_BOOT_COMPLETED:
|
||||
return "BOOT_COMPLETED";
|
||||
case REASON_PRE_BOOT_COMPLETED:
|
||||
|
||||
@@ -8184,6 +8184,7 @@ package android.os {
|
||||
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
|
||||
field public static final int REASON_ACCOUNT_TRANSFER = 104; // 0x68
|
||||
field public static final int REASON_ACTIVITY_RECOGNITION = 103; // 0x67
|
||||
field public static final int REASON_GEOFENCING = 100; // 0x64
|
||||
field public static final int REASON_OTHER = 1; // 0x1
|
||||
|
||||
Reference in New Issue
Block a user