summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Fiona Campbell <flc@google.com> 2023-06-12 16:04:38 +0000
committer Fiona Campbell <flc@google.com> 2023-06-12 16:04:38 +0000
commitb31a5b62343d240a7161fbb89f2b1cbd1d4484d7 (patch)
tree1b5014066a17e8d3558cbde32294cc00ce2a3ffd /libs/androidfw/FileStream.cpp
parent614ed9e0e99fa7a18d8785e6f6087b667e4e7af4 (diff)
Fix ScreenOffBrightnessControllerTest
This test was failing on devices where the configuration for config_allowAutoBrightnessWhileDozing defaulted or was set to true. The config should be true, when allowing full automatic screen brightness when in doze, and therefore, screenoffbrightnesssensor should be enabled, only when this value is false, since it is used as a fallback sensor. The timings of the setting the return value of this testable resource needs to come before the variable is actually set when creating the DPC, which is why the DPC needed to be re-initialised in this test. Bug: 286860986 Test: atest DisplayPowerController2Test Change-Id: Ieea7b056f6858e606b5039735e3f0ba729c94646
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions