Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/display/brightness/
DBrightnessUtils.java55 int brightnessChangeReason, float brightness, float sdrBrightness, in constructDisplayBrightnessState() argument
57 return constructDisplayBrightnessState(brightnessChangeReason, brightness, sdrBrightness, in constructDisplayBrightnessState()
65 int brightnessChangeReason, float brightness, float sdrBrightness, in constructDisplayBrightnessState() argument
71 .setSdrBrightness(sdrBrightness) in constructDisplayBrightnessState()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DDisplayBrightnessStateTest.java47 float sdrBrightness = 0.2f; in validateAllDisplayBrightnessStateFieldsAreSetAsExpected() local
56 .setSdrBrightness(sdrBrightness) in validateAllDisplayBrightnessStateFieldsAreSetAsExpected()
65 assertEquals(displayBrightnessState.getSdrBrightness(), sdrBrightness, FLOAT_DELTA); in validateAllDisplayBrightnessStateFieldsAreSetAsExpected() local
DDisplayPowerControllerTest.java747 final float sdrBrightness = 0.1f; in testDisplayBrightnessHdr_SkipAnimationOnHdrAppearance() local
752 any(BrightnessEvent.class))).thenReturn(sdrBrightness); in testDisplayBrightnessHdr_SkipAnimationOnHdrAppearance()
759 verify(mHolder.animator).animateTo(eq(sdrBrightness), eq(sdrBrightness), in testDisplayBrightnessHdr_SkipAnimationOnHdrAppearance()
762 when(mHolder.displayPowerState.getScreenBrightness()).thenReturn(sdrBrightness); in testDisplayBrightnessHdr_SkipAnimationOnHdrAppearance()
763 when(mHolder.displayPowerState.getSdrScreenBrightness()).thenReturn(sdrBrightness); in testDisplayBrightnessHdr_SkipAnimationOnHdrAppearance()
773 verify(mHolder.animator).animateTo(eq(hdrBrightness), eq(sdrBrightness), in testDisplayBrightnessHdr_SkipAnimationOnHdrAppearance()
783 final float sdrBrightness = 0.1f; in testDisplayBrightnessHdr_SkipAnimationOnHdrRemoval() local
789 any(BrightnessEvent.class))).thenReturn(sdrBrightness); in testDisplayBrightnessHdr_SkipAnimationOnHdrRemoval()
800 verify(mHolder.animator).animateTo(eq(hdrBrightness), eq(sdrBrightness), in testDisplayBrightnessHdr_SkipAnimationOnHdrRemoval()
804 when(mHolder.displayPowerState.getSdrScreenBrightness()).thenReturn(sdrBrightness); in testDisplayBrightnessHdr_SkipAnimationOnHdrRemoval()
[all …]
/frameworks/base/services/core/java/com/android/server/display/
DDisplayBlanker.java26 void requestDisplayState(int displayId, int state, float brightness, float sdrBrightness); in requestDisplayState() argument
DDisplayBrightnessState.java310 public Builder setSdrBrightness(float sdrBrightness) { in setSdrBrightness() argument
311 this.mSdrBrightness = sdrBrightness; in setSdrBrightness()
DDisplayManagerService.java366 float sdrBrightness) {
397 requestDisplayStateInternal(displayId, state, brightness, sdrBrightness);
405 requestDisplayStateInternal(displayId, state, brightness, sdrBrightness);
972 && brightnessPair.sdrBrightness == sdrBrightnessState)) { in requestDisplayStateInternal()
987 brightnessPair.sdrBrightness = sdrBrightnessState; in requestDisplayStateInternal()
2270 brightnessPair.sdrBrightness, in updateDisplayStateLocked()
3315 pw.println(" Display SdrBrightness=" + brightnessPair.sdrBrightness); in dumpInternal()
3421 brightnessPair.sdrBrightness, in requestDisplayPower()
5191 public float sdrBrightness; field in BrightnessPair
5193 BrightnessPair(float brightness, float sdrBrightness) { in BrightnessPair() argument
[all …]
DHighBrightnessModeController.java70 float getHdrBrightnessFromSdr(float sdrBrightness, float maxDesiredHdrSdrRatio); in getHdrBrightnessFromSdr() argument
DDisplayPowerController.java2018 PowerManager.BRIGHTNESS_MAX, hbmData, (sdrBrightness, maxDesiredHdrSdrRatio) -> in createHbmControllerLocked()
2019 mDisplayDeviceConfig.getHdrBrightnessFromSdr(sdrBrightness, in createHbmControllerLocked()
/frameworks/base/core/java/android/view/
DSurfaceControl.java248 float sdrBrightness, float sdrBrightnessNits, float displayBrightness, in nativeSetDisplayBrightness() argument
2542 public static boolean setDisplayBrightness(IBinder displayToken, float sdrBrightness, in setDisplayBrightness() argument
2550 if (Float.isNaN(sdrBrightness) || sdrBrightness > 1.0f in setDisplayBrightness()
2551 || (sdrBrightness < 0.0f && sdrBrightness != -1.0f)) { in setDisplayBrightness()
2553 + "and 1.0f, or -1 to turn the backlight off: " + sdrBrightness); in setDisplayBrightness()
2555 return nativeSetDisplayBrightness(displayToken, sdrBrightness, sdrBrightnessNits, in setDisplayBrightness()
/frameworks/base/core/jni/
Dandroid_view_SurfaceControl.cpp1840 jfloat sdrBrightness, jfloat sdrBrightnessNits, in nativeSetDisplayBrightness() argument
1847 brightness.sdrWhitePoint = sdrBrightness; in nativeSetDisplayBrightness()