summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2015-09-17 02:24:32 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-09-17 02:24:32 +0000
commit952d5b334ccdf9cab0f56673861906e59d4e9933 (patch)
tree4dc6629028530f6e711ab11fbfbfb0f19e58ac6d /core
parent18f18ae078ee97bbdfc9da39d4a19866dceb6a3e (diff)
parenta4d22d718affbc7145d1012157feb819557b5c06 (diff)
downloadframeworks_base-952d5b334ccdf9cab0f56673861906e59d4e9933.zip
frameworks_base-952d5b334ccdf9cab0f56673861906e59d4e9933.tar.gz
frameworks_base-952d5b334ccdf9cab0f56673861906e59d4e9933.tar.bz2
Merge "Send power hint on fling gestures." into mnc-dr-dev
Diffstat (limited to 'core')
-rw-r--r--core/java/android/os/PowerManagerInternal.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/java/android/os/PowerManagerInternal.java b/core/java/android/os/PowerManagerInternal.java
index e742f98..17bce30 100644
--- a/core/java/android/os/PowerManagerInternal.java
+++ b/core/java/android/os/PowerManagerInternal.java
@@ -53,6 +53,15 @@ public abstract class PowerManagerInternal {
*/
public static final int WAKEFULNESS_DOZING = 3;
+
+ /**
+ * Power hint: The user is interacting with the device. The corresponding data field must be
+ * the expected duration of the fling, or 0 if unknown.
+ *
+ * This 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 String wakefulnessToString(int wakefulness) {
switch (wakefulness) {
case WAKEFULNESS_ASLEEP:
@@ -142,4 +151,6 @@ public abstract class PowerManagerInternal {
public abstract void updateUidProcState(int uid, int procState);
public abstract void uidGone(int uid);
+
+ public abstract void powerHint(int hintId, int data);
}