Home
last modified time | relevance | path

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

/frameworks/base/cmds/incident_helper/tests/
DCpuInfoParser_test.cpp102 CpuInfoProto::Task* task2 = expected.add_tasks(); in TEST_F() local
103 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()
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/
DShellTaskOrganizerTests.java197 RunningTaskInfo task2 = createTaskInfo(/* taskId= */ 2, WINDOWING_MODE_MULTI_WINDOW); in testRegisterWithExistingTasks() local
200 taskInfos.add(new TaskAppearedInfo(task2, new SurfaceControl())); in testRegisterWithExistingTasks()
211 assertTrue(listener.appeared.contains(task2)); in testRegisterWithExistingTasks()
355 RunningTaskInfo task2 = createTaskInfo(1, WINDOWING_MODE_MULTI_WINDOW); in testGetParentTaskListener() local
356 task2.parentTaskId = task1.taskId; in testGetParentTaskListener()
358 mOrganizer.onTaskAppeared(task2, /* leash= */ null); in testGetParentTaskListener()
360 assertTrue(mwListener.appeared.contains(task2)); in testGetParentTaskListener()
525 RunningTaskInfo task2 = createTaskInfo(/* taskId= */ 2, WINDOWING_MODE_FULLSCREEN); in testAddLocusListener() local
526 task2.isVisible = true; in testAddLocusListener()
527 task2.mTopActivityLocusId = new LocusId("20"); in testAddLocusListener()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DRecentTasksTest.java291 Task task2 = createTaskBuilder(".Task1") in testAddTasks_expectRemovedNoTrim() local
300 mRecentTasks.add(task2); in testAddTasks_expectRemovedNoTrim()
302 assertThat(mCallbacksRecorder.mAdded).contains(task2); in testAddTasks_expectRemovedNoTrim()
315 Task task2 = createTaskBuilder(".Task1") in testAddMultipleTasks_expectNotRemoved() local
324 mRecentTasks.add(task2); in testAddMultipleTasks_expectNotRemoved()
326 assertThat(mCallbacksRecorder.mAdded).contains(task2); in testAddMultipleTasks_expectNotRemoved()
338 Task task2 = createTaskBuilder(".Task1") in testAddTasksDifferentStacks_expectNoRemove() local
342 mRecentTasks.add(task2); in testAddTasksDifferentStacks_expectNoRemove()
345 assertThat(mCallbacksRecorder.mAdded).contains(task2); in testAddTasksDifferentStacks_expectNoRemove()
364 Task task2 = createTaskBuilder(".Task1") in testAddTaskCompatibleActivityType_expectRemove() local
[all …]
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
805 Task task2 = mWm.mAtmService.mTaskOrganizerController.createRootTask( in testCreateDeleteRootTasks() local
807 RunningTaskInfo info2 = task2.getTaskInfo(); in testCreateDeleteRootTasks()
828 final Task task2 = mWm.mAtmService.mTaskOrganizerController.createRootTask( in testSetAdjacentLaunchRoot() local
830 final RunningTaskInfo info2 = task2.getTaskInfo(); in testSetAdjacentLaunchRoot()
[all …]
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()
DRootWindowContainerTests.java218 final Task task2 = new TaskBuilder(mSupervisor).build(); in testTaskLayerRank() local
219 final ActivityRecord activity2 = new ActivityBuilder(mAtm).setTask(task2).build(); in testTaskLayerRank()
227 assertEquals(1, task2.mLayerRank); in testTaskLayerRank()
229 task2.moveToBack("test", null /* task */); in testTaskLayerRank()
234 assertEquals(2, task2.mLayerRank); in testTaskLayerRank()
245 assertEquals(Task.LAYER_RANK_INVISIBLE, task2.mLayerRank); in testTaskLayerRank()
DTaskTests.java159 final Task task2 = new TaskBuilder(mSupervisor).setParentTask(rootTask).build(); in testRemoveContainer_multipleNestedTasks() local
161 final ActivityRecord activity2 = createActivityRecord(task2); in testRemoveContainer_multipleNestedTasks()
201 final Task task2 = createTaskInRootTask(taskController2, 0 /* userId */); in testReparent() local
222 assertEquals(1, task2.getParent().mChildren.indexOf(task2)); in testReparent()
256 final Task task2 = createTaskInRootTask(rootTask2, 0 /* userId */); in testReparent_BetweenDisplays() local
262 assertEquals(1, task2.getParent().mChildren.indexOf(task2)); in testReparent_BetweenDisplays()
281 final Task task2 = createTask(mDisplayContent); in testIsInTask() local
283 final ActivityRecord activity2 = createActivityRecord(mDisplayContent, task2); in testIsInTask()
DInsetsPolicyTest.java88 final Task task2 = createTask(mDisplayContent); in testControlsForDispatch_adjacentTasksVisible() local
89 task1.setAdjacentTaskFragment(task2); in testControlsForDispatch_adjacentTasksVisible()
DTransitionTests.java1386 final Task task2 = createTask(mDisplayContent); in testIntermediateVisibility() local
1387 makeTaskOrganized(task1, task2); in testIntermediateVisibility()
1394 openTransition.collectExistenceChange(task2); in testIntermediateVisibility()
1412 closeTransition.collectExistenceChange(task2); in testIntermediateVisibility()
1509 final Task task2 = createTask(mDisplayContent); in testTransientLaunch() local
1510 makeTaskOrganized(task1, task2); in testTransientLaunch()
1511 final ActivityRecord activity2 = createActivityRecord(task2); in testTransientLaunch()
1517 openTransition.collectExistenceChange(task2); in testTransientLaunch()
1530 verify(taskSnapshotController, times(1)).recordSnapshot(eq(task2)); in testTransientLaunch()
1538 closeTransition.collectExistenceChange(task2); in testTransientLaunch()
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()
DDisplayContentTests.java1664 final Task task2 = new TaskBuilder(mSupervisor).setDisplay(mDisplayContent).build(); in testApplyTopFixedRotationTransform() local
1665 final ActivityRecord app2 = new ActivityBuilder(mAtm).setTask(task2) in testApplyTopFixedRotationTransform()
2865 final Task task2 = new TaskBuilder(mSupervisor).setParentTask(rootTask2).build(); in removeRootTaskTests() local
2879 }).when(mSupervisor).removeTask(eq(task2), anyBoolean(), anyBoolean(), any()); in removeRootTaskTests()
2884 verify(mSupervisor).removeTask(eq(task2), anyBoolean(), anyBoolean(), any()); in removeRootTaskTests()
DActivityStarterTests.java970 Task task2 = reusableActivity.getTask(); in testWasVisibleInRestartAttempt() local
972 task2.getTopNonFinishingActivity(), START_TASK_TO_FRONT, task.getRootTask()); in testWasVisibleInRestartAttempt()
DActivityRecordTests.java1032 final Task task2 = new TaskBuilder(mSupervisor).setCreateActivity(true).build(); in testFinishActivityIfPossible_adjustStackOrder() local
1033 task2.moveToBack("test", task2.getBottomMostTask()); in testFinishActivityIfPossible_adjustStackOrder()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/recents/
DGroupedRecentTaskInfoTest.kt160 val task2 = createTaskInfo(id = 2) in splitTasksGroupInfo() constant
162 return GroupedRecentTaskInfo.forSplitTasks(task1, task2, splitBounds) in splitTasksGroupInfo()
167 val task2 = createTaskInfo(id = 2) in freeformTasksGroupInfo() constant
169 return GroupedRecentTaskInfo.forFreeformTasks(task1, task2, task3) in freeformTasksGroupInfo()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/desktopmode/
DDesktopTasksControllerTest.kt274 val task2 = setUpFreeformTask() in <lambda>() constant
276 markTaskHidden(task2) in <lambda>()
285 wct.assertReorderAt(index = 2, task2) in <lambda>()
292 val task2 = setUpFreeformTask() in <lambda>() constant
294 markTaskHidden(task2) in <lambda>()
303 wct.assertReorderAt(index = 2, task2) in <lambda>()
311 val task2 = setUpFreeformTask() in <lambda>() constant
313 markTaskVisible(task2) in <lambda>()
322 wct.assertReorderAt(index = 2, task2) in <lambda>()
329 val task2 = setUpFreeformTask() in <lambda>() constant
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/appselector/data/
DRecentTaskListProvider.kt75 val task2 = in loadRecentTasks() constant
85 listOfNotNull(task1, task2) in loadRecentTasks()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/split/
DSplitLayoutTests.java176 final ActivityManager.RunningTaskInfo task2 = new TestRunningTaskInfoBuilder().build(); in testApplyTaskChanges_updatesSmallestScreenWidthDp() local
177 mSplitLayout.applyTaskChanges(mWct, task1, task2); in testApplyTaskChanges_updatesSmallestScreenWidthDp()
180 verify(mWct).setSmallestScreenWidthDp(eq(task2.token), anyInt()); in testApplyTaskChanges_updatesSmallestScreenWidthDp()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/util/
DGroupedRecentTaskInfo.java67 @NonNull ActivityManager.RecentTaskInfo task2, @Nullable SplitBounds splitBounds) { in forSplitTasks() argument
68 return new GroupedRecentTaskInfo(new ActivityManager.RecentTaskInfo[]{task1, task2}, in forSplitTasks()
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DJobStoreTest.java142 final JobInfo task2 = new Builder(12, mComponent) in runRemovingLastJob() local
152 final JobStatus JobStatus2 = JobStatus.createFromJobInfo(task2, uid2, null, -1, null, null); in runRemovingLastJob()
195 final JobInfo task2 = new Builder(12, mComponent) in runClearJobs() local
205 final JobStatus JobStatus2 = JobStatus.createFromJobInfo(task2, uid2, null, -1, null, null); in runClearJobs()
225 final JobInfo task2 = new Builder(12, mComponent) in testSkipExtraFiles() local
235 final JobStatus JobStatus2 = JobStatus.createFromJobInfo(task2, uid2, null, -1, null, null); in testSkipExtraFiles()
379 final JobInfo task2 = new Builder(12, mComponent) in runWritingTwoJobsToDisk() local
391 JobStatus.createFromJobInfo(task2, uid2, null, -1, null, null); in runWritingTwoJobsToDisk()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/
DSplitLayout.java818 ActivityManager.RunningTaskInfo task1, ActivityManager.RunningTaskInfo task2) { in applyTaskChanges() argument
826 if (!mBounds2.equals(mWinBounds2) || !task2.token.equals(mWinToken2)) { in applyTaskChanges()
827 setTaskBounds(wct, task2, mBounds2); in applyTaskChanges()
829 mWinToken2 = task2.token; in applyTaskChanges()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/transition/
DShellTransitionTests.java1203 RunningTaskInfo task2 = createTaskInfo(2); in testTransitSleep_squashesRecents() local
1234 .addChange(TRANSIT_CLOSE, task2) in testTransitSleep_squashesRecents()
1242 .addChange(TRANSIT_OPEN, task2) in testTransitSleep_squashesRecents()
1247 TRANSIT_OPEN, task2 /* trigger */, null /* remote */)); in testTransitSleep_squashesRecents()