From 23e8de26b7b3d04daf08526f314c2fdd2f8fee65 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') diff --git a/include/gui/SensorEventQueue.h b/include/gui/SensorEventQueue.h index bb03c12a7955..ad36dacea629 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.2.3-59-g8ed1b