• spiiroin's avatar
    [hybrisadaptor] Refactor sensor start/stop logic · 8fab5538
    spiiroin authored
    Whether sensors should be started or stopped depends on a number
    of state variables. Using case specific conditionals at places
    where state variables might change makes the code fragile and
    hard to maintain.
    
    Separate sensor hal operations more clearly from logic and forms
    dictated by sensorfwd conventions.
    
    Use m_memberName naming convention for member variables, make
    all member data private and usable only via accessor functions.
    
    Use a single sensor start/stop policy evaluation function and
    call it from each place where relevant state variables might
    change.
    
    Use sensorfwd specific logging functions instead of qDebug etc.
    Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
    8fab5538
Name
Last commit
Last update
..
abstractchain.cpp Loading commit data...
abstractchain.h Loading commit data...
abstractsensor.cpp Loading commit data...
abstractsensor.h Loading commit data...
abstractsensor_a.cpp Loading commit data...
abstractsensor_a.h Loading commit data...
bin.cpp Loading commit data...
bin.h Loading commit data...
bufferreader.h Loading commit data...
callback.h Loading commit data...
config.cpp Loading commit data...
config.h Loading commit data...
consumer.cpp Loading commit data...
consumer.h Loading commit data...
core.pro Loading commit data...
dataemitter.h Loading commit data...
deviceadaptor.cpp Loading commit data...
deviceadaptor.h Loading commit data...
deviceadaptorringbuffer.h Loading commit data...
filter.cpp Loading commit data...
filter.h Loading commit data...
hybris.pro Loading commit data...
hybrisadaptor.cpp Loading commit data...
hybrisadaptor.h Loading commit data...
inputdevadaptor.cpp Loading commit data...
inputdevadaptor.h Loading commit data...
loader.cpp Loading commit data...
loader.h Loading commit data...
logging.h Loading commit data...
lsclient.cpp Loading commit data...
lsclient.h Loading commit data...
mcewatcher.cpp Loading commit data...
mcewatcher.h Loading commit data...
nodebase.cpp Loading commit data...
nodebase.h Loading commit data...
parameterparser.cpp Loading commit data...
parameterparser.h Loading commit data...
plugin.cpp Loading commit data...
plugin.h Loading commit data...
producer.cpp Loading commit data...
producer.h Loading commit data...
pusher.cpp Loading commit data...
pusher.h Loading commit data...
ringbuffer.cpp Loading commit data...
ringbuffer.h Loading commit data...
sensormanager.cpp Loading commit data...
sensormanager.h Loading commit data...
sensormanager_a.cpp Loading commit data...
sensormanager_a.h Loading commit data...
sink.h Loading commit data...
sockethandler.cpp Loading commit data...
sockethandler.h Loading commit data...
source.cpp Loading commit data...
source.h Loading commit data...
sysfsadaptor.cpp Loading commit data...
sysfsadaptor.h Loading commit data...