diff options
author | Mathias Agopian <mathias@google.com> | 2011-10-20 18:42:02 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2011-10-20 18:42:02 -0700 |
commit | 12cdf5116c312b8fb4f96bd8ea64134ce06e899d (patch) | |
tree | b0c46b0b5630baa709d226162ba758d6e4ded023 /include/gui | |
parent | 79235d2a93086538817391c847a8063442e1e1f0 (diff) | |
download | frameworks_base-12cdf5116c312b8fb4f96bd8ea64134ce06e899d.zip frameworks_base-12cdf5116c312b8fb4f96bd8ea64134ce06e899d.tar.gz frameworks_base-12cdf5116c312b8fb4f96bd8ea64134ce06e899d.tar.bz2 |
Rename SensorChannel to BitTube
Diffstat (limited to 'include/gui')
-rw-r--r-- | include/gui/BitTube.h (renamed from include/gui/SensorChannel.h) | 9 | ||||
-rw-r--r-- | include/gui/ISensorEventConnection.h | 4 | ||||
-rw-r--r-- | include/gui/SensorEventQueue.h | 4 |
3 files changed, 9 insertions, 8 deletions
diff --git a/include/gui/SensorChannel.h b/include/gui/BitTube.h index bb54618..76389a0 100644 --- a/include/gui/SensorChannel.h +++ b/include/gui/BitTube.h @@ -28,14 +28,15 @@ namespace android { // ---------------------------------------------------------------------------- class Parcel; -class SensorChannel : public RefBase +class BitTube : public RefBase { public: - SensorChannel(); - SensorChannel(const Parcel& data); - virtual ~SensorChannel(); + BitTube(); + BitTube(const Parcel& data); + virtual ~BitTube(); + status_t initCheck() const; int getFd() const; ssize_t write(void const* vaddr, size_t size); ssize_t read(void* vaddr, size_t size); diff --git a/include/gui/ISensorEventConnection.h b/include/gui/ISensorEventConnection.h index ed4e4cc..749065e 100644 --- a/include/gui/ISensorEventConnection.h +++ b/include/gui/ISensorEventConnection.h @@ -28,14 +28,14 @@ namespace android { // ---------------------------------------------------------------------------- -class SensorChannel; +class BitTube; class ISensorEventConnection : public IInterface { public: DECLARE_META_INTERFACE(SensorEventConnection); - virtual sp<SensorChannel> getSensorChannel() const = 0; + virtual sp<BitTube> getSensorChannel() const = 0; virtual status_t enableDisable(int handle, bool enabled) = 0; virtual status_t setEventRate(int handle, nsecs_t ns) = 0; }; diff --git a/include/gui/SensorEventQueue.h b/include/gui/SensorEventQueue.h index 97dd391..ef7c6e3 100644 --- a/include/gui/SensorEventQueue.h +++ b/include/gui/SensorEventQueue.h @@ -24,7 +24,7 @@ #include <utils/RefBase.h> #include <utils/Timers.h> -#include <gui/SensorChannel.h> +#include <gui/BitTube.h> // ---------------------------------------------------------------------------- @@ -71,7 +71,7 @@ public: private: sp<Looper> getLooper() const; sp<ISensorEventConnection> mSensorEventConnection; - sp<SensorChannel> mSensorChannel; + sp<BitTube> mSensorChannel; mutable Mutex mLock; mutable sp<Looper> mLooper; }; |