diff options
author | Aravind Akella <aakella@google.com> | 2014-06-03 19:20:42 -0700 |
---|---|---|
committer | Aravind Akella <aakella@google.com> | 2014-06-09 16:56:29 -0700 |
commit | 27900358f2f5b89e8b01516b28a916d16c99ba9b (patch) | |
tree | e298a6f85f6afe5f47f885b7574f01c15ebb7fa3 /native | |
parent | 13d6cfb3b51c4740585cb7881f83ce789527901a (diff) | |
download | frameworks_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')
-rw-r--r-- | native/android/sensor.cpp | 5 |
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(); +} |