/frameworks/base/services/core/java/com/android/server/display/ |
D | DisplayPowerState.java | 406 float brightnessState = mScreenState != Display.STATE_OFF 411 if (mPhotonicModulator.setState(mScreenState, brightnessState, sdrBrightnessState)) { 464 public boolean setState(int state, float brightnessState, float sdrBrightnessState) { in setState() argument 467 boolean backlightChanged = brightnessState != mPendingBacklight in setState() 472 + Display.stateToString(state) + ", backlight=" + brightnessState); in setState() 476 mPendingBacklight = brightnessState; in setState() 511 final float brightnessState; in run() local 517 brightnessState = mPendingBacklight; in run() 519 backlightChanged = brightnessState != mActualBacklight in run() 529 boolean valid = state != Display.STATE_UNKNOWN && !Float.isNaN(brightnessState); in run() [all …]
|
D | DisplayPowerController.java | 1359 float brightnessState = displayBrightnessState.getBrightness(); in updatePowerStateInternal() local 1412 userInitiatedChange = (Float.isNaN(brightnessState)) in updatePowerStateInternal() 1432 if (Float.isNaN(brightnessState) in updatePowerStateInternal() 1435 brightnessState = mAutomaticBrightnessStrategy.getAutomaticScreenBrightness( in updatePowerStateInternal() 1437 if (BrightnessUtils.isValidBrightnessValue(brightnessState) in updatePowerStateInternal() 1438 || brightnessState == PowerManager.BRIGHTNESS_OFF_FLOAT) { in updatePowerStateInternal() 1450 updateScreenBrightnessSetting = currentBrightnessSetting != brightnessState; in updatePowerStateInternal() 1460 brightnessState = displayBrightnessState.getBrightness(); in updatePowerStateInternal() 1468 if (!Float.isNaN(brightnessState)) { in updatePowerStateInternal() 1469 brightnessState = clampScreenBrightness(brightnessState); in updatePowerStateInternal() [all …]
|
D | LocalDisplayAdapter.java | 786 final float brightnessState, in requestDisplayStateLocked() argument 792 || brightnessState == PowerManager.BRIGHTNESS_OFF_FLOAT; in requestDisplayStateLocked() 794 final boolean brightnessChanged = mBrightnessState != brightnessState in requestDisplayStateLocked() 837 setDisplayBrightness(brightnessState, sdrBrightnessState); in requestDisplayStateLocked() 838 mBrightnessState = brightnessState; in requestDisplayStateLocked() 921 private void setDisplayBrightness(float brightnessState, in requestDisplayStateLocked() argument 924 if (Float.isNaN(brightnessState) || Float.isNaN(sdrBrightnessState)) { in requestDisplayStateLocked() 931 + ", brightnessState=" + brightnessState in requestDisplayStateLocked() 937 + brightnessState + ", sdrBrightnessState=" + sdrBrightnessState in requestDisplayStateLocked() 940 final float backlight = brightnessToBacklight(brightnessState); in requestDisplayStateLocked() [all …]
|
D | DisplayManagerService.java | 939 private float clampBrightness(int displayState, float brightnessState) { in clampBrightness() argument 941 brightnessState = PowerManager.BRIGHTNESS_OFF_FLOAT; in clampBrightness() 942 } else if (brightnessState != PowerManager.BRIGHTNESS_OFF_FLOAT in clampBrightness() 943 && brightnessState < PowerManager.BRIGHTNESS_MIN) { in clampBrightness() 944 brightnessState = PowerManager.BRIGHTNESS_INVALID_FLOAT; in clampBrightness() 945 } else if (brightnessState > PowerManager.BRIGHTNESS_MAX) { in clampBrightness() 946 brightnessState = PowerManager.BRIGHTNESS_MAX; in clampBrightness() 948 return brightnessState; in clampBrightness() 951 private void requestDisplayStateInternal(int displayId, int state, float brightnessState, in requestDisplayStateInternal() argument 957 brightnessState = clampBrightness(state, brightnessState); in requestDisplayStateInternal() [all …]
|
D | DisplayDevice.java | 236 float brightnessState, in requestDisplayStateLocked() argument
|
D | VirtualDisplayAdapter.java | 386 public Runnable requestDisplayStateLocked(int state, float brightnessState, in requestDisplayStateLocked() argument
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/strategy/ |
D | AutomaticBrightnessStrategy2Test.java | 287 float brightnessState = 0.3f; in adjustAutomaticBrightnessStateIfValid() local 291 mAutomaticBrightnessStrategy.adjustAutomaticBrightnessStateIfValid(brightnessState); in adjustAutomaticBrightnessStateIfValid()
|
D | AutomaticBrightnessStrategyTest.java | 340 float brightnessState = 0.3f; in adjustAutomaticBrightnessStateIfValid() local 344 mAutomaticBrightnessStrategy.adjustAutomaticBrightnessStateIfValid(brightnessState); in adjustAutomaticBrightnessStateIfValid()
|
/frameworks/base/services/core/java/com/android/server/display/brightness/strategy/ |
D | AutomaticBrightnessStrategy2.java | 292 void adjustAutomaticBrightnessStateIfValid(float brightnessState) { in adjustAutomaticBrightnessStateIfValid() argument
|
D | AutomaticBrightnessStrategy.java | 394 void adjustAutomaticBrightnessStateIfValid(float brightnessState) { in adjustAutomaticBrightnessStateIfValid() argument
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/ |
D | DisplayManagerServiceTest.java | 3623 final float brightnessState,
|