Add a LINT.IfChange to sensors_event_t
If that is changed, ASensorEvent also needs to be changed. Test: na Bug: 259711109 Change-Id: If1fdedba6a73d46b64f47490a7946954c47a3b79
This commit is contained in:
parent
65d6174bbc
commit
894dd49d68
1 changed files with 3 additions and 0 deletions
|
@ -367,9 +367,11 @@ typedef struct {
|
||||||
float accuracy;
|
float accuracy;
|
||||||
} heading_event_t;
|
} heading_event_t;
|
||||||
|
|
||||||
|
// LINT.IfChange
|
||||||
/**
|
/**
|
||||||
* Union of the various types of sensor data
|
* Union of the various types of sensor data
|
||||||
* that can be returned.
|
* that can be returned.
|
||||||
|
* This type needs to remain identical to ASensorEvent.
|
||||||
*/
|
*/
|
||||||
typedef struct sensors_event_t {
|
typedef struct sensors_event_t {
|
||||||
/* must be sizeof(struct sensors_event_t) */
|
/* must be sizeof(struct sensors_event_t) */
|
||||||
|
@ -479,6 +481,7 @@ typedef struct sensors_event_t {
|
||||||
|
|
||||||
uint32_t reserved1[3];
|
uint32_t reserved1[3];
|
||||||
} sensors_event_t;
|
} sensors_event_t;
|
||||||
|
// LINT.ThenChange (frameworks/native/include/android/sensor.h)
|
||||||
|
|
||||||
|
|
||||||
/* see SENSOR_TYPE_META_DATA */
|
/* see SENSOR_TYPE_META_DATA */
|
||||||
|
|
Loading…
Reference in a new issue