am 31d825d7
: Add glance gesture for doze mode.
* commit '31d825d7edcaac7254f310d3cf85af9fc1927c25': Add glance gesture for doze mode.
This commit is contained in:
commit
4d8ee47d92
@ -251,6 +251,10 @@ Sensor::Sensor(struct sensor_t const* hwSensor, int halVersion)
|
||||
mStringType = SENSOR_STRING_TYPE_WAKE_GESTURE;
|
||||
mFlags |= (SENSOR_FLAG_ONE_SHOT_MODE | SENSOR_FLAG_WAKE_UP);
|
||||
break;
|
||||
case SENSOR_TYPE_GLANCE_GESTURE:
|
||||
mStringType = SENSOR_STRING_TYPE_GLANCE_GESTURE;
|
||||
mFlags |= (SENSOR_FLAG_ONE_SHOT_MODE | SENSOR_FLAG_WAKE_UP);
|
||||
break;
|
||||
default:
|
||||
// Only pipe the stringType, requiredPermission and flags for custom sensors.
|
||||
if (halVersion >= SENSORS_DEVICE_API_VERSION_1_2 && hwSensor->stringType) {
|
||||
|
Loading…
Reference in New Issue
Block a user