summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAravind Akella <aakella@google.com>2014-02-28 18:46:19 -0800
committerAravind Akella <aakella@google.com>2014-04-23 16:09:24 -0700
commit6242f32a22c42c81d8a9a12885c794d85bf3cf63 (patch)
treef1e313fe39930e44e2b25ad8a88a954bf419470b /tests
parent0ab4c96ab8889127955971bbf5c157b7191cd1ea (diff)
downloadhardware_libhardware-6242f32a22c42c81d8a9a12885c794d85bf3cf63.zip
hardware_libhardware-6242f32a22c42c81d8a9a12885c794d85bf3cf63.tar.gz
hardware_libhardware-6242f32a22c42c81d8a9a12885c794d85bf3cf63.tar.bz2
Define new wake_up sensors in sensors.h
i) Define WAKE_UP sensors. ii) Deprecate flags DRY_RUN and WAKE_UPON_FIFO_FULL. iii) Define maxDelay and isWakeUpSensor flag in sensor_t. Bug: 13251067 Change-Id: Ic474d90d05459b06e93094856423f6645b4bf58e
Diffstat (limited to 'tests')
-rw-r--r--tests/hardware/struct-offset.cpp7
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);