Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b3989276 authored by Mathias Agopian's avatar Mathias Agopian
Browse files

Rename SensorChannel to BitTube

parent 667102f6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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())
{
}

@@ -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;
}
+3 −3
Original line number Diff line number Diff line
@@ -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>

@@ -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