/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/strategy/ |
D | AutomaticBrightnessStrategy2Test.java | 101 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 …]
|
D | AutomaticBrightnessStrategyTest.java | 111 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/ |
D | AutomaticBrightnessStrategy2.java | 107 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()
|
D | AutomaticBrightnessStrategy.java | 130 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()
|
D | AutoBrightnessFallbackStrategy.java | 112 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/ |
D | StrategySelectionRequest.java | 44 int targetDisplayState, float lastUserSetScreenBrightness, in StrategySelectionRequest() argument 48 mTargetDisplayState = targetDisplayState; in StrategySelectionRequest()
|
D | StrategySelectionNotifyRequest.java | 52 DisplayManagerInternal.DisplayPowerRequest displayPowerRequest, int targetDisplayState, in StrategySelectionNotifyRequest() argument 58 mTargetDisplayState = targetDisplayState; in StrategySelectionNotifyRequest()
|
D | DisplayBrightnessController.java | 149 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()
|
D | DisplayBrightnessStrategySelector.java | 169 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/ |
D | DisplayBrightnessControllerTest.java | 121 int targetDisplayState = Display.STATE_DOZE; in testUpdateBrightness() local 124 mDisplayBrightnessController.updateBrightness(displayPowerRequest, targetDisplayState, mock( in testUpdateBrightness()
|