Home
last modified time | relevance | path

Searched refs:mStackSupervisor (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DActivityStackSupervisorTests.java81 mSupervisor = mService.mStackSupervisor; in setUp()
82 mFullscreenStack = mService.mStackSupervisor.getDefaultDisplay().createStack( in setUp()
271 final ActivityDisplay defaultDisplay = mService.mStackSupervisor.getDefaultDisplay(); in testRemovingStackOnAppCrash()
273 final ActivityStack stack = mService.mStackSupervisor.getDefaultDisplay().createStack( in testRemovingStackOnAppCrash()
282 mService.mStackSupervisor.finishTopCrashedActivitiesLocked(firstActivity.app, "test"); in testRemovingStackOnAppCrash()
290 final ActivityStack stack = mService.mStackSupervisor.getDefaultDisplay().createStack( in testFocusability()
296 mService.mStackSupervisor.setDockedStackMinimized(false); in testFocusability()
301 mService.mStackSupervisor.setDockedStackMinimized(true); in testFocusability()
305 final ActivityStack pinnedStack = mService.mStackSupervisor.getDefaultDisplay().createStack( in testFocusability()
333 final ActivityStack emptyStack = mService.mStackSupervisor.getDefaultDisplay() in testTopRunningActivity()
[all …]
DActivityStarterTests.java112 mStarter = new ActivityStarter(mController, mService, mService.mStackSupervisor, in setUp()
119 final TaskRecord task = new TaskBuilder(mService.mStackSupervisor) in testUpdateLaunchBounds()
120 .setStack(mService.mStackSupervisor.getDefaultDisplay().createStack( in testUpdateLaunchBounds()
130 final TaskRecord task2 = new TaskBuilder(mService.mStackSupervisor) in testUpdateLaunchBounds()
131 .setStack(mService.mStackSupervisor.getDefaultDisplay().createStack( in testUpdateLaunchBounds()
197 service.mStackSupervisor, mock(ActivityStartInterceptor.class)); in verifyStartActivityPreconditions()
219 new TaskBuilder(service.mStackSupervisor).setVoiceSession(voiceSession).build()); in verifyStartActivityPreconditions()
244 doReturn(false).when(service.mStackSupervisor).checkStartAnyActivityPermission( in verifyStartActivityPreconditions()
286 mService.mStackSupervisor, mock(ActivityStartInterceptor.class)); in verifyStartActivityPreconditions()
303 doReturn(true).when(mService.mStackSupervisor).checkStartAnyActivityPermission( in prepareStarter()
[all …]
DActivityRecordTests.java87 mStack = mService.mStackSupervisor.getDefaultDisplay().createStack( in setUp()
89 mTask = new TaskBuilder(mService.mStackSupervisor).setStack(mStack).build(); in setUp()
109 assertNull(mService.mStackSupervisor.getStack(mStack.mStackId)); in testStackCleanupOnTaskRemoval()
114 final TaskRecord newTask = new TaskBuilder(mService.mStackSupervisor).setStack(mStack) in testNoCleanupMovingActivityInSameStack()
139 mActivity.mStackSupervisor.mFocusedStack = null; in testPausingWhenVisibleFromStopped()
228 TaskRecord task2 = new TaskBuilder(mService.mStackSupervisor).setStack(mStack).build(); in testsApplyOptionsLocked()
242 ? new TaskBuilder(mService.mStackSupervisor).setStack(mStack).build() : null; in testSupportsLaunchingResizeable()
255 verify(mService.mStackSupervisor, times(1)).canPlaceEntityOnDisplay(anyInt(), eq(expected), in testSupportsLaunchingResizeable()
DActivityStartControllerTests.java62 mController = new ActivityStartController(mService, mService.mStackSupervisor, mFactory); in setUp()
63 mStarter = spy(new ActivityStarter(mController, mService, mService.mStackSupervisor, in setUp()
78 final ActivityStack stack = mService.mStackSupervisor.getDefaultDisplay().createStack( in testPendingActivityLaunches()
100 mService.mStackSupervisor, mock(ActivityStartInterceptor.class)); in testRecycling()
DActivityLaunchParamsModifierTests.java66 mModifier = new ActivityLaunchParamsModifier(mService.mStackSupervisor); in setUp()
71 mStack = mService.mStackSupervisor.getDefaultDisplay().createStack( in setUp()
73 mTask = new TaskBuilder(mService.mStackSupervisor).setStack(mStack).build(); in setUp()
108 assertFalse(mService.mStackSupervisor.canUseActivityOptionsLaunchBounds(options)); in testSkippedInvocations()
114 assertTrue(mService.mStackSupervisor.canUseActivityOptionsLaunchBounds(options)); in testSkippedInvocations()
DRecentsAnimationTest.java72 ActivityStack fullscreenStack = mService.mStackSupervisor.getDefaultDisplay().createStack( in testCancelAnimationOnStackOrderChange()
74 ActivityStack recentsStack = mService.mStackSupervisor.getDefaultDisplay().createStack( in testCancelAnimationOnStackOrderChange()
81 ActivityStack fullscreenStack2 = mService.mStackSupervisor.getDefaultDisplay().createStack( in testCancelAnimationOnStackOrderChange()
DTaskLaunchParamsModifierTests.java75 mStack = mService.mStackSupervisor.getDefaultDisplay().createStack( in setUp()
81 mTask = new TaskBuilder(mService.mStackSupervisor).setStack(mStack).build(); in setUp()
182 mService.mStackSupervisor.getLaunchParamsController().layoutTask(mTask, layout); in testConflict()
196 secondTask = new TaskBuilder(mService.mStackSupervisor).setStack(mStack).build(); in testConflict()
DRunningTasksTest.java69 final ActivityStackSupervisor supervisor = mService.mStackSupervisor; in testCollectTasksByLastActiveTime()
114 final TaskRecord task = new TaskBuilder(mService.mStackSupervisor) in createTask()
DRecentTasksTest.java153 mHomeStack = mService.mStackSupervisor.getDefaultDisplay().createStack( in setUp()
155 mStack = mService.mStackSupervisor.getDefaultDisplay().createStack( in setUp()
157 ((MyTestActivityStackSupervisor) mService.mStackSupervisor).setHomeStack(mHomeStack); in setUp()
601 (MyTestActivityStackSupervisor) mService.mStackSupervisor; in testBackStackTasks_expectNoTrim()
621 (MyTestActivityStackSupervisor) mService.mStackSupervisor; in testBehindHomeStackTasks_expectTaskTrimmed()
644 (MyTestActivityStackSupervisor) mService.mStackSupervisor; in testOtherDisplayTasks_expectNoTrim()
781 return new TaskBuilder(mService.mStackSupervisor) in createTaskBuilder()
DActivityStackTests.java76 mSupervisor = mService.mStackSupervisor; in setUp()
77 mDefaultDisplay = mService.mStackSupervisor.getDefaultDisplay(); in setUp()
115 final ActivityStack destStack = mService.mStackSupervisor.getDefaultDisplay().createStack( in testResumedActivityFromTaskReparenting()
133 final ActivityStack destStack = mService.mStackSupervisor.getDefaultDisplay().createStack( in testResumedActivityFromActivityReparenting()
DLaunchParamsControllerTests.java199 final TaskRecord task = new TaskBuilder(mService.mStackSupervisor).build(); in testLayoutTaskPreferredDisplayChange()
219 final TaskRecord task = new TaskBuilder(mService.mStackSupervisor).build(); in testLayoutTaskWindowingModeChange()
DActivityTestsBase.java184 mTaskRecord = new TaskBuilder(mService.mStackSupervisor) in build()
201 mService.mStackSupervisor, null /* options */, null /* sourceRecord */); in build()
/frameworks/base/services/core/java/com/android/server/am/
DKeyguardController.java62 private final ActivityStackSupervisor mStackSupervisor; field in KeyguardController
78 mStackSupervisor = stackSupervisor; in KeyguardController()
142 mStackSupervisor.ensureActivitiesVisibleLocked(null, 0, !PRESERVE_WINDOWS); in setKeyguardShown()
166 mStackSupervisor.resumeFocusedStackTopActivityLocked(); in keyguardGoingAway()
167 mStackSupervisor.ensureActivitiesVisibleLocked(null, 0, !PRESERVE_WINDOWS); in keyguardGoingAway()
168 mStackSupervisor.addStartingWindowsForVisibleActivities(true /* taskSwitch */); in keyguardGoingAway()
190 mStackSupervisor.wakeUp("dismissKeyguard"); in dismissKeyguard()
267 for (int displayNdx = mStackSupervisor.getChildCount() - 1; displayNdx >= 0; displayNdx--) { in visibilitiesUpdated()
268 final ActivityDisplay display = mStackSupervisor.getChildAt(displayNdx); in visibilitiesUpdated()
275 && mStackSupervisor.isFocusedStack(stack)) { in visibilitiesUpdated()
[all …]
DActivityStack.java240 mStackSupervisor.updateUIDsPresentOnDisplay(); in onParentChanged()
357 protected final ActivityStackSupervisor mStackSupervisor; field in ActivityStack
455 mStackSupervisor = supervisor; in ActivityStack()
474 mStackSupervisor.mWindowManager); in createStackWindowController()
499 mStackSupervisor.mRecentTasks.add(record.getTask()); in onActivityStateChanged()
583 mStackSupervisor.mNoAnimActivities.add(topActivity); in setWindowingMode()
653 mStackSupervisor.ensureActivitiesVisibleLocked(null, 0, PRESERVE_WINDOWS); in setWindowingMode()
654 mStackSupervisor.resumeFocusedStackTopActivityLocked(); in setWindowingMode()
687 mStackSupervisor.resumeFocusedStackTopActivityLocked(); in reparent()
690 mStackSupervisor.ensureActivitiesVisibleLocked(null /* starting */, 0 /* configChanges */, in reparent()
[all …]
DRecentsAnimation.java58 private final ActivityStackSupervisor mStackSupervisor; field in RecentsAnimation
75 mStackSupervisor = stackSupervisor; in RecentsAnimation()
119 mStackSupervisor.sendPowerHintForLaunchStartIfNeeded(true /* forceSend */, in startRecentsActivity()
123 mStackSupervisor.getActivityMetricsLogger().notifyActivityLaunching(); in startRecentsActivity()
137 mAssistDataRequester.requestAssistData(mStackSupervisor.getTopVisibleActivities(), in startRecentsActivity()
192 mStackSupervisor.mRecentTasks.getRecentTaskIds()); in startRecentsActivity()
196 mStackSupervisor.ensureActivitiesVisibleLocked(null, 0, PRESERVE_WINDOWS); in startRecentsActivity()
198 mStackSupervisor.getActivityMetricsLogger().notifyActivityLaunched(START_TASK_TO_FRONT, in startRecentsActivity()
232 mStackSupervisor.sendPowerHintForLaunchEndIfNeeded(); in finishAnimation()
261 mStackSupervisor.mNoAnimActivities.add(targetActivity); in finishAnimation()
[all …]
DAppTaskImpl.java64 if (!mService.mStackSupervisor.removeTaskByIdLocked(mTaskId, false, in finishAndRemoveTask()
81 TaskRecord tr = mService.mStackSupervisor.anyTaskForIdLocked(mTaskId, in getTaskInfo()
102 mService.mStackSupervisor.startActivityFromRecents(callingPid, callingUid, mTaskId, in moveToFront()
119 tr = mService.mStackSupervisor.anyTaskForIdLocked(mTaskId, in startActivity()
147 TaskRecord tr = mService.mStackSupervisor.anyTaskForIdLocked(mTaskId, in setExcludeFromRecents()
DActivityRecord.java333 final ActivityStackSupervisor mStackSupervisor; field in ActivityRecord
536 mStackSupervisor.mActivitiesWaitingForVisibleActivity.contains(this); in dump()
886 mStackSupervisor = supervisor; in ActivityRecord()
1102 final RecentTasks recentTasks = mStackSupervisor.mService.getRecentTasks(); in canLaunchHomeActivity()
1204 return mStackSupervisor.isFocusable(this, isAlwaysFocusable()); in isFocusable()
1270 return service.mStackSupervisor.canPlaceEntityOnDisplay(displayId, in canBeLaunchedOnDisplay()
1630 mStackSupervisor.getActivityMetricsLogger().notifyVisibilityChanged(this); in setVisibility()
1638 mStackSupervisor.mAppVisibilitiesChangedSinceLastPause = true; in setVisible()
1753 mStackSupervisor.mStoppingActivities.remove(this); in makeVisibleIfNeeded()
1754 mStackSupervisor.mGoingToSleepActivities.remove(this); in makeVisibleIfNeeded()
[all …]
DPinnedActivityStack.java47 mStackSupervisor.mWindowManager); in createStackWindowController()
106 mStackSupervisor.updatePictureInPictureMode(tasks.get(i), targetStackBounds, in updatePictureInPictureModeForPinnedStackAnimation()
DTaskPersister.java87 private final ActivityStackSupervisor mStackSupervisor; field in TaskPersister
145 mStackSupervisor = stackSupervisor; in TaskPersister()
154 mStackSupervisor = null; in TaskPersister()
461 final TaskRecord task = TaskRecord.restoreFromXml(in, mStackSupervisor); in restoreTasksForUserLocked()
471 if (mStackSupervisor.anyTaskForIdLocked(taskId, in restoreTasksForUserLocked()
481 mStackSupervisor.setNextTaskIdForUserLocked(taskId, userId); in restoreTasksForUserLocked()
DTaskRecord.java477 mService.mStackSupervisor.ensureActivitiesVisibleLocked(null, 0, !PRESERVE_WINDOWS); in setResizeMode()
478 mService.mStackSupervisor.resumeFocusedStackTopActivityLocked(); in setResizeMode()
515 mService.mStackSupervisor.restoreRecentTaskLocked(this, null, !ON_TOP); in resize()
543 mService.mStackSupervisor.ensureActivitiesVisibleLocked(r, 0, in resize()
546 mService.mStackSupervisor.resumeFocusedStackTopActivityLocked(); in resize()
619 final ActivityStackSupervisor supervisor = mService.mStackSupervisor; in reparent()
699 mService.mStackSupervisor.mNoAnimActivities.add(topActivity); in reparent()
718 mService.mStackSupervisor.getLaunchParamsController().layoutTask(this, null); in reparent()
726 mService.mStackSupervisor.moveRecentsStackToFront(reason); in reparent()
979 mService.mStackSupervisor.updateUIDsPresentOnDisplay(); in onParentChanged()
[all …]
DTaskChangeNotificationController.java56 private final ActivityStackSupervisor mStackSupervisor; field in TaskChangeNotificationController
153 mStackSupervisor.logStackState(); in handleMessage()
215 mStackSupervisor = stackSupervisor; in TaskChangeNotificationController()
DActivityStartController.java115 this(service, service.mStackSupervisor, in ActivityStartController()
116 new DefaultFactory(service, service.mStackSupervisor, in ActivityStartController()
117 new ActivityStartInterceptor(service, service.mStackSupervisor))); in ActivityStartController()
DActivityManagerService.java692 final ActivityStackSupervisor mStackSupervisor; field in ActivityManagerService
1996 return mStackSupervisor.getConfiguration(); in getGlobalConfiguration()
2573 mStackSupervisor.removeStacksInWindowingModes(WINDOWING_MODE_PINNED); in handleMessage()
2774 mStackSupervisor.setWindowManager(wm); in setWindowManager()
3032 mStackSupervisor = null; in ActivityManagerService()
3128 mStackSupervisor = createStackSupervisor(); in ActivityManagerService()
3129 mStackSupervisor.onConfigurationChanged(mTempConfig); in ActivityManagerService()
3130 mKeyguardController = mStackSupervisor.getKeyguardController(); in ActivityManagerService()
3134 new TaskChangeNotificationController(this, mStackSupervisor, mHandler); in ActivityManagerService()
3137 mStackSupervisor.setRecentTasks(mRecentTasks); in ActivityManagerService()
[all …]
DAppErrors.java496 mService.mStackSupervisor.handleAppCrashLocked(r); in crashApplicationInner()
499 mService.mStackSupervisor.resumeFocusedStackTopActivityLocked(); in crashApplicationInner()
718 mService.mStackSupervisor.handleAppCrashLocked(app); in handleAppCrashLocked()
739 mService.mStackSupervisor.resumeFocusedStackTopActivityLocked(); in handleAppCrashLocked()
744 mService.mStackSupervisor.resumeFocusedStackTopActivityLocked(); in handleAppCrashLocked()
747 mService.mStackSupervisor.finishTopCrashedActivitiesLocked(app, reason); in handleAppCrashLocked()
DSafeActivityOptions.java101 return getOptions(r.intent, r.info, r.app, r.mStackSupervisor); in getOptions()

12