/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | LockTaskControllerTest.java | 168 TaskRecord tr = getTaskRecord(TaskRecord.LOCK_TASK_AUTH_WHITELISTED); in testStartLockTaskMode_once() 185 TaskRecord tr1 = getTaskRecord(TaskRecord.LOCK_TASK_AUTH_WHITELISTED); in testStartLockTaskMode_twice() 186 TaskRecord tr2 = getTaskRecord(TaskRecord.LOCK_TASK_AUTH_WHITELISTED); in testStartLockTaskMode_twice() 205 TaskRecord tr = getTaskRecord(TaskRecord.LOCK_TASK_AUTH_PINNABLE); in testStartLockTaskMode_pinningRequest() 217 TaskRecord tr = getTaskRecord(TaskRecord.LOCK_TASK_AUTH_PINNABLE); in testStartLockTaskMode_pinnedBySystem() 236 TaskRecord tr = getTaskRecord(TaskRecord.LOCK_TASK_AUTH_WHITELISTED); in testLockTaskViolation() 244 TaskRecord.LOCK_TASK_AUTH_PINNABLE))); in testLockTaskViolation() 247 TaskRecord.LOCK_TASK_AUTH_DONT_LOCK))); in testLockTaskViolation() 251 TaskRecord.LOCK_TASK_AUTH_WHITELISTED))); in testLockTaskViolation() 253 TaskRecord.LOCK_TASK_AUTH_LAUNCHABLE))); in testLockTaskViolation() [all …]
|
D | RecentTasksTest.java | 109 private ArrayList<TaskRecord> mTasks; 110 private ArrayList<TaskRecord> mSameDocumentTasks; 174 TaskRecord documentTask1 = createDocumentTask(".DocumentTask1"); in testAddTasksNoMultiple_expectNoTrim() 175 TaskRecord documentTask2 = createDocumentTask(".DocumentTask1"); in testAddTasksNoMultiple_expectNoTrim() 188 TaskRecord documentTask1 = createDocumentTask(".DocumentTask1"); in testAddTasksMaxTaskRecents_expectNoTrim() 189 TaskRecord documentTask2 = createDocumentTask(".DocumentTask1"); in testAddTasksMaxTaskRecents_expectNoTrim() 204 TaskRecord documentTask1 = createDocumentTask(".DocumentTask1"); in testAddTasksSameTask_expectNoTrim() 216 TaskRecord documentTask1 = createDocumentTask(".DocumentTask1", in testAddTasksMultipleDocumentTasks_expectNoTrim() 218 TaskRecord documentTask2 = createDocumentTask(".DocumentTask1", in testAddTasksMultipleDocumentTasks_expectNoTrim() 233 TaskRecord task1 = createTaskBuilder(".Task1") in testAddTasksMultipleTasks_expectRemovedNoTrim() [all …]
|
D | TaskRecordTests.java | 63 import com.android.server.wm.TaskRecord.TaskRecordFactory; 96 TaskRecord.setTaskRecordFactory(null); in setUp() 102 final TaskRecord expected = createTaskRecord(64); in testRestoreWindowedTask() 106 final TaskRecord actual = restoreFromBytes(serializedBytes); in testRestoreWindowedTask() 113 assertNotNull(TaskRecord.getTaskRecordFactory()); in testDefaultTaskFactoryNotNull() 119 final TaskRecord task = createTaskRecord(1); in testCopyBaseIntentForTaskInfo() 130 TaskRecord.setTaskRecordFactory(factory); in testCreateTestRecordUsingCustomizedFactory() 134 TaskRecord.create(null, 0, null, null, null, null); in testCreateTestRecordUsingCustomizedFactory() 141 final TaskRecord task = createTaskRecord(1); in testReturnsToHomeStack() 183 TaskRecord task = new TaskBuilder(mSupervisor).setStack(stack).build(); in testFitWithinBounds() [all …]
|
D | RootActivityContainerTests.java | 103 TaskRecord task = mRootActivityContainer.anyTaskForId(0 /*taskId*/, in testRestoringInvalidTask() 116 final TaskRecord firstTask = firstActivity.getTaskRecord(); in testReplacingTaskInPinnedStack() 120 final TaskRecord secondTask = secondActivity.getTaskRecord(); in testReplacingTaskInPinnedStack() 150 private static void ensureStackPlacement(ActivityStack stack, TaskRecord... tasks) { in ensureStackPlacement() 151 final ArrayList<TaskRecord> stackTasks = stack.getAllTasks(); in ensureStackPlacement() 159 for (TaskRecord task : tasks) { in ensureStackPlacement() 289 final TaskRecord task = new TaskBuilder(mSupervisor).setStack(primaryStack).build(); in testSplitScreenPrimaryChosenWhenTopActivityLaunchedToSecondary() 316 final TaskRecord task = new TaskBuilder(mSupervisor).setStack(primaryStack).build(); in testResizeDockedStackForSplitScreenPrimary() 335 final TaskRecord targetTask = targetStack.getChildAt(0); in testFindTaskToMoveToFrontWhenRecentsOnTop() 358 final TaskRecord targetTask = new TaskBuilder(mSupervisor).setStack(targetStack).build(); in testFindTaskToMoveToFrontWhenRecentsOnOtherDisplay() [all …]
|
D | ActivityDisplayTests.java | 93 final TaskRecord pinnedTask = new TaskBuilder(mService.mStackSupervisor) in testFullscreenStackCanBeFocusedWhenFocusablePinnedStackExists() 151 final TaskRecord task = new TaskBuilder(mSupervisor).setStack(homeStack).build(); in testNotResumeHomeStackOnRemovingDisplay() 172 final TaskRecord fullscreenTask = new TaskBuilder(mService.mStackSupervisor) in createFullscreenStackWithSimpleActivityAt() 307 final TaskRecord task1 = new TaskBuilder(mService.mStackSupervisor).setStack( in removeStackTests() 309 final TaskRecord task2 = new TaskBuilder(mService.mStackSupervisor).setStack( in removeStackTests() 311 final TaskRecord task3 = new TaskBuilder(mService.mStackSupervisor).setStack( in removeStackTests() 313 final TaskRecord task4 = new TaskBuilder(mService.mStackSupervisor).setStack( in removeStackTests()
|
D | LaunchParamsControllerTests.java | 281 final TaskRecord task = new TaskBuilder(mService.mStackSupervisor).build(); in testLayoutTaskPreferredDisplayChange() 301 final TaskRecord task = new TaskBuilder(mService.mStackSupervisor).build(); in testLayoutTaskWindowingModeChange() 326 final TaskRecord task = new TaskBuilder(mService.mStackSupervisor).build(); in testLayoutTaskBoundsChangeFreeformWindow() 349 final TaskRecord task = new TaskBuilder(mService.mStackSupervisor).build(); in testLayoutTaskBoundsChangeFixedWindow() 372 public int onCalculate(TaskRecord task, WindowLayout layout, ActivityRecord activity, in onCalculate() 422 void saveTask(TaskRecord task) { in saveTask() 436 void getLaunchParams(TaskRecord task, ActivityRecord activity, LaunchParams params) { in getLaunchParams()
|
D | ActivityTestsBase.java | 80 import com.android.server.wm.TaskRecord.TaskRecordFactory; 182 final TaskRecord task = taskBuilder.build(); in mockTaskRecordFactory() 184 TaskRecord.setTaskRecordFactory(factory); in mockTaskRecordFactory() 205 private TaskRecord mTaskRecord; 233 ActivityBuilder setTask(TaskRecord task) { in setTask() 398 TaskRecord build() { in build() 434 private static class TestTaskRecord extends TaskRecord { 531 final TaskRecord task = new TaskBuilder(mStackSupervisor) in createDefaultDisplay() 737 for (TaskRecord task : (List<TaskRecord>) stack.getAllTasks()) { in removeAllTasks()
|
D | RunningTasksTest.java | 105 private TaskRecord createTask(ActivityStack stack, String className, int taskId, in createTask() 107 final TaskRecord task = new TaskBuilder(mService.mStackSupervisor) in createTask()
|
D | LaunchParamsPersisterTests.java | 84 private TaskRecord mTestTask; 85 private TaskRecord mTaskWithDifferentUser; 86 private TaskRecord mTaskWithDifferentComponent; 236 final TaskRecord anotherTaskOfTheSameUser = new TaskBuilder(mSupervisor) in testClearsRecordsOfTheUserOnUserCleanUp() 248 final TaskRecord anotherTaskOfDifferentUser = new TaskBuilder(mSupervisor) in testClearsRecordsOfTheUserOnUserCleanUp()
|
D | WindowTestUtils.java | 138 TaskRecord taskRecord) { in TestTask() 170 false, mock(TaskRecord.class)); in createTestTask()
|
D | ActivityStackTests.java | 83 private TaskRecord mTask; 129 mTask.reparent(destStack, true /* toTop */, TaskRecord.REPARENT_KEEP_STACK_AT_FRONT, in testResumedActivityFromTaskReparenting() 146 final TaskRecord destTask = new TaskBuilder(mSupervisor).setStack(destStack).build(); in testResumedActivityFromActivityReparenting() 253 final TaskRecord task = r.getTaskRecord(); in testFindTaskWithOverlay() 276 final TaskRecord task = new TaskBuilder(mService.mStackSupervisor).setStack(mStack).build(); in testFindTaskAlias() 971 final TaskRecord homeTask = homeStask.topTask(); in testAdjustFocusedStackToHomeWhenNoActivity()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | RecentTasks.java | 122 private static final Comparator<TaskRecord> TASK_ID_COMPARATOR = 137 void onRecentTaskAdded(TaskRecord task); in onRecentTaskAdded() 142 void onRecentTaskRemoved(TaskRecord task, boolean wasTrimmed, boolean killProcess); in onRecentTaskRemoved() 173 private final ArrayList<TaskRecord> mTasks = new ArrayList<>(); 190 private final ArrayList<TaskRecord> mTmpRecents = new ArrayList<>(); 213 final TaskRecord topTask = stack != null ? stack.topTask() : null; 283 void resetFreezeTaskListReordering(TaskRecord topTask) { in resetFreezeTaskListReordering() 313 final TaskRecord topTask = focusedStack != null in resetFreezeTaskListReorderingOnTimeout() 426 private void notifyTaskAdded(TaskRecord task) { in notifyTaskAdded() 432 private void notifyTaskRemoved(TaskRecord task, boolean wasTrimmed, boolean killProcess) { in notifyTaskRemoved() [all …]
|
D | RunningTasks.java | 36 private static final Comparator<TaskRecord> LAST_ACTIVE_TIME_COMPARATOR = 39 private final TreeSet<TaskRecord> mTmpSortedSet = new TreeSet<>(LAST_ACTIVE_TIME_COMPARATOR); 40 private final ArrayList<TaskRecord> mTmpStackTasks = new ArrayList<>(); 65 final Iterator<TaskRecord> iter = mTmpSortedSet.iterator(); in getTasks() 71 final TaskRecord task = iter.next(); in getTasks() 80 private RunningTaskInfo createRunningTaskInfo(TaskRecord task) { in createRunningTaskInfo()
|
D | LockTaskController.java | 35 import static com.android.server.wm.TaskRecord.LOCK_TASK_AUTH_DONT_LOCK; 36 import static com.android.server.wm.TaskRecord.LOCK_TASK_AUTH_LAUNCHABLE; 37 import static com.android.server.wm.TaskRecord.LOCK_TASK_AUTH_LAUNCHABLE_PRIV; 38 import static com.android.server.wm.TaskRecord.LOCK_TASK_AUTH_PINNABLE; 39 import static com.android.server.wm.TaskRecord.LOCK_TASK_AUTH_WHITELISTED; 160 private final ArrayList<TaskRecord> mLockTaskModeTasks = new ArrayList<>(); 224 boolean isTaskLocked(TaskRecord task) { in isTaskLocked() 231 private boolean isRootTask(TaskRecord task) { in isRootTask() 240 final TaskRecord task = activity.getTaskRecord(); in activityBlockedFromFinish() 257 boolean canMoveTaskToBack(TaskRecord task) { in canMoveTaskToBack() [all …]
|
D | TaskPersister.java | 121 private void removeThumbnails(TaskRecord task) { in removeThumbnails() 188 void wakeup(TaskRecord task, boolean flush) { in wakeup() 259 private TaskRecord taskIdToTask(int taskId, ArrayList<TaskRecord> tasks) { in taskIdToTask() 264 final TaskRecord task = tasks.get(taskNdx); in taskIdToTask() 273 List<TaskRecord> restoreTasksForUserLocked(final int userId, SparseBooleanArray preaddedTasks) { in restoreTasksForUserLocked() 274 final ArrayList<TaskRecord> tasks = new ArrayList<TaskRecord>(); in restoreTasksForUserLocked() 323 final TaskRecord task = TaskRecord.restoreFromXml(in, mStackSupervisor); in restoreTasksForUserLocked() 378 final TaskRecord task = tasks.get(taskNdx); in restoreTasksForUserLocked() 383 Collections.sort(tasks, new Comparator<TaskRecord>() { in restoreTasksForUserLocked() 385 public int compare(TaskRecord lhs, TaskRecord rhs) { in restoreTasksForUserLocked() [all …]
|
D | ActivityStack.java | 252 protected TaskRecord getChildAt(int index) { in getChildAt() 327 private final ArrayList<TaskRecord> mTaskHistory = new ArrayList<>(); 642 TaskRecord topTask = display.getSplitScreenPrimaryStack().topTask(); in onConfigurationChanged() 715 final TaskRecord topTask = topTask(); in setWindowingModeInSurfaceTransaction() 968 void positionChildWindowContainerAtTop(TaskRecord child) { in positionChildWindowContainerAtTop() 975 void positionChildWindowContainerAtBottom(TaskRecord child) { in positionChildWindowContainerAtBottom() 1088 final TaskRecord task = mTaskHistory.get(taskNdx); in topRunningNonOverlayTaskActivity() 1102 final TaskRecord task = mTaskHistory.get(taskNdx); in topRunningNonDelayedActivityLocked() 1125 TaskRecord task = mTaskHistory.get(taskNdx); in topRunningActivityLocked() 1151 final TaskRecord topTask() { in topTask() [all …]
|
D | LaunchParamsController.java | 77 void calculate(TaskRecord task, WindowLayout layout, ActivityRecord activity, in calculate() 123 boolean layoutTask(TaskRecord task, WindowLayout layout) { in layoutTask() 127 boolean layoutTask(TaskRecord task, WindowLayout layout, ActivityRecord activity, in layoutTask() 307 int onCalculate(TaskRecord task, WindowLayout layout, ActivityRecord activity, in onCalculate()
|
D | ActivityStackSupervisor.java | 78 import static com.android.server.wm.TaskRecord.LOCK_TASK_AUTH_LAUNCHABLE; 79 import static com.android.server.wm.TaskRecord.LOCK_TASK_AUTH_LAUNCHABLE_PRIV; 80 import static com.android.server.wm.TaskRecord.LOCK_TASK_AUTH_WHITELISTED; 81 import static com.android.server.wm.TaskRecord.REPARENT_KEEP_STACK_AT_FRONT; 82 import static com.android.server.wm.TaskRecord.REPARENT_LEAVE_STACK_IN_PLACE; 83 import static com.android.server.wm.TaskRecord.REPARENT_MOVE_STACK_TO_FRONT; 733 final TaskRecord task = r.getTaskRecord(); in realStartActivityLocked() 1381 void findTaskToMoveToFront(TaskRecord task, int flags, ActivityOptions options, String reason, in findTaskToMoveToFront() 1480 final TaskRecord task = in notifyAppTransitionDone() 1527 final ArrayList<TaskRecord> tasks = fromStack.getAllTasks(); in moveTasksToFullscreenStackInSurfaceTransaction() [all …]
|
D | WindowProcessController.java | 165 private final ArrayList<TaskRecord> mRecentTasks = new ArrayList<>(); 550 TaskRecord task = mActivities.get(i).getTaskRecord(); in hasActivityInVisibleTask() 706 boolean shouldKillProcessForRemovedTask(TaskRecord tr) { in shouldKillProcessForRemovedTask() 713 final TaskRecord otherTask = activity.getTaskRecord(); in shouldKillProcessForRemovedTask() 723 ArraySet<TaskRecord> getReleaseSomeActivitiesTasks() { in getReleaseSomeActivitiesTasks() 725 TaskRecord firstTask = null; in getReleaseSomeActivitiesTasks() 727 ArraySet<TaskRecord> tasks = null; in getReleaseSomeActivitiesTasks() 746 final TaskRecord task = r.getTaskRecord(); in getReleaseSomeActivitiesTasks() 790 final TaskRecord task = r.getTaskRecord(); in computeOomAdjFromActivities() 988 void addRecentTask(TaskRecord task) { in addRecentTask() [all …]
|
D | AppTaskImpl.java | 82 TaskRecord tr = mService.mRootActivityContainer.anyTaskForId(mTaskId, in getTaskInfo() 139 TaskRecord tr; in startActivity() 170 TaskRecord tr = mService.mRootActivityContainer.anyTaskForId(mTaskId, in setExcludeFromRecents()
|
D | ActivityStarter.java | 83 import static com.android.server.wm.TaskRecord.REPARENT_KEEP_STACK_AT_FRONT; 84 import static com.android.server.wm.TaskRecord.REPARENT_MOVE_STACK_TO_FRONT; 178 private TaskRecord mInTask; 180 private TaskRecord mReuseTask; 330 TaskRecord inTask; 551 int startFlags, boolean doResume, ActivityOptions options, TaskRecord inTask) { in startResolvedActivity() 574 ActivityRecord[] outActivity, TaskRecord inTask, String reason, in startActivity() 620 TaskRecord inTask, boolean allowPendingRemoteAnimationRegistryLookup, in startActivity() 1150 int userId, TaskRecord inTask, String reason, in startActivityMayWait() 1398 int startFlags, boolean doResume, ActivityOptions options, TaskRecord inTask, in startActivity() [all …]
|
D | RootActivityContainer.java | 68 import static com.android.server.wm.TaskRecord.REPARENT_LEAVE_STACK_IN_PLACE; 69 import static com.android.server.wm.TaskRecord.REPARENT_MOVE_STACK_TO_FRONT; 854 TaskRecord task = stack.topTask(); in switchUser() 1019 final TaskRecord task = r.getTaskRecord(); in moveActivityToPinnedStack() 1040 final TaskRecord newTask = task.getStack().createTaskRecord( in moveActivityToPinnedStack() 1128 TaskRecord finishedTask = null; in finishTopCrashedActivities() 1136 final TaskRecord t = stack.finishTopCrashedActivityLocked(app, reason); in finishTopCrashedActivities() 1291 ArrayList<TaskRecord> tasks = stack.getAllTasks(); in getStackInfo() 1298 final TaskRecord task = tasks.get(i); in getStackInfo() 1586 ArraySet<TaskRecord> tasks = app.getReleaseSomeActivitiesTasks(); in releaseSomeActivitiesLocked() [all …]
|
D | TaskRecord.java | 142 class TaskRecord extends ConfigurationContainer { class 298 TaskRecord mPrevAffiliate; // previous task in affiliated chain. 300 TaskRecord mNextAffiliate; // next task in affiliated chain. 345 TaskRecord(ActivityTaskManagerService service, int _taskId, ActivityInfo info, Intent _intent, in TaskRecord() method in TaskRecord 369 TaskRecord(ActivityTaskManagerService service, int _taskId, ActivityInfo info, Intent _intent, in TaskRecord() method in TaskRecord 398 TaskRecord(ActivityTaskManagerService service, int _taskId, Intent _intent, in TaskRecord() method in TaskRecord 990 void setPrevAffiliate(TaskRecord prevAffiliate) { in setPrevAffiliate() 995 void setNextAffiliate(TaskRecord nextAffiliate) { in setNextAffiliate() 1088 void setTaskToAffiliateWith(TaskRecord taskToAffiliateWith) { in setTaskToAffiliateWith() 1094 final TaskRecord nextRecents = taskToAffiliateWith.mNextAffiliate; in setTaskToAffiliateWith() [all …]
|
D | TaskLaunchParamsModifier.java | 107 int onCalculate(TaskRecord task, ActivityInfo.WindowLayout layout, ActivityRecord activity, in onCalculate() 115 public int onCalculate(TaskRecord task, ActivityInfo.WindowLayout layout, in onCalculate() 125 private int calculate(TaskRecord task, ActivityInfo.WindowLayout layout, in calculate() 293 private int getPreferredLaunchDisplay(@Nullable TaskRecord task, in getPreferredLaunchDisplay() 849 private void initLogBuilder(TaskRecord task, ActivityRecord activity) {
|
D | LaunchParamsPersister.java | 199 void saveTask(TaskRecord task) { in saveTask() 223 private boolean saveTaskToLaunchParam(TaskRecord task, PersistableLaunchParams params) { in saveTaskToLaunchParam() 248 void getLaunchParams(TaskRecord task, ActivityRecord activity, LaunchParams outParams) { in getLaunchParams()
|