Home
last modified time | relevance | path

Searched refs:TaskBuilder (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityTestsBase.java177 void mockTaskRecordFactory(Consumer<TaskBuilder> taskBuilderSetup) { in mockTaskRecordFactory()
178 final TaskBuilder taskBuilder = new TaskBuilder(mSupervisor).setCreateStack(false); in mockTaskRecordFactory()
281 mTaskRecord = new TaskBuilder(mService.mStackSupervisor) in build()
333 protected static class TaskBuilder { class in ActivityTestsBase
350 TaskBuilder(ActivityStackSupervisor supervisor) { in TaskBuilder() method in ActivityTestsBase.TaskBuilder
354 TaskBuilder setComponent(ComponentName component) { in setComponent()
359 TaskBuilder setPackage(String packageName) { in setPackage()
368 TaskBuilder setCreateStack(boolean createStack) { in setCreateStack()
373 TaskBuilder setVoiceSession(IVoiceInteractionSession session) { in setVoiceSession()
378 TaskBuilder setFlags(int flags) { in setFlags()
[all …]
DActivityDisplayTests.java93 final TaskRecord pinnedTask = new TaskBuilder(mService.mStackSupervisor) in testFullscreenStackCanBeFocusedWhenFocusablePinnedStackExists()
151 final TaskRecord task = new TaskBuilder(mSupervisor).setStack(homeStack).build(); in testNotResumeHomeStackOnRemovingDisplay()
172 final TaskRecord fullscreenTask = new TaskBuilder(mService.mStackSupervisor) in createFullscreenStackWithSimpleActivityAt()
307 final TaskRecord task1 = new TaskBuilder(mService.mStackSupervisor).setStack( in removeStackTests()
309 final TaskRecord task2 = new TaskBuilder(mService.mStackSupervisor).setStack( in removeStackTests()
311 final TaskRecord task3 = new TaskBuilder(mService.mStackSupervisor).setStack( in removeStackTests()
313 final TaskRecord task4 = new TaskBuilder(mService.mStackSupervisor).setStack( in removeStackTests()
DLaunchParamsPersisterTests.java115 mTestTask = new TaskBuilder(mSupervisor).setComponent(TEST_COMPONENT).setStack(stack) in setUp()
121 mTaskWithDifferentComponent = new TaskBuilder(mSupervisor) in setUp()
125 mTaskWithDifferentUser = new TaskBuilder(mSupervisor).setComponent(TEST_COMPONENT).build(); in setUp()
236 final TaskRecord anotherTaskOfTheSameUser = new TaskBuilder(mSupervisor) in testClearsRecordsOfTheUserOnUserCleanUp()
248 final TaskRecord anotherTaskOfDifferentUser = new TaskBuilder(mSupervisor) in testClearsRecordsOfTheUserOnUserCleanUp()
DRootActivityContainerTests.java289 final TaskRecord task = new TaskBuilder(mSupervisor).setStack(primaryStack).build(); in testSplitScreenPrimaryChosenWhenTopActivityLaunchedToSecondary()
316 final TaskRecord task = new TaskBuilder(mSupervisor).setStack(primaryStack).build(); in testResizeDockedStackForSplitScreenPrimary()
358 final TaskRecord targetTask = new TaskBuilder(mSupervisor).setStack(targetStack).build(); in testFindTaskToMoveToFrontWhenRecentsOnOtherDisplay()
365 final TaskRecord task = new TaskBuilder(mSupervisor).setStack(stack).build(); in testFindTaskToMoveToFrontWhenRecentsOnOtherDisplay()
385 final TaskRecord task = new TaskBuilder(mSupervisor).setStack(targetStack).build(); in testResumeActivityWhenNonTopmostStackIsTopFocused()
441 final TaskRecord task = new TaskBuilder(mSupervisor).setStack(stack).build(); in testResumeFocusedStacksStartsHomeActivity_ActivityOnSecondaryScreen()
465 final TaskRecord task = new TaskBuilder(mSupervisor).setStack(targetStack).build(); in testResumeActivityLingeringTransition()
485 final TaskRecord task = new TaskBuilder(mSupervisor).setStack(targetStack).build(); in testResumeActivityLingeringTransition_notExecuted()
DLaunchParamsControllerTests.java281 final TaskRecord task = new TaskBuilder(mService.mStackSupervisor).build(); in testLayoutTaskPreferredDisplayChange()
301 final TaskRecord task = new TaskBuilder(mService.mStackSupervisor).build(); in testLayoutTaskWindowingModeChange()
326 final TaskRecord task = new TaskBuilder(mService.mStackSupervisor).build(); in testLayoutTaskBoundsChangeFreeformWindow()
349 final TaskRecord task = new TaskBuilder(mService.mStackSupervisor).build(); in testLayoutTaskBoundsChangeFixedWindow()
DActivityStarterTests.java129 final TaskRecord task = new TaskBuilder(mService.mStackSupervisor) in testUpdateLaunchBounds()
140 final TaskRecord task2 = new TaskBuilder(mService.mStackSupervisor) in testUpdateLaunchBounds()
229 new TaskBuilder(service.mStackSupervisor).setVoiceSession(voiceSession).build()); in verifyStartActivityPreconditions()
781 final TaskRecord topTask = new TaskBuilder(mSupervisor).setStack(topStack).build(); in testBringTaskToFrontOnSecondaryDisplay()
803 final TaskRecord taskRecord = new TaskBuilder(mSupervisor) in createSingleTaskActivityOn()
DRunningTasksTest.java107 final TaskRecord task = new TaskBuilder(mService.mStackSupervisor) in createTask()
DTaskRecordTests.java183 TaskRecord task = new TaskBuilder(mSupervisor).setStack(stack).build(); in testFitWithinBounds()
359 final TaskRecord task = new TaskBuilder(mSupervisor).build(); in testComputeConfigResourceOverrides()
452 TaskRecord task = new TaskBuilder(mSupervisor).setStack(stack).build(); in testStackBoundsConfiguration()
DActivityMetricsLaunchObserverTests.java83 mTask = new TaskBuilder(mSupervisor).setStack(mStack).build(); in setUpAMLO()
DActivityStackTests.java91 mTask = new TaskBuilder(mSupervisor).setStack(mStack).build(); in setUp()
146 final TaskRecord destTask = new TaskBuilder(mSupervisor).setStack(destStack).build(); in testResumedActivityFromActivityReparenting()
276 final TaskRecord task = new TaskBuilder(mService.mStackSupervisor).setStack(mStack).build(); in testFindTaskAlias()
DActivityRecordTests.java128 final TaskRecord newTask = new TaskBuilder(mService.mStackSupervisor).setStack(mStack) in testNoCleanupMovingActivityInSameStack()
230 TaskRecord task2 = new TaskBuilder(mService.mStackSupervisor).setStack(mStack).build(); in testsApplyOptionsLocked()
DRecentTasksTest.java1028 private TaskBuilder createTaskBuilder(String className) { in createTaskBuilder()
1032 private TaskBuilder createTaskBuilder(String packageName, String className) { in createTaskBuilder()
1033 return new TaskBuilder(mTestService.mStackSupervisor) in createTaskBuilder()
DTaskLaunchParamsModifierTests.java92 final TaskRecord task = new TaskBuilder(mSupervisor).build(); in testReturnsSkipWithEmptyActivity()
1263 final TaskRecord task = new TaskBuilder(mSupervisor).setStack(stack).build(); in addFreeformTaskTo()