/frameworks/base/services/core/java/com/android/server/display/brightness/ |
D | BrightnessUtils.java | 55 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/ |
D | DisplayBrightnessStateTest.java | 47 float sdrBrightness = 0.2f; in validateAllDisplayBrightnessStateFieldsAreSetAsExpected() local 56 .setSdrBrightness(sdrBrightness) in validateAllDisplayBrightnessStateFieldsAreSetAsExpected() 65 assertEquals(displayBrightnessState.getSdrBrightness(), sdrBrightness, FLOAT_DELTA); in validateAllDisplayBrightnessStateFieldsAreSetAsExpected() local
|
D | DisplayPowerControllerTest.java | 747 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/ |
D | DisplayBlanker.java | 26 void requestDisplayState(int displayId, int state, float brightness, float sdrBrightness); in requestDisplayState() argument
|
D | DisplayBrightnessState.java | 310 public Builder setSdrBrightness(float sdrBrightness) { in setSdrBrightness() argument 311 this.mSdrBrightness = sdrBrightness; in setSdrBrightness()
|
D | DisplayManagerService.java | 366 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 …]
|
D | HighBrightnessModeController.java | 70 float getHdrBrightnessFromSdr(float sdrBrightness, float maxDesiredHdrSdrRatio); in getHdrBrightnessFromSdr() argument
|
D | DisplayPowerController.java | 2018 PowerManager.BRIGHTNESS_MAX, hbmData, (sdrBrightness, maxDesiredHdrSdrRatio) -> in createHbmControllerLocked() 2019 mDisplayDeviceConfig.getHdrBrightnessFromSdr(sdrBrightness, in createHbmControllerLocked()
|
/frameworks/base/core/java/android/view/ |
D | SurfaceControl.java | 248 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/ |
D | android_view_SurfaceControl.cpp | 1840 jfloat sdrBrightness, jfloat sdrBrightnessNits, in nativeSetDisplayBrightness() argument 1847 brightness.sdrWhitePoint = sdrBrightness; in nativeSetDisplayBrightness()
|