diff options
author | Jaikumar Ganesh <jaikumar@google.com> | 2013-04-16 15:52:23 -0700 |
---|---|---|
committer | Jaikumar Ganesh <jaikumar@google.com> | 2013-04-17 14:58:22 -0700 |
commit | 4c01b1ad80e084f0cd1057f89fdd1fcedf19dd96 (patch) | |
tree | 2dae47263740a0d218a67bfa57e80e422c7572e9 /services/sensorservice/SensorInterface.cpp | |
parent | 883daf6eed36c11a7cb458f07a88e7a9cea29c27 (diff) | |
download | frameworks_native-4c01b1ad80e084f0cd1057f89fdd1fcedf19dd96.zip frameworks_native-4c01b1ad80e084f0cd1057f89fdd1fcedf19dd96.tar.gz frameworks_native-4c01b1ad80e084f0cd1057f89fdd1fcedf19dd96.tar.bz2 |
Fix activation issue with auto disabled sensors.
Auto disabled sensors get auto disabled after trigger.
An activation after this wasn't working because the
state was not being reset.
b/8609561
Change-Id: If72c9f27345e91671d7ad0a7a066f6dc3d255b78
Diffstat (limited to 'services/sensorservice/SensorInterface.cpp')
-rw-r--r-- | services/sensorservice/SensorInterface.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/services/sensorservice/SensorInterface.cpp b/services/sensorservice/SensorInterface.cpp index 468aa61..cf0a11d 100644 --- a/services/sensorservice/SensorInterface.cpp +++ b/services/sensorservice/SensorInterface.cpp @@ -54,6 +54,10 @@ status_t HardwareSensor::setDelay(void* ident, int handle, int64_t ns) { return mSensorDevice.setDelay(ident, handle, ns); } +status_t HardwareSensor::resetStateWithoutActuatingHardware(void *ident, int handle) { + return mSensorDevice.resetStateWithoutActuatingHardware(ident, handle); +} + Sensor HardwareSensor::getSensor() const { return mSensor; } |