Merge "Enable Gyroscope sensor injection by AIDL flag" into main am: bfa8a13317 am: 9943d4fee0

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2671395

Change-Id: I468cd82a993b1ebc1db2fe0509e37230d58f385b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot 2023-07-26 19:15:11 +00:00 committed by Automerger Merge Worker
commit fe4f1eea8c

View file

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