/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | DozeMachineTest.java | 19 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 …]
|
D | DozeDockHandlerTest.java | 86 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()
|
D | DozeScreenStateTest.java | 19 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()
|
D | DozeTriggersTest.java | 91 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()
|
D | DozeScreenBrightnessTest.java | 19 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()
|
D | DozeUiTest.java | 19 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()
|
D | DozeWallpaperStateTest.java | 124 mDozeWallpaperState.transitionTo(DozeMachine.State.DOZE, in testTransitionTo_requestPulseIsAmbientMode()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeDockHandler.java | 65 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()
|
D | DozeMachine.java | 58 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()
|
D | DozeUi.java | 19 import static com.android.systemui.doze.DozeMachine.State.DOZE; 121 if (oldState == DOZE_AOD_PAUSED || oldState == DOZE) { in transitionTo() 133 case DOZE: in transitionTo()
|
D | DozeTriggers.java | 274 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);
|
D | DozeAuthRemover.java | 36 if (newState == DozeMachine.State.DOZE || newState == DozeMachine.State.DOZE_AOD) { in transitionTo()
|
D | DozeScreenBrightness.java | 113 case DOZE: in transitionTo() 122 setScreenOff(newState == DozeMachine.State.DOZE); in transitionTo()
|
D | DozeWallpaperState.java | 67 case DOZE: in transitionTo()
|
D | DozeScreenState.java | 86 || oldState == DozeMachine.State.DOZE) && newState == DozeMachine.State.DOZE_AOD; in transitionTo()
|
D | DozeService.java | 134 mDozeMachine.requestState(DozeMachine.State.DOZE); in onRequestHideDoze()
|
/frameworks/native/services/vr/hardware_composer/impl/ |
D | vr_hwc.cpp | 499 (mode == IComposerClient::PowerMode::DOZE || in setPowerMode()
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | DisplayTransactionTest.cpp | 2775 IComposerClient::PowerMode::DOZE; 2782 {Hwc2::DisplayCapability::DOZE})), in setupComposerCallExpectations()
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsProtoDumpUtil.java | 1911 final long dozeToken = p.start(SecureSettingsProto.DOZE); in dumpProtoSecureSettingsLocked()
|