/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/ |
D | ShellTaskOrganizerTests.java | 196 RunningTaskInfo task1 = createTaskInfo(/* taskId= */ 1, WINDOWING_MODE_MULTI_WINDOW); in testRegisterWithExistingTasks() local 199 taskInfos.add(new TaskAppearedInfo(task1, new SurfaceControl())); in testRegisterWithExistingTasks() 210 assertTrue(listener.appeared.contains(task1)); in testRegisterWithExistingTasks() 292 RunningTaskInfo task1 = createTaskInfo(/* taskId= */ 1, WINDOWING_MODE_MULTI_WINDOW); in testAddListenerForTaskId_afterTypeListener() local 296 mOrganizer.onTaskAppeared(task1, /* leash= */ null); in testAddListenerForTaskId_afterTypeListener() 297 assertTrue(mwListener.appeared.contains(task1)); in testAddListenerForTaskId_afterTypeListener() 301 assertTrue(mwListener.vanished.contains(task1)); in testAddListenerForTaskId_afterTypeListener() 302 assertTrue(task1Listener.appeared.contains(task1)); in testAddListenerForTaskId_afterTypeListener() 307 RunningTaskInfo task1 = createTaskInfo(/* taskId= */ 1, WINDOWING_MODE_MULTI_WINDOW); in testAddListenerForTaskId_beforeTypeListener() local 310 mOrganizer.onTaskAppeared(task1, /* leash= */ null); in testAddListenerForTaskId_beforeTypeListener() [all …]
|
/frameworks/base/cmds/incident_helper/tests/ |
D | CpuInfoParser_test.cpp | 88 CpuInfoProto::Task* task1 = expected.add_tasks(); in TEST_F() local 89 task1->set_pid(29438); in TEST_F() 90 task1->set_tid(29438); in TEST_F() 91 task1->set_user("rootabcdefghij"); in TEST_F() 92 task1->set_pr("20"); in TEST_F() 93 task1->set_ni(0); in TEST_F() 94 task1->set_cpu(57.9); in TEST_F() 95 task1->set_s(CpuInfoProto::Task::STATUS_R); in TEST_F() 96 task1->set_virt("14M"); in TEST_F() 97 task1->set_res("3.8M"); in TEST_F() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | RecentTasksTest.java | 288 Task task1 = createTaskBuilder(".Task1") in testAddTasks_expectRemovedNoTrim() local 294 mRecentTasks.add(task1); in testAddTasks_expectRemovedNoTrim() 296 assertThat(mCallbacksRecorder.mAdded).contains(task1); in testAddTasks_expectRemovedNoTrim() 305 assertThat(mCallbacksRecorder.mRemoved).contains(task1); in testAddTasks_expectRemovedNoTrim() 312 Task task1 = createTaskBuilder(".Task1") in testAddMultipleTasks_expectNotRemoved() local 318 mRecentTasks.add(task1); in testAddMultipleTasks_expectNotRemoved() 320 assertThat(mCallbacksRecorder.mAdded).contains(task1); in testAddMultipleTasks_expectNotRemoved() 335 Task task1 = createTaskBuilder(".Task1") in testAddTasksDifferentStacks_expectNoRemove() local 341 mRecentTasks.add(task1); in testAddTasksDifferentStacks_expectNoRemove() 344 assertThat(mCallbacksRecorder.mAdded).contains(task1); in testAddTasksDifferentStacks_expectNoRemove() [all …]
|
D | WindowOrganizerTests.java | 798 Task task1 = mWm.mAtmService.mTaskOrganizerController.createRootTask( in testCreateDeleteRootTasks() local 800 RunningTaskInfo info1 = task1.getTaskInfo(); in testCreateDeleteRootTasks() 825 final Task task1 = mWm.mAtmService.mTaskOrganizerController.createRootTask( in testSetAdjacentLaunchRoot() local 827 final RunningTaskInfo info1 = task1.getTaskInfo(); in testSetAdjacentLaunchRoot() 835 assertEquals(task1.getAdjacentTaskFragment(), task2); in testSetAdjacentLaunchRoot() 836 assertEquals(task2.getAdjacentTaskFragment(), task1); in testSetAdjacentLaunchRoot() local 841 assertEquals(dc.getDefaultTaskDisplayArea().mLaunchAdjacentFlagRootTask, task1); in testSetAdjacentLaunchRoot() local 847 assertEquals(task1.getAdjacentTaskFragment(), null); in testSetAdjacentLaunchRoot() 876 Task task1 = WindowContainer.fromBinder(info1.token.asBinder()).asTask(); in testTileAddRemoveChild() local 877 Configuration c = new Configuration(task1.getRequestedOverrideConfiguration()); in testTileAddRemoveChild() [all …]
|
D | RootTaskTests.java | 112 final Task task1 = createTaskInRootTask(rootTask, 0 /* userId */); in testRootTaskPositionChildAt() local 116 rootTask.positionChildAt(WindowContainer.POSITION_TOP, task1, false /* includingParents */); in testRootTaskPositionChildAt() 118 assertEquals(rootTask.mChildren.get(1), task1); in testRootTaskPositionChildAt() 123 assertEquals(rootTask.mChildren.get(1), task1); in testRootTaskPositionChildAt() 129 assertEquals(rootTask.mChildren.get(0), task1); in testRootTaskPositionChildAt() 213 final Task task1 = createTaskInRootTask(rootTask1, 0 /* userId */); in testReparent() local 220 clearInvocations(task1); // reset the number of onDisplayChanged for task. in testReparent() 226 verify(task1, times(1)).onDisplayChanged(any()); in testReparent() 231 final Task task1 = new TaskBuilder(mSupervisor).build(); in testActivityAndTaskGetsProperType() local 235 task1.addChild(activity1, 0); in testActivityAndTaskGetsProperType() [all …]
|
D | TransitionTests.java | 1382 final Task task1 = createTask(mDisplayContent); in testIntermediateVisibility() local 1383 final ActivityRecord activity1 = createActivityRecord(task1); in testIntermediateVisibility() 1387 makeTaskOrganized(task1, task2); in testIntermediateVisibility() 1388 final ActivityRecord activity2 = createActivityRecord(task1); in testIntermediateVisibility() 1392 openTransition.collectExistenceChange(task1); in testIntermediateVisibility() 1410 closeTransition.collectExistenceChange(task1); in testIntermediateVisibility() 1505 final Task task1 = createTask(mDisplayContent); in testTransientLaunch() local 1506 final ActivityRecord activity1 = createActivityRecord(task1); in testTransientLaunch() 1510 makeTaskOrganized(task1, task2); in testTransientLaunch() 1515 openTransition.collectExistenceChange(task1); in testTransientLaunch() [all …]
|
D | InsetsPolicyTest.java | 87 final Task task1 = createTask(mDisplayContent); in testControlsForDispatch_adjacentTasksVisible() local 89 task1.setAdjacentTaskFragment(task2); in testControlsForDispatch_adjacentTasksVisible() 90 final WindowState win = createAppWindow(task1, WINDOWING_MODE_MULTI_WINDOW, "app"); in testControlsForDispatch_adjacentTasksVisible()
|
D | RootWindowContainerTests.java | 209 final Task task1 = new TaskBuilder(mSupervisor).setParentTask(rootTask).build(); in testTaskLayerRank() local 210 final ActivityRecord activity1 = new ActivityBuilder(mAtm).setTask(task1).build(); in testTaskLayerRank() 214 assertEquals(1, task1.mLayerRank); in testTaskLayerRank() 225 assertEquals(2, task1.mLayerRank); in testTaskLayerRank() 233 assertEquals(1, task1.mLayerRank); in testTaskLayerRank() 244 assertEquals(Task.LAYER_RANK_INVISIBLE, task1.mLayerRank); in testTaskLayerRank()
|
D | AppTransitionControllerTest.java | 613 final Task task1 = createTask(mDisplayContent); in testGetAnimationTargets_openingTheOnlyTaskFragmentInTask() local 614 final TaskFragment taskFragment1 = createTaskFragmentWithActivity(task1); in testGetAnimationTargets_openingTheOnlyTaskFragmentInTask() 630 assertEquals(new ArraySet<>(new WindowContainer[]{task1}), in testGetAnimationTargets_openingTheOnlyTaskFragmentInTask() 642 final Task task1 = createTask(mDisplayContent); in testGetAnimationTargets_closingTheOnlyTaskFragmentInTask() local 643 final TaskFragment taskFragment1 = createTaskFragmentWithActivity(task1); in testGetAnimationTargets_closingTheOnlyTaskFragmentInTask() 662 assertEquals(new ArraySet<>(new WindowContainer[]{task1}), in testGetAnimationTargets_closingTheOnlyTaskFragmentInTask()
|
D | ActivityTaskSupervisorTests.java | 323 final Task task1 = new TaskBuilder(mSupervisor) in testUpdatePendingTopForTopResumed() local 326 .setTask(task1).setUid(ActivityBuilder.DEFAULT_FAKE_UID + 1).build(); in testUpdatePendingTopForTopResumed()
|
D | TaskTests.java | 158 final Task task1 = new TaskBuilder(mSupervisor).setParentTask(rootTask).build(); in testRemoveContainer_multipleNestedTasks() local 160 final ActivityRecord activity1 = createActivityRecord(task1); in testRemoveContainer_multipleNestedTasks() 280 final Task task1 = createTask(mDisplayContent); in testIsInTask() local 282 final ActivityRecord activity1 = createActivityRecord(mDisplayContent, task1); in testIsInTask() 284 assertEquals(activity1, task1.isInTask(activity1)); in testIsInTask() 285 assertNull(task1.isInTask(activity2)); in testIsInTask() 1241 final Task task1 = getTestTask(); in testGetTaskForActivity() local 1242 final ActivityRecord activity1 = task1.getBottomMostActivity(); in testGetTaskForActivity() 1246 assertEquals(task1.mTaskId, in testGetTaskForActivity()
|
D | AppTransitionTests.java | 315 final Task task1 = createTaskInRootTask(rootTask1, 0 /* userId */); in testCleanAppTransitionWhenRootTaskReparent() local 317 task1.addChild(activity1, 0); in testCleanAppTransitionWhenRootTaskReparent()
|
D | DisplayContentTests.java | 2864 final Task task1 = new TaskBuilder(mSupervisor).setParentTask(rootTask1).build(); in removeRootTaskTests() local 2885 verify(mSupervisor).removeTask(eq(task1), anyBoolean(), anyBoolean(), any()); in removeRootTaskTests()
|
D | ActivityRecordTests.java | 1025 final Task task1 = new TaskBuilder(mSupervisor).setCreateActivity(true).build(); in testFinishActivityIfPossible_adjustStackOrder() local 1041 assertTrue(task1.isTopRootTaskInDisplayArea()); in testFinishActivityIfPossible_adjustStackOrder()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/desktopmode/ |
D | DesktopTasksControllerTest.kt | 273 val task1 = setUpFreeformTask() in <lambda>() constant 275 markTaskHidden(task1) in <lambda>() 284 wct.assertReorderAt(index = 1, task1) in <lambda>() 291 val task1 = setUpFreeformTask() in <lambda>() constant 293 markTaskHidden(task1) in <lambda>() 302 wct.assertReorderAt(index = 1, task1) in <lambda>() 310 val task1 = setUpFreeformTask() in <lambda>() constant 312 markTaskVisible(task1) in <lambda>() 321 wct.assertReorderAt(index = 1, task1) in <lambda>() 328 val task1 = setUpFreeformTask() in <lambda>() constant [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/recents/ |
D | GroupedRecentTaskInfoTest.kt | 159 val task1 = createTaskInfo(id = 1) in splitTasksGroupInfo() constant 162 return GroupedRecentTaskInfo.forSplitTasks(task1, task2, splitBounds) in splitTasksGroupInfo() 166 val task1 = createTaskInfo(id = 1) in freeformTasksGroupInfo() constant 169 return GroupedRecentTaskInfo.forFreeformTasks(task1, task2, task3) in freeformTasksGroupInfo()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/appselector/data/ |
D | RecentTaskListProvider.kt | 67 val task1 = in loadRecentTasks() constant 85 listOfNotNull(task1, task2) in loadRecentTasks()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/split/ |
D | SplitLayoutTests.java | 175 final ActivityManager.RunningTaskInfo task1 = new TestRunningTaskInfoBuilder().build(); in testApplyTaskChanges_updatesSmallestScreenWidthDp() local 177 mSplitLayout.applyTaskChanges(mWct, task1, task2); in testApplyTaskChanges_updatesSmallestScreenWidthDp() 179 verify(mWct).setSmallestScreenWidthDp(eq(task1.token), anyInt()); in testApplyTaskChanges_updatesSmallestScreenWidthDp()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/util/ |
D | GroupedRecentTaskInfo.java | 66 public static GroupedRecentTaskInfo forSplitTasks(@NonNull ActivityManager.RecentTaskInfo task1, in forSplitTasks() argument 68 return new GroupedRecentTaskInfo(new ActivityManager.RecentTaskInfo[]{task1, task2}, in forSplitTasks()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/job/ |
D | JobStoreTest.java | 136 final JobInfo task1 = new Builder(8, mComponent) in runRemovingLastJob() local 151 final JobStatus JobStatus1 = JobStatus.createFromJobInfo(task1, uid1, null, -1, null, null); in runRemovingLastJob() 189 final JobInfo task1 = new Builder(8, mComponent) in runClearJobs() local 204 final JobStatus JobStatus1 = JobStatus.createFromJobInfo(task1, uid1, null, -1, null, null); in runClearJobs() 219 final JobInfo task1 = new Builder(8, mComponent) in testSkipExtraFiles() local 234 final JobStatus JobStatus1 = JobStatus.createFromJobInfo(task1, uid1, null, -1, null, null); in testSkipExtraFiles() 373 final JobInfo task1 = new Builder(8, mComponent) in runWritingTwoJobsToDisk() local 389 JobStatus.createFromJobInfo(task1, uid1, null, -1, null, null); in runWritingTwoJobsToDisk()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/ |
D | SplitLayout.java | 818 ActivityManager.RunningTaskInfo task1, ActivityManager.RunningTaskInfo task2) { in applyTaskChanges() argument 820 if (!mBounds1.equals(mWinBounds1) || !task1.token.equals(mWinToken1)) { in applyTaskChanges() 821 setTaskBounds(wct, task1, mBounds1); in applyTaskChanges() 823 mWinToken1 = task1.token; in applyTaskChanges()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/transition/ |
D | ShellTransitionTests.java | 1202 RunningTaskInfo task1 = createTaskInfo(1, WINDOWING_MODE_FULLSCREEN, ACTIVITY_TYPE_RECENTS); in testTransitSleep_squashesRecents() local 1209 .addChange(TRANSIT_OPEN, task1) in testTransitSleep_squashesRecents() 1213 TRANSIT_OPEN, task1 /* trigger */, null /* remote */)); in testTransitSleep_squashesRecents() 1233 .addChange(TRANSIT_TO_FRONT, task1) in testTransitSleep_squashesRecents() 1243 .addChange(TRANSIT_TO_BACK, task1) in testTransitSleep_squashesRecents()
|