Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityStarterTests.java64 import static com.android.server.wm.WindowTestsBase.ActivityBuilder.DEFAULT_FAKE_UID;
272 final ActivityBuilder builder = new ActivityBuilder(service).setTask( in verifyStartActivityPreconditionsUntracked()
281 ActivityBuilder.getDefaultComponent().getPackageName(); in verifyStartActivityPreconditionsUntracked()
426 intent.setComponent(ActivityBuilder.getDefaultComponent()); in prepareStarter()
431 info.applicationInfo.packageName = ActivityBuilder.getDefaultComponent().getPackageName(); in prepareStarter()
459 info.applicationInfo.packageName = ActivityBuilder.getDefaultComponent().getPackageName(); in testCreateTaskLayout()
517 final ActivityRecord splitSecondTopActivity = new ActivityBuilder(mAtm).setCreateTask(true) in testSplitScreenTaskToFront()
592 final ActivityRecord desktopModeTopActivity = new ActivityBuilder(mAtm).setCreateTask(true) in testDesktopModeTaskToFront()
762 final ActivityRecord baseActivity = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testPinnedSingleInstanceAborted()
803 final ActivityRecord activity = new ActivityBuilder(mAtm) in testAdjustLaunchTargetWithAdjacentTask()
[all …]
DRecentsAnimationTest.java101 ActivityRecord recentActivity = new ActivityBuilder(mAtm) in testRecentsActivityVisiblility()
106 ActivityRecord topActivity = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testRecentsActivityVisiblility()
136 topRunningHomeActivity = new ActivityBuilder(mAtm) in testPreloadRecentsActivity()
189 ActivityRecord recentActivity = new ActivityBuilder(mAtm).setComponent( in testRestartRecentsActivity()
195 new ActivityBuilder(mAtm).setCreateTask(true).build().getRootTask().moveToFront( in testRestartRecentsActivity()
218 targetActivity = new ActivityBuilder(mAtm) in testSetLaunchTaskBehindOfTargetActivity()
225 ActivityRecord anotherHomeActivity = new ActivityBuilder(mAtm) in testSetLaunchTaskBehindOfTargetActivity()
231 new ActivityBuilder(mAtm) in testSetLaunchTaskBehindOfTargetActivity()
258 new ActivityBuilder(mAtm) in testCancelAnimationOnVisibleStackOrderChange()
265 new ActivityBuilder(mAtm) in testCancelAnimationOnVisibleStackOrderChange()
[all …]
DActivityTaskSupervisorTests.java84 final ActivityRecord firstActivity = new ActivityBuilder(mAtm) in testStoppingActivityRemovedWhenResumed()
100 final ActivityRecord firstActivity = new ActivityBuilder(mAtm) in testReportWaitingActivityLaunched()
102 final ActivityRecord secondActivity = new ActivityBuilder(mAtm) in testReportWaitingActivityLaunched()
192 final ActivityRecord resizableActivity = new ActivityBuilder(mAtm) in testHandleNonResizableTaskOnSecondaryDisplay()
207 final ActivityRecord activity1 = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testRemoveTask()
212 final ActivityRecord activity2 = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testRemoveTask()
234 final ActivityRecord activity = new ActivityBuilder(mAtm) in testFilteredReferred()
244 activity.deliverNewIntentLocked(ActivityBuilder.DEFAULT_FAKE_UID, in testFilteredReferred()
255 final ActivityRecord fullScreenActivityA = new ActivityBuilder(mAtm).setCreateTask(true) in testNotifyTaskFocusChanged()
268 final ActivityRecord fullScreenActivityB = new ActivityBuilder(mAtm).setCreateTask(true) in testNotifyTaskFocusChanged()
[all …]
DRootWindowContainerTests.java138 final ActivityRecord activity = new ActivityBuilder(mWm.mAtmService) in testFindActivityByTargetComponent()
156 final ActivityRecord activity = new ActivityBuilder(mWm.mAtmService) in testFindTask_includeLaunchedFromBubbled()
173 final ActivityRecord activity = new ActivityBuilder(mWm.mAtmService) in testFindTask_ignoreLaunchedFromBubbled()
210 final ActivityRecord activity1 = new ActivityBuilder(mAtm).setTask(task1).build(); in testTaskLayerRank()
219 final ActivityRecord activity2 = new ActivityBuilder(mAtm).setTask(task2).build(); in testTaskLayerRank()
255 new ActivityBuilder(mWm.mAtmService).setTask(task).setUseProcess(wpc).build(), in testForceStopPackage()
256 new ActivityBuilder(mWm.mAtmService).setTask(task).setUseProcess(wpc).build() in testForceStopPackage()
277 final ActivityRecord activity = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testAttachApplication()
313 final ActivityRecord firstActivity = new ActivityBuilder(mAtm) in testReplacingTaskInPinnedRootTask()
315 final ActivityRecord secondActivity = new ActivityBuilder(mAtm) in testReplacingTaskInPinnedRootTask()
[all …]
DRootTaskTests.java248 final ActivityRecord r = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testResumedActivity()
260 final ActivityRecord r = new ActivityBuilder(mAtm) in testResumedActivityFromTaskReparenting()
279 final ActivityRecord r = new ActivityBuilder(mAtm) in testResumedActivityFromActivityReparenting()
337 final ActivityRecord homeActivity = new ActivityBuilder(mAtm) in testRemoveOrganizedTask_UpdateRootTaskReference()
386 final ActivityRecord r = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testStopActivityWhenActivityDestroyed()
396 final ActivityRecord r = new ActivityBuilder(mAtm) in testFindTaskWithOverlay()
402 final ActivityRecord taskOverlay = new ActivityBuilder(mAtm).setTask(task) in testFindTaskWithOverlay()
429 new ActivityBuilder(mAtm).setComponent(target).setTask(task).setTargetActivity( in testFindTaskAlias()
433 final ActivityRecord r1 = new ActivityBuilder(mAtm).setComponent( in testFindTaskAlias()
441 final ActivityRecord r2 = new ActivityBuilder(mAtm).setComponent( in testFindTaskAlias()
[all …]
DTaskTests.java227 final ActivityRecord activityMain = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testReparentPinnedActivityBackToOriginalTask()
229 final ActivityRecord activityPip = new ActivityBuilder(mAtm).setTask(originalTask).build(); in testReparentPinnedActivityBackToOriginalTask()
291 final ActivityRecord activity1 = new ActivityBuilder(mAtm).setTask(task).build(); in testPerformClearTop()
292 final ActivityRecord activity2 = new ActivityBuilder(mAtm).setTask(task).build(); in testPerformClearTop()
302 final ActivityRecord activityA = new ActivityBuilder(mAtm).setTask(task).build(); in testPerformClearTop()
303 final ActivityRecord activityB = new ActivityBuilder(mAtm).setTask(task).build(); in testPerformClearTop()
304 final ActivityRecord activityC = new ActivityBuilder(mAtm).setTask(task).build(); in testPerformClearTop()
342 final ActivityRecord activity = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testUserLeaving()
699 final ActivityRecord top = new ActivityBuilder(mAtm).setTask(task).setParentTask(rootTask) in testFullscreenBoundsForcedOrientation()
856 final ActivityRecord activity = new ActivityBuilder(mAtm).setTask(task).build(); in testComputeConfigResourceOverrides()
[all …]
DActivityRecordTests.java241 final ActivityRecord overlayActivity = new ActivityBuilder(mAtm).setTask(task).build(); in testRemoveChildWithOverlayActivity()
243 final ActivityRecord overlayActivity2 = new ActivityBuilder(mAtm).setTask(task).build(); in testRemoveChildWithOverlayActivity()
311 final ActivityRecord topActivity = new ActivityBuilder(mAtm).setTask(task).build(); in testPausingWhenVisibleFromStopped()
330 final ActivityRecord activity = new ActivityBuilder(mAtm).build(); in testCanBeLaunchedOnDisplay()
350 ActivityRecord activity2 = new ActivityBuilder(mAtm).setTask(activity.getTask()).build(); in testsApplyOptionsLocked()
359 activity2 = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testsApplyOptionsLocked()
486 final ActivityRecord activity = new ActivityBuilder(mAtm) in testDestroyedActivityNotScheduleConfigChanged()
568 final ActivityRecord activity = new ActivityBuilder(mAtm) in testSetRequestedOrientationUpdatesConfiguration()
705 final ActivityRecord activity = new ActivityBuilder(mAtm) in respectRequestedOrientationForNonResizableInSplitWindows()
746 ActivityRecord finishingActivity = new ActivityBuilder(mAtm).setTask(task).build(); in testShouldMakeActive_nonTopVisible()
[all …]
DWindowTestsBase.java798 final ActivityRecord activity = new ActivityBuilder(dc.mWmService.mAtmService) in createNonAttachedActivityRecord()
836 final ActivityRecord activity = new ActivityBuilder(dc.mWmService.mAtmService) in createActivityRecord()
861 final ActivityRecord activity = new ActivityBuilder(parentTask.mAtmService) in createActivityRecordWithParentTask()
1224 protected static class ActivityBuilder { class in WindowTestsBase
1260 ActivityBuilder(ActivityTaskManagerService service) { in ActivityBuilder() method in WindowTestsBase.ActivityBuilder
1264 ActivityBuilder setComponent(ComponentName component) { in setComponent()
1269 ActivityBuilder setTargetActivity(String targetActivity) { in setTargetActivity()
1274 ActivityBuilder setIntentExtras(Bundle extras) { in setIntentExtras()
1284 ActivityBuilder setTask(Task task) { in setTask()
1289 ActivityBuilder setActivityTheme(int theme) { in setActivityTheme()
[all …]
DDisplayWindowPolicyControllerTests.java116 final ActivityRecord activity = new ActivityBuilder(mAtm) in launchActivityOnDisplay()
177 final ActivityRecord sourceRecord = new ActivityBuilder(mAtm).setTask(task).build(); in testCanActivityBeLaunched()
179 new ActivityBuilder(mAtm).setComponent(mDwpc.DISALLOWED_ACTIVITY).build(); in testCanActivityBeLaunched()
207 final ActivityRecord sourceRecord = new ActivityBuilder(mAtm).setTask(task).build(); in testCanActivityBeLaunched_requiredDisplayCategory()
209 new ActivityBuilder(mAtm).setRequiredDisplayCategory("auto").build(); in testCanActivityBeLaunched_requiredDisplayCategory()
DActivityMetricsLaunchObserverTests.java99 mTrampolineActivity = new ActivityBuilder(mAtm) in setUpAMLO()
103 mTopActivity = new ActivityBuilder(mAtm) in setUpAMLO()
263 final ActivityRecord noDrawnActivity = new ActivityBuilder(mAtm) in testOnActivityLaunchCancelled_finishedBeforeDrawn()
277 final ActivityRecord removedImm = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testOnActivityLaunchCancelled_finishedBeforeDrawn()
325 final ActivityRecord prev = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testOnReportFullyDrawn()
504 final ActivityRecord otherActivity = new ActivityBuilder(mAtm) in testConcurrentLaunches()
545 final ActivityRecord activityOnNewTask = new ActivityBuilder(mAtm) in testConsecutiveLaunchNewTask()
570 final ActivityRecord activityOnNewDisplay = new ActivityBuilder(mAtm) in testConsecutiveLaunchOnDifferentDisplay()
DLaunchParamsControllerTests.java89 final ActivityRecord record = new ActivityBuilder(mAtm).build(); in testArgumentPropagation()
90 final ActivityRecord source = new ActivityBuilder(mAtm).build(); in testArgumentPropagation()
111 final ActivityRecord activity = new ActivityBuilder(mAtm).setComponent(name) in testStoredParamsRecovery()
237 final ActivityRecord vrActivity = new ActivityBuilder(mAtm).build(); in testVrPreferredDisplay()
247 final ActivityRecord vr2dActivity = new ActivityBuilder(mAtm).build(); in testVrPreferredDisplay()
268 final ActivityRecord record = new ActivityBuilder(mAtm).build(); in testCalculatePhase()
269 final ActivityRecord source = new ActivityBuilder(mAtm).build(); in testCalculatePhase()
DTaskDisplayAreaTests.java401 homeActivity = new ActivityBuilder(mWm.mAtmService) in testGetOrientation_nonResizableHomeTaskWithHomeActivityPendingVisibilityChange()
421 final ActivityRecord firstActivity = new ActivityBuilder(mAtm) in testIsLastFocused()
423 final ActivityRecord secondActivity = new ActivityBuilder(mAtm) in testIsLastFocused()
457 final ActivityRecord firstActivity = new ActivityBuilder(mAtm) in testCanSpecifyOrientation()
459 final ActivityRecord secondActivity = new ActivityBuilder(mAtm) in testCanSpecifyOrientation()
494 final ActivityRecord firstActivity = new ActivityBuilder(mAtm) in testCanSpecifyOrientationNoSensor()
496 final ActivityRecord secondActivity = new ActivityBuilder(mAtm) in testCanSpecifyOrientationNoSensor()
526 final ActivityRecord firstActivity = new ActivityBuilder(mAtm) in testCanSpecifyOrientationLocked()
528 final ActivityRecord secondActivity = new ActivityBuilder(mAtm) in testCanSpecifyOrientationLocked()
678 new ActivityBuilder(mAtm).setActivityFlags(FLAG_ALWAYS_FOCUSABLE) in testFullscreenRootTaskCanBeFocusedWhenFocusablePinnedRootTaskExists()
[all …]
DActivityTaskManagerServiceTests.java298 final ActivityRecord record = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testEnterPipModeWhenRecordParentChangesToNull()
386 final ActivityRecord homeActivity = new ActivityBuilder(mAtm) in testResumeNextActivityOnCrashedAppDied()
389 final ActivityRecord activity = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testResumeNextActivityOnCrashedAppDied()
416 final ActivityRecord homeActivity = new ActivityBuilder(mAtm).setTask(rootHomeTask).build(); in testUpdateSleep()
417 final ActivityRecord topActivity = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testUpdateSleep()
503 final ActivityRecord activity = new ActivityBuilder(mAtm) in testSupportsMultiWindow_resizable()
515 final ActivityRecord activity = new ActivityBuilder(mAtm) in testSupportsMultiWindow_nonResizable()
563 final ActivityRecord activity = new ActivityBuilder(mAtm) in testSupportsMultiWindow_activityMinWidthHeight_largerThanSupport()
617 final ActivityRecord activity = new ActivityBuilder(mAtm) in testSupportsMultiWindow_landscape_checkActivityMinWidth()
652 final ActivityRecord activity = new ActivityBuilder(mAtm) in testSupportsMultiWindow_portrait_checkActivityMinHeight()
[all …]
DWindowProcessControllerTests.java428 return new ActivityBuilder(mAtm).setCreateTask(true).setUseProcess(wpc).build(); in createActivityRecord()
460 final ActivityRecord activityRecord = new ActivityBuilder(mSupervisor.mService).build(); in testTopActivityDisplayAreaMatchesTopMostActivity_singleActivity()
476 final ActivityRecord bottomRecord = new ActivityBuilder(mSupervisor.mService).build(); in testTopActivityDisplayAreaMatchesTopMostActivity_multipleActivities()
478 final ActivityRecord topRecord = new ActivityBuilder(mSupervisor.mService).build(); in testTopActivityDisplayAreaMatchesTopMostActivity_multipleActivities()
DUnknownAppVisibilityControllerTest.java96 final ActivityRecord activity = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testRemoveFinishingInvisibleActivityFromUnknown()
DTaskFragmentTest.java262 mTaskFragment.addChild(new ActivityBuilder(mAtm).setUid(DEFAULT_TASK_FRAGMENT_ORGANIZER_UID) in testActivityStillReported_NotYetAssignedToProcess()
281 ActivityRecord translucentActivity = new ActivityBuilder(mAtm) in testActivityVisibilityBehindTranslucentTaskFragment()
286 ActivityRecord activityBelow = new ActivityBuilder(mAtm).build(); in testActivityVisibilityBehindTranslucentTaskFragment()
299 ActivityRecord activity = new ActivityBuilder(mAtm) in testFindTopNonFinishingActivity_ignoresLaunchedFromBubbleActivities()
311 ActivityRecord activity = new ActivityBuilder(mAtm) in testFindTopNonFinishingActivity_includesLaunchedFromBubbleActivities()
DDisplayContentTests.java387 new ActivityBuilder(mAtm).setCreateTask(true).build(), "app"); in testComputeImeTargetReturnsNull_windowDidntRequestIme()
389 new ActivityBuilder(mAtm).setCreateTask(true).build(), "app2"); in testComputeImeTargetReturnsNull_windowDidntRequestIme()
544 final ActivityRecord app2 = new ActivityBuilder(mAtm) in doTestFocusedWindowMultipleDisplays()
1078 final ActivityRecord app = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testNoSensorRevert()
1147 final ActivityRecord prev = new ActivityBuilder(mAtm).setCreateTask(true) in testOrientationBehind()
1150 final ActivityRecord top = new ActivityBuilder(mAtm).setCreateTask(true) in testOrientationBehind()
1665 final ActivityRecord app2 = new ActivityBuilder(mAtm).setTask(task2) in testApplyTopFixedRotationTransform()
1714 final ActivityRecord app2 = new ActivityBuilder(mWm.mAtmService).setTask(task).build(); in testFinishFixedRotationNoAppTransitioningTask()
1768 final ActivityRecord pinnedActivity = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testFixedRotationWithPip()
1815 final ActivityRecord app = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testNoFixedRotationOnResumedScheduledApp()
[all …]
DCameraStateMonitorTests.java218 mActivity = new ActivityBuilder(mAtm) in configureActivity()
DRecentTasksTest.java492 final ActivityRecord r = new ActivityBuilder(mAtm).setTask(task).build(); in testAddTasksHomeClearUntrackedTasks_expectFinish()
953 new ActivityBuilder(mAtm).setTask(t).build(); in testFreezeTaskListOrder_timeout()
1067 final ActivityRecord bottom = new ActivityBuilder(mAtm).setTask(task).build(); in testRemovePackageByName()
1068 final ActivityRecord top = new ActivityBuilder(mAtm).setTask(task).build(); in testRemovePackageByName()
1268 final ActivityRecord r1 = new ActivityBuilder(mAtm) in testTaskInfo_expectNoExtras()
1326 new ActivityBuilder(mSupervisor.mService) in testCreateRecentTaskInfo_detachedTask()
DWindowContainerTransactionTests.java202 .setRealActivity(ActivityBuilder.getDefaultComponent())
DTransparentPolicyTest.java347 final ActivityBuilder activityBuilder = new ActivityBuilder(mAtm) in launchActivity()
DTaskFragmentOrganizerControllerTest.java1799 final ActivityRecord topActivity = new ActivityBuilder(mAtm) in testApplyTransaction_reorderTaskFragmentToFront()
1827 final ActivityRecord bottomActivity = new ActivityBuilder(mAtm) in testApplyTransaction_reorderToBottomOfTask()
1833 final ActivityRecord topActivity = new ActivityBuilder(mAtm) in testApplyTransaction_reorderToBottomOfTask()
1864 final ActivityRecord bottomActivity = new ActivityBuilder(mAtm) in testApplyTransaction_reorderToTopOfTask()
1870 final ActivityRecord topActivity = new ActivityBuilder(mAtm) in testApplyTransaction_reorderToTopOfTask()
1969 final ActivityRecord bottomActivity = new ActivityBuilder(mAtm) in testApplyTransaction_reorder_failsIfNotSystemOrganizer_common()
1975 final ActivityRecord topActivity = new ActivityBuilder(mAtm) in testApplyTransaction_reorder_failsIfNotSystemOrganizer_common()
DSyncEngineTests.java125 final ActivityRecord r = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testWaitingSyncCallback()
150 final ActivityRecord taskRoot = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testFinishSyncByStartingWindow()
152 final ActivityRecord translucentTop = new ActivityBuilder(mAtm).setTask(task) in testFinishSyncByStartingWindow()
DTransitionTests.java669 final ActivityRecord app = new ActivityBuilder(mAtm).setCreateTask(true) in testRunningRemoteTransition()
1316 final ActivityRecord app = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testFinishRotationControllerWithFixedRotation()
1339 final ActivityRecord app = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testDeferRotationForTransientLaunch()
1340 final ActivityRecord home = new ActivityBuilder(mAtm) in testDeferRotationForTransientLaunch()
1612 final ActivityRecord appB = new ActivityBuilder(mAtm).setCreateTask(true) in testIsTransientVisible()
1614 final ActivityRecord recent = new ActivityBuilder(mAtm).setCreateTask(true) in testIsTransientVisible()
1616 final ActivityRecord appA = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testIsTransientVisible()
1654 final ActivityRecord recent = new ActivityBuilder(mAtm).setTask(recentTask) in testTransientWithParallelLaunch()
1656 final ActivityRecord app = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testTransientWithParallelLaunch()
2528 final ActivityRecord activity = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testDeferredMoveTaskToBack()
[all …]
DRunningTasksTest.java177 final ActivityRecord activity = new ActivityBuilder(mAtm) in createTask()

12