/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/ |
D | ScreenOffBrightnessSensorControllerTest.java | 100 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()
|
D | AutomaticBrightnessControllerTest.java | 227 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 …]
|
D | DisplayPowerControllerTest.java | 511 .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/ |
D | AutomaticBrightnessStrategyTest.java | 393 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 …]
|
D | AutoBrightnessFallbackStrategyTest.java | 104 when(mScreenOffBrightnessSensorController.getAutomaticScreenBrightness()).thenReturn( in testUpdateBrightnessWhenScreenDozeStateIsRequested()
|
D | AutomaticBrightnessStrategy2Test.java | 344 when(automaticBrightnessController.getAutomaticScreenBrightness(any(BrightnessEvent.class))) in setAutomaticBrightnessWorksAsExpected() 349 mAutomaticBrightnessStrategy.getAutomaticScreenBrightness( in setAutomaticBrightnessWorksAsExpected()
|
/frameworks/base/services/core/java/com/android/server/display/brightness/strategy/ |
D | AutomaticBrightnessStrategy.java | 171 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()
|
D | AutoBrightnessFallbackStrategy.java | 73 float brightness = mScreenOffBrightnessSensorController.getAutomaticScreenBrightness(); in updateBrightness() 176 mScreenOffBrightnessSensorController.getAutomaticScreenBrightness()); in isValid()
|
D | AutomaticBrightnessStrategy2.java | 265 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/ |
D | ScreenOffBrightnessSensorController.java | 106 public float getAutomaticScreenBrightness() { in getAutomaticScreenBrightness() method in ScreenOffBrightnessSensorController
|
D | AutomaticBrightnessController.java | 398 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());
|
D | DisplayPowerController.java | 1435 brightnessState = mAutomaticBrightnessStrategy.getAutomaticScreenBrightness( in updatePowerStateInternal() 1507 mScreenOffBrightnessSensorController.getAutomaticScreenBrightness(); in updatePowerStateInternal()
|