Home
last modified time | relevance | path

Searched refs:brightnessSetting (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DDisplayPowerControllerTest.java363 verify(mHolder.brightnessSetting).registerListener(listenerCaptor.capture()); in testDisplayBrightnessFollowers_BothDpcsSupportNits()
375 when(mHolder.brightnessSetting.getBrightness()).thenReturn(leadBrightness); in testDisplayBrightnessFollowers_BothDpcsSupportNits()
390 when(mHolder.brightnessSetting.getBrightness()).thenReturn(brightness); in testDisplayBrightnessFollowers_BothDpcsSupportNits()
413 verify(mHolder.brightnessSetting).registerListener(listenerCaptor.capture()); in testDisplayBrightnessFollowers_FollowerDoesNotSupportNits()
422 when(mHolder.brightnessSetting.getBrightness()).thenReturn(brightness); in testDisplayBrightnessFollowers_FollowerDoesNotSupportNits()
445 verify(mHolder.brightnessSetting).registerListener(listenerCaptor.capture()); in testDisplayBrightnessFollowers_LeadDpcDoesNotSupportNits()
452 when(mHolder.brightnessSetting.getBrightness()).thenReturn(brightness); in testDisplayBrightnessFollowers_LeadDpcDoesNotSupportNits()
475 verify(mHolder.brightnessSetting).registerListener(listenerCaptor.capture()); in testDisplayBrightnessFollowers_NeitherDpcSupportsNits()
484 when(mHolder.brightnessSetting.getBrightness()).thenReturn(brightness); in testDisplayBrightnessFollowers_NeitherDpcSupportsNits()
581 verify(mHolder.brightnessSetting).registerListener(listenerCaptor.capture()); in testDisplayBrightnessFollowersRemoval_RemoveSingleFollower()
[all …]
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/
DDisplayBrightnessControllerTest.java237 float brightnessSetting = 0.2f; in getScreenBrightnessSetting() local
238 when(mBrightnessSetting.getBrightness()).thenReturn(brightnessSetting); in getScreenBrightnessSetting()
239 assertEquals(mDisplayBrightnessController.getScreenBrightnessSetting(), brightnessSetting, in getScreenBrightnessSetting() local
243 brightnessSetting = 1.1f; in getScreenBrightnessSetting()
244 when(mBrightnessSetting.getBrightness()).thenReturn(brightnessSetting); in getScreenBrightnessSetting()
250 brightnessSetting = Float.NaN; in getScreenBrightnessSetting()
251 when(mBrightnessSetting.getBrightness()).thenReturn(brightnessSetting); in getScreenBrightnessSetting()
/frameworks/base/services/core/java/com/android/server/display/brightness/
DDisplayBrightnessController.java117 float defaultScreenBrightness, BrightnessSetting brightnessSetting, in DisplayBrightnessController() argument
125 mBrightnessSetting = brightnessSetting; in DisplayBrightnessController()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayPowerController.java502 BrightnessTracker brightnessTracker, BrightnessSetting brightnessSetting, in DisplayPowerController() argument
581 brightnessSetting, () -> postBrightnessChangeRunnable(), in DisplayPowerController()
DDisplayManagerService.java3532 final BrightnessSetting brightnessSetting = new BrightnessSetting(userSerial, in addDisplayPowerControllerLocked() local
3545 mSensorManager, mDisplayBlanker, display, mBrightnessTracker, brightnessSetting, in addDisplayPowerControllerLocked()