Home
last modified time | relevance | path

Searched refs:task2 (Results 1 – 21 of 21) sorted by relevance

/aosp14/frameworks/base/cmds/incident_helper/tests/
H A DCpuInfoParser_test.cpp103 task2->set_pid(916); in TEST_F()
104 task2->set_tid(916); in TEST_F()
105 task2->set_user("system"); in TEST_F()
106 task2->set_pr("18"); in TEST_F()
107 task2->set_ni(-2); in TEST_F()
108 task2->set_cpu(1.4); in TEST_F()
109 task2->set_s(CpuInfoProto::Task::STATUS_S); in TEST_F()
110 task2->set_virt("4.6G"); in TEST_F()
111 task2->set_res("404M"); in TEST_F()
113 task2->set_cmd("system_server"); in TEST_F()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/desktopmode/
H A DDesktopModeControllerTest.java295 final RunningTaskInfo task2 = createFreeformTask(); in testShowDesktopApps_appsAlreadyVisible_bringsToFront() local
297 mDesktopModeTaskRepository.addOrMoveFreeformTaskToTop(task2.taskId); in testShowDesktopApps_appsAlreadyVisible_bringsToFront()
300 when(mShellTaskOrganizer.getRunningTaskInfo(task2.taskId)).thenReturn(task2); in testShowDesktopApps_appsAlreadyVisible_bringsToFront()
315 assertThat(op2.getContainer()).isEqualTo(task2.token.asBinder()); in testShowDesktopApps_appsAlreadyVisible_bringsToFront()
326 final RunningTaskInfo task2 = createFreeformTask(); in testShowDesktopApps_someAppsInvisible_reordersAll() local
328 mDesktopModeTaskRepository.addOrMoveFreeformTaskToTop(task2.taskId); in testShowDesktopApps_someAppsInvisible_reordersAll()
331 when(mShellTaskOrganizer.getRunningTaskInfo(task2.taskId)).thenReturn(task2); in testShowDesktopApps_someAppsInvisible_reordersAll()
343 assertThat(op2.getContainer()).isEqualTo(task2.token.asBinder()); in testShowDesktopApps_someAppsInvisible_reordersAll()
385 RunningTaskInfo task2 = createFreeformTask(); in testGetVisibleTaskCount_twoTasks_bothVisible_returnsTwo() local
387 mDesktopModeTaskRepository.addOrMoveFreeformTaskToTop(task2.taskId); in testGetVisibleTaskCount_twoTasks_bothVisible_returnsTwo()
[all …]
H A DDesktopTasksControllerTest.kt169 val task2 = setUpFreeformTask() regex
171 markTaskHidden(task2)
180 wct.assertReorderAt(index = 2, task2)
187 val task2 = setUpFreeformTask() regex
189 markTaskVisible(task2)
198 wct.assertReorderAt(index = 2, task2)
205 val task2 = setUpFreeformTask() regex
207 markTaskVisible(task2)
216 wct.assertReorderAt(index = 2, task2)
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DRecentTasksTest.java298 mRecentTasks.add(task2); in testAddTasks_expectRemovedNoTrim()
322 mRecentTasks.add(task2); in testAddMultipleTasks_expectNotRemoved()
340 mRecentTasks.add(task2); in testAddTasksDifferentStacks_expectNoRemove()
366 mRecentTasks.add(task2); in testAddTaskCompatibleActivityType_expectRemove()
392 mRecentTasks.add(task2); in testAddTaskCompatibleActivityTypeDifferentUser_expectNoRemove()
413 mRecentTasks.add(task2); in testAddTaskCompatibleWindowingMode_expectRemove()
436 mRecentTasks.add(task2); in testAddTaskIncompatibleWindowingMode_expectNoRemove()
458 mRecentTasks.add(task2); in testRemoveAffinityTask()
498 mRecentTasks.add(task2); in testAddTasksHomeClearUntrackedTasks_expectFinish()
577 mRecentTasks.add(task2); in testOrderedIteration()
[all …]
H A DWindowOrganizerTests.java310 final Task task2 = createTask(rootTask2); in testUnregisterOrganizerReturnsRegistrationToPrevious() local
354 final Task task2 = createTask(rootTask2); in testUnregisterOrganizer_removesTasksCreatedByIt() local
396 assertFalse(task2.isAttached()); in testUnregisterOrganizer_removesTasksCreatedByIt()
407 final Task task2 = createTask(rootTask2); in testOrganizerDeathReturnsRegistrationToPrevious() local
452 final Task task2 = createTask(rootTask2); in testRegisterTaskOrganizerWithExistingTasks() local
468 final Task task2 = createTask(rootTask2); in testRegisterTaskOrganizerWithExistingTasks_noSurfaceControl() local
702 RunningTaskInfo info2 = task2.getTaskInfo(); in testCreateDeleteRootTasks()
725 final RunningTaskInfo info2 = task2.getTaskInfo(); in testSetAdjacentLaunchRoot()
911 RunningTaskInfo info2 = task2.getTaskInfo(); in testHierarchyTransaction()
1180 final Task task2 = createTask(rootTask2); in testInterceptBackPressedOnTaskRoot() local
[all …]
H A DTaskTests.java154 final Task task2 = new TaskBuilder(mSupervisor).setParentTask(rootTask).build(); in testRemoveContainer_multipleNestedTasks() local
156 final ActivityRecord activity2 = createActivityRecord(task2); in testRemoveContainer_multipleNestedTasks()
196 final Task task2 = createTaskInRootTask(taskController2, 0 /* userId */); in testReparent() local
217 assertEquals(1, task2.getParent().mChildren.indexOf(task2)); in testReparent()
230 final Task task2 = createTaskInRootTask(rootTask2, 0 /* userId */); in testReparent_BetweenDisplays() local
236 assertEquals(1, task2.getParent().mChildren.indexOf(task2)); in testReparent_BetweenDisplays()
255 final Task task2 = createTask(mDisplayContent); in testIsInTask() local
257 final ActivityRecord activity2 = createActivityRecord(mDisplayContent, task2); in testIsInTask()
H A DRootTaskTests.java113 final Task task2 = createTaskInRootTask(rootTask, 1 /* userId */); in testRootTaskPositionChildAt() local
117 assertEquals(rootTask.mChildren.get(0), task2); in testRootTaskPositionChildAt()
121 rootTask.positionChildAt(WindowContainer.POSITION_TOP, task2, false /* includingParents */); in testRootTaskPositionChildAt()
122 assertEquals(rootTask.mChildren.get(0), task2); in testRootTaskPositionChildAt()
126 createTaskInRootTask(task2, 0 /* userId */); in testRootTaskPositionChildAt()
127 createTaskInRootTask(task2, 1 /* userId */); in testRootTaskPositionChildAt()
128 rootTask.positionChildAt(WindowContainer.POSITION_TOP, task2, false /* includingParents */); in testRootTaskPositionChildAt()
130 assertEquals(rootTask.mChildren.get(1), task2); in testRootTaskPositionChildAt()
H A DRootWindowContainerTests.java184 final Task task2 = new TaskBuilder(mSupervisor).build(); in testTaskLayerRank() local
185 final ActivityRecord activity2 = new ActivityBuilder(mAtm).setTask(task2).build(); in testTaskLayerRank()
193 assertEquals(1, task2.mLayerRank); in testTaskLayerRank()
195 task2.moveToBack("test", null /* task */); in testTaskLayerRank()
200 assertEquals(2, task2.mLayerRank); in testTaskLayerRank()
211 assertEquals(Task.LAYER_RANK_INVISIBLE, task2.mLayerRank); in testTaskLayerRank()
H A DInsetsPolicyTest.java85 final Task task2 = createTask(mDisplayContent); in testControlsForDispatch_adjacentTasksVisible() local
86 task1.setAdjacentTaskFragment(task2); in testControlsForDispatch_adjacentTasksVisible()
H A DTransitionTests.java1324 final Task task2 = createTask(mDisplayContent); in testIntermediateVisibility() local
1325 makeTaskOrganized(task1, task2); in testIntermediateVisibility()
1332 openTransition.collectExistenceChange(task2); in testIntermediateVisibility()
1350 closeTransition.collectExistenceChange(task2); in testIntermediateVisibility()
1419 final Task task2 = createTask(mDisplayContent); in testTransientLaunch() local
1420 makeTaskOrganized(task1, task2); in testTransientLaunch()
1421 final ActivityRecord activity2 = createActivityRecord(task2); in testTransientLaunch()
1427 openTransition.collectExistenceChange(task2); in testTransientLaunch()
1439 verify(taskSnapshotController, times(1)).recordSnapshot(eq(task2), eq(false)); in testTransientLaunch()
1446 closeTransition.collectExistenceChange(task2); in testTransientLaunch()
H A DAppTransitionControllerTest.java675 final Task task2 = createTask(mDisplayContent); in testGetAnimationTargets_embeddedTask() local
676 task2.mRemoveWithTaskOrganizer = true; in testGetAnimationTargets_embeddedTask()
677 final ActivityRecord activity2 = createActivityRecord(task2); in testGetAnimationTargets_embeddedTask()
H A DDisplayContentTests.java1655 final Task task2 = new TaskBuilder(mSupervisor).setDisplay(mDisplayContent).build(); in testApplyTopFixedRotationTransform() local
1656 final ActivityRecord app2 = new ActivityBuilder(mAtm).setTask(task2) in testApplyTopFixedRotationTransform()
2906 final Task task2 = new TaskBuilder(mSupervisor).setParentTask(rootTask2).build(); in removeRootTaskTests() local
2920 }).when(mSupervisor).removeTask(eq(task2), anyBoolean(), anyBoolean(), any()); in removeRootTaskTests()
2925 verify(mSupervisor).removeTask(eq(task2), anyBoolean(), anyBoolean(), any()); in removeRootTaskTests()
H A DActivityStarterTests.java1270 Task task2 = reusableActivity.getTask(); in testWasVisibleInRestartAttempt() local
1272 task2.getTopNonFinishingActivity(), START_TASK_TO_FRONT, task.getRootTask()); in testWasVisibleInRestartAttempt()
H A DActivityRecordTests.java1021 final Task task2 = new TaskBuilder(mSupervisor).setCreateActivity(true).build(); in testFinishActivityIfPossible_adjustStackOrder() local
1022 task2.moveToBack("test", task2.getBottomMostTask()); in testFinishActivityIfPossible_adjustStackOrder()
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/
H A DShellTaskOrganizerTests.java189 RunningTaskInfo task2 = createTaskInfo(2, WINDOWING_MODE_MULTI_WINDOW); in testRegisterWithExistingTasks() local
192 taskInfos.add(new TaskAppearedInfo(task2, new SurfaceControl())); in testRegisterWithExistingTasks()
203 assertTrue(listener.appeared.contains(task2)); in testRegisterWithExistingTasks()
348 task2.parentTaskId = task1.taskId; in testGetParentTaskListener()
350 mOrganizer.onTaskAppeared(task2, null); in testGetParentTaskListener()
352 assertTrue(mwListener.appeared.contains(task2)); in testGetParentTaskListener()
508 RunningTaskInfo task2 = createTaskInfo(2, WINDOWING_MODE_FULLSCREEN); in testAddLocusListener() local
509 task2.isVisible = true; in testAddLocusListener()
510 task2.mTopActivityLocusId = new LocusId("20"); in testAddLocusListener()
516 mOrganizer.onTaskAppeared(task2, null); in testAddLocusListener()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/recents/
H A DGroupedRecentTaskInfoTest.kt158 val task2 = createTaskInfo(id = 2) regex
160 return GroupedRecentTaskInfo.forSplitTasks(task1, task2, splitBounds)
165 val task2 = createTaskInfo(id = 2) regex
167 return GroupedRecentTaskInfo.forFreeformTasks(task1, task2, task3)
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/split/
H A DSplitLayoutTests.java171 final ActivityManager.RunningTaskInfo task2 = new TestRunningTaskInfoBuilder().build(); in testApplyTaskChanges_updatesSmallestScreenWidthDp() local
172 mSplitLayout.applyTaskChanges(mWct, task1, task2); in testApplyTaskChanges_updatesSmallestScreenWidthDp()
175 verify(mWct).setSmallestScreenWidthDp(eq(task2.token), anyInt()); in testApplyTaskChanges_updatesSmallestScreenWidthDp()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/util/
H A DGroupedRecentTaskInfo.java67 @NonNull ActivityManager.RecentTaskInfo task2, @Nullable SplitBounds splitBounds) { in forSplitTasks() argument
68 return new GroupedRecentTaskInfo(new ActivityManager.RecentTaskInfo[]{task1, task2}, in forSplitTasks()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/job/
H A DJobStoreTest.java138 final JobInfo task2 = new Builder(12, mComponent) in runRemovingLastJob() local
148 final JobStatus JobStatus2 = JobStatus.createFromJobInfo(task2, uid2, null, -1, null, null); in runRemovingLastJob()
191 final JobInfo task2 = new Builder(12, mComponent) in runClearJobs() local
201 final JobStatus JobStatus2 = JobStatus.createFromJobInfo(task2, uid2, null, -1, null, null); in runClearJobs()
339 final JobInfo task2 = new Builder(12, mComponent) in runWritingTwoJobsToDisk() local
351 JobStatus.createFromJobInfo(task2, uid2, null, -1, null, null); in runWritingTwoJobsToDisk()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/
H A DSplitLayout.java777 ActivityManager.RunningTaskInfo task1, ActivityManager.RunningTaskInfo task2) { in applyTaskChanges() argument
785 if (!mBounds2.equals(mWinBounds2) || !task2.token.equals(mWinToken2)) { in applyTaskChanges()
786 setTaskBounds(wct, task2, mBounds2); in applyTaskChanges()
788 mWinToken2 = task2.token; in applyTaskChanges()
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/transition/
H A DShellTransitionTests.java1072 RunningTaskInfo task2 = createTaskInfo(2); in testTransitSleep_squashesRecents() local
1103 .addChange(TRANSIT_CLOSE, task2) in testTransitSleep_squashesRecents()
1111 .addChange(TRANSIT_OPEN, task2) in testTransitSleep_squashesRecents()
1116 TRANSIT_OPEN, task2 /* trigger */, null /* remote */)); in testTransitSleep_squashesRecents()