/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 | 108 private ArrayList<TaskRecord> mTasks; 109 private ArrayList<TaskRecord> mSameDocumentTasks; 173 TaskRecord documentTask1 = createDocumentTask(".DocumentTask1"); in testAddTasksNoMultiple_expectNoTrim() 174 TaskRecord documentTask2 = createDocumentTask(".DocumentTask1"); in testAddTasksNoMultiple_expectNoTrim() 187 TaskRecord documentTask1 = createDocumentTask(".DocumentTask1"); in testAddTasksMaxTaskRecents_expectNoTrim() 188 TaskRecord documentTask2 = createDocumentTask(".DocumentTask1"); in testAddTasksMaxTaskRecents_expectNoTrim() 203 TaskRecord documentTask1 = createDocumentTask(".DocumentTask1"); in testAddTasksSameTask_expectNoTrim() 215 TaskRecord documentTask1 = createDocumentTask(".DocumentTask1", in testAddTasksMultipleDocumentTasks_expectNoTrim() 217 TaskRecord documentTask2 = createDocumentTask(".DocumentTask1", in testAddTasksMultipleDocumentTasks_expectNoTrim() 232 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 | 101 TaskRecord task = mRootActivityContainer.anyTaskForId(0 /*taskId*/, in testRestoringInvalidTask() 114 final TaskRecord firstTask = firstActivity.getTaskRecord(); in testReplacingTaskInPinnedStack() 118 final TaskRecord secondTask = secondActivity.getTaskRecord(); in testReplacingTaskInPinnedStack() 148 private static void ensureStackPlacement(ActivityStack stack, TaskRecord... tasks) { in ensureStackPlacement() 149 final ArrayList<TaskRecord> stackTasks = stack.getAllTasks(); in ensureStackPlacement() 157 for (TaskRecord task : tasks) { in ensureStackPlacement() 287 final TaskRecord task = new TaskBuilder(mSupervisor).setStack(primaryStack).build(); in testSplitScreenPrimaryChosenWhenTopActivityLaunchedToSecondary() 314 final TaskRecord task = new TaskBuilder(mSupervisor).setStack(primaryStack).build(); in testResizeDockedStackForSplitScreenPrimary() 333 final TaskRecord targetTask = targetStack.getChildAt(0); in testFindTaskToMoveToFrontWhenRecentsOnTop() 356 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 | ActivityTestsBase.java | 77 import com.android.server.wm.TaskRecord.TaskRecordFactory; 173 final TaskRecord task = new TaskBuilder(mSupervisor).setCreateStack(false).build(); in mockTaskRecordFactory() 175 TaskRecord.setTaskRecordFactory(factory); in mockTaskRecordFactory() 192 private TaskRecord mTaskRecord; 218 ActivityBuilder setTask(TaskRecord task) { in setTask() 371 TaskRecord build() { in build() 407 private static class TestTaskRecord extends TaskRecord { 499 final TaskRecord task = new TaskBuilder(mStackSupervisor) in createDefaultDisplay() 705 for (TaskRecord task : (List<TaskRecord>) stack.getAllTasks()) { in removeAllTasks()
|
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 | RunningTasksTest.java | 100 private TaskRecord createTask(ActivityStack stack, String className, int taskId, in createTask() 102 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 | 80 private TaskRecord mTask; 125 mTask.reparent(destStack, true /* toTop */, TaskRecord.REPARENT_KEEP_STACK_AT_FRONT, in testResumedActivityFromTaskReparenting() 142 final TaskRecord destTask = new TaskBuilder(mSupervisor).setStack(destStack).build(); in testResumedActivityFromActivityReparenting() 249 final TaskRecord task = r.getTaskRecord(); in testFindTaskWithOverlay() 272 final TaskRecord task = new TaskBuilder(mService.mStackSupervisor).setStack(mStack).build(); in testFindTaskAlias() 967 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 | 35 private static final Comparator<TaskRecord> LAST_ACTIVE_TIME_COMPARATOR = 38 private final TreeSet<TaskRecord> mTmpSortedSet = new TreeSet<>(LAST_ACTIVE_TIME_COMPARATOR); 39 private final ArrayList<TaskRecord> mTmpStackTasks = new ArrayList<>(); 64 final Iterator<TaskRecord> iter = mTmpSortedSet.iterator(); in getTasks() 70 final TaskRecord task = iter.next(); in getTasks() 79 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 | 249 protected TaskRecord getChildAt(int index) { in getChildAt() 324 private final ArrayList<TaskRecord> mTaskHistory = new ArrayList<>(); 639 TaskRecord topTask = display.getSplitScreenPrimaryStack().topTask(); in onConfigurationChanged() 712 final TaskRecord topTask = topTask(); in setWindowingModeInSurfaceTransaction() 965 void positionChildWindowContainerAtTop(TaskRecord child) { in positionChildWindowContainerAtTop() 972 void positionChildWindowContainerAtBottom(TaskRecord child) { in positionChildWindowContainerAtBottom() 1085 final TaskRecord task = mTaskHistory.get(taskNdx); in topRunningNonOverlayTaskActivity() 1099 final TaskRecord task = mTaskHistory.get(taskNdx); in topRunningNonDelayedActivityLocked() 1122 TaskRecord task = mTaskHistory.get(taskNdx); in topRunningActivityLocked() 1148 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 | 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 | 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; 718 final TaskRecord task = r.getTaskRecord(); in realStartActivityLocked() 1378 void findTaskToMoveToFront(TaskRecord task, int flags, ActivityOptions options, String reason, in findTaskToMoveToFront() 1477 final TaskRecord task = in notifyAppTransitionDone() 1524 final ArrayList<TaskRecord> tasks = fromStack.getAllTasks(); in moveTasksToFullscreenStackInSurfaceTransaction() [all …]
|
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; 329 TaskRecord inTask; 549 int startFlags, boolean doResume, ActivityOptions options, TaskRecord inTask) { in startResolvedActivity() 572 ActivityRecord[] outActivity, TaskRecord inTask, String reason, in startActivity() 618 TaskRecord inTask, boolean allowPendingRemoteAnimationRegistryLookup, in startActivity() 1140 int userId, TaskRecord inTask, String reason, in startActivityMayWait() 1388 int startFlags, boolean doResume, ActivityOptions options, TaskRecord inTask, in startActivity() [all …]
|
D | RootActivityContainer.java | 67 import static com.android.server.wm.TaskRecord.REPARENT_LEAVE_STACK_IN_PLACE; 68 import static com.android.server.wm.TaskRecord.REPARENT_MOVE_STACK_TO_FRONT; 853 TaskRecord task = stack.topTask(); in switchUser() 1018 final TaskRecord task = r.getTaskRecord(); in moveActivityToPinnedStack() 1039 final TaskRecord newTask = task.getStack().createTaskRecord( in moveActivityToPinnedStack() 1127 TaskRecord finishedTask = null; in finishTopCrashedActivities() 1135 final TaskRecord t = stack.finishTopCrashedActivityLocked(app, reason); in finishTopCrashedActivities() 1281 ArrayList<TaskRecord> tasks = stack.getAllTasks(); in getStackInfo() 1288 final TaskRecord task = tasks.get(i); in getStackInfo() 1576 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()
|
D | ActivityTaskManagerService.java | 120 import static com.android.server.wm.TaskRecord.LOCK_TASK_AUTH_DONT_LOCK; 121 import static com.android.server.wm.TaskRecord.REPARENT_KEEP_STACK_AT_FRONT; 122 import static com.android.server.wm.TaskRecord.REPARENT_LEAVE_STACK_IN_PLACE; 1555 final TaskRecord tr = r.getTaskRecord(); in finishActivity() 1639 final TaskRecord task = r.getTaskRecord(); in finishActivityAffinity() 1970 final TaskRecord task = r.getTaskRecord(); in convertToTranslucent() 2068 final TaskRecord task = mRootActivityContainer.anyTaskForId(taskId, in setFocusedTask() 2178 final TaskRecord task = mRootActivityContainer.anyTaskForId(taskId); in moveActivityTaskToBack() 2196 final TaskRecord task = mRootActivityContainer.anyTaskForId(taskId, in getTaskBounds() 2227 final TaskRecord tr = mRootActivityContainer.anyTaskForId(id, in getTaskDescription() [all …]
|