Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeMachineTest.java19 import static com.android.systemui.doze.DozeMachine.State.DOZE;
98 verify(mPartMock).transitionTo(INITIALIZED, DOZE); in testInitialize_goesToDoze()
99 assertEquals(DOZE, mMachine.getState()); in testInitialize_goesToDoze()
121 verify(mPartMock).transitionTo(DOZE_PULSE_DONE, DOZE); in testPulseDone_goesToDoze()
122 assertEquals(DOZE, mMachine.getState()); in testPulseDone_goesToDoze()
144 mMachine.requestState(DOZE); in testFinished_staysFinished()
184 mMachine.requestState(DOZE); in testWakeLock_notHeldInDozeStates()
195 mMachine.requestState(DOZE); in testWakeLock_releasedAfterPulse()
207 mMachine.requestState(DOZE); in testPulseDuringPulse_doesntCrash()
218 mMachine.requestState(DOZE); in testSuppressingPulse_doesntCrash()
[all …]
DDozeDockHandlerTest.java86 mDockHandler.transitionTo(DozeMachine.State.DOZE, DozeMachine.State.FINISH); in testDockEventListener_registerAndUnregister()
94 when(mMachine.getState()).thenReturn(DozeMachine.State.DOZE); in testOnEvent_dockedWhenDoze_requestPulse()
136 when(mMachine.getState()).thenReturn(DozeMachine.State.DOZE); in testOnEvent_undockedWhenDoze_neverRequestPulseOut()
147 when(mMachine.getState()).thenReturn(DozeMachine.State.DOZE); in testOnEvent_undockedWhenDozeAndEnabledAoD_requestDozeAoD()
159 when(mMachine.getState()).thenReturn(DozeMachine.State.DOZE); in testTransitionToDoze_whenDocked_requestPulse()
160 mDockHandler.transitionTo(State.INITIALIZED, DozeMachine.State.DOZE); in testTransitionToDoze_whenDocked_requestPulse()
185 when(mMachine.getState()).thenReturn(DozeMachine.State.DOZE); in testTransitionToDoze_whenDockedHide_neverRequestPulse()
187 mDockHandler.transitionTo(DozeMachine.State.INITIALIZED, DozeMachine.State.DOZE); in testTransitionToDoze_whenDockedHide_neverRequestPulse()
201 verify(mMachine).requestState(eq(State.DOZE)); in testTransitionToDozeAoD_whenDockedHide_requestDoze()
DDozeScreenStateTest.java19 import static com.android.systemui.doze.DozeMachine.State.DOZE;
77 mScreen.transitionTo(INITIALIZED, DOZE); in testScreen_offInDoze()
93 mScreen.transitionTo(INITIALIZED, DOZE); in testScreen_onInPulse()
95 mScreen.transitionTo(DOZE, DOZE_REQUEST_PULSE); in testScreen_onInPulse()
104 mScreen.transitionTo(INITIALIZED, DOZE); in testScreen_offInRequestPulseWithoutAoD()
106 mScreen.transitionTo(DOZE, DOZE_REQUEST_PULSE); in testScreen_offInRequestPulseWithoutAoD()
116 mScreen.transitionTo(DOZE, DOZE_REQUEST_PULSE); in testScreen_offInRequestPulseWithAoD()
DDozeTriggersTest.java91 when(mMachine.getState()).thenReturn(DozeMachine.State.DOZE); in testOnNotification_stillWorksAfterOneFailedProxCheck()
94 mTriggers.transitionTo(DozeMachine.State.INITIALIZED, DozeMachine.State.DOZE); in testOnNotification_stillWorksAfterOneFailedProxCheck()
111 when(mMachine.getState()).thenReturn(DozeMachine.State.DOZE); in testTransitionTo_disablesAndEnablesTouchSensors()
113 mTriggers.transitionTo(DozeMachine.State.INITIALIZED, DozeMachine.State.DOZE); in testTransitionTo_disablesAndEnablesTouchSensors()
117 mTriggers.transitionTo(DozeMachine.State.DOZE, in testTransitionTo_disablesAndEnablesTouchSensors()
133 mTriggers.transitionTo(DozeMachine.State.DOZE, DozeMachine.State.FINISH); in testDockEventListener_registerAndUnregister()
DDozeScreenBrightnessTest.java19 import static com.android.systemui.doze.DozeMachine.State.DOZE;
151 mScreen.transitionTo(INITIALIZED, DOZE); in testPulsing_usesLightSensor()
152 mScreen.transitionTo(DOZE, DOZE_REQUEST_PULSE); in testPulsing_usesLightSensor()
166 mScreen.transitionTo(INITIALIZED, DOZE); in testPulsing_withoutLightSensor_setsAoDDimmingScrimTransparent()
168 mScreen.transitionTo(DOZE, DOZE_REQUEST_PULSE); in testPulsing_withoutLightSensor_setsAoDDimmingScrimTransparent()
176 mScreen.transitionTo(INITIALIZED, DOZE); in testDozingAfterPulsing_pausesLightSensor()
177 mScreen.transitionTo(DOZE, DOZE_REQUEST_PULSE); in testDozingAfterPulsing_pausesLightSensor()
180 mScreen.transitionTo(DOZE_PULSE_DONE, DOZE); in testDozingAfterPulsing_pausesLightSensor()
DDozeUiTest.java19 import static com.android.systemui.doze.DozeMachine.State.DOZE;
150 mDozeUi.transitionTo(UNINITIALIZED, DOZE); in transitionSetsAnimateWakeup_alwaysOn()
169 mDozeUi.transitionTo(UNINITIALIZED, DOZE); in transitionSetsAnimateWakeup_noAlwaysOn()
DDozeWallpaperStateTest.java124 mDozeWallpaperState.transitionTo(DozeMachine.State.DOZE, in testTransitionTo_requestPulseIsAmbientMode()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeDockHandler.java65 mMachine.requestState(State.DOZE); in transitionTo()
69 case DOZE: in transitionTo()
123 if (dozeState == State.DOZE in onEvent()
133 mMachine.requestState(State.DOZE); in onEvent()
DDozeMachine.java58 DOZE, enumConstant
78 case DOZE: in canPulse()
107 case DOZE: in screenState()
318 || mState == State.DOZE_AOD || mState == State.DOZE) in transitionPolicy()
324 return State.DOZE; in transitionPolicy()
356 nextState = State.DOZE; in resolveIntermediateState()
DDozeUi.java19 import static com.android.systemui.doze.DozeMachine.State.DOZE;
121 if (oldState == DOZE_AOD_PAUSED || oldState == DOZE) { in transitionTo()
133 case DOZE: in transitionTo()
DDozeTriggers.java274 if (state == DozeMachine.State.DOZE) {
286 mMachine.requestState(DozeMachine.State.DOZE);
307 case DOZE: in transitionTo()
309 mDozeSensors.setProxListening(newState != DozeMachine.State.DOZE); in transitionTo()
395 return mMachine.getState() == DozeMachine.State.DOZE in canPulse()
580 mMachine.requestState(DozeMachine.State.DOZE);
DDozeAuthRemover.java36 if (newState == DozeMachine.State.DOZE || newState == DozeMachine.State.DOZE_AOD) { in transitionTo()
DDozeScreenBrightness.java113 case DOZE: in transitionTo()
122 setScreenOff(newState == DozeMachine.State.DOZE); in transitionTo()
DDozeWallpaperState.java67 case DOZE: in transitionTo()
DDozeScreenState.java86 || oldState == DozeMachine.State.DOZE) && newState == DozeMachine.State.DOZE_AOD; in transitionTo()
DDozeService.java134 mDozeMachine.requestState(DozeMachine.State.DOZE); in onRequestHideDoze()
/frameworks/native/services/vr/hardware_composer/impl/
Dvr_hwc.cpp499 (mode == IComposerClient::PowerMode::DOZE || in setPowerMode()
/frameworks/native/services/surfaceflinger/tests/unittests/
DDisplayTransactionTest.cpp2775 IComposerClient::PowerMode::DOZE;
2782 {Hwc2::DisplayCapability::DOZE})), in setupComposerCallExpectations()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsProtoDumpUtil.java1911 final long dozeToken = p.start(SecureSettingsProto.DOZE); in dumpProtoSecureSettingsLocked()