Home
last modified time | relevance | path

Searched refs:stateAndReason (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/state/
DDisplayStateControllerTest.java66 Pair<Integer, Integer> stateAndReason = in updateProximityStateEvaluatesStateOffPolicyAsExpected() local
69 assertTrue(Display.STATE_OFF == stateAndReason.first); in updateProximityStateEvaluatesStateOffPolicyAsExpected()
70 assertTrue(Display.STATE_REASON_DEFAULT_POLICY == stateAndReason.second); in updateProximityStateEvaluatesStateOffPolicyAsExpected()
108 Pair<Integer, Integer> stateAndReason = in updateProximityStateWorksAsExpectedWhenDisplayDisabled() local
111 assertTrue(Display.STATE_OFF == stateAndReason.first); in updateProximityStateWorksAsExpectedWhenDisplayDisabled()
112 assertTrue(Display.STATE_REASON_DEFAULT_POLICY == stateAndReason.second); in updateProximityStateWorksAsExpectedWhenDisplayDisabled()
126 Pair<Integer, Integer> stateAndReason = in updateProximityStateWorksAsExpectedWhenTransitionPhase() local
129 assertTrue(Display.STATE_OFF == stateAndReason.first); in updateProximityStateWorksAsExpectedWhenTransitionPhase()
130 assertTrue(Display.STATE_REASON_DEFAULT_POLICY == stateAndReason.second); in updateProximityStateWorksAsExpectedWhenTransitionPhase()
144 Pair<Integer, Integer> stateAndReason = in updateProximityStateWorksAsExpectedWhenScreenOffBecauseOfProximity() local
[all …]
/frameworks/base/services/core/java/com/android/server/display/
DDisplayPowerController.java1315 final Pair<Integer, Integer> stateAndReason = in updatePowerStateInternal() local
1318 int state = stateAndReason.first; in updatePowerStateInternal()
1353 state, /* reason= */ stateAndReason.second, in updatePowerStateInternal()