/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | DozeMachineTest.java | 22 import static com.android.systemui.doze.DozeMachine.State.DOZE; 130 verify(mPartMock).transitionTo(INITIALIZED, DOZE); in testInitialize_goesToDoze() 131 assertEquals(DOZE, mMachine.getState()); in testInitialize_goesToDoze() 162 verify(mPartMock).transitionTo(INITIALIZED, DOZE); in testInitialize_afterDockPaused_goesToDoze() 163 assertEquals(DOZE, mMachine.getState()); in testInitialize_afterDockPaused_goesToDoze() 173 verify(mPartMock).transitionTo(INITIALIZED, DOZE); in testInitialize_alwaysOnSuppressed_alwaysOnDisabled_goesToDoze() 174 assertEquals(DOZE, mMachine.getState()); in testInitialize_alwaysOnSuppressed_alwaysOnDisabled_goesToDoze() 184 verify(mPartMock).transitionTo(INITIALIZED, DOZE); in testInitialize_alwaysOnSuppressed_alwaysOnEnabled_goesToDoze() 185 assertEquals(DOZE, mMachine.getState()); in testInitialize_alwaysOnSuppressed_alwaysOnEnabled_goesToDoze() 195 verify(mPartMock).transitionTo(INITIALIZED, DOZE); in testInitialize_alwaysOnSuppressed_afterDocked_goesToDoze() [all …]
|
D | DozeTriggersTest.java | 144 when(mMachine.getState()).thenReturn(DozeMachine.State.DOZE); in testOnNotification_stillWorksAfterOneFailedProxCheck() 149 mTriggers.transitionTo(DozeMachine.State.INITIALIZED, DozeMachine.State.DOZE); in testOnNotification_stillWorksAfterOneFailedProxCheck() 175 when(mMachine.getState()).thenReturn(DozeMachine.State.DOZE); in testOnNotification_noPulseIfPulseIsNotPendingAnymore() 180 mTriggers.transitionTo(DozeMachine.State.INITIALIZED, DozeMachine.State.DOZE); in testOnNotification_noPulseIfPulseIsNotPendingAnymore() 198 when(mMachine.getState()).thenReturn(DozeMachine.State.DOZE); in testTransitionTo_disablesAndEnablesTouchSensors() 200 mTriggers.transitionTo(DozeMachine.State.INITIALIZED, DozeMachine.State.DOZE); in testTransitionTo_disablesAndEnablesTouchSensors() 206 mTriggers.transitionTo(DozeMachine.State.DOZE, in testTransitionTo_disablesAndEnablesTouchSensors() 223 mTriggers.transitionTo(DozeMachine.State.INITIALIZED, DozeMachine.State.DOZE); in transitionToDockedAod_disablesTouchSensors() 228 mTriggers.transitionTo(DozeMachine.State.DOZE, DozeMachine.State.DOZE_AOD_DOCKED); in transitionToDockedAod_disablesTouchSensors() 253 mTriggers.transitionTo(DozeMachine.State.DOZE, DozeMachine.State.FINISH); in testDockEventListener_registerAndUnregister() [all …]
|
D | DozeSuppressorTest.java | 22 import static com.android.systemui.doze.DozeMachine.State.DOZE; 142 mDozeSuppressor.transitionTo(INITIALIZED, DOZE); in testSuspendTriggersDoze_enterCarMode() 163 verify(mDozeMachine).requestState(DOZE); in testDozeResume_exitCarMode() 251 verify(mDozeMachine).requestState(DOZE); in testPowerSaveChanged_active() 259 when(mDozeMachine.getState()).thenReturn(DOZE); in testPowerSaveChanged_notActive() 282 verify(mDozeMachine).requestState(DOZE); in testAlwaysOnSuppressedChanged_nowSuppressed() 290 when(mDozeMachine.getState()).thenReturn(DOZE); in testAlwaysOnSuppressedChanged_notSuppressed()
|
D | DozeScreenStateTest.java | 19 import static com.android.systemui.doze.DozeMachine.State.DOZE; 109 mScreen.transitionTo(INITIALIZED, DOZE); in testScreen_offInDoze() 125 mScreen.transitionTo(INITIALIZED, DOZE); in testScreen_onInPulse() 127 mScreen.transitionTo(DOZE, DOZE_REQUEST_PULSE); in testScreen_onInPulse() 136 mScreen.transitionTo(INITIALIZED, DOZE); in testScreen_offInRequestPulseWithoutAoD() 138 mScreen.transitionTo(DOZE, DOZE_REQUEST_PULSE); in testScreen_offInRequestPulseWithoutAoD() 148 mScreen.transitionTo(DOZE, DOZE_REQUEST_PULSE); in testScreen_offInRequestPulseWithAoD() 250 mScreen.transitionTo(DOZE_AOD, DOZE); in test_animatesOff()
|
D | DozeScreenBrightnessTest.java | 19 import static com.android.systemui.doze.DozeMachine.State.DOZE; 177 mScreen.transitionTo(INITIALIZED, DOZE); in doze_doesNotUseLightSensor() 247 mScreen.transitionTo(INITIALIZED, DOZE); in testPulsing_withoutLightSensor_setsAoDDimmingScrimTransparent() 250 mScreen.transitionTo(DOZE, DOZE_REQUEST_PULSE); in testPulsing_withoutLightSensor_setsAoDDimmingScrimTransparent() 258 mScreen.transitionTo(INITIALIZED, DOZE); in testScreenOffAfterPulsing_pausesLightSensor() 259 mScreen.transitionTo(DOZE, DOZE_REQUEST_PULSE); in testScreenOffAfterPulsing_pausesLightSensor() 262 mScreen.transitionTo(DOZE_PULSE_DONE, DOZE); in testScreenOffAfterPulsing_pausesLightSensor() 472 mScreen.transitionTo(INITIALIZED, DOZE); in transitionToDoze_shouldClampBrightness_afterTimeout_clampsToDim() 488 mScreen.transitionTo(INITIALIZED, DOZE); in transitionToDoze_shouldClampBrightness_notAfterTimeout_doesNotClampToDim() 499 mScreen.transitionTo(INITIALIZED, DOZE); in transitionToDoze_noClampBrightness_afterTimeout_noScreenOff_doesNotClampToDim() [all …]
|
D | DozeUiTest.java | 19 import static com.android.systemui.doze.DozeMachine.State.DOZE; 115 mDozeUi.transitionTo(UNINITIALIZED, DOZE); in transitionSetsAnimateWakeup_noAlwaysOn() 123 mDozeUi.transitionTo(UNINITIALIZED, DOZE); in transitionSetsAnimateWakeup_alwaysOn()
|
D | DozeDockHandlerTest.java | 115 verify(mMachine).requestState(eq(State.DOZE)); in onEvent_noneWhileDisabledAod_requestsDozeState() 122 verify(mMachine).requestState(eq(State.DOZE)); in onEvent_hide_requestsDozeState()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeSuppressor.java | 155 ? DozeMachine.State.DOZE_AOD : DozeMachine.State.DOZE); in handleCarModeExited() 170 nextState = DozeMachine.State.DOZE; 171 } else if (mMachine.getState() == DozeMachine.State.DOZE 190 nextState = DozeMachine.State.DOZE;
|
D | DozeMachine.java | 68 DOZE, enumConstant 92 case DOZE: in canPulse() 129 case DOZE: in screenState() 392 return State.DOZE; in transitionPolicy() 397 return State.DOZE; in transitionPolicy() 400 || mState == State.DOZE_AOD || mState == State.DOZE in transitionPolicy() 434 nextState = mDockManager.isHidden() ? State.DOZE : State.DOZE_AOD_DOCKED; in resolveIntermediateState() 438 nextState = State.DOZE; in resolveIntermediateState()
|
D | DozeUi.java | 19 import static com.android.systemui.doze.DozeMachine.State.DOZE; 110 if (oldState == DOZE_AOD_PAUSED || oldState == DOZE) { in transitionTo() 122 case DOZE: in transitionTo()
|
D | DozeDockHandler.java | 107 : State.DOZE; in onEvent() 110 nextState = State.DOZE; in onEvent()
|
D | DozeScreenState.java | 19 import static com.android.systemui.doze.DozeMachine.State.DOZE; 147 final boolean turningOn = (oldState == DOZE_AOD_PAUSED || oldState == DOZE) in transitionTo() 149 final boolean turningOff = (oldState.isAlwaysOn() && newState == DOZE) in transitionTo()
|
D | DozeAuthRemover.java | 39 if (newState == DozeMachine.State.DOZE || newState == DozeMachine.State.DOZE_AOD) { in transitionTo()
|
D | DozeTriggers.java | 428 if (state == DozeMachine.State.DOZE) { in onWakeScreen() 441 mMachine.requestState(DozeMachine.State.DOZE); in onWakeScreen() 463 case DOZE: in transitionTo() 613 return dozeState == DozeMachine.State.DOZE in canPulse()
|
D | DozeWallpaperState.java | 62 case DOZE: in transitionTo()
|
D | DozeScreenBrightness.java | 153 case DOZE: in transitionTo() 166 setScreenOff(newState == DozeMachine.State.DOZE); in transitionTo()
|
D | DozeService.java | 140 mDozeMachine.requestState(DozeMachine.State.DOZE); in onRequestHideDoze()
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | SurfaceFlinger_SetPowerModeInternalTest.cpp | 33 IComposerClient::PowerMode::DOZE; 40 std::vector<DisplayCapability>({DisplayCapability::DOZE})), in setupComposerCallExpectations() 187 struct TransitionOnToDozeVariant : public TransitionVariantCommon<PowerMode::ON, PowerMode::DOZE> { 196 : public TransitionVariantCommon<PowerMode::DOZE_SUSPEND, PowerMode::DOZE> { 205 struct TransitionDozeToOnVariant : public TransitionVariantCommon<PowerMode::DOZE, PowerMode::ON> { 338 struct PowerModeInitialVSyncEnabled<PowerMode::DOZE> : public std::true_type {};
|
D | RefreshRateStatsTest.cpp | 89 mRefreshRateStats->setPowerMode(PowerMode::DOZE); in TEST_F() 166 mRefreshRateStats->setPowerMode(PowerMode::DOZE); in TEST_F()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/shared/model/ |
D | DozeStateModel.kt | 25 DOZE,
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | Hal.h | 128 case aidl::android::hardware::graphics::composer3::DisplayCapability::DOZE: in to_string() 184 case hardware::graphics::composer::hal::PowerMode::DOZE: in to_string()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/data/repository/ |
D | KeyguardRepositoryImplTest.kt | 477 listener.onDozeTransition(DozeMachine.State.INITIALIZED, DozeMachine.State.DOZE) in <lambda>() 478 listener.onDozeTransition(DozeMachine.State.DOZE, DozeMachine.State.DOZE_AOD) in <lambda>() 501 DozeTransitionModel(DozeStateModel.INITIALIZED, DozeStateModel.DOZE), in <lambda>() 502 DozeTransitionModel(DozeStateModel.DOZE, DozeStateModel.DOZE_AOD), in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/ |
D | FromDreamingTransitionInteractor.kt | 151 dozeTransitionModel.to == DozeStateModel.DOZE && in <lambda>()
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | VSyncReactor.cpp | 149 if (mDisplayPowerMode == hal::PowerMode::DOZE || in periodConfirmed()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/data/repository/ |
D | KeyguardRepository.kt | 640 DozeMachine.State.DOZE -> DozeStateModel.DOZE in isKeyguardShowing()
|