summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorPeng Xu <pengxu@google.com>2016-09-15 10:55:00 -0700
committerPeng Xu <pengxu@google.com>2016-09-27 14:09:33 -0700
commitd37a13bb5e403af8f309ef00d2b96af7f26f78f3 (patch)
tree7510aff769b954bc0344875eb1af1df32dfc553f /core/java/android
parent4ad6291b08c8ff0ab2d8efadd4bd6aacd59dd904 (diff)
TYPE_DYNAMIC_SENSOR_META should be wake up sensor
This CL makes the default TYPE_DYNAMIC_SENSOR_META sensor a wake-up type. Test: m cts-verifier Test: Run "Dynamic Sensor Discovery Test" with a sensor HAL that support dynamic sensor discovery (e.g. contexthub + ag/1189124) Bug: 31068976 Change-Id: I2e6320b1e1e34a8c22677be3e6e318c149e1bb26
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/hardware/SensorManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/hardware/SensorManager.java b/core/java/android/hardware/SensorManager.java
index a20307a868c7..909bc95d8953 100644
--- a/core/java/android/hardware/SensorManager.java
+++ b/core/java/android/hardware/SensorManager.java
@@ -492,7 +492,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_WRIST_TILT_GESTURE) {
+ type == Sensor.TYPE_WRIST_TILT_GESTURE || type == Sensor.TYPE_DYNAMIC_SENSOR_META) {
wakeUpSensor = true;
}