From e3c8234765050023b8a588607f819e8cc41a6363 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Wed, 21 Jul 2010 15:59:50 -0700 Subject: propagate sensor event rate properly Change-Id: I32e67d30e4295285a6827956cc8161b2025d70bc --- include/gui/SensorEventQueue.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/gui') diff --git a/include/gui/SensorEventQueue.h b/include/gui/SensorEventQueue.h index bb03c12..ad36dac 100644 --- a/include/gui/SensorEventQueue.h +++ b/include/gui/SensorEventQueue.h @@ -62,10 +62,12 @@ public: status_t enableSensor(Sensor const* sensor) const; status_t disableSensor(Sensor const* sensor) const; - status_t enableSensor(int32_t handle) const; - status_t disableSensor(int32_t handle) const; status_t setEventRate(Sensor const* sensor, nsecs_t ns) const; + // these are here only to support SensorManager.java + status_t enableSensor(int32_t handle, int32_t ms) const; + status_t disableSensor(int32_t handle) const; + private: sp getPollLoop() const; sp mSensorEventConnection; -- cgit v1.1