• spiiroin's avatar
    [hybrisadaptor] Provide fallback values for select sensors. JB#43020 · a997710c
    spiiroin authored
    It is possible that on-change type sensors are not reported by android
    hal until a change is actually detected. Sensorfwd is left using zero
    initialized default values like proximity=covered / light=darkness -
    which in turn can cause various issues after each bootup.
    
    As the initial state can't be queried, choose the lest harmful option
    and define fallback values during sensor hal probing:
    - proximity sensor = not covered
    - light sensor = 400 lux
    
    If no actual sensor data has been received in a situation where sensor
    state needs to be communicated to clients, apply the fallback value.
    Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
    a997710c
Name
Last commit
Last update
LuneOS Loading commit data...
adaptors Loading commit data...
c-api Loading commit data...
chains Loading commit data...
config Loading commit data...
config.tests/hybris Loading commit data...
core Loading commit data...
datatypes Loading commit data...
debian Loading commit data...
doc Loading commit data...
examples Loading commit data...
filters Loading commit data...
include Loading commit data...
qt-api Loading commit data...
rpm Loading commit data...
sensord Loading commit data...
sensors Loading commit data...
tests Loading commit data...
COPYING Loading commit data...
README.md Loading commit data...
TODO Loading commit data...
common-config.pri Loading commit data...
common-install.pri Loading commit data...
common.pri Loading commit data...
makedist Loading commit data...
sensord-qt5.pc Loading commit data...
sensord.conf Loading commit data...
sensord.init Loading commit data...
sensord.pc Loading commit data...
sensord.prf Loading commit data...
sensorfw.conf Loading commit data...
sensorfw.pro Loading commit data...