Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7d319fca authored by Johan Euphrosine's avatar Johan Euphrosine
Browse files

include/android/sensor: add enum for LINEAR_ACCELERATION

Change-Id: I6e387f905ba87bde810952daf939ba0f529d18b8
parent 2acadb3f
Loading
Loading
Loading
Loading
+15 −7
Original line number Diff line number Diff line
@@ -59,7 +59,7 @@ extern "C" {

/**
 * Sensor types.
 * (keep in sync with hardware/sensor.h)
 * (keep in sync with hardware/sensors.h)
 */
enum {
    /**
@@ -67,7 +67,7 @@ enum {
     * reporting-mode: continuous
     *
     *  All values are in SI units (m/s^2) and measure the acceleration of the
     *  device minus the force of gravity.
     *  device including the force of gravity.
     */
    ASENSOR_TYPE_ACCELEROMETER       = 1,
    /**
@@ -103,7 +103,15 @@ enum {
     * SENSOR_FLAG_WAKE_UP.
     * The value corresponds to the distance to the nearest object in centimeters.
     */
    ASENSOR_TYPE_PROXIMITY          = 8
    ASENSOR_TYPE_PROXIMITY           = 8,
    /**
     * {@link ASENSOR_TYPE_LINEAR_ACCELERATION}
     * reporting-mode: continuous
     *
     *  All values are in SI units (m/s^2) and measure the acceleration of the
     *  device not including the force of gravity.
     */
    ASENSOR_TYPE_LINEAR_ACCELERATION = 10
};

/**