Add missing union members to ASensorEvent
Named fields for accessing data from the gyroscope and uncalibrated
accelerometer sensor types were mistakenly left out of the union.
Although this data was accessible directly before, these fields make
developers' lives easier.
Fixes: 182903112
Test: compile only
Change-Id: If8189658030fab96b54b79dd318935b9116b5e58
diff --git a/include/android/sensor.h b/include/android/sensor.h
index 6447844..92b79c7 100644
--- a/include/android/sensor.h
+++ b/include/android/sensor.h
@@ -448,12 +448,14 @@
float data[16];
ASensorVector vector;
ASensorVector acceleration;
+ ASensorVector gyro;
ASensorVector magnetic;
float temperature;
float distance;
float light;
float pressure;
float relative_humidity;
+ AUncalibratedEvent uncalibrated_acceleration;
AUncalibratedEvent uncalibrated_gyro;
AUncalibratedEvent uncalibrated_magnetic;
AMetaDataEvent meta_data;