Add support for SENSOR_TYPE_WRIST_TILT_GESTURE
Change-Id: I7e5516de805618df41de0f9b06805002e32708c3
This commit is contained in:
parent
d25be0ea48
commit
9bb99b1570
@ -204,6 +204,13 @@ Sensor::Sensor(struct sensor_t const* hwSensor, int halVersion)
|
|||||||
mFlags |= SENSOR_FLAG_WAKE_UP;
|
mFlags |= SENSOR_FLAG_WAKE_UP;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case SENSOR_TYPE_WRIST_TILT_GESTURE:
|
||||||
|
mStringType = SENSOR_STRING_TYPE_WRIST_TILT_GESTURE;
|
||||||
|
mFlags |= SENSOR_FLAG_SPECIAL_REPORTING_MODE;
|
||||||
|
if (halVersion < SENSORS_DEVICE_API_VERSION_1_3) {
|
||||||
|
mFlags |= 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_0 && hwSensor->stringType) {
|
if (halVersion > SENSORS_DEVICE_API_VERSION_1_0 && hwSensor->stringType) {
|
||||||
|
Loading…
Reference in New Issue
Block a user