diff options
author | Mathias Agopian <mathias@google.com> | 2010-07-21 15:59:50 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2010-07-21 16:09:39 -0700 |
commit | e3c8234765050023b8a588607f819e8cc41a6363 (patch) | |
tree | 8bd219d95baa89463e0fc62861c008a6380e828b /include/gui | |
parent | 49f2aee90c9c5ad56afeb9f87fbe57b6859743a5 (diff) | |
download | frameworks_native-e3c8234765050023b8a588607f819e8cc41a6363.zip frameworks_native-e3c8234765050023b8a588607f819e8cc41a6363.tar.gz frameworks_native-e3c8234765050023b8a588607f819e8cc41a6363.tar.bz2 |
propagate sensor event rate properly
Change-Id: I32e67d30e4295285a6827956cc8161b2025d70bc
Diffstat (limited to 'include/gui')
-rw-r--r-- | include/gui/SensorEventQueue.h | 6 |
1 files changed, 4 insertions, 2 deletions
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<PollLoop> getPollLoop() const; sp<ISensorEventConnection> mSensorEventConnection; |