diff --git a/apex/jobscheduler/framework/java/android/os/PowerExemptionManager.java b/apex/jobscheduler/framework/java/android/os/PowerExemptionManager.java index 8445335b568ed..6d9334d833d38 100644 --- a/apex/jobscheduler/framework/java/android/os/PowerExemptionManager.java +++ b/apex/jobscheduler/framework/java/android/os/PowerExemptionManager.java @@ -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: diff --git a/core/api/system-current.txt b/core/api/system-current.txt index e7e85067cca1f..1ef690630bea3 100644 --- a/core/api/system-current.txt +++ b/core/api/system-current.txt @@ -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