summaryrefslogtreecommitdiffstats
path: root/include/hardware/sensors.h
diff options
context:
space:
mode:
authorNick Vaccaro <nvaccaro@google.com>2015-01-13 12:14:28 -0800
committerNick Vaccaro <nvaccaro@google.com>2015-02-05 12:26:35 -0800
commitadbfbb747de9fe1efc21fc83f6591e7d13c81c36 (patch)
treee1d0f456f04c0b64c903500e20bd2fb97ebc945e /include/hardware/sensors.h
parenta163e491c148468884520d6d331a0f6d19104677 (diff)
downloadhardware_libhardware-adbfbb747de9fe1efc21fc83f6591e7d13c81c36.zip
hardware_libhardware-adbfbb747de9fe1efc21fc83f6591e7d13c81c36.tar.gz
hardware_libhardware-adbfbb747de9fe1efc21fc83f6591e7d13c81c36.tar.bz2
Add new SENSOR_TYPE_WRIST_TILT_GESTURE sensor type
Adds a new sensor type for converting the Android Wear defined wrist tilt sensor type into an official android sensor type. Change-Id: If6357aeb463a556a68a19b28931edec04f99a952
Diffstat (limited to 'include/hardware/sensors.h')
-rw-r--r--include/hardware/sensors.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/hardware/sensors.h b/include/hardware/sensors.h
index f0773d5..e917c0a 100644
--- a/include/hardware/sensors.h
+++ b/include/hardware/sensors.h
@@ -602,6 +602,22 @@ enum {
#define SENSOR_TYPE_PICK_UP_GESTURE (25)
#define SENSOR_STRING_TYPE_PICK_UP_GESTURE "android.sensor.pick_up_gesture"
+/*
+ * SENSOR_TYPE_WRIST_TILT_GESTURE
+ * trigger-mode: special
+ * wake-up sensor: yes
+ *
+ * A sensor of this type triggers an event each time a tilt of the wrist-worn
+ * device is detected.
+ *
+ * This sensor must be low power, as it is likely to be activated 24/7.
+ * The only allowed value to return is 1.0.
+ *
+ * Implement only the wake-up version of this sensor.
+ */
+#define SENSOR_TYPE_WRIST_TILT_GESTURE (26)
+#define SENSOR_STRING_TYPE_WRIST_TILT_GESTURE "android.sensor.wrist_tilt_gesture"
+
/**
* Values returned by the accelerometer in various locations in the universe.
* all values are in SI units (m/s^2)