summaryrefslogtreecommitdiffstats
path: root/include/android
diff options
context:
space:
mode:
authorAravind Akella <aakella@google.com>2014-04-11 19:34:53 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-04-11 19:34:53 +0000
commitef89f7638c43ce5f73e32d487bf65c3375995e3b (patch)
tree57d1ac879061b82241dc4184422a98834624ab70 /include/android
parent974279d98917c589181b70ea1c377842e7717643 (diff)
parentcf818ebbf07c6a20ef48d71bf82f8d4bdf3a398c (diff)
downloadframeworks_native-ef89f7638c43ce5f73e32d487bf65c3375995e3b.zip
frameworks_native-ef89f7638c43ce5f73e32d487bf65c3375995e3b.tar.gz
frameworks_native-ef89f7638c43ce5f73e32d487bf65c3375995e3b.tar.bz2
am cf818ebb: Merge "Add stringType and requiredPermission to sensors, effectively adding permission checking for sensors" into klp-modular-dev
* commit 'cf818ebbf07c6a20ef48d71bf82f8d4bdf3a398c': Add stringType and requiredPermission to sensors, effectively adding permission checking for sensors
Diffstat (limited to 'include/android')
-rw-r--r--include/android/sensor.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/android/sensor.h b/include/android/sensor.h
index 129ea3e..b4e7ebe 100644
--- a/include/android/sensor.h
+++ b/include/android/sensor.h
@@ -281,6 +281,28 @@ float ASensor_getResolution(ASensor const* sensor);
*/
int ASensor_getMinDelay(ASensor const* sensor);
+/*
+ * Returns the maximum size of batches for this sensor. Batches will often be
+ * smaller, as the hardware fifo might be used for other sensors.
+ */
+int ASensor_getFifoMaxEventCount(ASensor const* sensor);
+
+/*
+ * Returns the hardware batch fifo size reserved to this sensor.
+ */
+int ASensor_getFifoReservedEventCount(ASensor const* sensor);
+
+/*
+ * Returns this sensor's string type.
+ */
+const char* ASensor_getStringType(ASensor const* sensor);
+
+/*
+ * Returns the permission required to see or access this sensor, or the
+ * empty string if none is required.
+ */
+const char* ASensor_getRequiredPermission(ASensor const* sensor);
+
#ifdef __cplusplus
};