Home
last modified time | relevance | path

Searched refs:task1 (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/cmds/incident_helper/tests/
DCpuInfoParser_test.cpp88 CpuInfoProto::Task* task1 = expected.add_tasks(); in TEST_F() local
89 task1->set_pid(29438); in TEST_F()
90 task1->set_tid(29438); in TEST_F()
91 task1->set_user("rootabcdefghij"); in TEST_F()
92 task1->set_pr("20"); in TEST_F()
93 task1->set_ni(0); in TEST_F()
94 task1->set_cpu(57.9); in TEST_F()
95 task1->set_s(CpuInfoProto::Task::STATUS_R); in TEST_F()
96 task1->set_virt("14M"); in TEST_F()
97 task1->set_res("3.8M"); in TEST_F()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
DTaskStackTests.java49 final Task task1 = createTaskInStack(stack, 0 /* userId */); in testStackPositionChildAt() local
53 stack.positionChildAt(WindowContainer.POSITION_TOP, task1, false /* includingParents */); in testStackPositionChildAt()
55 assertEquals(stack.mChildren.get(1), task1); in testStackPositionChildAt()
60 assertEquals(stack.mChildren.get(1), task1); in testStackPositionChildAt()
66 final Task task1 = createTaskInStack(stack, 0 /* userId */); in testClosingAppDifferentStackOrientation() local
69 task1.addChild(appWindowToken1, 0); in testClosingAppDifferentStackOrientation()
86 final Task task1 = createTaskInStack(stack, 0 /* userId */); in testMoveTaskToBackDifferentStackOrientation() local
89 task1.addChild(appWindowToken1, 0); in testMoveTaskToBackDifferentStackOrientation()
DTaskWindowContainerControllerTests.java124 final WindowTestUtils.TestTask task1 = (WindowTestUtils.TestTask) taskController.mContainer; in testReparent_BetweenDisplays() local
125 task1.mOnDisplayChangedCalled = false; in testReparent_BetweenDisplays()
139 assertEquals(stack2, task1.getParent()); in testReparent_BetweenDisplays()
140 assertEquals(0, task1.positionInParent()); in testReparent_BetweenDisplays()
142 assertTrue(task1.mOnDisplayChangedCalled); in testReparent_BetweenDisplays()
DStackWindowControllerTests.java97 final WindowTestUtils.TestTask task1 = (WindowTestUtils.TestTask) taskController.mContainer; in testReparent() local
98 task1.mOnDisplayChangedCalled = false; in testReparent()
112 assertTrue(task1.mOnDisplayChangedCalled); in testReparent()
DDisplayContentTests.java284 final Task task1 = createTaskInStack(stack1, 0 /* userId */); in testInputEventBringsCorrectDisplayInFocus() local
287 task1.addChild(token1, 0); in testInputEventBringsCorrectDisplayInFocus()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DRecentTasksTest.java266 TaskRecord task1 = createTaskBuilder(".Task1") in testAddTasksMultipleTasks_expectRemovedNoTrim() local
272 mRecentTasks.add(task1); in testAddTasksMultipleTasks_expectRemovedNoTrim()
274 assertTrue(mCallbacksRecorder.added.contains(task1)); in testAddTasksMultipleTasks_expectRemovedNoTrim()
283 assertTrue(mCallbacksRecorder.removed.contains(task1)); in testAddTasksMultipleTasks_expectRemovedNoTrim()
290 TaskRecord task1 = createTaskBuilder(".Task1") in testAddTasksDifferentStacks_expectNoRemove() local
296 mRecentTasks.add(task1); in testAddTasksDifferentStacks_expectNoRemove()
299 assertTrue(mCallbacksRecorder.added.contains(task1)); in testAddTasksDifferentStacks_expectNoRemove()
311 TaskRecord task1 = createTaskBuilder(".Task1") in testAddTaskCompatibleActivityType_expectRemove() local
315 task1.onConfigurationChanged(config1); in testAddTaskCompatibleActivityType_expectRemove()
316 assertTrue(task1.getActivityType() == ACTIVITY_TYPE_UNDEFINED); in testAddTaskCompatibleActivityType_expectRemove()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DJobStoreTest.java145 final JobInfo task1 = new Builder(8, mComponent) in testWritingTwoFilesToDisk() local
158 final JobStatus taskStatus1 = JobStatus.createFromJobInfo(task1, SOME_UID, null, -1, null); in testWritingTwoFilesToDisk()
178 assertTasksEqual(task1, loaded1.getJob()); in testWritingTwoFilesToDisk()