Searched refs:task2 (Results 1 – 8 of 8) sorted by relevance
/frameworks/base/cmds/incident_helper/tests/ |
D | CpuInfoParser_test.cpp | 102 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/wmtests/src/com/android/server/wm/ |
D | TaskStackTests.java | 52 final Task task2 = createTaskInStack(stack, 1 /* userId */); in testStackPositionChildAt() local 56 assertEquals(stack.mChildren.get(0), task2); in testStackPositionChildAt() 60 stack.positionChildAt(WindowContainer.POSITION_TOP, task2, false /* includingParents */); in testStackPositionChildAt() 61 assertEquals(stack.mChildren.get(0), task2); in testStackPositionChildAt() 74 final Task task2 = createTaskInStack(stack, 1 /* userId */); in testClosingAppDifferentStackOrientation() local 77 task2.addChild(appWindowToken2, 0); in testClosingAppDifferentStackOrientation() 94 final Task task2 = createTaskInStack(stack, 1 /* userId */); in testMoveTaskToBackDifferentStackOrientation() local 97 task2.addChild(appWindowToken2, 0); in testMoveTaskToBackDifferentStackOrientation() 101 task2.setSendingToBottom(true); in testMoveTaskToBackDifferentStackOrientation()
|
D | RecentTasksTest.java | 236 TaskRecord task2 = createTaskBuilder(".Task1") in testAddTasksMultipleTasks_expectRemovedNoTrim() local 245 mRecentTasks.add(task2); in testAddTasksMultipleTasks_expectRemovedNoTrim() 247 assertThat(mCallbacksRecorder.mAdded).contains(task2); in testAddTasksMultipleTasks_expectRemovedNoTrim() 260 TaskRecord task2 = createTaskBuilder(".Task1") in testAddTasksDifferentStacks_expectNoRemove() local 264 mRecentTasks.add(task2); in testAddTasksDifferentStacks_expectNoRemove() 267 assertThat(mCallbacksRecorder.mAdded).contains(task2); in testAddTasksDifferentStacks_expectNoRemove() 285 TaskRecord task2 = createTaskBuilder(".Task1") in testAddTaskCompatibleActivityType_expectRemove() local 289 assertEquals(ACTIVITY_TYPE_STANDARD, task2.getActivityType()); in testAddTaskCompatibleActivityType_expectRemove() 290 mRecentTasks.add(task2); in testAddTaskCompatibleActivityType_expectRemove() 292 assertThat(mCallbacksRecorder.mAdded).contains(task2); in testAddTaskCompatibleActivityType_expectRemove() [all …]
|
D | TaskTests.java | 84 final WindowTestUtils.TestTask task2 = WindowTestUtils.createTestTask(stackController2); in testReparent() local 106 assertEquals(1, task2.positionInParent()); in testReparent() 120 final WindowTestUtils.TestTask task2 = WindowTestUtils.createTestTask(stack2); in testReparent_BetweenDisplays() local 125 assertEquals(1, task2.positionInParent()); in testReparent_BetweenDisplays()
|
D | ActivityStarterTests.java | 140 final TaskRecord task2 = new TaskBuilder(mService.mStackSupervisor) in testUpdateLaunchBounds() local 144 assertThat((Object) task2.getStack()).isInstanceOf(ActivityStack.class); in testUpdateLaunchBounds() 145 mStarter.updateBounds(task2, bounds); in testUpdateLaunchBounds() 147 verify(mService, times(1)).resizeStack(eq(task2.getStack().mStackId), in testUpdateLaunchBounds() 152 assertEquals(bounds, task2.getStack().getRequestedOverrideBounds()); in testUpdateLaunchBounds() 153 assertEquals(bounds, task2.getRequestedOverrideBounds()); in testUpdateLaunchBounds() 155 assertEquals(new Rect(), task2.getRequestedOverrideBounds()); in testUpdateLaunchBounds()
|
D | ActivityDisplayTests.java | 309 final TaskRecord task2 = new TaskBuilder(mService.mStackSupervisor).setStack( in removeStackTests() local 327 }).when(mSupervisor).removeTaskByIdLocked(eq(task2.taskId), anyBoolean(), anyBoolean(), in removeStackTests() 335 verify(mSupervisor).removeTaskByIdLocked(eq(task2.taskId), anyBoolean(), anyBoolean(), in removeStackTests()
|
D | ActivityRecordTests.java | 230 TaskRecord task2 = new TaskBuilder(mService.mStackSupervisor).setStack(mStack).build(); in testsApplyOptionsLocked() local 231 activity2 = new ActivityBuilder(mService).setTask(task2).build(); in testsApplyOptionsLocked()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/job/ |
D | JobStoreTest.java | 149 final JobInfo task2 = new Builder(12, mComponent) in testWritingTwoFilesToDisk() local 157 final JobStatus taskStatus2 = JobStatus.createFromJobInfo(task2, SOME_UID, null, -1, null); in testWritingTwoFilesToDisk() 177 assertTasksEqual(task2, loaded2.getJob()); in testWritingTwoFilesToDisk()
|