/frameworks/base/services/core/java/com/android/server/display/brightness/clamper/ |
D | HdrClamper.java | 113 public void onAmbientLuxChange(float ambientLux) { in onAmbientLuxChange() argument 114 mAmbientLux = ambientLux; in onAmbientLuxChange() 115 recalculateBrightnessCap(mHdrBrightnessData, ambientLux, mHdrVisible); in onAmbientLuxChange() 197 private void recalculateBrightnessCap(HdrBrightnessData data, float ambientLux, in recalculateBrightnessCap() argument 207 float expectedMaxBrightness = findBrightnessLimit(data, ambientLux); in recalculateBrightnessCap() 231 private float findBrightnessLimit(HdrBrightnessData data, float ambientLux) { in findBrightnessLimit() argument 238 if (ambientBoundary > ambientLux && ambientBoundary < foundAmbientBoundary) { in findBrightnessLimit()
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/ |
D | NormalBrightnessModeControllerTest.java | 107 public void testReturnsCorrectMaxBrightness(float ambientLux, int autoBrightnessState, in testReturnsCorrectMaxBrightness() argument 110 setupController(ambientLux, autoBrightnessState, maxBrightnessConfig); in testReturnsCorrectMaxBrightness() 115 private void setupController(float ambientLux, int autoBrightnessState, in setupController() argument 117 mController.onAmbientLuxChange(ambientLux); in setupController()
|
D | DisplayPowerControllerTest.java | 507 float ambientLux = 3000; in testDisplayBrightnessFollowers_AutomaticBrightness() local 515 when(mHolder.automaticBrightnessController.getAmbientLux()).thenReturn(ambientLux); in testDisplayBrightnessFollowers_AutomaticBrightness() 528 verify(followerDpc.hbmController).onAmbientLuxChange(ambientLux); in testDisplayBrightnessFollowers_AutomaticBrightness() 540 ambientLux = 2000; in testDisplayBrightnessFollowers_AutomaticBrightness() 548 when(mHolder.automaticBrightnessController.getAmbientLux()).thenReturn(ambientLux); in testDisplayBrightnessFollowers_AutomaticBrightness() 558 verify(followerDpc.hbmController).onAmbientLuxChange(ambientLux); in testDisplayBrightnessFollowers_AutomaticBrightness()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | BrightnessRangeController.java | 80 void onAmbientLuxChange(float ambientLux) { in onAmbientLuxChange() argument 82 () -> mNormalBrightnessModeController.onAmbientLuxChange(ambientLux), in onAmbientLuxChange() 83 () -> mHbmController.onAmbientLuxChange(ambientLux) in onAmbientLuxChange() 86 mHdrClamper.onAmbientLuxChange(ambientLux); in onAmbientLuxChange()
|
D | NormalBrightnessModeController.java | 40 boolean onAmbientLuxChange(float ambientLux) { in onAmbientLuxChange() argument 41 mAmbientLux = ambientLux; in onAmbientLuxChange()
|
D | DisplayPowerControllerInterface.java | 230 void setBrightnessToFollow(float leadDisplayBrightness, float nits, float ambientLux, in setBrightnessToFollow() argument
|
D | HighBrightnessModeController.java | 205 void onAmbientLuxChange(float ambientLux) { in onAmbientLuxChange() argument 206 mAmbientLux = ambientLux; in onAmbientLuxChange() 211 final boolean isHighLux = (ambientLux >= mHbmData.minimumLux); in onAmbientLuxChange()
|
D | BrightnessMappingStrategy.java | 400 public boolean shouldResetShortTermModel(float ambientLux, float shortTermModelAnchor) { in shouldResetShortTermModel() argument 416 if (minAmbientLux < ambientLux && ambientLux <= maxAmbientLux) { in shouldResetShortTermModel() 419 + minAmbientLux + " < " + ambientLux + " < " + maxAmbientLux); in shouldResetShortTermModel() 423 Slog.d(TAG, "ShortTermModel: reset data, ambient lux is " + ambientLux in shouldResetShortTermModel()
|
D | DisplayPowerController.java | 1533 float ambientLux = mAutomaticBrightnessController == null ? 0 in updatePowerStateInternal() local 1539 ambientLux, slowChange); in updatePowerStateInternal() 2487 public void setBrightnessToFollow(float leadDisplayBrightness, float nits, float ambientLux, in setBrightnessToFollow() argument 2489 mBrightnessRangeController.onAmbientLuxChange(ambientLux); in setBrightnessToFollow()
|
/frameworks/base/services/core/java/com/android/server/display/mode/ |
D | DisplayModeDirector.java | 2607 private void updateIdleScreenRefreshRate(float ambientLux) { in updateIdleScreenRefreshRate() argument 2627 if (newLux <= ambientLux) { in updateIdleScreenRefreshRate()
|