Home
last modified time | relevance | path

Searched refs:convertToFloatScale (Results 1 – 8 of 8) sorted by relevance

/aosp14/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/
H A DDisplayBrightnessControllerTest.java298 mDisplayBrightnessController.convertToFloatScale(nits), /* delta= */ 0); in testConvertToFloatScale()
302 when(automaticBrightnessController.convertToFloatScale(nits)).thenReturn(brightness); in testConvertToFloatScale()
306 assertEquals(brightness, mDisplayBrightnessController.convertToFloatScale(nits), in testConvertToFloatScale()
328 when(automaticBrightnessController.convertToFloatScale(nits)).thenReturn(brightness); in testLoadNitBasedBrightnessSetting()
339 when(automaticBrightnessController.convertToFloatScale(nits)).thenReturn(brightness); in testLoadNitBasedBrightnessSetting()
/aosp14/frameworks/base/services/core/java/com/android/server/display/brightness/
H A DDisplayBrightnessController.java380 public float convertToFloatScale(float nits) { in convertToFloatScale() method in DisplayBrightnessController
384 return mAutomaticBrightnessController.convertToFloatScale(nits); in convertToFloatScale()
485 float brightnessForDefaultDisplay = convertToFloatScale( in loadNitBasedBrightnessSetting()
/aosp14/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
H A DDisplayPowerControllerTest.java329 when(followerDpc.automaticBrightnessController.convertToFloatScale(nits)) in testDisplayBrightnessFollowers_BothDpcsSupportNits()
347 when(followerDpc.automaticBrightnessController.convertToFloatScale(nits)) in testDisplayBrightnessFollowers_BothDpcsSupportNits()
379 when(followerDpc.automaticBrightnessController.convertToFloatScale(anyFloat())) in testDisplayBrightnessFollowers_FollowerDoesNotSupportNits()
441 when(followerDpc.automaticBrightnessController.convertToFloatScale(anyFloat())) in testDisplayBrightnessFollowers_NeitherDpcSupportsNits()
475 when(followerDpc.automaticBrightnessController.convertToFloatScale(nits)) in testDisplayBrightnessFollowers_AutomaticBrightness()
509 when(followerDpc.automaticBrightnessController.convertToFloatScale(nits)) in testDisplayBrightnessFollowers_AutomaticBrightness()
567 when(followerDpc.automaticBrightnessController.convertToFloatScale(nits)) in testDisplayBrightnessFollowersRemoval_RemoveSingleFollower()
569 when(secondFollowerDpc.automaticBrightnessController.convertToFloatScale(nits)) in testDisplayBrightnessFollowersRemoval_RemoveSingleFollower()
600 when(followerDpc.automaticBrightnessController.convertToFloatScale(nits)) in testDisplayBrightnessFollowersRemoval_RemoveSingleFollower()
671 when(followerHolder.automaticBrightnessController.convertToFloatScale(nits)) in testDisplayBrightnessFollowersRemoval_RemoveAllFollowers()
[all …]
H A DDisplayPowerController2Test.java327 when(followerDpc.automaticBrightnessController.convertToFloatScale(nits)) in testDisplayBrightnessFollowers_BothDpcsSupportNits()
342 when(followerDpc.automaticBrightnessController.convertToFloatScale(nits)) in testDisplayBrightnessFollowers_BothDpcsSupportNits()
374 when(followerDpc.automaticBrightnessController.convertToFloatScale(anyFloat())) in testDisplayBrightnessFollowers_FollowerDoesNotSupportNits()
436 when(followerDpc.automaticBrightnessController.convertToFloatScale(anyFloat())) in testDisplayBrightnessFollowers_NeitherDpcSupportsNits()
470 when(followerDpc.automaticBrightnessController.convertToFloatScale(nits)) in testDisplayBrightnessFollowers_AutomaticBrightness()
504 when(followerDpc.automaticBrightnessController.convertToFloatScale(nits)) in testDisplayBrightnessFollowers_AutomaticBrightness()
562 when(followerDpc.automaticBrightnessController.convertToFloatScale(nits)) in testDisplayBrightnessFollowersRemoval_RemoveSingleFollower()
564 when(secondFollowerDpc.automaticBrightnessController.convertToFloatScale(nits)) in testDisplayBrightnessFollowersRemoval_RemoveSingleFollower()
595 when(followerDpc.automaticBrightnessController.convertToFloatScale(nits)) in testDisplayBrightnessFollowersRemoval_RemoveSingleFollower()
666 when(followerHolder.automaticBrightnessController.convertToFloatScale(nits)) in testDisplayBrightnessFollowersRemoval_RemoveAllFollowers()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/display/
H A DBrightnessMappingStrategy.java338 public abstract float convertToFloatScale(float nits); in convertToFloatScale() method in BrightnessMappingStrategy
699 public float convertToFloatScale(float nits) { in convertToFloatScale() method in BrightnessMappingStrategy.SimpleMappingStrategy
961 public float convertToFloatScale(float nits) { in convertToFloatScale() method in BrightnessMappingStrategy.PhysicalMappingStrategy
H A DDisplayPowerController.java832 float brightness = convertToFloatScale(nits); in setBrightnessToFollow()
1264 userBrightness = mInteractiveModeBrightnessMapper.convertToFloatScale(userNits); in setUpAutoBrightness()
2714 float brightnessForDefaultDisplay = convertToFloatScale(
2859 private float convertToFloatScale(float nits) {
2863 return mAutomaticBrightnessController.convertToFloatScale(nits);
H A DAutomaticBrightnessController.java1213 public float convertToFloatScale(float nits) {
1215 return mCurrentBrightnessMapper.convertToFloatScale(nits);
H A DDisplayPowerController2.java1085 userBrightness = mInteractiveModeBrightnessMapper.convertToFloatScale(userNits); in setUpAutoBrightness()
2262 float brightness = mDisplayBrightnessController.convertToFloatScale(nits); in setBrightnessToFollow()