Do not brighten when dim state or low power mode.

Bug:239122393

Signed-off-by: linkai <linkai@xiaomi.com>
Change-Id: Ia8e636a5f22f1854830c312658857253729c076b
Merged-In: I49e3adda3cfd4b793f0eeb3b1da544c581d8c8ec
This commit is contained in:
linkai
2022-09-06 18:56:45 +08:00
committed by Piotr Wilczyński
parent 3312d073cb
commit b76e9beaf3

View File

@@ -1551,8 +1551,8 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
// TODO(b/216365040): The decision to prevent HBM for HDR in low power mode should be
// done in HighBrightnessModeController.
if (mHbmController.getHighBrightnessMode() == BrightnessInfo.HIGH_BRIGHTNESS_MODE_HDR
&& ((mBrightnessReason.modifier & BrightnessReason.MODIFIER_DIMMED) == 0
|| (mBrightnessReason.modifier & BrightnessReason.MODIFIER_LOW_POWER) == 0)) {
&& (mBrightnessReason.modifier & BrightnessReason.MODIFIER_DIMMED) == 0
&& (mBrightnessReason.modifier & BrightnessReason.MODIFIER_LOW_POWER) == 0) {
// We want to scale HDR brightness level with the SDR level
animateValue = mHbmController.getHdrBrightnessValue();
}