diff options
| author | Mathias Agopian <mathias@google.com> | 2010-07-21 16:09:55 -0700 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2010-07-21 16:09:55 -0700 |
| commit | bc54e63c84a517f0dca88ba900ff2b56719f685b (patch) | |
| tree | 791b80d51eb70978efb8bb046b3e0a52637f5019 /include/gui/SensorEventQueue.h | |
| parent | 7da38863d4382746090bf50413b1774ab04f6bc1 (diff) | |
| parent | e4764521353e898554931a557460fc49209fb0a9 (diff) | |
| download | frameworks_base-bc54e63c84a517f0dca88ba900ff2b56719f685b.zip frameworks_base-bc54e63c84a517f0dca88ba900ff2b56719f685b.tar.gz frameworks_base-bc54e63c84a517f0dca88ba900ff2b56719f685b.tar.bz2 | |
am e4764521: Merge "new SensorService" into gingerbread
Merge commit 'e4764521353e898554931a557460fc49209fb0a9' into gingerbread-plus-aosp
* commit 'e4764521353e898554931a557460fc49209fb0a9':
new SensorService
Diffstat (limited to 'include/gui/SensorEventQueue.h')
| -rw-r--r-- | include/gui/SensorEventQueue.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/gui/SensorEventQueue.h b/include/gui/SensorEventQueue.h index d8d8128..bb03c12 100644 --- a/include/gui/SensorEventQueue.h +++ b/include/gui/SensorEventQueue.h @@ -42,6 +42,7 @@ namespace android { class ISensorEventConnection; class Sensor; +class PollLoop; // ---------------------------------------------------------------------------- @@ -56,13 +57,21 @@ public: ssize_t write(ASensorEvent const* events, size_t numEvents); ssize_t read(ASensorEvent* events, size_t numEvents); + status_t waitForEvent() const; + status_t wake() const; + 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; private: + sp<PollLoop> getPollLoop() const; sp<ISensorEventConnection> mSensorEventConnection; sp<SensorChannel> mSensorChannel; + mutable Mutex mLock; + mutable sp<PollLoop> mPollLoop; }; // ---------------------------------------------------------------------------- |
