Home
last modified time | relevance | path

Searched refs:DOZE (Results 1 – 25 of 39) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeMachineTest.java22 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 …]
DDozeTriggersTest.java144 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 …]
DDozeSuppressorTest.java22 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()
DDozeScreenStateTest.java19 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()
DDozeScreenBrightnessTest.java19 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 …]
DDozeUiTest.java19 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()
DDozeDockHandlerTest.java115 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/
DDozeSuppressor.java155 ? 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;
DDozeMachine.java68 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()
DDozeUi.java19 import static com.android.systemui.doze.DozeMachine.State.DOZE;
110 if (oldState == DOZE_AOD_PAUSED || oldState == DOZE) { in transitionTo()
122 case DOZE: in transitionTo()
DDozeDockHandler.java107 : State.DOZE; in onEvent()
110 nextState = State.DOZE; in onEvent()
DDozeScreenState.java19 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()
DDozeAuthRemover.java39 if (newState == DozeMachine.State.DOZE || newState == DozeMachine.State.DOZE_AOD) { in transitionTo()
DDozeTriggers.java428 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()
DDozeWallpaperState.java62 case DOZE: in transitionTo()
DDozeScreenBrightness.java153 case DOZE: in transitionTo()
166 setScreenOff(newState == DozeMachine.State.DOZE); in transitionTo()
DDozeService.java140 mDozeMachine.requestState(DozeMachine.State.DOZE); in onRequestHideDoze()
/frameworks/native/services/surfaceflinger/tests/unittests/
DSurfaceFlinger_SetPowerModeInternalTest.cpp33 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 {};
DRefreshRateStatsTest.cpp89 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/
DDozeStateModel.kt25 DOZE,
/frameworks/native/services/surfaceflinger/DisplayHardware/
DHal.h128 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/
DKeyguardRepositoryImplTest.kt477 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/
DFromDreamingTransitionInteractor.kt151 dozeTransitionModel.to == DozeStateModel.DOZE && in <lambda>()
/frameworks/native/services/surfaceflinger/Scheduler/
DVSyncReactor.cpp149 if (mDisplayPowerMode == hal::PowerMode::DOZE || in periodConfirmed()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/data/repository/
DKeyguardRepository.kt640 DozeMachine.State.DOZE -> DozeStateModel.DOZE in isKeyguardShowing()

12