Home
last modified time | relevance | path

Searched refs:APP_SWITCH_ALLOW (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DBackgroundLaunchProcessControllerTests.java19 import static com.android.server.wm.ActivityTaskManagerService.APP_SWITCH_ALLOW;
149 mAppSwitchState = APP_SWITCH_ALLOW; in testBoundByForeground()
163 mAppSwitchState = APP_SWITCH_ALLOW; in testForegroundTask()
176 mAppSwitchState = APP_SWITCH_ALLOW; in testGracePeriod()
DBackgroundActivityStartControllerExemptionTests.java19 import static com.android.server.wm.ActivityTaskManagerService.APP_SWITCH_ALLOW;
254 when(mService.getBalAppSwitchesState()).thenReturn(APP_SWITCH_ALLOW); in testCaller_appHasVisibleWindow()
286 when(mService.getBalAppSwitchesState()).thenReturn(APP_SWITCH_ALLOW); in testRealCaller_appHasVisibleWindow()
326 when(mService.getBalAppSwitchesState()).thenReturn(APP_SWITCH_ALLOW); in testCaller_appAllowedByBLPC()
360 when(mService.getBalAppSwitchesState()).thenReturn(APP_SWITCH_ALLOW); in testRealCaller_appAllowedByBLPC()
407 when(mService.getBalAppSwitchesState()).thenReturn(APP_SWITCH_ALLOW); in testRealCaller_appAllowedByBLPCforOtherProcess()
/frameworks/base/services/core/java/com/android/server/wm/
DBackgroundLaunchProcessController.java24 import static com.android.server.wm.ActivityTaskManagerService.APP_SWITCH_ALLOW;
134 if (appSwitchState == APP_SWITCH_ALLOW) { in areBackgroundActivityStartsAllowed()
DBackgroundActivityStartController.java40 import static com.android.server.wm.ActivityTaskManagerService.APP_SWITCH_ALLOW;
805 final boolean appSwitchAllowedOrFg = state.mAppSwitchState == APP_SWITCH_ALLOW in checkBackgroundActivityStartAllowedByCaller()
917 final boolean appSwitchAllowedOrFg = state.mAppSwitchState == APP_SWITCH_ALLOW in checkBackgroundActivityStartAllowedBySender()
DActivityTaskManagerService.java536 private volatile int mAppSwitchesState = APP_SWITCH_ALLOW;
548 static final int APP_SWITCH_ALLOW = 2; field in ActivityTaskManagerService
553 APP_SWITCH_ALLOW,
1342 mAppSwitchesState = APP_SWITCH_ALLOW; in startActivityIntentSender()
4095 mAppSwitchesState = APP_SWITCH_ALLOW; in resumeAppSwitches()