Sensors: Set the wakeup LOW_LATENCY_OFFBODY_DETECT as default

This sensor type is included in the wakeup sensor list returned by
the native sensor API, but missing in the list returned by Java API.

Test: Sensor.isWakeUpSensor()
Bug: 187181510
Change-Id: I8de98755af7c85a7a4c907c83d69c254ea8f8d7b
This commit is contained in:
Ivan Gorinov
2021-05-04 21:10:52 -07:00
parent 24120d982a
commit a7765759c4

View File

@@ -497,6 +497,7 @@ public abstract class SensorManager {
if (type == Sensor.TYPE_PROXIMITY || type == Sensor.TYPE_SIGNIFICANT_MOTION
|| type == Sensor.TYPE_TILT_DETECTOR || type == Sensor.TYPE_WAKE_GESTURE
|| type == Sensor.TYPE_GLANCE_GESTURE || type == Sensor.TYPE_PICK_UP_GESTURE
|| type == Sensor.TYPE_LOW_LATENCY_OFFBODY_DETECT
|| type == Sensor.TYPE_WRIST_TILT_GESTURE
|| type == Sensor.TYPE_DYNAMIC_SENSOR_META || type == Sensor.TYPE_HINGE_ANGLE) {
wakeUpSensor = true;