Home
last modified time | relevance | path

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

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DRecentTasksTest.java110 private TestRecentTasks mRecentTasks; field in RecentTasksTest
125 mRecentTasks = new TestRecentTasks(mService, mTaskPersister); in setUp()
126 spyOn(mRecentTasks); in setUp()
127 mService.setRecentTasks(mRecentTasks); in setUp()
128 mRecentTasks.loadParametersFromResources(mContext.getResources()); in setUp()
137 mRecentTasks.registerCallback(mCallbacksRecorder); in setUp()
154 mRecentTasks.add(mTasks.get(0)); in testCallbacks()
155 mRecentTasks.add(mTasks.get(1)); in testCallbacks()
163 mRecentTasks.remove(mTasks.get(0)); in testCallbacks()
164 mRecentTasks.remove(mTasks.get(1)); in testCallbacks()
[all …]
DLockTaskControllerTest.java119 @Mock private RecentTasks mRecentTasks; field in LockTaskControllerTest
139 mSupervisor.mRecentTasks = mRecentTasks; in setUp()
783 verify(mRecentTasks).onLockTaskModeStateChanged(anyInt(), eq(TEST_USER_ID)); in verifyLockTaskStarted()
/frameworks/base/services/core/java/com/android/server/wm/
DRunningTasks.java52 private RecentTasks mRecentTasks; field in RunningTasks
71 mRecentTasks = root.mService.getRecentTasks(); in getTasks()
111 && !mRecentTasks.isVisibleRecentTask(task)) { in processTask()
DTaskPersister.java75 private final RecentTasks mRecentTasks; field in TaskPersister
105 mRecentTasks = recentTasks; in TaskPersister()
115 mRecentTasks = null; in TaskPersister()
408 if (DEBUG) Slog.d(TAG, "mRecents=" + mRecentTasks); in onPreProcessItem()
409 mRecentTasks.getPersistableTaskIds(mTmpTaskIds); in onPreProcessItem()
411 mRecentTasks.usersWithRecentsLoadedLocked()); in onPreProcessItem()
450 for (int userId : mRecentTasks.usersWithRecentsLoadedLocked()) { in writeTaskIdsFiles()
451 SparseBooleanArray taskIdsToSave = mRecentTasks.getTaskIdsForUser(userId); in writeTaskIdsFiles()
473 candidateUserIds = mRecentTasks.usersWithRecentsLoadedLocked(); in removeObsoleteFiles()
DWindowProcessController.java178 private final ArrayList<Task> mRecentTasks = new ArrayList<>(); field in WindowProcessController
628 return !mActivities.isEmpty() || !mRecentTasks.isEmpty(); in hasActivitiesOrRecentTasks()
1245 mRecentTasks.add(task); in addRecentTask()
1249 mRecentTasks.remove(task); in removeRecentTask()
1255 return !mRecentTasks.isEmpty(); in hasRecentTasks()
1260 for (int i = mRecentTasks.size() - 1; i >= 0; i--) { in clearRecentTasks()
1261 mRecentTasks.get(i).clearRootProcess(); in clearRecentTasks()
1263 mRecentTasks.clear(); in clearRecentTasks()
1427 if (mRecentTasks.size() > 0) { in dump()
1429 for (int i = 0; i < mRecentTasks.size(); i++) { in dump()
[all …]
DActivityStackSupervisor.java238 RecentTasks mRecentTasks; field in ActivityStackSupervisor
462 if (mRecentTasks != null) { in setRecentTasks()
463 mRecentTasks.unregisterCallback(this); in setRecentTasks()
465 mRecentTasks = recentTasks; in setRecentTasks()
466 mRecentTasks.registerCallback(this); in setRecentTasks()
529 while (mRecentTasks.containsTaskId(candidateTaskId, userId) in getNextTaskIdForUser()
1527 mRecentTasks.remove(task); in cleanUpRemovedTaskLocked()
1788 mRecentTasks.add(task); in handleLaunchTaskBehindCompleteLocked()
1913 pw.println(mRecentTasks.isRecentsComponentHomeActivity(mRootWindowContainer.mCurrentUser)); in dump()
2468 && mRecentTasks.isCallerRecents(callingUid)) { in startActivityFromRecents()
[all …]
DSafeActivityOptions.java199 && !supervisor.mRecentTasks.isCallerRecents(callingUid)) { in checkPermissions()
DResetTargetTaskHelper.java270 atmService.mStackSupervisor.mRecentTasks.add(targetTask); in processPendingReparentActivities()
DActivityTaskManagerService.java409 private RecentTasks mRecentTasks; field in ActivityTaskManagerService
746 mRecentTasks.onSystemReadyLocked(); in onSystemReady()
934 mRecentTasks = recentTasks; in setRecentTasks()
939 return mRecentTasks; in getRecentTasks()
1583 final ComponentName recentsComponent = mRecentTasks.getRecentsComponent(); in startRecentsActivity()
1584 final String recentsFeatureId = mRecentTasks.getRecentsComponentFeatureId(); in startRecentsActivity()
1585 final int recentsUid = mRecentTasks.getRecentsComponentUid(); in startRecentsActivity()
2893 return mRecentTasks.getRecentTasks(maxNum, flags, allowed, userId, callingUid); in getRecentTasks()
3131 return mRecentTasks.getAppTasksList(callingUid, callingPackage); in getAppTasks()
3315 if (!mRecentTasks.addToBottom(task)) { in addAppTask()
[all …]
DActivityStarter.java1322 if (mSupervisor.mRecentTasks.isCallerRecents(callingUid)) { in shouldAbortBackgroundActivityStart()
1454 mSupervisor.mRecentTasks.resetFreezeTaskListReorderingOnTimeout(); in postStartActivityProcessing()
1604 && mSupervisor.mRecentTasks.isCallerRecents(r.launchedFromUid) in startActivityInner()
1605 && !mSupervisor.mRecentTasks.isFreezeTaskListReorderingSet()) { in startActivityInner()
1607 mSupervisor.mRecentTasks.setFreezeTaskListReordering(); in startActivityInner()
1738 mSupervisor.mRecentTasks.add(mStartActivity.getTask()); in startActivityInner()
DRecentsAnimation.java246 mStackSupervisor.mRecentTasks.getRecentTaskIds(), targetActivity); in startRecentsActivity()
DLockTaskController.java598 mSupervisor.mRecentTasks.onLockTaskModeStateChanged(lockTaskModeState, task.mUserId); in setLockTaskMode()
DRootWindowContainer.java1280 mStackSupervisor.mRecentTasks.isRecentsComponentHomeActivity(mCurrentUser)); in dumpDebug()
3467 task = mStackSupervisor.mRecentTasks.getTask(id); in anyTaskForId()
DTask.java633 mStackSupervisor.mRecentTasks.remove(this); in cleanUpResourcesForDestroy()
1888 mStackSupervisor.mRecentTasks.add(record.getTask()); in onActivityStateChanged()
DActivityStack.java2513 mStackSupervisor.mRecentTasks.add(top.getTask()); in moveTaskToFront()
/frameworks/opt/car/services/tests/src/com/android/server/wm/
DCarLaunchParamsModifierTest.java78 private RecentTasks mRecentTasks; field in CarLaunchParamsModifierTest
151 when(mActivityTaskManagerService.getRecentTasks()).thenReturn(mRecentTasks); in setUp()