summaryrefslogtreecommitdiffstats
path: root/native/android
diff options
context:
space:
mode:
authorAravind Akella <aakella@google.com>2014-06-03 19:20:42 -0700
committerAravind Akella <aakella@google.com>2014-06-09 16:56:29 -0700
commit27900358f2f5b89e8b01516b28a916d16c99ba9b (patch)
treee298a6f85f6afe5f47f885b7574f01c15ebb7fa3 /native/android
parent13d6cfb3b51c4740585cb7881f83ce789527901a (diff)
downloadframeworks_base-27900358f2f5b89e8b01516b28a916d16c99ba9b.zip
frameworks_base-27900358f2f5b89e8b01516b28a916d16c99ba9b.tar.gz
frameworks_base-27900358f2f5b89e8b01516b28a916d16c99ba9b.tar.bz2
Add java APIs for Sensor reportingMode.
Change-Id: Iba6bb11f990d9966b86bf02d70ced7312f3e64a8
Diffstat (limited to 'native/android')
-rw-r--r--native/android/sensor.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/native/android/sensor.cpp b/native/android/sensor.cpp
index 3f37ed1..b09bc2e 100644
--- a/native/android/sensor.cpp
+++ b/native/android/sensor.cpp
@@ -171,3 +171,8 @@ const char* ASensor_getStringType(ASensor const* sensor)
{
return static_cast<Sensor const*>(sensor)->getStringType().string();
}
+
+int ASensor_getReportingMode(ASensor const* sensor)
+{
+ return static_cast<Sensor const*>(sensor)->getReportingMode();
+}