Home
last modified time | relevance | path

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

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DRecentTasksTest.java117 private TestRecentTasks mRecentTasks; field in RecentTasksTest
132 mRecentTasks = new TestRecentTasks(mAtm, mTaskPersister); in setUp()
133 spyOn(mRecentTasks); in setUp()
134 mAtm.setRecentTasks(mRecentTasks); in setUp()
135 mRecentTasks.loadParametersFromResources(mContext.getResources()); in setUp()
142 mRecentTasks.registerCallback(mCallbacksRecorder); in setUp()
159 mRecentTasks.add(mTasks.get(0)); in testCallbacks()
160 mRecentTasks.add(mTasks.get(1)); in testCallbacks()
168 mRecentTasks.remove(mTasks.get(0)); in testCallbacks()
169 mRecentTasks.remove(mTasks.get(1)); in testCallbacks()
[all …]
DSafeActivityOptionsTest.java130 taskSupervisor.mRecentTasks = mock(RecentTasks.class); in test_getOptions()
131 doReturn(false).when(taskSupervisor.mRecentTasks).isCallerRecents(anyInt()); in test_getOptions()
DLockTaskControllerTest.java125 @Mock private RecentTasks mRecentTasks; field in LockTaskControllerTest
146 mSupervisor.mRecentTasks = mRecentTasks; in setUp()
803 verify(mRecentTasks).onLockTaskModeStateChanged(anyInt(), eq(TEST_USER_ID)); in verifyLockTaskStarted()
DActivityTaskSupervisorTests.java284 spyOn(mSupervisor.mRecentTasks); in testUpdateRecentTasksForTopResumed()
289 verify(mSupervisor.mRecentTasks).add(eq(task)); in testUpdateRecentTasksForTopResumed()
DBackgroundActivityStartControllerExemptionTests.java124 RecentTasks /* mSupervisor. */ mRecentTasks; field in BackgroundActivityStartControllerExemptionTests
179 setViaReflection(mSupervisor, "mRecentTasks", mRecentTasks); in setUp()
581 mSupervisor.mRecentTasks = recentTasks; in testCaller_isRecents()
DBackgroundActivityStartControllerTests.java117 RecentTasks /* mSupervisor. */ mRecentTasks; field in BackgroundActivityStartControllerTests
201 setViaReflection(mSupervisor, "mRecentTasks", mRecentTasks); in setUp()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/wmshell/
DWMShellTest.kt97 @Mock private lateinit var mRecentTasks: RecentTasks variable in com.android.systemui.wmshell.WMShellTest
127 Optional.of(mRecentTasks), in setUp()
171 underTest.initRecentTasks(mRecentTasks) in initRecentTasks_registersListener()
172 verify(mRecentTasks).addAnimationStateListener(any(Executor::class.java), any()) in initRecentTasks_registersListener()
184 underTest.initRecentTasks(mRecentTasks) in initRecentTasks_setRecentsBackgroundColorWhenCommunal()
186 verify(mRecentTasks).setTransitionBackgroundColor(null) in initRecentTasks_setRecentsBackgroundColorWhenCommunal()
187 verify(mRecentTasks, never()).setTransitionBackgroundColor(black) in initRecentTasks_setRecentsBackgroundColorWhenCommunal()
198 verify(mRecentTasks).setTransitionBackgroundColor(black) in initRecentTasks_setRecentsBackgroundColorWhenCommunal()
/frameworks/base/services/core/java/com/android/server/wm/
DTaskPersister.java79 private final RecentTasks mRecentTasks; field in TaskPersister
109 mRecentTasks = recentTasks; in TaskPersister()
119 mRecentTasks = null; in TaskPersister()
355 if (persistedTask && mRecentTasks.getTask(taskId) != null) { in restoreTasksForUserLocked()
438 if (DEBUG) Slog.d(TAG, "mRecents=" + mRecentTasks); in onPreProcessItem()
439 mRecentTasks.getPersistableTaskIds(mTmpTaskIds); in onPreProcessItem()
441 mRecentTasks.usersWithRecentsLoadedLocked()); in onPreProcessItem()
480 for (int userId : mRecentTasks.usersWithRecentsLoadedLocked()) { in writeTaskIdsFiles()
481 SparseBooleanArray taskIdsToSave = mRecentTasks.getTaskIdsForLoadedUser(userId); in writeTaskIdsFiles()
503 candidateUserIds = mRecentTasks.usersWithRecentsLoadedLocked(); in removeObsoleteFiles()
DRunningTasks.java55 private RecentTasks mRecentTasks; field in RunningTasks
72 mRecentTasks = recentTasks; in getTasks()
155 && !mRecentTasks.isVisibleRecentTask(task)) {
DWindowProcessController.java221 private final ArrayList<Task> mRecentTasks = new ArrayList<>(); field in WindowProcessController
1822 mRecentTasks.add(task); in addRecentTask()
1827 mRecentTasks.remove(task); in removeRecentTask()
1828 mHasRecentTasks = !mRecentTasks.isEmpty(); in removeRecentTask()
1837 for (int i = mRecentTasks.size() - 1; i >= 0; i--) { in clearRecentTasks()
1838 mRecentTasks.get(i).clearRootProcess(); in clearRecentTasks()
1840 mRecentTasks.clear(); in clearRecentTasks()
2080 if (mRecentTasks.size() > 0) { in dump()
2082 for (int i = 0; i < mRecentTasks.size(); i++) { in dump()
2083 pw.println(prefix + " - " + mRecentTasks.get(i)); in dump()
DActivityTaskSupervisor.java264 RecentTasks mRecentTasks; field in ActivityTaskSupervisor
509 if (mRecentTasks != null) { in setRecentTasks()
510 mRecentTasks.unregisterCallback(this); in setRecentTasks()
512 mRecentTasks = recentTasks; in setRecentTasks()
513 mRecentTasks.registerCallback(this); in setRecentTasks()
590 while (mRecentTasks.containsTaskId(candidateTaskId, userId) in getNextTaskIdForUser()
1478 mRecentTasks.onActivityIdle(r); in activityIdleInternal()
1772 mRecentTasks.remove(task); in cleanUpRemovedTask()
2087 mRecentTasks.add(task); in handleLaunchTaskBehindCompleteLocked()
2217 pw.println(mRecentTasks.isRecentsComponentHomeActivity(mRootWindowContainer.mCurrentUser)); in dump()
[all …]
DSafeActivityOptions.java276 && !supervisor.mRecentTasks.isCallerRecents(callingUid)) { in checkPermissions()
288 if (options.getTransientLaunch() && !supervisor.mRecentTasks.isCallerRecents(callingUid) in checkPermissions()
DResetTargetTaskHelper.java259 atmService.mTaskSupervisor.mRecentTasks.add(targetTask); in processPendingReparentActivities()
DActivityTaskManagerService.java460 private RecentTasks mRecentTasks; field in ActivityTaskManagerService
888 mRecentTasks.onSystemReadyLocked(); in onSystemReady()
1114 mRecentTasks = recentTasks; in setRecentTasks()
1119 return mRecentTasks; in getRecentTasks()
1795 final ComponentName recentsComponent = mRecentTasks.getRecentsComponent(); in startRecentsActivity()
1796 final String recentsFeatureId = mRecentTasks.getRecentsComponentFeatureId(); in startRecentsActivity()
1797 final int recentsUid = mRecentTasks.getRecentsComponentUid(); in startRecentsActivity()
2510 mRecentTasks.loadRecentTasksIfNeeded(userId); in getRecentTasks()
2512 return mRecentTasks.getRecentTasks(maxNum, flags, allowed, userId, callingUid); in getRecentTasks()
2712 return mRecentTasks.getAppTasksList(uid, pkgName); in getAppTasks()
[all …]
DRecentsAnimation.java259 mTaskSupervisor.mRecentTasks.getRecentTaskIds(), targetActivity); in startRecentsActivity()
DActivityStarter.java1449 mSupervisor.mRecentTasks.resetFreezeTaskListReorderingOnTimeout(); in postStartActivityProcessing()
1738 && mSupervisor.mRecentTasks.isCallerRecents(r.launchedFromUid) in startActivityInner()
1739 && !mSupervisor.mRecentTasks.isFreezeTaskListReorderingSet()) { in startActivityInner()
1741 mSupervisor.mRecentTasks.setFreezeTaskListReordering(); in startActivityInner()
1925 mSupervisor.mRecentTasks.add(startedTask); in startActivityInner()
DLockTaskController.java702 mSupervisor.mRecentTasks.onLockTaskModeStateChanged(lockTaskModeState, task.mUserId); in setLockTaskMode()
DTask.java717 mTaskSupervisor.mRecentTasks.remove(this); in cleanUpResourcesForDestroy()
1041 mTaskSupervisor.mRecentTasks.remove(this); in setIntent()
1042 mTaskSupervisor.mRecentTasks.add(this); in setIntent()
1300 mTaskSupervisor.mRecentTasks.add(this); in updateTaskMovement()
5766 mTaskSupervisor.mRecentTasks.add(top.getTask());
DBackgroundActivityStartController.java855 if (mSupervisor.mRecentTasks.isCallerRecents(state.mCallingUid)) { in checkBackgroundActivityStartAllowedByCaller()
DRootWindowContainer.java1202 mTaskSupervisor.mRecentTasks.isRecentsComponentHomeActivity(mCurrentUser)); in dumpDebug()
3585 task = mTaskSupervisor.mRecentTasks.getTask(id);
DTaskFragment.java968 mTaskSupervisor.mRecentTasks.add(record.getTask()); in onActivityStateChanged()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/splitscreen/
DSplitScreenControllerTests.java111 @Mock RecentTasksController mRecentTasks; field in SplitScreenControllerTests
131 mIconProvider, Optional.of(mRecentTasks), mLaunchAdjacentController, in setup()
215 doReturn(topRunningTask).when(mRecentTasks).getTopRunningTask(); in startIntent_multiInstancesSupported_appendsMultipleTaskFag()
235 doReturn(topRunningTask).when(mRecentTasks).getTopRunningTask(); in startIntent_multiInstancesNotSupported_startTaskInBackgroundBeforeSplitActivated()
238 doReturn(sameTaskInfo).when(mRecentTasks).findTaskInBackground(any(), anyInt()); in startIntent_multiInstancesNotSupported_startTaskInBackgroundBeforeSplitActivated()
263 doReturn(new ActivityManager.RecentTaskInfo()).when(mRecentTasks) in startIntent_multiInstancesSupported_startTaskInBackgroundAfterSplitActivated()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/
DShellTaskOrganizer.java196 private final Optional<RecentTasksController> mRecentTasks; field in ShellTaskOrganizer
233 mRecentTasks = recentTasks; in ShellTaskOrganizer()
517 mRecentTasks.ifPresent(recentTasks -> recentTasks.onTaskAdded(info.getTaskInfo())); in onTaskAppeared()
560 mRecentTasks.ifPresent(recentTasks -> in onTaskInfoChanged()
610 mRecentTasks.ifPresent(recentTasks -> recentTasks.onTaskRemoved(taskInfo)); in onTaskVanished()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/splitscreen/
DStageCoordinator.java211 private final Optional<RecentTasksController> mRecentTasks; field in StageCoordinator
327 mRecentTasks = recentTasks; in StageCoordinator()
396 mRecentTasks = recentTasks; in StageCoordinator()
781 if (mRecentTasks.isPresent()) { in startSingleTask()
782 mRecentTasks.get().removeSplitPair(taskId); in startSingleTask()
1735 mRecentTasks.ifPresent(recentTasks -> { in clearSplitPairedInRecents()
1984 mRecentTasks.ifPresent(recentTasks -> { in updateRecentTasksSplitPair()
2683 mRecentTasks.ifPresent(recentTasks -> recentTasks.removeSplitPair(triggerTask.taskId)); in handleRequest()
2812 mRecentTasks.ifPresent( in addEnterOrExitIfNeeded()
3159 if (mRecentTasks.isPresent() && mainChild != null) { in startPendingEnterAnimation()
[all …]
/frameworks/opt/car/services/updatableServices/tests/src/com/android/server/wm/
DCarLaunchParamsModifierUpdatableTest.java110 private RecentTasks mRecentTasks; field in CarLaunchParamsModifierUpdatableTest
199 when(mActivityTaskManagerService.getRecentTasks()).thenReturn(mRecentTasks); in setUp()