Home
last modified time | relevance | path

Searched refs:STATE_DOZE (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DAmbientDisplayPowerCalculatorTest.java59 stats.noteScreenStateLocked(0, Display.STATE_DOZE, 30 * MINUTE_IN_MS, 30 * MINUTE_IN_MS, in testMeasuredEnergyBasedModel()
63 new int[]{Display.STATE_DOZE}, 30 * MINUTE_IN_MS); in testMeasuredEnergyBasedModel()
101 screenStates[0] = Display.STATE_DOZE; in testMeasuredEnergyBasedModel_multiDisplay()
108 screenStates[1] = Display.STATE_DOZE; in testMeasuredEnergyBasedModel_multiDisplay()
109 stats.noteScreenStateLocked(1, Display.STATE_DOZE, 90 * MINUTE_IN_MS, 90 * MINUTE_IN_MS, in testMeasuredEnergyBasedModel_multiDisplay()
151 stats.noteScreenStateLocked(0, Display.STATE_DOZE, 30 * MINUTE_IN_MS, 30 * MINUTE_IN_MS, in testPowerProfileBasedModel()
178 stats.noteScreenStateLocked(0, Display.STATE_DOZE, 30 * MINUTE_IN_MS, 30 * MINUTE_IN_MS, in testPowerProfileBasedModel_multiDisplay()
180 stats.noteScreenStateLocked(1, Display.STATE_DOZE, 90 * MINUTE_IN_MS, 90 * MINUTE_IN_MS, in testPowerProfileBasedModel_multiDisplay()
DBatteryStatsNoteTest.java462 bi.updateTimeBasesLocked(false, Display.STATE_DOZE, 10, 10); in testUpdateTimeBasesLocked()
470 bi.updateTimeBasesLocked(true, Display.STATE_DOZE, 40, 40); in testUpdateTimeBasesLocked()
488 bi.noteScreenStateLocked(0, Display.STATE_DOZE); in testNoteScreenStateLocked()
490 assertEquals(Display.STATE_DOZE, bi.getScreenState()); in testNoteScreenStateLocked()
537 bi.noteScreenStateLocked(0, Display.STATE_DOZE); in testNoteScreenStateLocked_multiDisplay()
539 assertEquals(Display.STATE_DOZE, bi.getScreenState()); in testNoteScreenStateLocked_multiDisplay()
570 bi.noteScreenStateLocked(1, Display.STATE_DOZE); in testNoteScreenStateLocked_multiDisplay()
577 bi.noteScreenStateLocked(0, Display.STATE_DOZE); in testNoteScreenStateLocked_multiDisplay()
579 assertEquals(Display.STATE_DOZE, bi.getScreenState()); in testNoteScreenStateLocked_multiDisplay()
589 assertEquals(Display.STATE_DOZE, bi.getScreenState()); in testNoteScreenStateLocked_multiDisplay()
[all …]
DScreenPowerCalculatorTest.java88 new int[]{Display.STATE_DOZE}, 120 * MINUTE_IN_MS); in testMeasuredEnergyBasedModel()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeSuspendScreenStatePreventingAdapterTest.java73 mWrapper.setDozeScreenState(Display.STATE_DOZE); in forwards_setDozeScreenState_doze()
74 verify(mInner).setDozeScreenState(Display.STATE_DOZE); in forwards_setDozeScreenState_doze()
80 verify(mInner).setDozeScreenState(Display.STATE_DOZE); in forwards_setDozeScreenState_doze_suspend()
DDozeScreenStatePreventingAdapterTest.java76 mWrapper.setDozeScreenState(Display.STATE_DOZE); in forwards_setDozeScreenState_doze()
DDozeTriggersTest.java280 mTriggers.onScreenState(Display.STATE_DOZE); in testTransitionTo_disablesAndEnablesTouchSensors()
299 mTriggers.onScreenState(Display.STATE_DOZE); in transitionToDockedAod_disablesTouchSensors()
/frameworks/base/core/tests/coretests/src/android/view/
DDisplayTest.java37 Display.STATE_DOZE,
57 Display.STATE_DOZE, in isDozeState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeSuspendScreenStatePreventingAdapter.java40 state = Display.STATE_DOZE; in setDozeScreenState()
DDozeScreenStatePreventingAdapter.java39 if (state == Display.STATE_DOZE) { in setDozeScreenState()
DDozeScreenState.java228 if (screenState == Display.STATE_DOZE) { in applyScreenState()
/frameworks/base/services/core/java/com/android/server/display/state/
DDisplayStateController.java78 state = Display.STATE_DOZE; in updateDisplayState()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DDisplayPowerControllerTest.java881 when(mHolder.displayPowerState.getScreenState()).thenReturn(Display.STATE_DOZE); in testSetScreenOffBrightnessSensorEnabled_DisplayIsInDoze()
1009 when(mHolder.displayPowerState.getScreenState()).thenReturn(Display.STATE_DOZE); in testAutoBrightnessEnabled_DisplayIsInDoze()
1018 Display.STATE_DOZE, /* shouldResetShortTermModel= */ false in testAutoBrightnessEnabled_DisplayIsInDoze()
1039 when(mHolder.displayPowerState.getScreenState()).thenReturn(Display.STATE_DOZE); in testAutoBrightnessEnabled_DisplayIsInDoze_OffloadAllows()
1048 Display.STATE_DOZE, /* shouldResetShortTermModel= */ false in testAutoBrightnessEnabled_DisplayIsInDoze_OffloadAllows()
1111 when(mHolder.displayPowerState.getScreenState()).thenReturn(Display.STATE_DOZE); in testAutoBrightnessDisabled_DisplayIsInDoze_ConfigDoesNotAllow()
1120 Display.STATE_DOZE, /* shouldResetShortTermModel= */ false in testAutoBrightnessDisabled_DisplayIsInDoze_ConfigDoesNotAllow()
1141 when(mHolder.displayPowerState.getScreenState()).thenReturn(Display.STATE_DOZE); in testAutoBrightnessDisabled_DisplayIsInDoze_OffloadDoesNotAllow()
1150 Display.STATE_DOZE, /* shouldResetShortTermModel= */ false in testAutoBrightnessDisabled_DisplayIsInDoze_OffloadDoesNotAllow()
1573 int initState = Display.STATE_DOZE; in testDozeScreenStateOverride_toSupportedOffloadStateFromDoze_DisplayStateChanges()
[all …]
DAutomaticBrightnessControllerTest.java1102 /* userChanged= */ false, DisplayPowerRequest.POLICY_DOZE, Display.STATE_DOZE,
1138 /* userChanged= */ false, DisplayPowerRequest.POLICY_DOZE, Display.STATE_DOZE,
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/strategy/
DAutomaticBrightnessStrategy2Test.java149 int targetDisplayState = Display.STATE_DOZE; in testAutoBrightnessState_DisplayIsInDoze_ConfigDoesNotAllow()
197 int targetDisplayState = Display.STATE_DOZE; in testAutoBrightnessState_DisplayIsInDoze_ConfigDoesAllow()
DAutomaticBrightnessStrategyTest.java159 int targetDisplayState = Display.STATE_DOZE; in testAutoBrightnessState_DisplayIsInDoze_ConfigDoesNotAllow()
207 int targetDisplayState = Display.STATE_DOZE; in testAutoBrightnessState_DisplayIsInDoze_ConfigDoesAllow()
292 mAutomaticBrightnessStrategy.setAutoBrightnessState(Display.STATE_DOZE, in testAutoBrightnessState_modeSwitch()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/
DDisplayBrightnessStrategySelectorTest.java198 new StrategySelectionRequest(displayPowerRequest, Display.STATE_DOZE, in selectStrategySelectsDozeStrategyWhenValid()
212 new StrategySelectionRequest(displayPowerRequest, Display.STATE_DOZE, in selectStrategyDoesNotSelectDozeStrategyWhenInvalidBrightness()
235 new StrategySelectionRequest(displayPowerRequest, Display.STATE_DOZE, in selectStrategyDoesNotSelectDozeStrategyWhenOffloadSessionAutoBrightnessIsEnabled()
DDisplayBrightnessControllerTest.java121 int targetDisplayState = Display.STATE_DOZE; in testUpdateBrightness()
/frameworks/base/services/core/java/com/android/server/display/brightness/strategy/
DAutoBrightnessFallbackStrategy.java116 || (targetDisplayState == Display.STATE_DOZE in strategySelectionPostProcessor()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/state/
DDisplayStateControllerTest.java81 Display.STATE_DOZE, DISPLAY_ENABLED, !DISPLAY_IN_TRANSITION); in updateProximityStateEvaluatesDozePolicyAsExpected()
/frameworks/base/services/core/java/com/android/server/policy/
DBurnInProtectionHelper.java255 if (mDisplay.getState() == Display.STATE_DOZE in onDisplayChanged()
/frameworks/base/core/java/android/view/
DDisplay.java472 public static final int STATE_DOZE = ViewProtoEnums.DISPLAY_STATE_DOZE; // 3 field in Display
2079 case STATE_DOZE: in stateToString()
2133 return state == STATE_DOZE || state == STATE_DOZE_SUSPEND; in isDozeState()
/frameworks/base/services/core/java/com/android/server/power/
DPowerGroup.java452 mDisplayPowerRequest.dozeScreenState = Display.STATE_DOZE; in updateLocked()
/frameworks/base/services/core/java/com/android/server/display/
DLocalDisplayAdapter.java209 case Display.STATE_DOZE: in getPowerModeForState()
821 setDisplayState(Display.STATE_DOZE); in requestDisplayStateLocked()
822 currentState = Display.STATE_DOZE; in requestDisplayStateLocked()
DDisplayPowerController.java1382 || (state == Display.STATE_DOZE && !allowAutoBrightnessWhileDozing)) in updatePowerStateInternal()
2325 } else if (target == Display.STATE_DOZE) { in animateScreenStateChange()
2336 if (!setScreenState(Display.STATE_DOZE, reason)) { in animateScreenStateChange()
2355 if (!setScreenState(Display.STATE_DOZE, reason)) { in animateScreenStateChange()
/frameworks/base/core/tests/coretests/src/com/android/internal/power/
DEnergyConsumerStatsTest.java526 assertEquals(exp, EnergyConsumerStats.getDisplayPowerBucket(Display.STATE_DOZE)); in testStandardBucketMapping()

12