Searched refs:mMachine (Results 1 – 8 of 8) sorted by relevance
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | DozeMachineTest.java | 65 DozeMachine mMachine; field in DozeMachineTest 89 mMachine = new DozeMachine(mServiceFake, mConfigMock, mWakeLockFake, in setUp() 92 mMachine.setParts(new DozeMachine.Part[]{mPartMock}); in setUp() 97 mMachine.requestState(INITIALIZED); in testInitialize_initializesParts() 106 mMachine.requestState(INITIALIZED); in testInitialize_goesToDoze() 109 assertEquals(DOZE, mMachine.getState()); in testInitialize_goesToDoze() 116 mMachine.requestState(INITIALIZED); in testInitialize_goesToAod() 119 assertEquals(DOZE_AOD, mMachine.getState()); in testInitialize_goesToAod() 126 mMachine.requestState(INITIALIZED); in testInitialize_afterDocked_goesToDockedAod() 129 assertEquals(DOZE_AOD_DOCKED, mMachine.getState()); in testInitialize_afterDocked_goesToDockedAod() [all …]
|
D | DozeDockHandlerTest.java | 50 @Mock private DozeMachine mMachine; field in DozeDockHandlerTest 60 mDockHandler = new DozeDockHandler(mConfig, mMachine, mDockManagerFake); in setUp() 62 when(mMachine.getState()).thenReturn(State.DOZE_AOD); in setUp() 83 verify(mMachine).requestState(eq(State.DOZE_AOD_DOCKED)); in onEvent_docked_requestsDockedAodState() 90 verify(mMachine, never()).requestState(eq(State.DOZE_AOD)); in onEvent_noneWhileEnabledAod_ignoresIfAlreadyNone() 96 clearInvocations(mMachine); in onEvent_noneWhileEnabledAod_requestsAodState() 99 verify(mMachine).requestState(eq(State.DOZE_AOD)); in onEvent_noneWhileEnabledAod_requestsAodState() 105 clearInvocations(mMachine); in onEvent_noneWhileDisabledAod_requestsDozeState() 110 verify(mMachine).requestState(eq(State.DOZE)); in onEvent_noneWhileDisabledAod_requestsDozeState() 117 verify(mMachine).requestState(eq(State.DOZE)); in onEvent_hide_requestsDozeState() [all …]
|
D | DozeTriggersTest.java | 64 private DozeMachine mMachine; field in DozeTriggersTest 92 mTriggers = new DozeTriggers(mContext, mMachine, mHost, mAlarmManager, config, parameters, in setUp() 100 when(mMachine.getState()).thenReturn(DozeMachine.State.DOZE); in testOnNotification_stillWorksAfterOneFailedProxCheck() 106 clearInvocations(mMachine); in testOnNotification_stillWorksAfterOneFailedProxCheck() 112 verify(mMachine, never()).requestState(any()); in testOnNotification_stillWorksAfterOneFailedProxCheck() 113 verify(mMachine, never()).requestPulse(anyInt()); in testOnNotification_stillWorksAfterOneFailedProxCheck() 119 verify(mMachine).requestPulse(anyInt()); in testOnNotification_stillWorksAfterOneFailedProxCheck() 124 when(mMachine.getState()).thenReturn(DozeMachine.State.DOZE); in testTransitionTo_disablesAndEnablesTouchSensors()
|
D | DozeUiTest.java | 61 private DozeMachine mMachine; field in DozeUiTest 84 mDozeUi = new DozeUi(mContext, mAlarmManager, mMachine, mWakeLock, mHost, mHandler, in setUp() 139 mDozeUi = new DozeUi(mContext, mAlarmManager, mMachine, mWakeLock, mHost, mHandler, in neverAnimateScreenOff_whenNotSupported()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeTriggers.java | 75 private final DozeMachine mMachine; field in DozeTriggers 159 mMachine = machine; in DozeTriggers() 246 onWakeScreen(wakeEvent, mMachine.isExecutingTransition() ? null : mMachine.getState()); in onSensor() 296 mMachine.wakeUp(); 303 if (mMachine.isExecutingTransition()) { 309 final DozeMachine.State state = mMachine.getState(); 327 mMachine.requestState(DozeMachine.State.DOZE_AOD); 332 mMachine.requestState(DozeMachine.State.DOZE_AOD_PAUSING); 353 mMachine.requestState(DozeMachine.State.DOZE_AOD); 364 mMachine.requestState(DozeMachine.State.DOZE); [all …]
|
D | DozePauser.java | 30 private final DozeMachine mMachine; field in DozePauser 35 mMachine = machine; in DozePauser() 54 mMachine.requestState(DozeMachine.State.DOZE_AOD_PAUSED); in onTimeout()
|
D | DozeDockHandler.java | 37 private final DozeMachine mMachine; field in DozeDockHandler 45 mMachine = machine; in DozeDockHandler() 104 mMachine.requestState(nextState); in onEvent() 108 DozeMachine.State state = mMachine.getState(); in isPulsing()
|
D | DozeUi.java | 48 private final DozeMachine mMachine; field in DozeUi 72 mMachine = machine; in DozeUi() 102 mMachine.requestState( in pulseWhileDozing() 115 mMachine.requestState(DozeMachine.State.DOZE_PULSE_DONE); in pulseWhileDozing() 143 pulseWhileDozing(mMachine.getPulseReason()); in transitionTo()
|