Define SENSOR_TYPE_PICK_UP_GESTURE.
Change-Id: I122f37f5625a2acc3912ad37bdf8717ae2f31b6f
diff --git a/include/hardware/sensors.h b/include/hardware/sensors.h
index 5ba5ef7..5312b34 100644
--- a/include/hardware/sensors.h
+++ b/include/hardware/sensors.h
@@ -578,6 +578,18 @@
#define SENSOR_STRING_TYPE_WAKE_GESTURE "android.sensor.wake_gesture"
/**
+ * SENSOR_TYPE_PICK_UP_GESTURE
+ * reporting-mode: one-shot
+ * wake-up sensor: yes (set SENSOR_FLAG_WAKE_UP flag)
+ *
+ * A sensor of this type triggers when the device is picked up regardless of wherever is was
+ * before (desk, pocket, bag). The only allowed return value is 1.0.
+ * This sensor de-activates itself immediately after it triggers.
+ */
+#define SENSOR_TYPE_PICK_UP_GESTURE (43)
+#define SENSOR_STRING_TYPE_PICK_UP_GESTURE "android.sensor.pick_up_gesture"
+
+/**
* Values returned by the accelerometer in various locations in the universe.
* all values are in SI units (m/s^2)
*/
@@ -950,7 +962,6 @@
} sensors_poll_device_1_t;
-
/** convenience API for opening and closing a device */
static inline int sensors_open(const struct hw_module_t* module,