diff options
author | Etienne Le Grand <etn@google.com> | 2014-03-24 21:29:28 -0700 |
---|---|---|
committer | Etienne Le Grand <etn@google.com> | 2014-04-04 16:31:08 -0700 |
commit | fd53d8352a4617941b0a0449390aa562a01ea1d3 (patch) | |
tree | d073c795af27b374151ddb9481e3789924d1614c /native | |
parent | 8e63696a73dfebae9b2ec123611db6b21968dbfd (diff) | |
download | frameworks_base-fd53d8352a4617941b0a0449390aa562a01ea1d3.zip frameworks_base-fd53d8352a4617941b0a0449390aa562a01ea1d3.tar.gz frameworks_base-fd53d8352a4617941b0a0449390aa562a01ea1d3.tar.bz2 |
Add stringType and requiredPermissions to SensorManager.java, as well as a permission for the heart rate sensor
Change-Id: I16e5da68f860494e24cca64075be76fad02617bc
Diffstat (limited to 'native')
-rw-r--r-- | native/android/sensor.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/native/android/sensor.cpp b/native/android/sensor.cpp index 76c6eda..fb4de9e 100644 --- a/native/android/sensor.cpp +++ b/native/android/sensor.cpp @@ -153,3 +153,23 @@ int ASensor_getMinDelay(ASensor const* sensor) { return static_cast<Sensor const*>(sensor)->getMinDelay(); } + +int ASensor_getFifoMaxEventCount(ASensor const* sensor) +{ + return static_cast<Sensor const*>(sensor)->getFifoMaxEventCount(); +} + +int ASensor_getFifoReservedEventCount(ASensor const* sensor) +{ + return static_cast<Sensor const*>(sensor)->getFifoReservedEventCount(); +} + +const char* ASensor_getStringType(ASensor const* sensor) +{ + return static_cast<Sensor const*>(sensor)->getStringType().string(); +} + +const char* ASensor_getRequiredPermission(ASensor const* sensor) +{ + return static_cast<Sensor const*>(sensor)->getRequiredPermission().string(); +} |