Home
last modified time | relevance | path

Searched refs:displayBrightnessState (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DDisplayBrightnessStateTest.java54 DisplayBrightnessState displayBrightnessState = mDisplayBrightnessStateBuilder in validateAllDisplayBrightnessStateFieldsAreSetAsExpected() local
64 assertEquals(displayBrightnessState.getBrightness(), brightness, FLOAT_DELTA); in validateAllDisplayBrightnessStateFieldsAreSetAsExpected()
65 assertEquals(displayBrightnessState.getSdrBrightness(), sdrBrightness, FLOAT_DELTA); in validateAllDisplayBrightnessStateFieldsAreSetAsExpected()
66 assertEquals(displayBrightnessState.getBrightnessReason(), brightnessReason); in validateAllDisplayBrightnessStateFieldsAreSetAsExpected()
67 assertEquals(displayBrightnessState.getShouldUseAutoBrightness(), shouldUseAutoBrightness); in validateAllDisplayBrightnessStateFieldsAreSetAsExpected()
69 displayBrightnessState.shouldUpdateScreenBrightnessSetting()); in validateAllDisplayBrightnessStateFieldsAreSetAsExpected()
70 assertEquals(displayBrightnessState.toString(), getString(displayBrightnessState)); in validateAllDisplayBrightnessStateFieldsAreSetAsExpected()
89 private String getString(DisplayBrightnessState displayBrightnessState) { in getString() argument
93 .append(displayBrightnessState.getBrightness()) in getString()
95 .append(displayBrightnessState.getSdrBrightness()) in getString()
[all …]
/frameworks/base/services/core/java/com/android/server/display/brightness/strategy/
DBoostBrightnessStrategy.java43 DisplayBrightnessState displayBrightnessState = in updateBrightness() local
47 return displayBrightnessState; in updateBrightness()
DTemporaryBrightnessStrategy.java49 DisplayBrightnessState displayBrightnessState = in updateBrightness() local
53 return displayBrightnessState; in updateBrightness()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayPowerController.java1357 DisplayBrightnessState displayBrightnessState = mDisplayBrightnessController in updatePowerStateInternal() local
1359 float brightnessState = displayBrightnessState.getBrightness(); in updatePowerStateInternal()
1360 float rawBrightnessState = displayBrightnessState.getBrightness(); in updatePowerStateInternal()
1361 mBrightnessReasonTemp.set(displayBrightnessState.getBrightnessReason()); in updatePowerStateInternal()
1362 boolean slowChange = displayBrightnessState.isSlowChange(); in updatePowerStateInternal()
1364 float customAnimationRate = displayBrightnessState.getCustomAnimationRate(); in updatePowerStateInternal()
1365 int brightnessAdjustmentFlags = displayBrightnessState.getBrightnessAdjustmentFlag(); in updatePowerStateInternal()
1368 if (displayBrightnessState.getBrightnessEvent() != null) { in updatePowerStateInternal()
1369 mTempBrightnessEvent.copyFrom(displayBrightnessState.getBrightnessEvent()); in updatePowerStateInternal()
1380 .setLightSensorEnabled(displayBrightnessState.getShouldUseAutoBrightness() in updatePowerStateInternal()
[all …]