Home
last modified time | relevance | path

Searched refs:ambientLux (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/services/core/java/com/android/server/display/brightness/clamper/
DHdrClamper.java113 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/
DNormalBrightnessModeControllerTest.java107 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()
DDisplayPowerControllerTest.java507 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/
DBrightnessRangeController.java80 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()
DNormalBrightnessModeController.java40 boolean onAmbientLuxChange(float ambientLux) { in onAmbientLuxChange() argument
41 mAmbientLux = ambientLux; in onAmbientLuxChange()
DDisplayPowerControllerInterface.java230 void setBrightnessToFollow(float leadDisplayBrightness, float nits, float ambientLux, in setBrightnessToFollow() argument
DHighBrightnessModeController.java205 void onAmbientLuxChange(float ambientLux) { in onAmbientLuxChange() argument
206 mAmbientLux = ambientLux; in onAmbientLuxChange()
211 final boolean isHighLux = (ambientLux >= mHbmData.minimumLux); in onAmbientLuxChange()
DBrightnessMappingStrategy.java400 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()
DDisplayPowerController.java1533 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/
DDisplayModeDirector.java2607 private void updateIdleScreenRefreshRate(float ambientLux) { in updateIdleScreenRefreshRate() argument
2627 if (newLux <= ambientLux) { in updateIdleScreenRefreshRate()