Home
last modified time | relevance | path

Searched refs:requestState (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeMachineTest.java119 mMachine.requestState(INITIALIZED); in testInitialize_initializesParts()
128 mMachine.requestState(INITIALIZED); in testInitialize_goesToDoze()
138 mMachine.requestState(INITIALIZED); in testInitialize_goesToAod()
148 mMachine.requestState(INITIALIZED); in testInitialize_afterDocked_goesToDockedAod()
160 mMachine.requestState(INITIALIZED); in testInitialize_afterDockPaused_goesToDoze()
171 mMachine.requestState(INITIALIZED); in testInitialize_alwaysOnSuppressed_alwaysOnDisabled_goesToDoze()
182 mMachine.requestState(INITIALIZED); in testInitialize_alwaysOnSuppressed_alwaysOnEnabled_goesToDoze()
193 mMachine.requestState(INITIALIZED); in testInitialize_alwaysOnSuppressed_afterDocked_goesToDoze()
206 mMachine.requestState(INITIALIZED); in testInitialize_alwaysOnSuppressed_alwaysOnDisabled_afterDockPaused_goesToDoze()
219 mMachine.requestState(INITIALIZED); in testInitialize_alwaysOnSuppressed_alwaysOnEnabled_afterDockPaused_goesToDoze()
[all …]
DDozeSuppressorTest.java133 verify(mDozeMachine, atLeastOnce()).requestState(DOZE_SUSPEND_TRIGGERS); in testSuspendTriggersDoze_carMode()
135 .requestState(AdditionalMatchers.not(eq(DOZE_SUSPEND_TRIGGERS))); in testSuspendTriggersDoze_carMode()
148 verify(mDozeMachine).requestState(DOZE_SUSPEND_TRIGGERS); in testSuspendTriggersDoze_enterCarMode()
163 verify(mDozeMachine).requestState(DOZE); in testDozeResume_exitCarMode()
178 verify(mDozeMachine).requestState(DOZE_AOD); in testDozeAoDResume_exitCarMode()
190 verify(mDozeMachine, times(1)).requestState(DOZE_SUSPEND_TRIGGERS); in testUiModeDoesNotChange_noStateTransition()
192 .requestState(AdditionalMatchers.not(eq(DOZE_SUSPEND_TRIGGERS))); in testUiModeDoesNotChange_noStateTransition()
201 verify(mDozeMachine, never()).requestState(any()); in testUiModeTypeChange_whenDozeMachineIsNotReady_doesNotDoAnything()
208 verify(mDozeMachine, never()).requestState(any()); in testUiModeTypeChange_CarModeEnabledAndDozeMachineNotReady_suspendsTriggersAfter()
212 verify(mDozeMachine, times(1)).requestState(DOZE_SUSPEND_TRIGGERS); in testUiModeTypeChange_CarModeEnabledAndDozeMachineNotReady_suspendsTriggersAfter()
[all …]
DDozeDockHandlerTest.java88 verify(mMachine).requestState(eq(State.DOZE_AOD_DOCKED)); in onEvent_docked_requestsDockedAodState()
95 verify(mMachine, never()).requestState(eq(State.DOZE_AOD)); in onEvent_noneWhileEnabledAod_ignoresIfAlreadyNone()
104 verify(mMachine).requestState(eq(State.DOZE_AOD)); in onEvent_noneWhileEnabledAod_requestsAodState()
115 verify(mMachine).requestState(eq(State.DOZE)); in onEvent_noneWhileDisabledAod_requestsDozeState()
122 verify(mMachine).requestState(eq(State.DOZE)); in onEvent_hide_requestsDozeState()
131 verify(mMachine, never()).requestState(any(State.class)); in onEvent_dockedWhilePulsing_wontRequestStateChange()
140 verify(mMachine, never()).requestState(any(State.class)); in onEvent_noneWhilePulsing_wontRequestStateChange()
149 verify(mMachine, never()).requestState(any(State.class)); in onEvent_hideWhilePulsing_wontRequestStateChange()
DDozeTriggersTest.java162 verify(mMachine, never()).requestState(any()); in testOnNotification_stillWorksAfterOneFailedProxCheck()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeSuppressor.java138 mMachine.requestState(DozeMachine.State.FINISH); in checkShouldImmediatelyEndDoze()
154 mMachine.requestState(mConfig.alwaysOnEnabled(mUserTracker.getUserId()) in handleCarModeExited()
160 mMachine.requestState(DozeMachine.State.DOZE_SUSPEND_TRIGGERS); in handleCarModeStarted()
178 mMachine.requestState(nextState);
193 mMachine.requestState(nextState);
DDozeService.java93 mDozeMachine.requestState(DozeMachine.State.INITIALIZED); in onDreamingStarted()
103 mDozeMachine.requestState(DozeMachine.State.FINISH); in onDreamingStopped()
127 mDozeMachine.requestState(DozeMachine.State.DOZE_AOD); in onRequestShowDoze()
140 mDozeMachine.requestState(DozeMachine.State.DOZE); in onRequestHideDoze()
DDozeMachine.java212 public void requestState(State requestedState) { in requestState() method in DozeMachine
214 requestState(requestedState, DozeLog.PULSE_REASON_NONE); in requestState()
223 requestState(State.DOZE_REQUEST_PULSE, pulseReason); in requestPulse()
241 private void requestState(State requestedState, int pulseReason) { in requestState() method in DozeMachine
DDozeUi.java87 mMachine.requestState( in pulseWhileDozing()
100 mMachine.requestState(DozeMachine.State.DOZE_PULSE_DONE); in pulseWhileDozing()
DDozeTriggers.java405 mMachine.requestState(DozeMachine.State.DOZE_AOD); in onProximityFar()
408 mMachine.requestState(DozeMachine.State.DOZE_AOD_PAUSING); in onProximityFar()
429 mMachine.requestState(DozeMachine.State.DOZE_AOD); in onWakeScreen()
441 mMachine.requestState(DozeMachine.State.DOZE); in onWakeScreen()
557 mMachine.requestState(DozeMachine.State.DOZE_PULSING_BRIGHT); in requestPulse()
DDozePauser.java64 mMachine.requestState(DozeMachine.State.DOZE_AOD_PAUSED); in onTimeout()
DDozeDockHandler.java115 mMachine.requestState(nextState); in onEvent()
/frameworks/base/core/tests/devicestatetests/src/android/hardware/devicestate/
DDeviceStateManagerGlobalTest.java107 mDeviceStateManagerGlobal.requestState(request, null /* executor */, null /* callback */); in registerCallback()
143 mDeviceStateManagerGlobal.requestState(request, null /* executor */, null /* callback */); in submitRequest()
199 mDeviceStateManagerGlobal.requestState(secondRequest, null, null); in submitBaseAndEmulatedStateOverride()
221 mDeviceStateManagerGlobal.requestState(request, in verifyDeviceStateRequestCallbacksCalled()
303 public void requestState(IBinder token, int state, int flags) { in requestState() method in DeviceStateManagerGlobalTest.TestDeviceStateManagerService
/frameworks/base/core/java/android/hardware/devicestate/
DDeviceStateManager.java113 public void requestState(@NonNull DeviceStateRequest request, in requestState() method in DeviceStateManager
116 mGlobal.requestState(request, executor, callback); in requestState()
DIDeviceStateManager.aidl59 void requestState(IBinder token, int state, int flags); in requestState() method
DDeviceStateManagerGlobal.java123 public void requestState(@NonNull DeviceStateRequest request, in requestState() method in DeviceStateManagerGlobal
139 mDeviceStateManager.requestState(token, request.getState(), request.getFlags()); in requestState()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicestate/
DDeviceStateManagerServiceTest.java321 public void requestState() throws RemoteException { in requestState() method in DeviceStateManagerServiceTest
330 mService.getBinderService().requestState(token, OTHER_DEVICE_STATE.getIdentifier(), in requestState()
390 mService.getBinderService().requestState(firstRequestToken, in requestState_pendingStateAtRequest()
403 mService.getBinderService().requestState(secondRequestToken, in requestState_pendingStateAtRequest()
462 mService.getBinderService().requestState(token, DEFAULT_DEVICE_STATE.getIdentifier(), in requestState_sameAsBaseState()
480 mService.getBinderService().requestState(token, OTHER_DEVICE_STATE.getIdentifier(), in requestState_flagCancelWhenBaseChanges()
526 mService.getBinderService().requestState(token, OTHER_DEVICE_STATE.getIdentifier(), in requestState_becomesUnsupported()
565 mService.getBinderService().requestState(token, in requestState_unsupportedState()
577 mService.getBinderService().requestState(token, INVALID_DEVICE_STATE, 0 /* flags */); in requestState_invalidState()
585 mService.getBinderService().requestState(token, DEFAULT_DEVICE_STATE.getIdentifier(), in requestState_beforeRegisteringCallback()
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/area/
DWindowAreaComponentImpl.java144 mDeviceStateManager.requestState( in startRearDisplaySession()
/frameworks/base/services/core/java/com/android/server/devicestate/
DDeviceStateManagerShellCommand.java104 mClient.requestState(request, null /* executor */, null /* callback */); in runState()
DDeviceStateManagerService.java1074 public void requestState(IBinder token, int state, int flags) { in requestState() method in DeviceStateManagerService.BinderService
/frameworks/base/core/api/
Dtest-current.txt1164 …nifest.permission.CONTROL_DEVICE_STATE, conditional=true) public void requestState(@NonNull androi…