• 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
..
accelerometeradaptor Loading commit data...
alsadaptor Loading commit data...
alsadaptor-ascii Loading commit data...
alsadaptor-evdev Loading commit data...
alsadaptor-sysfs Loading commit data...
gyroscopeadaptor Loading commit data...
gyroscopeadaptor-evdev Loading commit data...
humidityadaptor Loading commit data...
hybrisaccelerometer Loading commit data...
hybrisalsadaptor Loading commit data...
hybrisgyroscopeadaptor Loading commit data...
hybrismagnetometeradaptor Loading commit data...
hybrisorientationadaptor Loading commit data...
hybrispressureadaptor Loading commit data...
hybrisproximityadaptor Loading commit data...
hybrisstepcounteradaptor Loading commit data...
iioadaptor Loading commit data...
kbslideradaptor Loading commit data...
lidsensoradaptor-evdev Loading commit data...
magnetometeradaptor Loading commit data...
magnetometeradaptor-ascii Loading commit data...
magnetometeradaptor-evdev Loading commit data...
magnetometeradaptor-ncdk Loading commit data...
mpu6050accelerometer Loading commit data...
mrstaccelerometer Loading commit data...
oaktrailaccelerometer Loading commit data...
oemtabletaccelerometer Loading commit data...
oemtabletalsadaptor-ascii Loading commit data...
oemtabletgyroscopeadaptor Loading commit data...
oemtabletmagnetometeradaptor Loading commit data...
pegatronaccelerometeradaptor Loading commit data...
pressureadaptor Loading commit data...
proximityadaptor Loading commit data...
proximityadaptor-ascii Loading commit data...
proximityadaptor-evdev Loading commit data...
steaccelerometeradaptor Loading commit data...
tapadaptor Loading commit data...
temperatureadaptor Loading commit data...
touchadaptor Loading commit data...
adaptor-config.pri Loading commit data...
adaptors.pro Loading commit data...