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

Commit 0a1603ca authored by Aravind Akella's avatar Aravind Akella Committed by Android Git Automerger
Browse files

am 5c7de95f: am 3e826b78: Merge "Define TYPE_PICK_UP_GESTURE." into lmp-dev

* commit '5c7de95f38f3a18bf8d301ce9fc0298e3f3ae5de':
  Define TYPE_PICK_UP_GESTURE.
parents e27df58a f478e327
Loading
Loading
Loading
Loading
+20 −0
Original line number Original line Diff line number Diff line
@@ -781,6 +781,25 @@ public final class Sensor {
     */
     */
    public static final String STRING_TYPE_GLANCE_GESTURE = "android.sensor.glance_gesture";
    public static final String STRING_TYPE_GLANCE_GESTURE = "android.sensor.glance_gesture";


     /**
     * A constant describing a pick up sensor.
     *
     * A sensor of this type triggers when the device is picked up regardless of wherever it was
     * before (desk, pocket, bag). The only allowed return value is 1.0. This sensor deactivates
     * itself immediately after it triggers.
     *
     * @hide Expected to be used internally for always on display.
     */
    public static final int TYPE_PICK_UP_GESTURE = 44;

    /**
     * A constant string describing a pick up sensor.
     *
     * @hide This sensor is expected to be used internally for always on display.
     * @see #TYPE_PICK_UP_GESTURE
     */
    public static final String STRING_TYPE_PICK_UP_GESTURE = "android.sensor.pick_up_gesture";

    /**
    /**
     * A constant describing all sensor types.
     * A constant describing all sensor types.
     */
     */
@@ -880,6 +899,7 @@ public final class Sensor {
            1, // SENSOR_TYPE_WAKE_UP_TILT_DETECTOR
            1, // SENSOR_TYPE_WAKE_UP_TILT_DETECTOR
            1, // SENSOR_TYPE_WAKE_GESTURE
            1, // SENSOR_TYPE_WAKE_GESTURE
            1, // SENSOR_TYPE_GLANCE_GESTURE
            1, // SENSOR_TYPE_GLANCE_GESTURE
            1, // SENSOR_TYPE_PICK_UP_GESTURE
    };
    };


    /**
    /**