diff options
author | Aravind Akella <aakella@google.com> | 2014-04-24 00:41:18 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-04-24 00:41:18 +0000 |
commit | 4fa0f418a3b6c3b26671e6f6456577990d411eb4 (patch) | |
tree | e16ab8ce87e54c046deee433edb1352a3954739e /tests | |
parent | 69fad6c5299e04f94b3dbccf95bc9281713ee4c2 (diff) | |
parent | 6242f32a22c42c81d8a9a12885c794d85bf3cf63 (diff) | |
download | hardware_libhardware-4fa0f418a3b6c3b26671e6f6456577990d411eb4.zip hardware_libhardware-4fa0f418a3b6c3b26671e6f6456577990d411eb4.tar.gz hardware_libhardware-4fa0f418a3b6c3b26671e6f6456577990d411eb4.tar.bz2 |
Merge "Define new wake_up sensors in sensors.h"
Diffstat (limited to 'tests')
-rw-r--r-- | tests/hardware/struct-offset.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/hardware/struct-offset.cpp b/tests/hardware/struct-offset.cpp index bdb1fad..523becc 100644 --- a/tests/hardware/struct-offset.cpp +++ b/tests/hardware/struct-offset.cpp @@ -88,6 +88,8 @@ void CheckOffsets(void) { CHECK_MEMBER_AT(sensors_event_t, u64, 24, 24); CHECK_MEMBER_AT(sensors_event_t, u64.data, 24, 24); CHECK_MEMBER_AT(sensors_event_t, u64.step_counter, 24, 24); + CHECK_MEMBER_AT(sensors_event_t, flags, 88, 88); + CHECK_MEMBER_AT(sensors_event_t, reserved1, 92, 92); CHECK_MEMBER_AT(struct sensor_t, name, 0, 0); CHECK_MEMBER_AT(struct sensor_t, vendor, 4, 8); @@ -100,6 +102,11 @@ void CheckOffsets(void) { CHECK_MEMBER_AT(struct sensor_t, minDelay, 32, 40); CHECK_MEMBER_AT(struct sensor_t, fifoReservedEventCount, 36, 44); CHECK_MEMBER_AT(struct sensor_t, fifoMaxEventCount, 40, 48); + CHECK_MEMBER_AT(struct sensor_t, stringType, 44, 56); + CHECK_MEMBER_AT(struct sensor_t, requiredPermission, 48, 64); + CHECK_MEMBER_AT(struct sensor_t, maxDelay, 52, 72); + CHECK_MEMBER_AT(struct sensor_t, flags, 56, 80); + CHECK_MEMBER_AT(struct sensor_t, reserved, 60, 88); CHECK_MEMBER_AT(sensors_poll_device_1_t, v0, 0, 0); CHECK_MEMBER_AT(sensors_poll_device_1_t, common, 0, 0); |