summaryrefslogtreecommitdiff
path: root/include/android
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2013-07-03 16:20:57 -0700
committer Mathias Agopian <mathias@google.com> 2013-07-08 15:44:41 -0700
commitba02cd2f6cc3f59adf66cb2b9176bfe6c9e382d1 (patch)
tree51961ca9c701778e3f4dc6bf8ac367a47d217733 /include/android
parentcf90bad477055fb4f1ff34c0883d744a3dfe94a1 (diff)
improve sensorservice's dumpsys
it now displays the reported trigger mode properly, as well as the number and type of the last received data Change-Id: I2ff64b32ab71f1332bc2e09671c8c02bb9550490
Diffstat (limited to 'include/android')
-rw-r--r--include/android/sensor.h23
1 files changed, 14 insertions, 9 deletions
diff --git a/include/android/sensor.h b/include/android/sensor.h
index 46832986b1..32c5c0a1fa 100644
--- a/include/android/sensor.h
+++ b/include/android/sensor.h
@@ -114,15 +114,20 @@ typedef struct ASensorEvent {
int32_t reserved0;
int64_t timestamp;
union {
- float data[16];
- ASensorVector vector;
- ASensorVector acceleration;
- ASensorVector magnetic;
- float temperature;
- float distance;
- float light;
- float pressure;
- float step_counter;
+ union {
+ float data[16];
+ ASensorVector vector;
+ ASensorVector acceleration;
+ ASensorVector magnetic;
+ float temperature;
+ float distance;
+ float light;
+ float pressure;
+ };
+ union {
+ uint64_t data[8];
+ uint64_t step_counter;
+ } u64;
};
int32_t reserved1[4];
} ASensorEvent;