Home
last modified time | relevance | path

Searched refs:task2 (Results 1 – 7 of 7) 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/services/tests/servicestests/src/com/android/server/wm/
DTaskStackTests.java50 final Task task2 = createTaskInStack(stack, 1 /* userId */); in testStackPositionChildAt() local
54 assertEquals(stack.mChildren.get(0), task2); in testStackPositionChildAt()
58 stack.positionChildAt(WindowContainer.POSITION_TOP, task2, false /* includingParents */); in testStackPositionChildAt()
59 assertEquals(stack.mChildren.get(0), task2); in testStackPositionChildAt()
72 final Task task2 = createTaskInStack(stack, 1 /* userId */); in testClosingAppDifferentStackOrientation() local
75 task2.addChild(appWindowToken2, 0); in testClosingAppDifferentStackOrientation()
92 final Task task2 = createTaskInStack(stack, 1 /* userId */); in testMoveTaskToBackDifferentStackOrientation() local
95 task2.addChild(appWindowToken2, 0); in testMoveTaskToBackDifferentStackOrientation()
99 task2.setSendingToBottom(true); in testMoveTaskToBackDifferentStackOrientation()
DTaskWindowContainerControllerTests.java134 final WindowTestUtils.TestTask task2 = in testReparent_BetweenDisplays() local
141 assertEquals(1, task2.positionInParent()); in testReparent_BetweenDisplays()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DRecentTasksTest.java269 TaskRecord task2 = createTaskBuilder(".Task1") in testAddTasksMultipleTasks_expectRemovedNoTrim() local
278 mRecentTasks.add(task2); in testAddTasksMultipleTasks_expectRemovedNoTrim()
280 assertTrue(mCallbacksRecorder.added.contains(task2)); in testAddTasksMultipleTasks_expectRemovedNoTrim()
293 TaskRecord task2 = createTaskBuilder(".Task1") in testAddTasksDifferentStacks_expectNoRemove() local
297 mRecentTasks.add(task2); in testAddTasksDifferentStacks_expectNoRemove()
300 assertTrue(mCallbacksRecorder.added.contains(task2)); in testAddTasksDifferentStacks_expectNoRemove()
320 TaskRecord task2 = createTaskBuilder(".Task1") in testAddTaskCompatibleActivityType_expectRemove() local
324 assertTrue(task2.getActivityType() == ACTIVITY_TYPE_STANDARD); in testAddTaskCompatibleActivityType_expectRemove()
325 mRecentTasks.add(task2); in testAddTaskCompatibleActivityType_expectRemove()
327 assertTrue(mCallbacksRecorder.added.contains(task2)); in testAddTaskCompatibleActivityType_expectRemove()
[all …]
DActivityStarterTests.java130 final TaskRecord task2 = new TaskBuilder(mService.mStackSupervisor) in testUpdateLaunchBounds() local
134 assertTrue(task2.getStack() instanceof PinnedActivityStack); in testUpdateLaunchBounds()
135 mStarter.updateBounds(task2, bounds); in testUpdateLaunchBounds()
137 verify(mService, times(1)).resizeStack(eq(task2.getStack().mStackId), in testUpdateLaunchBounds()
142 assertEquals(task2.getStack().getOverrideBounds(), bounds); in testUpdateLaunchBounds()
143 assertEquals(task2.getOverrideBounds(), bounds); in testUpdateLaunchBounds()
145 assertEquals(task2.getOverrideBounds(), new Rect()); in testUpdateLaunchBounds()
DActivityRecordTests.java228 TaskRecord task2 = new TaskBuilder(mService.mStackSupervisor).setStack(mStack).build(); in testsApplyOptionsLocked() local
229 activity2 = new ActivityBuilder(mService).setTask(task2).build(); in testsApplyOptionsLocked()
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DJobStoreTest.java151 final JobInfo task2 = new Builder(12, mComponent) in testWritingTwoFilesToDisk() local
159 final JobStatus taskStatus2 = JobStatus.createFromJobInfo(task2, SOME_UID, null, -1, null); in testWritingTwoFilesToDisk()
179 assertTasksEqual(task2, loaded2.getJob()); in testWritingTwoFilesToDisk()