Merge "Enable Gyroscope sensor injection by AIDL flag" into main

This commit is contained in:
Treehugger Robot 2023-07-26 17:22:28 +00:00 committed by Gerrit Code Review
commit bfa8a13317

View file

@ -343,7 +343,7 @@ GyroSensor::GyroSensor(int32_t sensorHandle, ISensorsEventCallback* callback) :
mSensorInfo.fifoReservedEventCount = 0; mSensorInfo.fifoReservedEventCount = 0;
mSensorInfo.fifoMaxEventCount = 0; mSensorInfo.fifoMaxEventCount = 0;
mSensorInfo.requiredPermission = ""; mSensorInfo.requiredPermission = "";
mSensorInfo.flags = 0; mSensorInfo.flags = static_cast<uint32_t>(SensorInfo::SENSOR_FLAG_BITS_DATA_INJECTION);
}; };
void GyroSensor::readEventPayload(EventPayload& payload) { void GyroSensor::readEventPayload(EventPayload& payload) {