/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | DozeMachineTest.java | 119 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 …]
|
D | DozeSuppressorTest.java | 133 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 …]
|
D | DozeDockHandlerTest.java | 88 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()
|
D | DozeTriggersTest.java | 162 verify(mMachine, never()).requestState(any()); in testOnNotification_stillWorksAfterOneFailedProxCheck()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeSuppressor.java | 138 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);
|
D | DozeService.java | 93 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()
|
D | DozeMachine.java | 212 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
|
D | DozeUi.java | 87 mMachine.requestState( in pulseWhileDozing() 100 mMachine.requestState(DozeMachine.State.DOZE_PULSE_DONE); in pulseWhileDozing()
|
D | DozeTriggers.java | 405 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()
|
D | DozePauser.java | 64 mMachine.requestState(DozeMachine.State.DOZE_AOD_PAUSED); in onTimeout()
|
D | DozeDockHandler.java | 115 mMachine.requestState(nextState); in onEvent()
|
/frameworks/base/core/tests/devicestatetests/src/android/hardware/devicestate/ |
D | DeviceStateManagerGlobalTest.java | 107 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/ |
D | DeviceStateManager.java | 113 public void requestState(@NonNull DeviceStateRequest request, in requestState() method in DeviceStateManager 116 mGlobal.requestState(request, executor, callback); in requestState()
|
D | IDeviceStateManager.aidl | 59 void requestState(IBinder token, int state, int flags); in requestState() method
|
D | DeviceStateManagerGlobal.java | 123 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/ |
D | DeviceStateManagerServiceTest.java | 321 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/ |
D | WindowAreaComponentImpl.java | 144 mDeviceStateManager.requestState( in startRearDisplaySession()
|
/frameworks/base/services/core/java/com/android/server/devicestate/ |
D | DeviceStateManagerShellCommand.java | 104 mClient.requestState(request, null /* executor */, null /* callback */); in runState()
|
D | DeviceStateManagerService.java | 1074 public void requestState(IBinder token, int state, int flags) { in requestState() method in DeviceStateManagerService.BinderService
|
/frameworks/base/core/api/ |
D | test-current.txt | 1164 …nifest.permission.CONTROL_DEVICE_STATE, conditional=true) public void requestState(@NonNull androi…
|