Loading services/core/java/com/android/server/display/DisplayPowerController.java +5 −0 Original line number Original line Diff line number Diff line Loading @@ -1978,6 +1978,11 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call || !isDisplayContentVisible || brightnessIsTemporary; || !isDisplayContentVisible || brightnessIsTemporary; if (!skipAnimation && BrightnessSynchronizer.floatEquals( if (!skipAnimation && BrightnessSynchronizer.floatEquals( sdrAnimateValue, currentSdrBrightness)) { sdrAnimateValue, currentSdrBrightness)) { // SDR brightness is unchanged, so animate quickly as this is only impacting // a likely minority amount of display content // ie, the highlights of an HDR video or UltraHDR image slowChange = false; // Going from HDR to no HDR; visually this should be a "no-op" anyway // Going from HDR to no HDR; visually this should be a "no-op" anyway // as the remaining SDR content's brightness should be holding steady // as the remaining SDR content's brightness should be holding steady // due to the sdr brightness not shifting // due to the sdr brightness not shifting Loading services/core/java/com/android/server/display/DisplayPowerController2.java +5 −0 Original line number Original line Diff line number Diff line Loading @@ -1601,6 +1601,11 @@ final class DisplayPowerController2 implements AutomaticBrightnessController.Cal || !isDisplayContentVisible || brightnessIsTemporary; || !isDisplayContentVisible || brightnessIsTemporary; if (!skipAnimation && BrightnessSynchronizer.floatEquals( if (!skipAnimation && BrightnessSynchronizer.floatEquals( sdrAnimateValue, currentSdrBrightness)) { sdrAnimateValue, currentSdrBrightness)) { // SDR brightness is unchanged, so animate quickly as this is only impacting // a likely minority amount of display content // ie, the highlights of an HDR video or UltraHDR image slowChange = false; // Going from HDR to no HDR; visually this should be a "no-op" anyway // Going from HDR to no HDR; visually this should be a "no-op" anyway // as the remaining SDR content's brightness should be holding steady // as the remaining SDR content's brightness should be holding steady // due to the sdr brightness not shifting // due to the sdr brightness not shifting Loading Loading
services/core/java/com/android/server/display/DisplayPowerController.java +5 −0 Original line number Original line Diff line number Diff line Loading @@ -1978,6 +1978,11 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call || !isDisplayContentVisible || brightnessIsTemporary; || !isDisplayContentVisible || brightnessIsTemporary; if (!skipAnimation && BrightnessSynchronizer.floatEquals( if (!skipAnimation && BrightnessSynchronizer.floatEquals( sdrAnimateValue, currentSdrBrightness)) { sdrAnimateValue, currentSdrBrightness)) { // SDR brightness is unchanged, so animate quickly as this is only impacting // a likely minority amount of display content // ie, the highlights of an HDR video or UltraHDR image slowChange = false; // Going from HDR to no HDR; visually this should be a "no-op" anyway // Going from HDR to no HDR; visually this should be a "no-op" anyway // as the remaining SDR content's brightness should be holding steady // as the remaining SDR content's brightness should be holding steady // due to the sdr brightness not shifting // due to the sdr brightness not shifting Loading
services/core/java/com/android/server/display/DisplayPowerController2.java +5 −0 Original line number Original line Diff line number Diff line Loading @@ -1601,6 +1601,11 @@ final class DisplayPowerController2 implements AutomaticBrightnessController.Cal || !isDisplayContentVisible || brightnessIsTemporary; || !isDisplayContentVisible || brightnessIsTemporary; if (!skipAnimation && BrightnessSynchronizer.floatEquals( if (!skipAnimation && BrightnessSynchronizer.floatEquals( sdrAnimateValue, currentSdrBrightness)) { sdrAnimateValue, currentSdrBrightness)) { // SDR brightness is unchanged, so animate quickly as this is only impacting // a likely minority amount of display content // ie, the highlights of an HDR video or UltraHDR image slowChange = false; // Going from HDR to no HDR; visually this should be a "no-op" anyway // Going from HDR to no HDR; visually this should be a "no-op" anyway // as the remaining SDR content's brightness should be holding steady // as the remaining SDR content's brightness should be holding steady // due to the sdr brightness not shifting // due to the sdr brightness not shifting Loading