summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramStore.java
diff options
context:
space:
mode:
authorOleksiy Avramchenko <oleksiy.avramchenko@sonymobile.com>2017-04-25 12:30:49 +0200
committerSteven Moreland <smoreland@google.com>2017-05-24 21:32:54 +0000
commit2633175f580dbaa79613737dca8cc55ec4136f5d (patch)
treec46fd021b1386314bfb512e4d39a68d7a01328af /rs/java/android/renderscript/ProgramStore.java
parent07f580eaff5eb38913a837368c52d63e1493073a (diff)
Force a light to be set for the first time
The check in LightImpl::setLightLocked skips HAL call if light parameters aren't changed. During initialization these parameters are zeroed, thus it's not possible to turn the light off at the startup. As an example this fixes the issue with "stuck" battery light in the following scenario: 1. Device has secure start-up option set (either pin or pattern). 2. Charger is connected at the startup and battery light shows the charging state on pin or pattern prompt. 3. Device is unlocked and charger disconnected after some time, e.g. after com.android.server.lights.LightsService restarted. 4. The battery light is not off and stuck in the previous state until charger is connected / disconnected again. Fixes: 37662368 Test: manual - follow the above step-by-step Merged-In: I45470e945fe4d26d37a5641dfff3311968f51ee4 Change-Id: I45470e945fe4d26d37a5641dfff3311968f51ee4
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions