diff options
author | Etienne Le Grand <etn@google.com> | 2014-05-05 18:20:42 -0700 |
---|---|---|
committer | Etienne Le Grand <etn@google.com> | 2014-05-06 12:24:28 -0700 |
commit | ba12312fe1731c627c9acbffdebbd0e16d50d231 (patch) | |
tree | fff271fc59b3a27bc391ef4b126afc7aa56dd83d /include/hardware/sensors.h | |
parent | d482efcd74fb497faf472272469523372b8349a0 (diff) | |
download | hardware_libhardware-ba12312fe1731c627c9acbffdebbd0e16d50d231.zip hardware_libhardware-ba12312fe1731c627c9acbffdebbd0e16d50d231.tar.gz hardware_libhardware-ba12312fe1731c627c9acbffdebbd0e16d50d231.tar.bz2 |
Add SENSOR_TYPE_WAKE_GESTURE in the sensor hal.
Change-Id: Ia84dfe487bfdea227d5ae856f7e44b021dac1f19
Diffstat (limited to 'include/hardware/sensors.h')
-rw-r--r-- | include/hardware/sensors.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/hardware/sensors.h b/include/hardware/sensors.h index d5be0c1..9327c41 100644 --- a/include/hardware/sensors.h +++ b/include/hardware/sensors.h @@ -533,6 +533,27 @@ enum { #define SENSOR_TYPE_WAKE_UP_TILT_DETECTOR (41) #define SENSOR_STRING_TYPE_WAKE_UP_TILT_DETECTOR "android.sensor.wake_up_tilt_detector" +/* + * SENSOR_TYPE_WAKE_GESTURE + * trigger-mode: one-shot + * wake-up sensor: yes (set SENSOR_FLAG_WAKE_UP flag) + * + * A sensor enabling waking up the device based on a device specific motion. + * + * When this sensor triggers, the device behaves as if the power button was + * pressed, turning the screen on. This behavior (turning on the screen when + * this sensor triggers) might be deactivated by the user in the device + * settings. Changes in settings do not impact the behavior of the sensor: + * only whether the framework turns the screen on when it triggers. + * + * The actual gesture to be detected is not specified, and can be chosen by + * the manufacturer of the device. + * This sensor must be low power, as it is likely to be activated 24/7. + * The only allowed value to return is 1.0. + */ +#define SENSOR_TYPE_WAKE_GESTURE (42) +#define SENSOR_STRING_TYPE_WAKE_GESTURE "android.sensor.wake_gesture" + /** * Values returned by the accelerometer in various locations in the universe. * all values are in SI units (m/s^2) |