Home
last modified time | relevance | path

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

/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/strategy/
DAutomaticBrightnessStrategy2Test.java101 int targetDisplayState = Display.STATE_ON; in testAutoBrightnessState_AutoBrightnessDisabled() local
108 mAutomaticBrightnessStrategy.setAutoBrightnessState(targetDisplayState, in testAutoBrightnessState_AutoBrightnessDisabled()
117 targetDisplayState, /* shouldResetShortTermModel */ true); in testAutoBrightnessState_AutoBrightnessDisabled()
125 int targetDisplayState = Display.STATE_OFF; in testAutoBrightnessState_DisplayIsOff() local
132 mAutomaticBrightnessStrategy.setAutoBrightnessState(targetDisplayState, in testAutoBrightnessState_DisplayIsOff()
141 targetDisplayState, /* shouldResetShortTermModel */ true); in testAutoBrightnessState_DisplayIsOff()
149 int targetDisplayState = Display.STATE_DOZE; in testAutoBrightnessState_DisplayIsInDoze_ConfigDoesNotAllow() local
156 mAutomaticBrightnessStrategy.setAutoBrightnessState(targetDisplayState, in testAutoBrightnessState_DisplayIsInDoze_ConfigDoesNotAllow()
165 targetDisplayState, /* shouldResetShortTermModel */ true); in testAutoBrightnessState_DisplayIsInDoze_ConfigDoesNotAllow()
173 int targetDisplayState = Display.STATE_ON; in testAutoBrightnessState_BrightnessReasonIsOverride() local
[all …]
DAutomaticBrightnessStrategyTest.java111 int targetDisplayState = Display.STATE_ON; in testAutoBrightnessState_AutoBrightnessDisabled() local
118 mAutomaticBrightnessStrategy.setAutoBrightnessState(targetDisplayState, in testAutoBrightnessState_AutoBrightnessDisabled()
127 targetDisplayState, /* shouldResetShortTermModel */ true); in testAutoBrightnessState_AutoBrightnessDisabled()
135 int targetDisplayState = Display.STATE_OFF; in testAutoBrightnessState_DisplayIsOff() local
142 mAutomaticBrightnessStrategy.setAutoBrightnessState(targetDisplayState, in testAutoBrightnessState_DisplayIsOff()
151 targetDisplayState, /* shouldResetShortTermModel */ true); in testAutoBrightnessState_DisplayIsOff()
159 int targetDisplayState = Display.STATE_DOZE; in testAutoBrightnessState_DisplayIsInDoze_ConfigDoesNotAllow() local
166 mAutomaticBrightnessStrategy.setAutoBrightnessState(targetDisplayState, in testAutoBrightnessState_DisplayIsInDoze_ConfigDoesNotAllow()
175 targetDisplayState, /* shouldResetShortTermModel */ true); in testAutoBrightnessState_DisplayIsInDoze_ConfigDoesNotAllow()
183 int targetDisplayState = Display.STATE_ON; in testAutoBrightnessState_BrightnessReasonIsOverride() local
[all …]
/frameworks/base/services/core/java/com/android/server/display/brightness/strategy/
DAutomaticBrightnessStrategy2.java107 public void setAutoBrightnessState(int targetDisplayState, in setAutoBrightnessState() argument
111 allowAutoBrightnessWhileDozingConfig && Display.isDozeState(targetDisplayState); in setAutoBrightnessState()
113 && (targetDisplayState == Display.STATE_ON || autoBrightnessEnabledInDoze) in setAutoBrightnessState()
117 && !(targetDisplayState == Display.STATE_ON || autoBrightnessEnabledInDoze); in setAutoBrightnessState()
126 policy, targetDisplayState, mBrightnessConfiguration, autoBrightnessState); in setAutoBrightnessState()
DAutomaticBrightnessStrategy.java130 public void setAutoBrightnessState(int targetDisplayState, in setAutoBrightnessState() argument
135 switchMode(targetDisplayState, /* sendUpdate= */ false); in setAutoBrightnessState()
137 allowAutoBrightnessWhileDozingConfig && Display.isDozeState(targetDisplayState); in setAutoBrightnessState()
139 && (targetDisplayState == Display.STATE_ON || autoBrightnessEnabledInDoze) in setAutoBrightnessState()
143 && !(targetDisplayState == Display.STATE_ON || autoBrightnessEnabledInDoze); in setAutoBrightnessState()
152 policy, targetDisplayState, mBrightnessConfiguration, autoBrightnessState); in setAutoBrightnessState()
DAutoBrightnessFallbackStrategy.java112 int targetDisplayState = strategySelectionNotifyRequest.getTargetDisplayState(); in strategySelectionPostProcessor() local
115 && (targetDisplayState == Display.STATE_OFF in strategySelectionPostProcessor()
116 || (targetDisplayState == Display.STATE_DOZE in strategySelectionPostProcessor()
/frameworks/base/services/core/java/com/android/server/display/brightness/
DStrategySelectionRequest.java44 int targetDisplayState, float lastUserSetScreenBrightness, in StrategySelectionRequest() argument
48 mTargetDisplayState = targetDisplayState; in StrategySelectionRequest()
DStrategySelectionNotifyRequest.java52 DisplayManagerInternal.DisplayPowerRequest displayPowerRequest, int targetDisplayState, in StrategySelectionNotifyRequest() argument
58 mTargetDisplayState = targetDisplayState; in StrategySelectionNotifyRequest()
DDisplayBrightnessController.java149 int targetDisplayState, in updateBrightness() argument
154 constructStrategySelectionRequest(displayPowerRequest, targetDisplayState, in updateBrightness()
607 int targetDisplayState, in constructStrategySelectionRequest() argument
614 return new StrategySelectionRequest(displayPowerRequest, targetDisplayState, in constructStrategySelectionRequest()
DDisplayBrightnessStrategySelector.java169 int targetDisplayState = strategySelectionRequest.getTargetDisplayState(); in selectStrategy() local
173 if (targetDisplayState == Display.STATE_OFF) { in selectStrategy()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/
DDisplayBrightnessControllerTest.java121 int targetDisplayState = Display.STATE_DOZE; in testUpdateBrightness() local
124 mDisplayBrightnessController.updateBrightness(displayPowerRequest, targetDisplayState, mock( in testUpdateBrightness()