summaryrefslogtreecommitdiff
path: root/services/sensorservice/SensorDevice.h
diff options
context:
space:
mode:
Diffstat (limited to 'services/sensorservice/SensorDevice.h')
-rw-r--r--services/sensorservice/SensorDevice.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/sensorservice/SensorDevice.h b/services/sensorservice/SensorDevice.h
index 5e7d3da398..75da7bb0a1 100644
--- a/services/sensorservice/SensorDevice.h
+++ b/services/sensorservice/SensorDevice.h
@@ -125,6 +125,10 @@ public:
bool isSensorActive(int handle) const;
+ // To update the BatchParams of a SensorEventConnection when the mic toggle changes its state
+ // while the Sensors Off toggle is on.
+ void onMicSensorAccessChanged(void* ident, int handle, nsecs_t samplingPeriodNs);
+
// Dumpable
virtual std::string dump() const override;
virtual void dump(util::ProtoOutputStream* proto) const override;