diff options
author | Aravind Akella <aakella@google.com> | 2014-06-03 19:19:57 -0700 |
---|---|---|
committer | Aravind Akella <aakella@google.com> | 2014-06-12 14:49:41 -0700 |
commit | 0e025c5af365e45e02cb75c1d46b46c7f4cd44cb (patch) | |
tree | a02caaddee79ebbcd12d0aaf6ffd28cb9a48c9e3 /include/android | |
parent | 87947be61828a43fc738ffd204f72ab18b31946e (diff) | |
download | frameworks_native-0e025c5af365e45e02cb75c1d46b46c7f4cd44cb.tar.gz frameworks_native-0e025c5af365e45e02cb75c1d46b46c7f4cd44cb.tar.bz2 frameworks_native-0e025c5af365e45e02cb75c1d46b46c7f4cd44cb.zip |
Surface reportingMode for Sensors.
Change-Id: Iac8dd3408c90eb7d285a2e8043131fab3a7e58fa
Diffstat (limited to 'include/android')
-rw-r--r-- | include/android/sensor.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/android/sensor.h b/include/android/sensor.h index 878f8ff38..77a5a1c30 100644 --- a/include/android/sensor.h +++ b/include/android/sensor.h @@ -74,6 +74,16 @@ enum { }; /* + * Sensor Reporting Modes. + */ +enum { + AREPORTING_MODE_CONTINUOUS = 0, + AREPORTING_MODE_ON_CHANGE = 1, + AREPORTING_MODE_ONE_SHOT = 2, + AREPORTING_MODE_SPECIAL_TRIGGER = 3 +}; + +/* * A few useful constants */ @@ -306,6 +316,11 @@ int ASensor_getFifoReservedEventCount(ASensor const* sensor); */ const char* ASensor_getStringType(ASensor const* sensor); +/* + * Returns the reporting mode for this sensor. One of AREPORTING_MODE_* constants. + */ +int ASensor_getReportingMode(ASensor const* sensor); + #ifdef __cplusplus }; #endif |