/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | ActivityTestsBase.java | 102 protected static class ActivityBuilder { class in ActivityTestsBase 128 ActivityBuilder(ActivityTaskManagerService service) { in ActivityBuilder() method in ActivityTestsBase.ActivityBuilder 132 ActivityBuilder setComponent(ComponentName component) { in setComponent() 137 ActivityBuilder setTargetActivity(String targetActivity) { in setTargetActivity() 142 ActivityBuilder setIntentExtras(Bundle extras) { in setIntentExtras() 152 ActivityBuilder setTask(Task task) { in setTask() 157 ActivityBuilder setActivityFlags(int flags) { in setActivityFlags() 162 ActivityBuilder setLaunchMode(int launchMode) { in setLaunchMode() 167 ActivityBuilder setStack(ActivityStack stack) { in setStack() 172 ActivityBuilder setCreateTask(boolean createTask) { in setCreateTask() [all …]
|
D | RecentsAnimationTest.java | 93 ActivityRecord recentActivity = new ActivityBuilder(mService) in testRecentsActivityVisiblility() 98 ActivityRecord topActivity = new ActivityBuilder(mService).setCreateTask(true).build(); in testRecentsActivityVisiblility() 124 topRunningHomeActivity = new ActivityBuilder(mService) in testPreloadRecentsActivity() 182 ActivityRecord recentActivity = new ActivityBuilder(mService).setComponent( in testRestartRecentsActivity() 188 new ActivityBuilder(mService).setCreateTask(true).build().getRootTask().moveToFront( in testRestartRecentsActivity() 213 targetActivity = new ActivityBuilder(mService) in testSetLaunchTaskBehindOfTargetActivity() 220 ActivityRecord anotherHomeActivity = new ActivityBuilder(mService) in testSetLaunchTaskBehindOfTargetActivity() 226 new ActivityBuilder(mService) in testSetLaunchTaskBehindOfTargetActivity() 253 new ActivityBuilder(mService) in testCancelAnimationOnVisibleStackOrderChange() 260 new ActivityBuilder(mService) in testCancelAnimationOnVisibleStackOrderChange() [all …]
|
D | ActivityStackTests.java | 107 final ActivityRecord r = new ActivityBuilder(mService).setTask(mTask).build(); in testResumedActivity() 117 final ActivityRecord r = new ActivityBuilder(mService).setTask(mTask).build(); in testResumedActivityFromTaskReparenting() 135 final ActivityRecord r = new ActivityBuilder(mService).setTask(mTask).build(); in testResumedActivityFromActivityReparenting() 243 final ActivityRecord homeActivity = new ActivityBuilder(mService) in testRemoveOrganizedTask_UpdateStackReference() 294 final ActivityRecord r = new ActivityBuilder(mService).setTask(mTask).build(); in testStopActivityWhenActivityDestroyed() 304 final ActivityRecord r = new ActivityBuilder(mService) in testFindTaskWithOverlay() 311 final ActivityRecord taskOverlay = new ActivityBuilder(mService).setTask(task) in testFindTaskWithOverlay() 335 new ActivityBuilder(mService).setComponent(target).setTask(task).setTargetActivity( in testFindTaskAlias() 339 final ActivityRecord r1 = new ActivityBuilder(mService).setComponent( in testFindTaskAlias() 346 final ActivityRecord r2 = new ActivityBuilder(mService).setComponent( in testFindTaskAlias() [all …]
|
D | ActivityStarterTests.java | 217 final ActivityBuilder builder = new ActivityBuilder(service).setTask( in verifyStartActivityPreconditionsUntracked() 223 ActivityBuilder.getDefaultComponent().getPackageName(); in verifyStartActivityPreconditionsUntracked() 353 intent.setComponent(ActivityBuilder.getDefaultComponent()); in prepareStarter() 358 info.applicationInfo.packageName = ActivityBuilder.getDefaultComponent().getPackageName(); in prepareStarter() 385 info.applicationInfo.packageName = ActivityBuilder.getDefaultComponent().getPackageName(); in testCreateTaskLayout() 415 new ActivityBuilder(mService).setCreateTask(true).build(); in testSplitScreenDeliverToTop() 417 new ActivityBuilder(mService).setCreateTask(true).build(); in testSplitScreenDeliverToTop() 444 new ActivityBuilder(mService).setCreateTask(true).build(); in testSplitScreenTaskToFront() 446 new ActivityBuilder(mService).setCreateTask(true).build(); in testSplitScreenTaskToFront() 448 new ActivityBuilder(mService).setCreateTask(true).build(); in testSplitScreenTaskToFront() [all …]
|
D | TaskRecordTests.java | 269 ActivityRecord top = new ActivityBuilder(mService).setTask(task).setStack(stack).build(); in testFullscreenBoundsForcedOrientation() 522 ActivityRecord aliasActivity = new ActivityBuilder(mService).setComponent( in testTaskIntentActivityAlias() 527 ActivityRecord targetActivity = new ActivityBuilder(mService).setComponent( in testTaskIntentActivityAlias() 532 ActivityRecord defaultActivity = new ActivityBuilder(mService).build(); in testTaskIntentActivityAlias() 542 new ActivityBuilder(mService).setTask(task).build(); in testFindRootIndex() 559 final ActivityRecord activity1 = new ActivityBuilder(mService).setTask(task).build(); in testFindRootIndex_finishing() 561 new ActivityBuilder(mService).setTask(task).build(); in testFindRootIndex_finishing() 576 new ActivityBuilder(mService).setTask(task).build(); in testFindRootIndex_effectiveRoot() 594 final ActivityRecord activity1 = new ActivityBuilder(mService).setTask(task).build(); in testFindRootIndex_effectiveRoot_finishingAndRelinquishing() 596 new ActivityBuilder(mService).setTask(task).build(); in testFindRootIndex_effectiveRoot_finishingAndRelinquishing() [all …]
|
D | ActivityStackSupervisorTests.java | 72 final ActivityRecord firstActivity = new ActivityBuilder(mService).setCreateTask(true) in testStoppingActivityRemovedWhenResumed() 86 final ActivityRecord firstActivity = new ActivityBuilder(mService).setCreateTask(true) in testReportWaitingActivityLaunchedIfNeeded() 136 final ActivityRecord resizableActivity = new ActivityBuilder(mService) in testHandleNonResizableTaskOnSecondaryDisplay() 153 final ActivityRecord fullScreenActivityA = new ActivityBuilder(mService).setCreateTask(true) in testNotifyTaskFocusChanged() 166 final ActivityRecord fullScreenActivityB = new ActivityBuilder(mService).setCreateTask(true) in testNotifyTaskFocusChanged()
|
D | ActivityRecordTests.java | 155 new ActivityBuilder(mService).setTask(mTask).build(); in testRemoveChildWithOverlayActivity() 158 new ActivityBuilder(mService).setTask(mTask).build(); in testRemoveChildWithOverlayActivity() 210 final ActivityRecord topActivity = new ActivityBuilder(mService).setTask(mTask).build(); in testPausingWhenVisibleFromStopped() 229 final ActivityRecord activity = new ActivityBuilder(mService).build(); in testCanBeLaunchedOnDisplay() 248 ActivityRecord activity2 = new ActivityBuilder(mService).setTask(mTask).build(); in testsApplyOptionsLocked() 258 activity2 = new ActivityBuilder(mService).setTask(task2).build(); in testsApplyOptionsLocked() 359 mActivity = new ActivityBuilder(mService) in testSetRequestedOrientationUpdatesConfiguration() 497 ActivityRecord finishingActivity = new ActivityBuilder(mService).setTask(mTask).build(); in testShouldMakeActive_nonTopVisible() 499 ActivityRecord topActivity = new ActivityBuilder(mService).setTask(mTask).build(); in testShouldMakeActive_nonTopVisible() 525 ActivityRecord topActivity = new ActivityBuilder(mService).setTask(mTask).build(); in testShouldResumeOrPauseWithResults() [all …]
|
D | RootActivityContainerTests.java | 118 final ActivityRecord firstActivity = new ActivityBuilder(mService).setCreateTask(true) in testReplacingTaskInPinnedStack() 122 final ActivityRecord secondActivity = new ActivityBuilder(mService).setTask(task) in testReplacingTaskInPinnedStack() 230 final ActivityRecord activity = new ActivityBuilder(mService).setCreateTask(true).build(); in testAwakeFromSleepingWithAppConfiguration() 266 final ActivityRecord firstActivity = new ActivityBuilder(mService).setCreateTask(true) in testRemovingStackOnAppCrash() 290 final ActivityRecord firstActivity = new ActivityBuilder(mService).setCreateTask(true) in testRemovingStackOnAppCrash_multipleDisplayAreas() 304 new ActivityBuilder(mService).setCreateTask(true).setStack(secondStack) in testRemovingStackOnAppCrash_multipleDisplayAreas() 323 final ActivityRecord activity = new ActivityBuilder(mService).setCreateTask(true) in testFocusability() 337 final ActivityRecord pinnedActivity = new ActivityBuilder(mService).setCreateTask(true) in testFocusability() 368 final ActivityRecord r = new ActivityBuilder(mService).setTask(task).build(); in testSplitScreenPrimaryChosenWhenTopActivityLaunchedToSecondary() 422 new ActivityBuilder(mService).setTask(task).build(); in testFindTaskToMoveToFrontWhenRecentsOnOtherDisplay() [all …]
|
D | WindowTestUtils.java | 28 import com.android.server.wm.ActivityTestsBase.ActivityBuilder; 52 final ActivityRecord activity = new ActivityTestsBase.ActivityBuilder(stack.mAtmService) in createTestActivityRecord() 61 final ActivityRecord activity = new ActivityBuilder(dc.mWmService.mAtmService).build(); in createTestActivityRecord()
|
D | ActivityMetricsLaunchObserverTests.java | 84 mTrampolineActivity = new ActivityBuilder(mService) in setUpAMLO() 88 mTopActivity = new ActivityBuilder(mService) in setUpAMLO() 195 final ActivityRecord noDrawnActivity = new ActivityBuilder(mService) in testOnActivityLaunchCancelled_finishedBeforeDrawn() 324 final ActivityRecord otherActivity = new ActivityBuilder(mService) in testConcurrentLaunches() 348 final ActivityRecord activityOnNewDisplay = new ActivityBuilder(mService) in testConsecutiveLaunchOnDifferentDisplay()
|
D | WindowProcessControllerTests.java | 195 final ActivityRecord activity = new ActivityBuilder(mService) in testActivityNotOverridingSystemUiProcessConfig() 212 final ActivityRecord activity = new ActivityBuilder(mService) in testActivityNotOverridingImeProcessConfig() 229 final ActivityRecord activity = new ActivityBuilder(mService) in testActivityNotOverridingAllyProcessConfig() 246 final ActivityRecord activity = new ActivityBuilder(mService) in testActivityNotOverridingVoiceInteractionProcessConfig()
|
D | LaunchParamsControllerTests.java | 90 final ActivityRecord record = new ActivityBuilder(mService).build(); in testArgumentPropagation() 91 final ActivityRecord source = new ActivityBuilder(mService).build(); in testArgumentPropagation() 111 final ActivityRecord activity = new ActivityBuilder(mService).setComponent(name) in testStoredParamsRecovery() 234 final ActivityRecord vrActivity = new ActivityBuilder(mService).build(); in testVrPreferredDisplay() 244 final ActivityRecord vr2dActivity = new ActivityBuilder(mService).build(); in testVrPreferredDisplay() 265 final ActivityRecord record = new ActivityBuilder(mService).build(); in testCalculatePhase() 266 final ActivityRecord source = new ActivityBuilder(mService).build(); in testCalculatePhase()
|
D | ActivityStartControllerTests.java | 75 final ActivityRecord activity = new ActivityBuilder(mService).build(); in testPendingActivityLaunches() 76 final ActivityRecord source = new ActivityBuilder(mService) in testPendingActivityLaunches()
|
D | ActivityDisplayTests.java | 93 new ActivityBuilder(mService).setActivityFlags(FLAG_ALWAYS_FOCUSABLE) in testFullscreenStackCanBeFocusedWhenFocusablePinnedStackExists() 166 new ActivityBuilder(mService).setTask(fullscreenTask).build(); in createFullscreenStackWithSimpleActivityAt() 199 final ActivityRecord showWhenLockedActivity = new ActivityBuilder(mService) in testTopRunningActivity() 228 final ActivityRecord activity = new ActivityBuilder(mService).setCreateTask(true) in testAlwaysOnTopStackLocation()
|
D | RunningTasksTest.java | 141 final ActivityRecord activity = new ActivityBuilder(mService) in createTask()
|
D | RootWindowContainerTests.java | 137 final ActivityRecord activity = new ActivityTestsBase.ActivityBuilder(mWm.mAtmService) in testFindActivityByTargetComponent()
|
D | AppWindowTokenTests.java | 430 final ActivityRecord middle = new ActivityTestsBase.ActivityBuilder(mWm.mAtmService) in testTransferStartingWindowFromFinishingActivity() 439 final ActivityRecord top = new ActivityTestsBase.ActivityBuilder(mWm.mAtmService) in testTransferStartingWindowFromFinishingActivity()
|
D | TaskDisplayAreaTests.java | 237 homeActivity = new ActivityTestsBase.ActivityBuilder(mWm.mAtmService) in testGetOrientation_nonResizableHomeStackWithHomeActivityPendingVisibilityChange()
|
D | SizeCompatTests.java | 192 mActivity = new ActivityBuilder(mService) in testFixedScreenConfigurationWhenMovingToDisplay() 495 final ActivityRecord activity = new ActivityBuilder(mService) in testShouldUseSizeCompatModeOnResizableTask()
|
D | WallpaperControllerTests.java | 297 final ActivityRecord homeActivity = new ActivityTestsBase.ActivityBuilder(mWm.mAtmService) in createWallpaperTargetWindow()
|
D | LaunchParamsPersisterTests.java | 175 final ActivityRecord activity = new ActivityBuilder(mService).setComponent(TEST_COMPONENT) in testFetchesSameResultWithActivity()
|
D | RecentsAnimationControllerTest.java | 455 final ActivityRecord homeActivity = new ActivityTestsBase.ActivityBuilder(mWm.mAtmService) in createHomeActivity()
|
D | TaskPositionerTests.java | 81 final ActivityRecord activity = new ActivityTestsBase.ActivityBuilder(stack.mAtmService) in setUp()
|
D | TaskLaunchParamsModifierTests.java | 86 mActivity = new ActivityBuilder(mService).build(); in setUp() 1355 return new ActivityBuilder(mService).setStack(stack).setCreateTask(true).build(); in createSourceActivity()
|
D | RecentTasksTest.java | 458 final ActivityRecord r = new ActivityBuilder(mService).setTask(task).build(); in testAddTasksHomeClearUntrackedTasks_expectFinish() 1057 final ActivityRecord r1 = new ActivityBuilder(mService) in testTaskInfo_expectNoExtras()
|