diff options
author | Aravind Akella <aakella@google.com> | 2013-10-10 19:21:05 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-10-10 19:21:05 -0700 |
commit | 1f1e576840d5b36a091368abb6fe6610384b6449 (patch) | |
tree | c99de3f4162cca74013de8f5fedddabbb9b6e871 /libs/gui | |
parent | 8c76d2a16ede579fd2069647ff73591bb6d6a235 (diff) | |
parent | 5d6aa95129a13aae37a60b3e4246a0592dab396d (diff) | |
download | frameworks_native-1f1e576840d5b36a091368abb6fe6610384b6449.zip frameworks_native-1f1e576840d5b36a091368abb6fe6610384b6449.tar.gz frameworks_native-1f1e576840d5b36a091368abb6fe6610384b6449.tar.bz2 |
am 5d6aa951: Merge "Change API from flush(handle) to flush(). Call flush on all active sensors in the given SensorEventConnection." into klp-dev
* commit '5d6aa95129a13aae37a60b3e4246a0592dab396d':
Change API from flush(handle) to flush(). Call flush on all active sensors in the given SensorEventConnection.
Diffstat (limited to 'libs/gui')
-rw-r--r-- | libs/gui/ISensorEventConnection.cpp | 6 | ||||
-rw-r--r-- | libs/gui/SensorEventQueue.cpp | 4 |
2 files changed, 4 insertions, 6 deletions
diff --git a/libs/gui/ISensorEventConnection.cpp b/libs/gui/ISensorEventConnection.cpp index a80c661..28fcb53 100644 --- a/libs/gui/ISensorEventConnection.cpp +++ b/libs/gui/ISensorEventConnection.cpp @@ -77,10 +77,9 @@ public: return reply.readInt32(); } - virtual status_t flushSensor(int handle) { + virtual status_t flush() { Parcel data, reply; data.writeInterfaceToken(ISensorEventConnection::getInterfaceDescriptor()); - data.writeInt32(handle); remote()->transact(FLUSH_SENSOR, data, &reply); return reply.readInt32(); } @@ -122,8 +121,7 @@ status_t BnSensorEventConnection::onTransact( } break; case FLUSH_SENSOR: { CHECK_INTERFACE(ISensorEventConnection, data, reply); - int handle = data.readInt32(); - status_t result = flushSensor(handle); + status_t result = flush(); reply->writeInt32(result); return NO_ERROR; } break; diff --git a/libs/gui/SensorEventQueue.cpp b/libs/gui/SensorEventQueue.cpp index ab50c1d..c365671 100644 --- a/libs/gui/SensorEventQueue.cpp +++ b/libs/gui/SensorEventQueue.cpp @@ -132,8 +132,8 @@ status_t SensorEventQueue::enableSensor(int32_t handle, int32_t samplingPeriodUs us2ns(maxBatchReportLatencyUs), reservedFlags); } -status_t SensorEventQueue::flushSensor(int32_t handle) const { - return mSensorEventConnection->flushSensor(handle); +status_t SensorEventQueue::flush() const { + return mSensorEventConnection->flush(); } status_t SensorEventQueue::disableSensor(int32_t handle) const { |