Loading services/sensorservice/SensorService.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -514,7 +514,7 @@ bool SensorService::SensorRecord::removeConnection( SensorService::SensorEventConnection::SensorEventConnection( const sp<SensorService>& service) : mService(service), mChannel(new SensorChannel()) : mService(service), mChannel(new BitTube()) { } Loading Loading @@ -596,7 +596,7 @@ status_t SensorService::SensorEventConnection::sendEvents( return size < 0 ? status_t(size) : status_t(NO_ERROR); } sp<SensorChannel> SensorService::SensorEventConnection::getSensorChannel() const sp<BitTube> SensorService::SensorEventConnection::getSensorChannel() const { return mChannel; } Loading services/sensorservice/SensorService.h +3 −3 Original line number Diff line number Diff line Loading @@ -29,7 +29,7 @@ #include <binder/BinderService.h> #include <gui/Sensor.h> #include <gui/SensorChannel.h> #include <gui/BitTube.h> #include <gui/ISensorServer.h> #include <gui/ISensorEventConnection.h> Loading Loading @@ -71,12 +71,12 @@ class SensorService : class SensorEventConnection : public BnSensorEventConnection { virtual ~SensorEventConnection(); virtual void onFirstRef(); virtual sp<SensorChannel> getSensorChannel() const; virtual sp<BitTube> getSensorChannel() const; virtual status_t enableDisable(int handle, bool enabled); virtual status_t setEventRate(int handle, nsecs_t ns); sp<SensorService> const mService; sp<SensorChannel> const mChannel; sp<BitTube> const mChannel; mutable Mutex mConnectionLock; // protected by SensorService::mLock Loading Loading
services/sensorservice/SensorService.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -514,7 +514,7 @@ bool SensorService::SensorRecord::removeConnection( SensorService::SensorEventConnection::SensorEventConnection( const sp<SensorService>& service) : mService(service), mChannel(new SensorChannel()) : mService(service), mChannel(new BitTube()) { } Loading Loading @@ -596,7 +596,7 @@ status_t SensorService::SensorEventConnection::sendEvents( return size < 0 ? status_t(size) : status_t(NO_ERROR); } sp<SensorChannel> SensorService::SensorEventConnection::getSensorChannel() const sp<BitTube> SensorService::SensorEventConnection::getSensorChannel() const { return mChannel; } Loading
services/sensorservice/SensorService.h +3 −3 Original line number Diff line number Diff line Loading @@ -29,7 +29,7 @@ #include <binder/BinderService.h> #include <gui/Sensor.h> #include <gui/SensorChannel.h> #include <gui/BitTube.h> #include <gui/ISensorServer.h> #include <gui/ISensorEventConnection.h> Loading Loading @@ -71,12 +71,12 @@ class SensorService : class SensorEventConnection : public BnSensorEventConnection { virtual ~SensorEventConnection(); virtual void onFirstRef(); virtual sp<SensorChannel> getSensorChannel() const; virtual sp<BitTube> getSensorChannel() const; virtual status_t enableDisable(int handle, bool enabled); virtual status_t setEventRate(int handle, nsecs_t ns); sp<SensorService> const mService; sp<SensorChannel> const mChannel; sp<BitTube> const mChannel; mutable Mutex mConnectionLock; // protected by SensorService::mLock Loading