/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/state/ |
D | DisplayStateControllerTest.java | 26 import android.hardware.display.DisplayManagerInternal; 62 DisplayManagerInternal.DisplayPowerRequest displayPowerRequest = mock( in updateProximityStateEvaluatesStateOffPolicyAsExpected() 63 DisplayManagerInternal.DisplayPowerRequest.class); in updateProximityStateEvaluatesStateOffPolicyAsExpected() 65 displayPowerRequest.policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_OFF; in updateProximityStateEvaluatesStateOffPolicyAsExpected() 80 validDisplayState(DisplayManagerInternal.DisplayPowerRequest.POLICY_DOZE, in updateProximityStateEvaluatesDozePolicyAsExpected() 88 validDisplayState(DisplayManagerInternal.DisplayPowerRequest.POLICY_DIM, in updateProximityStateEvaluatesDimPolicyAsExpected() 96 validDisplayState(DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT, in updateProximityStateEvaluatesDimBrightAsExpected() 104 DisplayManagerInternal.DisplayPowerRequest displayPowerRequest = mock( in updateProximityStateWorksAsExpectedWhenDisplayDisabled() 105 DisplayManagerInternal.DisplayPowerRequest.class); in updateProximityStateWorksAsExpectedWhenDisplayDisabled() 107 displayPowerRequest.policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT; in updateProximityStateWorksAsExpectedWhenDisplayDisabled() [all …]
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/ |
D | DisplayBrightnessStrategySelectorTest.java | 34 import android.hardware.display.DisplayManagerInternal; 103 private DisplayManagerInternal.DisplayOffloadSession mDisplayOffloadSession; 191 DisplayManagerInternal.DisplayPowerRequest displayPowerRequest = mock( in selectStrategySelectsDozeStrategyWhenValid() 192 DisplayManagerInternal.DisplayPowerRequest.class); in selectStrategySelectsDozeStrategyWhenValid() 193 displayPowerRequest.policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_DOZE; in selectStrategySelectsDozeStrategyWhenValid() 205 DisplayManagerInternal.DisplayPowerRequest displayPowerRequest = mock( in selectStrategyDoesNotSelectDozeStrategyWhenInvalidBrightness() 206 DisplayManagerInternal.DisplayPowerRequest.class); in selectStrategyDoesNotSelectDozeStrategyWhenInvalidBrightness() 207 displayPowerRequest.policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_DOZE; in selectStrategyDoesNotSelectDozeStrategyWhenInvalidBrightness() 229 DisplayManagerInternal.DisplayPowerRequest displayPowerRequest = mock( in selectStrategyDoesNotSelectDozeStrategyWhenOffloadSessionAutoBrightnessIsEnabled() 230 DisplayManagerInternal.DisplayPowerRequest.class); in selectStrategyDoesNotSelectDozeStrategyWhenOffloadSessionAutoBrightnessIsEnabled() [all …]
|
/frameworks/base/services/core/java/com/android/server/display/brightness/ |
D | StrategySelectionRequest.java | 19 import android.hardware.display.DisplayManagerInternal; 29 private DisplayManagerInternal.DisplayPowerRequest mDisplayPowerRequest; 41 private DisplayManagerInternal.DisplayOffloadSession mDisplayOffloadSession; 43 public StrategySelectionRequest(DisplayManagerInternal.DisplayPowerRequest displayPowerRequest, in StrategySelectionRequest() 46 DisplayManagerInternal.DisplayOffloadSession displayOffloadSession) { in StrategySelectionRequest() 54 public DisplayManagerInternal.DisplayPowerRequest getDisplayPowerRequest() { in getDisplayPowerRequest() 71 public DisplayManagerInternal.DisplayOffloadSession getDisplayOffloadSession() { in getDisplayOffloadSession()
|
D | StrategyExecutionRequest.java | 19 import android.hardware.display.DisplayManagerInternal; 28 private final DisplayManagerInternal.DisplayPowerRequest mDisplayPowerRequest; 35 public StrategyExecutionRequest(DisplayManagerInternal.DisplayPowerRequest displayPowerRequest, in StrategyExecutionRequest() 42 public DisplayManagerInternal.DisplayPowerRequest getDisplayPowerRequest() { in getDisplayPowerRequest()
|
D | StrategySelectionNotifyRequest.java | 19 import android.hardware.display.DisplayManagerInternal; 31 private DisplayManagerInternal.DisplayPowerRequest mDisplayPowerRequest; 52 DisplayManagerInternal.DisplayPowerRequest displayPowerRequest, int targetDisplayState, in StrategySelectionNotifyRequest() 102 public DisplayManagerInternal.DisplayPowerRequest getDisplayPowerRequest() { in getDisplayPowerRequest()
|
/frameworks/base/services/core/java/com/android/server/display/state/ |
D | DisplayStateController.java | 19 import android.hardware.display.DisplayManagerInternal; 56 DisplayManagerInternal.DisplayPowerRequest displayPowerRequest, in updateDisplayState() 66 case DisplayManagerInternal.DisplayPowerRequest.POLICY_OFF: in updateDisplayState() 70 case DisplayManagerInternal.DisplayPowerRequest.POLICY_DOZE: in updateDisplayState() 81 case DisplayManagerInternal.DisplayPowerRequest.POLICY_DIM: in updateDisplayState() 82 case DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT: in updateDisplayState()
|
/frameworks/base/services/core/java/com/android/server/display/brightness/clamper/ |
D | BrightnessModifier.java | 19 import android.hardware.display.DisplayManagerInternal; 33 abstract boolean shouldApply(DisplayManagerInternal.DisplayPowerRequest request); in shouldApply() 36 DisplayManagerInternal.DisplayPowerRequest request); in getBrightnessAdjusted() 41 public void apply(DisplayManagerInternal.DisplayPowerRequest request, in apply()
|
D | DisplayDimModifier.java | 21 import android.hardware.display.DisplayManagerInternal; 53 boolean shouldApply(DisplayManagerInternal.DisplayPowerRequest request) { in shouldApply() 54 return request.policy == DisplayManagerInternal.DisplayPowerRequest.POLICY_DIM; in shouldApply() 59 DisplayManagerInternal.DisplayPowerRequest request) { in getBrightnessAdjusted()
|
D | BrightnessLowPowerModeModifier.java | 19 import android.hardware.display.DisplayManagerInternal; 30 boolean shouldApply(DisplayManagerInternal.DisplayPowerRequest request) { in shouldApply() 37 DisplayManagerInternal.DisplayPowerRequest request) { in getBrightnessAdjusted()
|
D | BrightnessStateModifier.java | 19 import android.hardware.display.DisplayManagerInternal; 32 void apply(DisplayManagerInternal.DisplayPowerRequest request, in apply()
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/strategy/ |
D | AutomaticBrightnessStrategyTest.java | 33 import android.hardware.display.DisplayManagerInternal; 114 int policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT; in testAutoBrightnessState_AutoBrightnessDisabled() 138 int policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_OFF; in testAutoBrightnessState_DisplayIsOff() 162 int policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_DOZE; in testAutoBrightnessState_DisplayIsInDoze_ConfigDoesNotAllow() 186 int policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT; in testAutoBrightnessState_BrightnessReasonIsOverride() 210 int policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_DOZE; in testAutoBrightnessState_DisplayIsInDoze_ConfigDoesAllow() 238 int policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT; in testAutoBrightnessState_DisplayIsOn() 266 int policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT; in testAutoBrightnessState_modeSwitch() 306 int policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT; in accommodateUserBrightnessChangesWorksAsExpected() 454 DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT, 0.1f, in isAutoBrightnessValid_returnsFalseWhenBrightnessIsInvalid() [all …]
|
D | TemporaryBrightnessStrategyTest.java | 22 import android.hardware.display.DisplayManagerInternal; 48 DisplayManagerInternal.DisplayPowerRequest in testUpdateBrightnessWhenTemporaryBrightnessIsSet() 49 displayPowerRequest = new DisplayManagerInternal.DisplayPowerRequest(); in testUpdateBrightnessWhenTemporaryBrightnessIsSet()
|
D | BoostBrightnessStrategyTest.java | 22 import android.hardware.display.DisplayManagerInternal; 49 DisplayManagerInternal.DisplayPowerRequest in testUpdateBrightnessWhenBoostBrightnessIsRequested() 50 displayPowerRequest = new DisplayManagerInternal.DisplayPowerRequest(); in testUpdateBrightnessWhenBoostBrightnessIsRequested()
|
D | OverrideBrightnessStrategyTest.java | 22 import android.hardware.display.DisplayManagerInternal; 48 DisplayManagerInternal.DisplayPowerRequest in testUpdateBrightnessWhenScreenDozeStateIsRequested() 49 displayPowerRequest = new DisplayManagerInternal.DisplayPowerRequest(); in testUpdateBrightnessWhenScreenDozeStateIsRequested()
|
D | FallbackBrightnessStrategyTest.java | 22 import android.hardware.display.DisplayManagerInternal; 48 DisplayManagerInternal.DisplayPowerRequest in updateBrightness_currentBrightnessIsSet() 49 displayPowerRequest = new DisplayManagerInternal.DisplayPowerRequest(); in updateBrightness_currentBrightnessIsSet()
|
D | FollowerBrightnessStrategyTest.java | 21 import android.hardware.display.DisplayManagerInternal; 47 DisplayManagerInternal.DisplayPowerRequest in testUpdateBrightness() 48 displayPowerRequest = new DisplayManagerInternal.DisplayPowerRequest(); in testUpdateBrightness()
|
D | AutomaticBrightnessStrategy2Test.java | 30 import android.hardware.display.DisplayManagerInternal; 104 int policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT; in testAutoBrightnessState_AutoBrightnessDisabled() 128 int policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_OFF; in testAutoBrightnessState_DisplayIsOff() 152 int policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_DOZE; in testAutoBrightnessState_DisplayIsInDoze_ConfigDoesNotAllow() 176 int policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT; in testAutoBrightnessState_BrightnessReasonIsOverride() 200 int policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_DOZE; in testAutoBrightnessState_DisplayIsInDoze_ConfigDoesAllow() 228 int policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT; in testAutoBrightnessState_DisplayIsOn() 253 int policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT; in accommodateUserBrightnessChangesWorksAsExpected()
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/clamper/ |
D | DisplayDimModifierTest.java | 26 import android.hardware.display.DisplayManagerInternal; 56 private final DisplayManagerInternal.DisplayPowerRequest 57 mRequest = new DisplayManagerInternal.DisplayPowerRequest(); 72 mRequest.policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_DIM; in setUp() 77 mRequest.policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_OFF; in testApply_noDimPolicy() 132 mRequest.policy = DisplayManagerInternal.DisplayPowerRequest.POLICY_OFF; in testApply_dimPolicyOffAfterDimPolicyOn()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | DisplayOffloadSessionImpl.java | 22 import android.hardware.display.DisplayManagerInternal; 33 public class DisplayOffloadSessionImpl implements DisplayManagerInternal.DisplayOffloadSession { 41 private final DisplayManagerInternal.DisplayOffloader mDisplayOffloader; 46 @Nullable DisplayManagerInternal.DisplayOffloader displayOffloader, in DisplayOffloadSessionImpl()
|
D | BrightnessIdleJob.java | 26 import android.hardware.display.DisplayManagerInternal; 72 DisplayManagerInternal dmi = LocalServices.getService(DisplayManagerInternal.class); in onStartJob()
|
D | DisplayPowerControllerInterface.java | 24 import android.hardware.display.DisplayManagerInternal; 138 boolean requestPowerState(DisplayManagerInternal.DisplayPowerRequest request, in requestPowerState() 149 void setDisplayOffloadSession(DisplayManagerInternal.DisplayOffloadSession session); in setDisplayOffloadSession()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | DisplayFoldController.java | 23 import android.hardware.display.DisplayManagerInternal; 41 private final DisplayManagerInternal mDisplayManagerInternal; 58 DisplayManagerInternal displayManagerInternal, int displayId, Rect foldedArea, in DisplayFoldController() 168 final DisplayManagerInternal displayService = in create() 169 LocalServices.getService(DisplayManagerInternal.class); in create()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | PossibleDisplayInfoMapper.java | 19 import android.hardware.display.DisplayManagerInternal; 41 private final DisplayManagerInternal mDisplayManagerInternal; 51 PossibleDisplayInfoMapper(DisplayManagerInternal displayManagerInternal) { in PossibleDisplayInfoMapper()
|
/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/ |
D | PowerGroupTest.java | 20 import static android.hardware.display.DisplayManagerInternal.DisplayPowerRequest.POLICY_BRIGHT; 21 import static android.hardware.display.DisplayManagerInternal.DisplayPowerRequest.POLICY_DIM; 22 import static android.hardware.display.DisplayManagerInternal.DisplayPowerRequest.POLICY_DOZE; 23 import static android.hardware.display.DisplayManagerInternal.DisplayPowerRequest.POLICY_OFF; 48 import android.hardware.display.DisplayManagerInternal; 87 @Mock private DisplayManagerInternal mDisplayManagerInternal; 273 DisplayManagerInternal.DisplayPowerRequest displayPowerRequest = in testUpdateWhileAwake_UpdatesDisplayPowerRequest() 313 DisplayManagerInternal.DisplayPowerRequest displayPowerRequest = in testUpdateWhileDozing_UpdatesDisplayPowerRequest() 352 DisplayManagerInternal.DisplayPowerRequest displayPowerRequest = in testUpdateWhileDozing_DozeAfterScreenOff() 390 DisplayManagerInternal.DisplayPowerRequest displayPowerRequest = in testUpdateQuiescent() [all …]
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/ |
D | DisplayPowerProximityStateControllerTest.java | 33 import android.hardware.display.DisplayManagerInternal; 287 DisplayManagerInternal.DisplayPowerRequest.class), Display.STATE_ON); in evaluateProximityStateWhenScreenOffBecauseOfPositiveProximity() 312 DisplayManagerInternal.DisplayPowerRequest.class), Display.STATE_OFF); in evaluateProximityStateWhenDisplayIsTurningOff() 338 DisplayManagerInternal.DisplayPowerRequest.class), Display.STATE_ON); in evaluateProximityStateNotWaitingForNegativeProximityAndNotUsingProxSensor() 387 DisplayManagerInternal.DisplayPowerRequest displayPowerRequest = mock( in enableProximitySensor() 388 DisplayManagerInternal.DisplayPowerRequest.class); in enableProximitySensor() 404 DisplayManagerInternal.DisplayPowerRequest displayPowerRequest = mock( in setScreenOffBecauseOfPositiveProximityState() 405 DisplayManagerInternal.DisplayPowerRequest.class); in setScreenOffBecauseOfPositiveProximityState()
|