diff options
author | Mathias Agopian <mathias@google.com> | 2010-07-14 23:41:37 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2010-07-19 17:57:29 -0700 |
commit | a7352c9f4a6e642c29782b19db5bc0bd98feddc8 (patch) | |
tree | 634f433fd935e8202ede570b19773f79af2c6a4b /libs/gui/ISensorEventConnection.cpp | |
parent | ac07cd613f943f662b66e5ed1eecebca9d2c3690 (diff) | |
download | frameworks_native-a7352c9f4a6e642c29782b19db5bc0bd98feddc8.zip frameworks_native-a7352c9f4a6e642c29782b19db5bc0bd98feddc8.tar.gz frameworks_native-a7352c9f4a6e642c29782b19db5bc0bd98feddc8.tar.bz2 |
new SensorService
remove old sensor service and implement SensorManager
on top of the new (native) SensorManger API.
Change-Id: Iddb77d498755da3e11646473a44d651f12f40281
Diffstat (limited to 'libs/gui/ISensorEventConnection.cpp')
-rw-r--r-- | libs/gui/ISensorEventConnection.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/gui/ISensorEventConnection.cpp b/libs/gui/ISensorEventConnection.cpp index 3e9d456..a5083fe 100644 --- a/libs/gui/ISensorEventConnection.cpp +++ b/libs/gui/ISensorEventConnection.cpp @@ -47,6 +47,7 @@ public: virtual sp<SensorChannel> getSensorChannel() const { Parcel data, reply; + data.writeInterfaceToken(ISensorEventConnection::getInterfaceDescriptor()); remote()->transact(GET_SENSOR_CHANNEL, data, &reply); return new SensorChannel(reply); } @@ -54,6 +55,7 @@ public: virtual status_t enableDisable(int handle, bool enabled) { Parcel data, reply; + data.writeInterfaceToken(ISensorEventConnection::getInterfaceDescriptor()); data.writeInt32(handle); data.writeInt32(enabled); remote()->transact(ENABLE_DISABLE, data, &reply); @@ -63,6 +65,7 @@ public: virtual status_t setEventRate(int handle, nsecs_t ns) { Parcel data, reply; + data.writeInterfaceToken(ISensorEventConnection::getInterfaceDescriptor()); data.writeInt32(handle); data.writeInt64(ns); remote()->transact(SET_EVENT_RATE, data, &reply); |