summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorWei Wang <wvw@google.com>2016-05-18 11:32:52 -0700
committerWei Wang <wvw@google.com>2016-05-31 18:34:01 -0700
commit98f03f98acb4bf8020be21be0f261f3d285b7d2e (patch)
tree0b069f46c0c40797c6c5fd4cf00416e3985f1e26 /core/java
parentce8e88aaabdca9572a17e59e4d54db055a11e10a (diff)
Trigger power hints for activity launch
BUG: 28220567 Change-Id: Id2a0397efd1dd02ee50d5626edaed9e60ea6de8a
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/os/PowerManagerInternal.java9
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) {