Home
last modified time | relevance | path

Searched refs:ActivityBuilder (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityTestsBase.java102 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 …]
DRecentsAnimationTest.java93 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 …]
DActivityStackTests.java107 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 …]
DActivityStarterTests.java217 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 …]
DTaskRecordTests.java269 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 …]
DActivityStackSupervisorTests.java72 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()
DActivityRecordTests.java155 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 …]
DRootActivityContainerTests.java118 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 …]
DWindowTestUtils.java28 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()
DActivityMetricsLaunchObserverTests.java84 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()
DWindowProcessControllerTests.java195 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()
DLaunchParamsControllerTests.java90 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()
DActivityStartControllerTests.java75 final ActivityRecord activity = new ActivityBuilder(mService).build(); in testPendingActivityLaunches()
76 final ActivityRecord source = new ActivityBuilder(mService) in testPendingActivityLaunches()
DActivityDisplayTests.java93 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()
DRunningTasksTest.java141 final ActivityRecord activity = new ActivityBuilder(mService) in createTask()
DRootWindowContainerTests.java137 final ActivityRecord activity = new ActivityTestsBase.ActivityBuilder(mWm.mAtmService) in testFindActivityByTargetComponent()
DAppWindowTokenTests.java430 final ActivityRecord middle = new ActivityTestsBase.ActivityBuilder(mWm.mAtmService) in testTransferStartingWindowFromFinishingActivity()
439 final ActivityRecord top = new ActivityTestsBase.ActivityBuilder(mWm.mAtmService) in testTransferStartingWindowFromFinishingActivity()
DTaskDisplayAreaTests.java237 homeActivity = new ActivityTestsBase.ActivityBuilder(mWm.mAtmService) in testGetOrientation_nonResizableHomeStackWithHomeActivityPendingVisibilityChange()
DSizeCompatTests.java192 mActivity = new ActivityBuilder(mService) in testFixedScreenConfigurationWhenMovingToDisplay()
495 final ActivityRecord activity = new ActivityBuilder(mService) in testShouldUseSizeCompatModeOnResizableTask()
DWallpaperControllerTests.java297 final ActivityRecord homeActivity = new ActivityTestsBase.ActivityBuilder(mWm.mAtmService) in createWallpaperTargetWindow()
DLaunchParamsPersisterTests.java175 final ActivityRecord activity = new ActivityBuilder(mService).setComponent(TEST_COMPONENT) in testFetchesSameResultWithActivity()
DRecentsAnimationControllerTest.java455 final ActivityRecord homeActivity = new ActivityTestsBase.ActivityBuilder(mWm.mAtmService) in createHomeActivity()
DTaskPositionerTests.java81 final ActivityRecord activity = new ActivityTestsBase.ActivityBuilder(stack.mAtmService) in setUp()
DTaskLaunchParamsModifierTests.java86 mActivity = new ActivityBuilder(mService).build(); in setUp()
1355 return new ActivityBuilder(mService).setStack(stack).setCreateTask(true).build(); in createSourceActivity()
DRecentTasksTest.java458 final ActivityRecord r = new ActivityBuilder(mService).setTask(task).build(); in testAddTasksHomeClearUntrackedTasks_expectFinish()
1057 final ActivityRecord r1 = new ActivityBuilder(mService) in testTaskInfo_expectNoExtras()

12