summaryrefslogtreecommitdiff
path: root/libs/androidfw/AttributeResolution.cpp
diff options
context:
space:
mode:
author Piotr Wilczyński <wilczynskip@google.com> 2024-07-26 15:01:06 +0000
committer Piotr Wilczyński <wilczynskip@google.com> 2024-07-29 14:51:31 +0000
commitbfa91592f15623e60ff96f26a7bd41ba3c3aa89c (patch)
treeb9e8bb594dcda883041c8dd123088719fa0caa1c /libs/androidfw/AttributeResolution.cpp
parent038604323950c233eca3627353a32200ef3f74d9 (diff)
Fix UserHandle
LowLuxModifier, DMD and DPC register observer while the system is starting (current user = system), but on some devices, later the current user switches. When Smooth Display for example is enabled with the UI, it's enabled by the new user and not the system user. We should therefore use USER_ALL when registering observers. When reading the settings, we should use USER_CURRENT instead of getting the user id from the context associated with the system. We should also re-read the settings if the user switches. Additionally, update the stale evenDimmer comment in DDC. Bug: 353645971 Test: AutomaticBrightnessControllerTest, BrightnessClamperControllerTest, BrightnessLowLuxModifierTest, BrightnessMappingStrategyTest, DisplayManagerServiceTest, DisplayModeDirectorTest, DisplayPowerControllerTest Flag: EXEMPT bugfix Change-Id: I204478b6f356aea72f50bf9130f92e53b2758202
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions