Home
last modified time | relevance | path

Searched refs:task2 (Results 1 – 10 of 10) 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/wmtests/src/com/android/server/wm/
DTaskStackTests.java64 final Task task2 = createTaskInStack(stack, 1 /* userId */); in testStackPositionChildAt() local
68 assertEquals(stack.mChildren.get(0), task2); in testStackPositionChildAt()
72 stack.positionChildAt(WindowContainer.POSITION_TOP, task2, false /* includingParents */); in testStackPositionChildAt()
73 assertEquals(stack.mChildren.get(0), task2); in testStackPositionChildAt()
77 createTaskInStack((ActivityStack) task2, 0 /* userId */); in testStackPositionChildAt()
78 createTaskInStack((ActivityStack) task2, 1 /* userId */); in testStackPositionChildAt()
79 stack.positionChildAt(WindowContainer.POSITION_TOP, task2, false /* includingParents */); in testStackPositionChildAt()
81 assertEquals(stack.mChildren.get(1), task2); in testStackPositionChildAt()
93 final Task task2 = createTaskInStack(stack, 1 /* userId */); in testClosingAppDifferentStackOrientation() local
96 task2.addChild(activity2, 0); in testClosingAppDifferentStackOrientation()
[all …]
DTaskTests.java96 final Task task2 = createTaskInStack(stackController2, 0 /* userId */); in testReparent() local
117 assertEquals(1, task2.getParent().mChildren.indexOf(task2)); in testReparent()
130 final Task task2 = createTaskInStack(stack2, 0 /* userId */); in testReparent_BetweenDisplays() local
136 assertEquals(1, task2.getParent().mChildren.indexOf(task2)); in testReparent_BetweenDisplays()
155 final Task task2 = createTaskStackOnDisplay(mDisplayContent); in testIsInStack() local
159 WindowTestUtils.createActivityRecordInTask(mDisplayContent, task2); in testIsInStack()
DAppTransitionControllerTest.java291 final Task task2 = createTaskInStack(stack2, 0 /* userId */); in testGetAnimationTargets_openingClosingInDifferentTask() local
293 mDisplayContent, task2); in testGetAnimationTargets_openingClosingInDifferentTask()
295 mDisplayContent, task2); in testGetAnimationTargets_openingClosingInDifferentTask()
370 final Task task2 = createTaskInStack(stack2, 0 /* userId */); in testGetAnimationTargets_animateOnlyTranslucentApp() local
372 mDisplayContent, task2); in testGetAnimationTargets_animateOnlyTranslucentApp()
375 mDisplayContent, task2); in testGetAnimationTargets_animateOnlyTranslucentApp()
418 final Task task2 = createTaskInStack(stack2, 0 /* userId */); in testGetAnimationTargets_animateTranslucentAndOpaqueApps() local
420 mDisplayContent, task2); in testGetAnimationTargets_animateTranslucentAndOpaqueApps()
423 mDisplayContent, task2); in testGetAnimationTargets_animateTranslucentAndOpaqueApps()
456 final Task task2 = createTaskInStack(stack, 0 /* userId */); in testGetAnimationTargets_stackContainsMultipleTasks() local
[all …]
DRecentTasksTest.java311 Task task2 = createTaskBuilder(".Task1") in testAddTasksMultipleTasks_expectRemovedNoTrim() local
320 mRecentTasks.add(task2); in testAddTasksMultipleTasks_expectRemovedNoTrim()
322 assertThat(mCallbacksRecorder.mAdded).contains(task2); in testAddTasksMultipleTasks_expectRemovedNoTrim()
335 Task task2 = createTaskBuilder(".Task1") in testAddTasksDifferentStacks_expectNoRemove() local
339 mRecentTasks.add(task2); in testAddTasksDifferentStacks_expectNoRemove()
342 assertThat(mCallbacksRecorder.mAdded).contains(task2); in testAddTasksDifferentStacks_expectNoRemove()
360 Task task2 = createTaskBuilder(".Task1") in testAddTaskCompatibleActivityType_expectRemove() local
364 assertEquals(ACTIVITY_TYPE_STANDARD, task2.getActivityType()); in testAddTaskCompatibleActivityType_expectRemove()
365 mRecentTasks.add(task2); in testAddTaskCompatibleActivityType_expectRemove()
367 assertThat(mCallbacksRecorder.mAdded).contains(task2); in testAddTaskCompatibleActivityType_expectRemove()
[all …]
DActivityDisplayTests.java322 final Task task2 = new TaskBuilder(mService.mStackSupervisor).setStack(stack2).build(); in removeStackTests() local
336 }).when(mSupervisor).removeTask(eq(task2), anyBoolean(), anyBoolean(), any()); in removeStackTests()
341 verify(mSupervisor).removeTask(eq(task2), anyBoolean(), anyBoolean(), any()); in removeStackTests()
DActivityStarterTests.java836 Task task2 = reusableActivity.getTask(); in testWasVisibleInRestartAttempt() local
838 task2.getTopNonFinishingActivity(), START_TASK_TO_FRONT, task.getStack()); in testWasVisibleInRestartAttempt()
DWindowOrganizerTests.java259 final Task task2 = createTask(stack2); in testUnregisterOrganizerReturnsRegistrationToPrevious() local
302 final Task task2 = createTask(stack); in testRegisterTaskOrganizerStackWindowingModeChanges() local
DActivityRecordTests.java257 Task task2 = new TaskBuilder(mService.mStackSupervisor).setStack(mStack).build(); in testsApplyOptionsLocked() local
258 activity2 = new ActivityBuilder(mService).setTask(task2).build(); in testsApplyOptionsLocked()
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DJobStoreTest.java149 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()