summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChenjie Luo <cjluo@google.com>2016-07-14 15:46:58 -0700
committerChenjie Luo <cjluo@google.com>2016-07-18 16:16:45 -0700
commit2df182d7b140d5d351ba6f4670f2cc9bc77e1846 (patch)
treea81b475a945e4c11842f63b0d5dd93e362e81ac4
parenta2aa3f358f55422f36982b02ff05441a808aee53 (diff)
downloadlibhardware-2df182d7b140d5d351ba6f4670f2cc9bc77e1846.tar.gz
DO NOT MERGE ANYWHERE power: Adds POWER_HINT_DISABLE_TOUCH
POWER_HINT_DISABLE_TOUCH is used to hint power hal that device is in a state that touch controller could be disabled to save power. Bug: 30143923 Change-Id: I56c588e62afadffdb367b6e2c3115cffef51bb45 (cherry picked from commit 90db35122df088212dfef1c09af9d5470363d6c0)
-rw-r--r--include/hardware/power.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/hardware/power.h b/include/hardware/power.h
index 9d6ba45f..8da1f982 100644
--- a/include/hardware/power.h
+++ b/include/hardware/power.h
@@ -49,7 +49,8 @@ typedef enum {
POWER_HINT_LOW_POWER = 0x00000005,
POWER_HINT_FOREGROUND_LOAD = 0x00000006,
POWER_HINT_VR_MODE = 0x00000007,
- POWER_HINT_LAUNCH = 0x00000008
+ POWER_HINT_LAUNCH = 0x00000008,
+ POWER_HINT_DISABLE_TOUCH = 0x00000009
} power_hint_t;
typedef enum {
@@ -129,6 +130,14 @@ typedef struct power_module {
* parameter is non-zero when low power mode is activated, and zero
* when deactivated.
*
+ * POWER_HINT_DISABLE_TOUCH
+ *
+ * When device enters some special modes, e.g. theater mode in Android
+ * Wear, there is no touch interaction expected between device and user.
+ * Touch controller could be disabled in those modes to save power.
+ * The data parameter is non-zero when touch could be disabled, and zero
+ * when touch needs to be re-enabled.
+ *
* A particular platform may choose to ignore any hint.
*
* availability: version 0.2