Add glance gesture for doze mode.

Change-Id: I038a706c3999200313ff5360c5ff1150ec081f08
This commit is contained in:
Jeff Brown 2014-07-17 15:13:55 -07:00
parent 0d6180f122
commit 31d825d7ed

View File

@ -251,6 +251,10 @@ Sensor::Sensor(struct sensor_t const* hwSensor, int halVersion)
mStringType = SENSOR_STRING_TYPE_WAKE_GESTURE; mStringType = SENSOR_STRING_TYPE_WAKE_GESTURE;
mFlags |= (SENSOR_FLAG_ONE_SHOT_MODE | SENSOR_FLAG_WAKE_UP); mFlags |= (SENSOR_FLAG_ONE_SHOT_MODE | SENSOR_FLAG_WAKE_UP);
break; break;
case SENSOR_TYPE_GLANCE_GESTURE:
mStringType = SENSOR_STRING_TYPE_GLANCE_GESTURE;
mFlags |= (SENSOR_FLAG_ONE_SHOT_MODE | SENSOR_FLAG_WAKE_UP);
break;
default: default:
// Only pipe the stringType, requiredPermission and flags for custom sensors. // Only pipe the stringType, requiredPermission and flags for custom sensors.
if (halVersion >= SENSORS_DEVICE_API_VERSION_1_2 && hwSensor->stringType) { if (halVersion >= SENSORS_DEVICE_API_VERSION_1_2 && hwSensor->stringType) {