Home
last modified time | relevance | path

Searched refs:brightnessState (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/services/core/java/com/android/server/display/
DDisplayPowerState.java406 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 …]
DDisplayPowerController.java1359 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 …]
DLocalDisplayAdapter.java786 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 …]
DDisplayManagerService.java939 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 …]
DDisplayDevice.java236 float brightnessState, in requestDisplayStateLocked() argument
DVirtualDisplayAdapter.java386 public Runnable requestDisplayStateLocked(int state, float brightnessState, in requestDisplayStateLocked() argument
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/strategy/
DAutomaticBrightnessStrategy2Test.java287 float brightnessState = 0.3f; in adjustAutomaticBrightnessStateIfValid() local
291 mAutomaticBrightnessStrategy.adjustAutomaticBrightnessStateIfValid(brightnessState); in adjustAutomaticBrightnessStateIfValid()
DAutomaticBrightnessStrategyTest.java340 float brightnessState = 0.3f; in adjustAutomaticBrightnessStateIfValid() local
344 mAutomaticBrightnessStrategy.adjustAutomaticBrightnessStateIfValid(brightnessState); in adjustAutomaticBrightnessStateIfValid()
/frameworks/base/services/core/java/com/android/server/display/brightness/strategy/
DAutomaticBrightnessStrategy2.java292 void adjustAutomaticBrightnessStateIfValid(float brightnessState) { in adjustAutomaticBrightnessStateIfValid() argument
DAutomaticBrightnessStrategy.java394 void adjustAutomaticBrightnessStateIfValid(float brightnessState) { in adjustAutomaticBrightnessStateIfValid() argument
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DDisplayManagerServiceTest.java3623 final float brightnessState,