Loading services/core/java/com/android/server/display/DisplayPowerController.java +5 −2 Original line number Diff line number Diff line Loading @@ -378,6 +378,7 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call private float mInitialAutoBrightness; // The controller for the automatic brightness level. @Nullable private AutomaticBrightnessController mAutomaticBrightnessController; private Sensor mLightSensor; Loading Loading @@ -608,7 +609,7 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call mPendingRbcOnOrChanged = strengthChanged || justActivated; // Reset model if strength changed OR rbc is turned off if (strengthChanged || !justActivated && mAutomaticBrightnessController != null) { if ((strengthChanged || !justActivated) && mAutomaticBrightnessController != null) { mAutomaticBrightnessController.resetShortTermModel(); } } Loading Loading @@ -1567,7 +1568,9 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call sendUpdatePowerStateLocked(); mHandler.post(mOnBrightnessChangeRunnable); // TODO(b/192258832): Switch the HBMChangeCallback to a listener pattern. if (mAutomaticBrightnessController != null) { mAutomaticBrightnessController.update(); } }, mContext); } Loading Loading
services/core/java/com/android/server/display/DisplayPowerController.java +5 −2 Original line number Diff line number Diff line Loading @@ -378,6 +378,7 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call private float mInitialAutoBrightness; // The controller for the automatic brightness level. @Nullable private AutomaticBrightnessController mAutomaticBrightnessController; private Sensor mLightSensor; Loading Loading @@ -608,7 +609,7 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call mPendingRbcOnOrChanged = strengthChanged || justActivated; // Reset model if strength changed OR rbc is turned off if (strengthChanged || !justActivated && mAutomaticBrightnessController != null) { if ((strengthChanged || !justActivated) && mAutomaticBrightnessController != null) { mAutomaticBrightnessController.resetShortTermModel(); } } Loading Loading @@ -1567,7 +1568,9 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call sendUpdatePowerStateLocked(); mHandler.post(mOnBrightnessChangeRunnable); // TODO(b/192258832): Switch the HBMChangeCallback to a listener pattern. if (mAutomaticBrightnessController != null) { mAutomaticBrightnessController.update(); } }, mContext); } Loading