Define SENSOR_TYPE_PICK_UP_GESTURE.

Change-Id: I122f37f5625a2acc3912ad37bdf8717ae2f31b6f
This commit is contained in:
Aravind Akella
2014-07-17 12:40:54 -07:00
parent 299664d8e8
commit 952471eb99

View File

@@ -577,6 +577,18 @@ enum {
#define SENSOR_TYPE_WAKE_GESTURE (42)
#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 @@ typedef struct sensors_poll_device_1 {
} sensors_poll_device_1_t;
/** convenience API for opening and closing a device */
static inline int sensors_open(const struct hw_module_t* module,