summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Nick Vaccaro <nvaccaro@google.com> 2016-10-18 17:16:00 +0000
committer android-build-merger <android-build-merger@google.com> 2016-10-18 17:16:00 +0000
commit0eabfd2d6e8eb5864149be13f32444ba94e1a57e (patch)
treeb77f2518003f66a84e99c440936427917c222d8f
parentce1a81070cb0d3e9ef7c441e41c90a3a3002b76a (diff)
parent5e7f79bf29e488ab589daf98b089697b8c767765 (diff)
Sensors: Add WRIST_TILT_GESTURE as wake sensor
am: 5e7f79bf29 Change-Id: Iffcd4b96d1156d314b42e89f8114b9b1de48d258
-rw-r--r--libs/gui/SensorManager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/gui/SensorManager.cpp b/libs/gui/SensorManager.cpp
index 5338034fd6..57c3073bf4 100644
--- a/libs/gui/SensorManager.cpp
+++ b/libs/gui/SensorManager.cpp
@@ -194,7 +194,8 @@ Sensor const* SensorManager::getDefaultSensor(int type)
// a non_wake-up version.
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_GLANCE_GESTURE || type == SENSOR_TYPE_PICK_UP_GESTURE ||
+ type == SENSOR_TYPE_WRIST_TILT_GESTURE) {
wakeUpSensor = true;
}
// For now we just return the first sensor of that type we find.