diff options
author | 2022-11-29 19:12:55 +0000 | |
---|---|---|
committer | 2022-11-29 19:20:35 +0000 | |
commit | d047068bcc60e5e7cb22dfbeaeabb18736bb5761 (patch) | |
tree | 5acc0d65544cac343a063ff49511a17366b4d010 | |
parent | 81a86779a4a8e6d601b07dc66176840942b37875 (diff) |
Add a LINT.IfChange for ASensorEvent type
If that is changed, the sensor_event_t type also needs to be changed.
Test: na
Bug: 259711109
Change-Id: I6b5413093634af325c41030cdf490deb6621e128
-rw-r--r-- | include/android/sensor.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/android/sensor.h b/include/android/sensor.h index eef69f4b32..ba81bc8d8e 100644 --- a/include/android/sensor.h +++ b/include/android/sensor.h @@ -596,12 +596,15 @@ typedef struct AHeadingEvent { float accuracy; } AHeadingEvent; +// LINT.IfChange /** * Information that describes a sensor event, refer to * <a href="/reference/android/hardware/SensorEvent">SensorEvent</a> for additional * documentation. + * + * NOTE: changes to this struct has to be backward compatible and reflected in + * sensors_event_t */ -/* NOTE: changes to this struct has to be backward compatible */ typedef struct ASensorEvent { int32_t version; /* sizeof(struct ASensorEvent) */ int32_t sensor; /** The sensor that generates this event */ @@ -646,6 +649,7 @@ typedef struct ASensorEvent { uint32_t flags; int32_t reserved1[3]; } ASensorEvent; +// LINT.ThenChange (hardware/libhardware/include/hardware/sensors.h) struct ASensorManager; /** |