Home
last modified time | relevance | path

Searched refs:getAutomaticScreenBrightness (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DScreenOffBrightnessSensorControllerTest.java100 mController.getAutomaticScreenBrightness(), 0); in testBrightness()
107 assertEquals(brightness, mController.getAutomaticScreenBrightness(), 0); in testBrightness()
114 assertEquals(brightness, mController.getAutomaticScreenBrightness(), 0); in testBrightness()
121 assertEquals(brightness, mController.getAutomaticScreenBrightness(), 0); in testBrightness()
128 assertEquals(brightness, mController.getAutomaticScreenBrightness(), 0); in testBrightness()
133 mController.getAutomaticScreenBrightness(), 0); in testBrightness()
151 mController.getAutomaticScreenBrightness(), 0); in testSensorValueValidTime()
156 mController.getAutomaticScreenBrightness(), 0); in testSensorValueValidTime()
DAutomaticBrightnessControllerTest.java227 assertEquals(normalizedBrightness1, mController.getAutomaticScreenBrightness(), EPSILON); in testNoHysteresisAtMinBrightness()
241 assertEquals(normalizedBrightness2, mController.getAutomaticScreenBrightness(), EPSILON); in testNoHysteresisAtMinBrightness()
270 assertEquals(normalizedBrightness1, mController.getAutomaticScreenBrightness(), EPSILON); in testNoHysteresisAtMaxBrightness()
285 assertEquals(normalizedBrightness2, mController.getAutomaticScreenBrightness(), EPSILON); in testNoHysteresisAtMaxBrightness()
752 assertEquals(BRIGHTNESS_MAX_FLOAT, mController.getAutomaticScreenBrightness(), 0.0f);
763 assertEquals(throttledBrightness, mController.getAutomaticScreenBrightness(), 0.0f);
774 assertEquals(BRIGHTNESS_MAX_FLOAT, mController.getAutomaticScreenBrightness(), 0.0f);
1110 mController.getAutomaticScreenBrightness(
1146 mController.getAutomaticScreenBrightness(/* brightnessEvent= */ null), EPSILON);
1178 mController.getAutomaticScreenBrightness(/* brightnessEvent= */ null), EPSILON);
[all …]
DDisplayPowerControllerTest.java511 .getAutomaticScreenBrightness(any(BrightnessEvent.class))) in testDisplayBrightnessFollowers_AutomaticBrightness()
544 .getAutomaticScreenBrightness(any(BrightnessEvent.class))) in testDisplayBrightnessFollowers_AutomaticBrightness()
751 when(mHolder.automaticBrightnessController.getAutomaticScreenBrightness( in testDisplayBrightnessHdr_SkipAnimationOnHdrAppearance()
788 when(mHolder.automaticBrightnessController.getAutomaticScreenBrightness( in testDisplayBrightnessHdr_SkipAnimationOnHdrRemoval()
856 when(mHolder.screenOffBrightnessSensorController.getAutomaticScreenBrightness()) in testSetScreenOffBrightnessSensorEnabled_DisplayIsOff()
860 when(mHolder.automaticBrightnessController.getAutomaticScreenBrightness( in testSetScreenOffBrightnessSensorEnabled_DisplayIsOff()
867 .getAutomaticScreenBrightness(); in testSetScreenOffBrightnessSensorEnabled_DisplayIsOff()
894 when(mHolder.screenOffBrightnessSensorController.getAutomaticScreenBrightness()) in testSetScreenOffBrightnessSensorEnabled_DisplayIsInDoze()
898 when(mHolder.automaticBrightnessController.getAutomaticScreenBrightness( in testSetScreenOffBrightnessSensorEnabled_DisplayIsInDoze()
905 .getAutomaticScreenBrightness(); in testSetScreenOffBrightnessSensorEnabled_DisplayIsInDoze()
[all …]
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/strategy/
DAutomaticBrightnessStrategyTest.java393 when(automaticBrightnessController.getAutomaticScreenBrightness(any(BrightnessEvent.class))) in setAutomaticBrightnessWorksAsExpected()
398 mAutomaticBrightnessStrategy.getAutomaticScreenBrightness( in setAutomaticBrightnessWorksAsExpected()
456 when(mAutomaticBrightnessController.getAutomaticScreenBrightness(null)) in isAutoBrightnessValid_returnsFalseWhenBrightnessIsInvalid()
472 when(mAutomaticBrightnessController.getAutomaticScreenBrightness(null)) in isAutoBrightnessValid_returnsTrueWhenBrightnessIsValid_adjustsAutoBrightness()
493 when(mAutomaticBrightnessController.getAutomaticScreenBrightness(brightnessEvent)) in updateBrightness_constructsDisplayBrightnessState_withAdjustmentAutoAdjustmentFlag()
500 when(mAutomaticBrightnessController.getAutomaticScreenBrightness(null)) in updateBrightness_constructsDisplayBrightnessState_withAdjustmentAutoAdjustmentFlag()
503 .getAutomaticScreenBrightness(null, false), 0.0f); in updateBrightness_constructsDisplayBrightnessState_withAdjustmentAutoAdjustmentFlag()
535 when(mAutomaticBrightnessController.getAutomaticScreenBrightness(brightnessEvent)) in updateBrightness_constructsDisplayBrightnessState_withAdjustmentTempAdjustmentFlag()
551 when(mAutomaticBrightnessController.getAutomaticScreenBrightness(null)) in updateBrightness_constructsDisplayBrightnessState_withAdjustmentTempAdjustmentFlag()
554 .getAutomaticScreenBrightness(null, false), 0.0f); in updateBrightness_constructsDisplayBrightnessState_withAdjustmentTempAdjustmentFlag()
[all …]
DAutoBrightnessFallbackStrategyTest.java104 when(mScreenOffBrightnessSensorController.getAutomaticScreenBrightness()).thenReturn( in testUpdateBrightnessWhenScreenDozeStateIsRequested()
DAutomaticBrightnessStrategy2Test.java344 when(automaticBrightnessController.getAutomaticScreenBrightness(any(BrightnessEvent.class))) in setAutomaticBrightnessWorksAsExpected()
349 mAutomaticBrightnessStrategy.getAutomaticScreenBrightness( in setAutomaticBrightnessWorksAsExpected()
/frameworks/base/services/core/java/com/android/server/display/brightness/strategy/
DAutomaticBrightnessStrategy.java171 float brightness = getAutomaticScreenBrightness(null, in isAutoBrightnessValid()
288 float brightness = getAutomaticScreenBrightness(brightnessEvent, in updateBrightness()
371 public float getAutomaticScreenBrightness(BrightnessEvent brightnessEvent, in getAutomaticScreenBrightness() method in AutomaticBrightnessStrategy
374 ? mAutomaticBrightnessController.getAutomaticScreenBrightness(brightnessEvent) in getAutomaticScreenBrightness()
DAutoBrightnessFallbackStrategy.java73 float brightness = mScreenOffBrightnessSensorController.getAutomaticScreenBrightness(); in updateBrightness()
176 mScreenOffBrightnessSensorController.getAutomaticScreenBrightness()); in isValid()
DAutomaticBrightnessStrategy2.java265 public float getAutomaticScreenBrightness(BrightnessEvent brightnessEvent) { in getAutomaticScreenBrightness() method in AutomaticBrightnessStrategy2
267 ? mAutomaticBrightnessController.getAutomaticScreenBrightness(brightnessEvent) in getAutomaticScreenBrightness()
/frameworks/base/services/core/java/com/android/server/display/
DScreenOffBrightnessSensorController.java106 public float getAutomaticScreenBrightness() { in getAutomaticScreenBrightness() method in ScreenOffBrightnessSensorController
DAutomaticBrightnessController.java398 public float getAutomaticScreenBrightness() { in getAutomaticScreenBrightness() method in AutomaticBrightnessController
399 return getAutomaticScreenBrightness(null); in getAutomaticScreenBrightness()
408 public float getAutomaticScreenBrightness(BrightnessEvent brightnessEvent) { in getAutomaticScreenBrightness() method in AutomaticBrightnessController
1254 setScreenBrightnessByUser(getAutomaticScreenBrightness());
DDisplayPowerController.java1435 brightnessState = mAutomaticBrightnessStrategy.getAutomaticScreenBrightness( in updatePowerStateInternal()
1507 mScreenOffBrightnessSensorController.getAutomaticScreenBrightness(); in updatePowerStateInternal()