summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorEtienne Le Grand <etn@google.com>2014-05-12 19:38:13 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-05-12 19:38:13 +0000
commitf63cbbf0e43e68b5e0855252d2ff90faa28109b3 (patch)
tree44d6308554f26453a0985b2c0227016267897580 /libs
parentf974bffb36a97d21432a504a741330c4f4245746 (diff)
parente284a90f5027aed767ff10a31640a9cd9b974838 (diff)
downloadframeworks_native-f63cbbf0e43e68b5e0855252d2ff90faa28109b3.zip
frameworks_native-f63cbbf0e43e68b5e0855252d2ff90faa28109b3.tar.gz
frameworks_native-f63cbbf0e43e68b5e0855252d2ff90faa28109b3.tar.bz2
Merge "Add wake gesture in Sensor.cpp"
Diffstat (limited to 'libs')
-rw-r--r--libs/gui/Sensor.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/gui/Sensor.cpp b/libs/gui/Sensor.cpp
index b363411..b73df7c 100644
--- a/libs/gui/Sensor.cpp
+++ b/libs/gui/Sensor.cpp
@@ -203,6 +203,10 @@ Sensor::Sensor(struct sensor_t const* hwSensor, int halVersion)
mRequiredPermission = SENSOR_PERMISSION_BODY_SENSORS;
mWakeUpSensor = true;
break;
+ case SENSOR_TYPE_WAKE_GESTURE:
+ mStringType = SENSOR_STRING_TYPE_WAKE_GESTURE;
+ mWakeUpSensor = true;
+ break;
default:
// Only pipe the stringType, requiredPermission and flags for custom sensors.
if (halVersion >= SENSORS_DEVICE_API_VERSION_1_2 && hwSensor->stringType) {