/frameworks/base/cmds/incident_helper/tests/ |
D | CpuInfoParser_test.cpp | 88 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/wmtests/src/com/android/server/wm/ |
D | TaskStackTests.java | 63 final Task task1 = createTaskInStack(stack, 0 /* userId */); in testStackPositionChildAt() local 67 stack.positionChildAt(WindowContainer.POSITION_TOP, task1, false /* includingParents */); in testStackPositionChildAt() 69 assertEquals(stack.mChildren.get(1), task1); in testStackPositionChildAt() 74 assertEquals(stack.mChildren.get(1), task1); in testStackPositionChildAt() 80 assertEquals(stack.mChildren.get(0), task1); in testStackPositionChildAt() 87 final Task task1 = createTaskInStack(stack, 0 /* userId */); in testClosingAppDifferentStackOrientation() local 90 task1.addChild(activity1, 0); in testClosingAppDifferentStackOrientation() 107 final Task task1 = createTaskInStack(stack, 0 /* userId */); in testMoveTaskToBackDifferentStackOrientation() local 110 task1.addChild(activity1, 0); in testMoveTaskToBackDifferentStackOrientation() 176 final Task task1 = createTaskInStack(stack1, 0 /* userId */); in testReparent() local [all …]
|
D | RecentTasksTest.java | 308 Task task1 = createTaskBuilder(".Task1") in testAddTasksMultipleTasks_expectRemovedNoTrim() local 314 mRecentTasks.add(task1); in testAddTasksMultipleTasks_expectRemovedNoTrim() 316 assertThat(mCallbacksRecorder.mAdded).contains(task1); in testAddTasksMultipleTasks_expectRemovedNoTrim() 325 assertThat(mCallbacksRecorder.mRemoved).contains(task1); in testAddTasksMultipleTasks_expectRemovedNoTrim() 332 Task task1 = createTaskBuilder(".Task1") in testAddTasksDifferentStacks_expectNoRemove() local 338 mRecentTasks.add(task1); in testAddTasksDifferentStacks_expectNoRemove() 341 assertThat(mCallbacksRecorder.mAdded).contains(task1); in testAddTasksDifferentStacks_expectNoRemove() 351 Task task1 = createTaskBuilder(".Task1") in testAddTaskCompatibleActivityType_expectRemove() local 355 setTaskActivityType(task1, ACTIVITY_TYPE_UNDEFINED); in testAddTaskCompatibleActivityType_expectRemove() 356 assertThat(task1.getActivityType()).isEqualTo(ACTIVITY_TYPE_UNDEFINED); in testAddTaskCompatibleActivityType_expectRemove() [all …]
|
D | AppTransitionControllerTest.java | 280 final Task task1 = createTaskInStack(stack1, 0 /* userId */); in testGetAnimationTargets_openingClosingInDifferentTask() local 282 mDisplayContent, task1); in testGetAnimationTargets_openingClosingInDifferentTask() 286 mDisplayContent, task1); in testGetAnimationTargets_openingClosingInDifferentTask() 359 final Task task1 = createTaskInStack(stack1, 0 /* userId */); in testGetAnimationTargets_animateOnlyTranslucentApp() local 361 mDisplayContent, task1); in testGetAnimationTargets_animateOnlyTranslucentApp() 367 mDisplayContent, task1); in testGetAnimationTargets_animateOnlyTranslucentApp() 405 final Task task1 = createTaskInStack(stack1, 0 /* userId */); in testGetAnimationTargets_animateTranslucentAndOpaqueApps() local 407 mDisplayContent, task1); in testGetAnimationTargets_animateTranslucentAndOpaqueApps() 413 mDisplayContent, task1); in testGetAnimationTargets_animateTranslucentAndOpaqueApps() 451 final Task task1 = createTaskInStack(stack, 0 /* userId */); in testGetAnimationTargets_stackContainsMultipleTasks() local [all …]
|
D | TaskTests.java | 154 final Task task1 = createTaskStackOnDisplay(mDisplayContent); in testIsInStack() local 157 WindowTestUtils.createActivityRecordInTask(mDisplayContent, task1); in testIsInStack() 160 assertEquals(activity1, task1.isInTask(activity1)); in testIsInStack() 161 assertNull(task1.isInTask(activity2)); in testIsInStack()
|
D | AppTransitionTests.java | 154 final Task task1 = createTaskInStack(stack1, 0 /* userId */); in testCleanAppTransitionWhenTaskStackReparent() local 157 task1.addChild(activity1, 0); in testCleanAppTransitionWhenTaskStackReparent()
|
D | ActivityDisplayTests.java | 321 final Task task1 = new TaskBuilder(mService.mStackSupervisor).setStack(stack1).build(); in removeStackTests() local 342 verify(mSupervisor).removeTask(eq(task1), anyBoolean(), anyBoolean(), any()); in removeStackTests()
|
D | WindowOrganizerTests.java | 508 Task task1 = WindowContainer.fromBinder(info1.token.asBinder()).asTask(); in testTileAddRemoveChild() local 509 Configuration c = new Configuration(task1.getRequestedOverrideConfiguration()); in testTileAddRemoveChild() 512 task1.onRequestedOverrideConfigurationChanged(c); in testTileAddRemoveChild() 554 Task task1 = WindowContainer.fromBinder(info1.token.asBinder()).asTask(); in testTaskInfoCallback() local 573 task1.positionChildAt(POSITION_TOP, stack, false /* includingParents */); in testTaskInfoCallback()
|
D | TaskRecordTests.java | 738 final Task task1 = getTestTask(); in testGetTaskForActivity() local 739 final ActivityRecord activity1 = task1.getBottomMostActivity(); in testGetTaskForActivity() 743 assertEquals(task1.mTaskId, in testGetTaskForActivity()
|
D | DisplayContentTests.java | 402 final Task task1 = createTaskInStack(stack1, 0 /* userId */); in testInputEventBringsCorrectDisplayInFocus() local 405 task1.addChild(activity1, 0); in testInputEventBringsCorrectDisplayInFocus()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/job/ |
D | JobStoreTest.java | 143 final JobInfo task1 = new Builder(8, mComponent) in testWritingTwoFilesToDisk() local 156 final JobStatus taskStatus1 = JobStatus.createFromJobInfo(task1, SOME_UID, null, -1, null); in testWritingTwoFilesToDisk() 176 assertTasksEqual(task1, loaded1.getJob()); in testWritingTwoFilesToDisk()
|