summaryrefslogtreecommitdiff
path: root/libs/androidfw/ApkParsing.cpp
diff options
context:
space:
mode:
author jiayongqiang <jiayongqiang@xiaomi.com> 2022-08-02 20:03:40 +0800
committer Piotr WilczyƄski <wilczynskip@google.com> 2023-04-17 13:38:18 +0000
commit214d612e90575e673f373de28d60c1aee109b0bf (patch)
tree1512e7b30f156a9c929634060dbe1df659b35c70 /libs/androidfw/ApkParsing.cpp
parent0a5d323ed221aee1a803ffb84d0f241667dcc752 (diff)
Restoring SDR brightness immediately when entering dim state if the
device is in HDR brightness scale mode. Because the mBrightnessReason.modifier is updated after scaling HDR brightness by calling mHbmController.getHdrBrightnessValue(), so if the device is entering dim state, the brightness will still scaling to HDR brightness, instead of setting to dim brightness directly. Bug: 274763122 Test: atest BrightnessThrottlerTest DisplayModeDirectorTest BrightnessLevelPreferenceControllerTest HighBrightnessModeControllerTest Test: Manually operations: 1. Enable HBM function; 2. Open a HDR layer; 3. Wait until the screen is dimming; 4. Check related logs. Change-Id: Ie8ba03cfdd4a8aa446071e05db1c302182a92939 Merged-In: Ie8ba03cfdd4a8aa446071e05db1c302182a92939
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions