summaryrefslogtreecommitdiffstats
path: root/services/sensorservice/SensorInterface.h
diff options
context:
space:
mode:
Diffstat (limited to 'services/sensorservice/SensorInterface.h')
-rw-r--r--services/sensorservice/SensorInterface.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/services/sensorservice/SensorInterface.h b/services/sensorservice/SensorInterface.h
index fb357d769..2e709ae4d 100644
--- a/services/sensorservice/SensorInterface.h
+++ b/services/sensorservice/SensorInterface.h
@@ -40,6 +40,11 @@ public:
virtual status_t setDelay(void* ident, int handle, int64_t ns) = 0;
virtual Sensor getSensor() const = 0;
virtual bool isVirtual() const = 0;
+ virtual status_t resetStateWithoutActuatingHardware(void *ident, int handle) {
+ // Override when you want to clean up for sensors which auto disable
+ // after trigger, or when enabling sensors fail.
+ return INVALID_OPERATION;
+ }
};
// ---------------------------------------------------------------------------
@@ -61,6 +66,7 @@ public:
virtual status_t setDelay(void* ident, int handle, int64_t ns);
virtual Sensor getSensor() const;
virtual bool isVirtual() const { return false; }
+ virtual status_t resetStateWithoutActuatingHardware(void *ident, int handle);
};