diff options
| author | Wei Wang <wvw@google.com> | 2016-06-01 03:06:36 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2016-06-01 03:06:38 +0000 |
| commit | 2ab4ac38350b51c239fe564bc89727b201036205 (patch) | |
| tree | b44e35b491ebecc706ba28aa1896defe8e4ce049 /core/java | |
| parent | ae01e27755107d437bc92b1f994932c860453453 (diff) | |
| parent | 98f03f98acb4bf8020be21be0f261f3d285b7d2e (diff) | |
Merge "Trigger power hints for activity launch" into nyc-mr1-dev
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/os/PowerManagerInternal.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/core/java/android/os/PowerManagerInternal.java b/core/java/android/os/PowerManagerInternal.java index b3cf710094e0..9bbe8f951834 100644 --- a/core/java/android/os/PowerManagerInternal.java +++ b/core/java/android/os/PowerManagerInternal.java @@ -57,14 +57,19 @@ public abstract class PowerManagerInternal { /** * Power hint: * Interaction: The user is interacting with the device. The corresponding data field must be - * the expected duration of the fling, or 0 if unknown. + * the expected duration of the interaction, or 0 if unknown. * - * Sustained Performance Mode: Enable/Disables Sustained Performance Mode. + * Sustained Performance Mode: The corresponding data field must be Enable/Disable + * Sustained Performance Mode. + * + * Launch: This is specific for activity launching. The corresponding data field must be + * the expected duration of the required boost, or 0 if unknown. * * These must be kept in sync with the values in hardware/libhardware/include/hardware/power.h */ public static final int POWER_HINT_INTERACTION = 2; public static final int POWER_HINT_SUSTAINED_PERFORMANCE_MODE = 6; + public static final int POWER_HINT_LAUNCH = 8; public static String wakefulnessToString(int wakefulness) { switch (wakefulness) { |
