/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | AmbientDisplayPowerCalculatorTest.java | 59 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()
|
D | BatteryStatsNoteTest.java | 462 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 …]
|
D | ScreenPowerCalculatorTest.java | 88 new int[]{Display.STATE_DOZE}, 120 * MINUTE_IN_MS); in testMeasuredEnergyBasedModel()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | DozeSuspendScreenStatePreventingAdapterTest.java | 73 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()
|
D | DozeScreenStatePreventingAdapterTest.java | 76 mWrapper.setDozeScreenState(Display.STATE_DOZE); in forwards_setDozeScreenState_doze()
|
D | DozeTriggersTest.java | 280 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/ |
D | DisplayTest.java | 37 Display.STATE_DOZE, 57 Display.STATE_DOZE, in isDozeState()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeSuspendScreenStatePreventingAdapter.java | 40 state = Display.STATE_DOZE; in setDozeScreenState()
|
D | DozeScreenStatePreventingAdapter.java | 39 if (state == Display.STATE_DOZE) { in setDozeScreenState()
|
D | DozeScreenState.java | 228 if (screenState == Display.STATE_DOZE) { in applyScreenState()
|
/frameworks/base/services/core/java/com/android/server/display/state/ |
D | DisplayStateController.java | 78 state = Display.STATE_DOZE; in updateDisplayState()
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/ |
D | DisplayPowerControllerTest.java | 881 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 …]
|
D | AutomaticBrightnessControllerTest.java | 1102 /* 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/ |
D | AutomaticBrightnessStrategy2Test.java | 149 int targetDisplayState = Display.STATE_DOZE; in testAutoBrightnessState_DisplayIsInDoze_ConfigDoesNotAllow() 197 int targetDisplayState = Display.STATE_DOZE; in testAutoBrightnessState_DisplayIsInDoze_ConfigDoesAllow()
|
D | AutomaticBrightnessStrategyTest.java | 159 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/ |
D | DisplayBrightnessStrategySelectorTest.java | 198 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()
|
D | DisplayBrightnessControllerTest.java | 121 int targetDisplayState = Display.STATE_DOZE; in testUpdateBrightness()
|
/frameworks/base/services/core/java/com/android/server/display/brightness/strategy/ |
D | AutoBrightnessFallbackStrategy.java | 116 || (targetDisplayState == Display.STATE_DOZE in strategySelectionPostProcessor()
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/state/ |
D | DisplayStateControllerTest.java | 81 Display.STATE_DOZE, DISPLAY_ENABLED, !DISPLAY_IN_TRANSITION); in updateProximityStateEvaluatesDozePolicyAsExpected()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | BurnInProtectionHelper.java | 255 if (mDisplay.getState() == Display.STATE_DOZE in onDisplayChanged()
|
/frameworks/base/core/java/android/view/ |
D | Display.java | 472 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/ |
D | PowerGroup.java | 452 mDisplayPowerRequest.dozeScreenState = Display.STATE_DOZE; in updateLocked()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | LocalDisplayAdapter.java | 209 case Display.STATE_DOZE: in getPowerModeForState() 821 setDisplayState(Display.STATE_DOZE); in requestDisplayStateLocked() 822 currentState = Display.STATE_DOZE; in requestDisplayStateLocked()
|
D | DisplayPowerController.java | 1382 || (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/ |
D | EnergyConsumerStatsTest.java | 526 assertEquals(exp, EnergyConsumerStats.getDisplayPowerBucket(Display.STATE_DOZE)); in testStandardBucketMapping()
|