Home
last modified time | relevance | path

Searched refs:mAtm (Results 1 – 25 of 67) sorted by relevance

123

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityTaskManagerServiceTests.java104 setBooted(mAtm); in setUp()
112 assertTrue("Activity must be finished", mAtm.mActivityClientController.finishActivity( in testActivityFinish()
118 mAtm.mActivityClientController.finishActivity(activity.token, 0 /* resultCode */, in testActivityFinish()
127 doReturn(mockLifecycleManager).when(mAtm).getLifecycleManager(); in testOnPictureInPictureRequested()
131 mAtm.mActivityClientController.requestPictureInPictureMode(activity); in testOnPictureInPictureRequested()
150 mAtm.mActivityClientController.requestPictureInPictureMode(activity); in testOnPictureInPictureRequested_cannotEnterPip()
162 mAtm.mActivityClientController.requestPictureInPictureMode(activity); in testOnPictureInPictureRequested_alreadyInPIPMode()
198 int[] displayIds = mAtm.mWindowManager.registerDisplayWindowListener(listener); in testDisplayWindowListener()
208 DisplayContent newDisp1 = new TestDisplayContent.Builder(mAtm, 600, 800).build(); in testDisplayWindowListener()
244 mAtm.setLockScreenShown(true, true); in testSetLockScreenShownWithVirtualDisplay()
[all …]
DCompatScaleProviderTest.java47 private ActivityTaskManagerService mAtm; field in CompatScaleProviderTest
54 mAtm = mSystemServicesTestRule.getActivityTaskManagerService(); in setUp()
65 () -> mAtm.registerCompatScaleProvider(-1, compatScaleProvider) in registerCompatScaleProviderWithInvalidId()
76 () -> mAtm.registerCompatScaleProvider( in registerCompatScaleProviderFailIfCallbackIsNull()
88 mAtm.registerCompatScaleProvider(CompatScaleProvider.COMPAT_SCALE_MODE_PRODUCT, in registerCompatScaleProviderFailIfIdIsAlreadyRegistered()
92 () -> mAtm.registerCompatScaleProvider( in registerCompatScaleProviderFailIfIdIsAlreadyRegistered()
95 mAtm.unregisterCompatScaleProvider(CompatScaleProvider.COMPAT_SCALE_MODE_PRODUCT); in registerCompatScaleProviderFailIfIdIsAlreadyRegistered()
105 mAtm.registerCompatScaleProvider(CompatScaleProvider.COMPAT_SCALE_MODE_PRODUCT, in registerCompatScaleProviderSuccessfully()
107 mAtm.mCompatModePackages.getCompatScale(TEST_PACKAGE, TEST_USER_ID); in registerCompatScaleProviderSuccessfully()
109 mAtm.unregisterCompatScaleProvider(CompatScaleProvider.COMPAT_SCALE_MODE_PRODUCT); in registerCompatScaleProviderSuccessfully()
[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()
109 synchronized (mAtm.mGlobalLock) { in testReportWaitingActivityLaunched()
142 synchronized (mAtm.mGlobalLock) { in testReportWaitingActivityLaunched()
180 mAtm.getTaskChangeNotificationController(); in testHandleNonResizableTaskOnSecondaryDisplay()
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()
[all …]
DRecentsAnimationTest.java82 mAtm.mWindowManager.setRecentsAnimationController(mRecentsAnimationController); in setUp()
83 doNothing().when(mAtm.mWindowManager).initializeRecentsAnimation( in setUp()
86 final RecentTasks recentTasks = mAtm.getRecentTasks(); in setUp()
101 ActivityRecord recentActivity = new ActivityBuilder(mAtm) in testRecentsActivityVisiblility()
106 ActivityRecord topActivity = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testRecentsActivityVisiblility()
117 mAtm.mDemoteTopAppReasons); in testRecentsActivityVisiblility()
118 assertFalse(mAtm.mInternal.useTopSchedGroupForTopProcess()); in testRecentsActivityVisiblility()
124 assertEquals(0, mAtm.mDemoteTopAppReasons); in testRecentsActivityVisiblility()
136 topRunningHomeActivity = new ActivityBuilder(mAtm) in testPreloadRecentsActivity()
158 mAtm.startRecentsActivity(recentsIntent, 0 /* eventTime */, in testPreloadRecentsActivity()
[all …]
DCompatModePackagesTests.java52 ActivityTaskManagerService mAtm; field in CompatModePackagesTests
59 mAtm = mSystemServicesTestRule.getActivityTaskManagerService(); in setUp()
61 mAtm.registerCompatScaleProvider(COMPAT_SCALE_MODE_GAME, new CompatScaleProvider() { in setUp()
84 assertEquals(1 / scale, mAtm.mCompatModePackages.getCompatScale(TEST_PACKAGE, TEST_USER_ID), in testGetCompatScale_gameManagerReturnsPositive()
93 assertEquals(mAtm.mCompatModePackages.getCompatScale(TEST_PACKAGE, TEST_USER_ID), 1f, in testGetCompatScale_gameManagerReturnsZero()
102 assertEquals(mAtm.mCompatModePackages.getCompatScale(TEST_PACKAGE, TEST_USER_ID), 1f, in testGetCompatScale_gameManagerReturnsNegative()
108 assertEquals(mAtm.mCompatModePackages.getCompatScale(TEST_PACKAGE, TEST_USER_ID), 1f, in testGetCompatScale_noGameManager()
115 mAtm.mCompatModePackages.compatibilityInfoForPackageLocked(info); in testGetCompatScale_noGameManager()
116 assertTrue(mAtm.mCompatModePackages.useLegacyScreenCompatMode(info.packageName)); in testGetCompatScale_noGameManager()
117 mAtm.mCompatModePackages.handlePackageUninstalledLocked(info.packageName); in testGetCompatScale_noGameManager()
[all …]
DActivityStarterTests.java170 new BackgroundActivityStartController(mAtm, mSupervisor); in setUp()
171 doReturn(balController).when(mAtm.mTaskSupervisor).getBackgroundActivityLaunchController(); in setUp()
174 mAppOpsManager = mAtm.getAppOpsManager(); in setUp()
240 final ActivityTaskManagerService service = mAtm; in verifyStartActivityPreconditionsUntracked()
337 final ActivityStarter optionStarter = new ActivityStarter(mController, mAtm, in verifyStartActivityPreconditionsUntracked()
338 mAtm.mTaskSupervisor, mock(ActivityStartInterceptor.class)); in verifyStartActivityPreconditionsUntracked()
404 doReturn(mMockPackageManager).when(mAtm).getPackageManagerInternalLocked(); in prepareStarter()
434 return new ActivityStarter(mController, mAtm, in prepareStarter()
435 mAtm.mTaskSupervisor, mock(ActivityStartInterceptor.class)) in prepareStarter()
448 mAtm.mTaskSupervisor.getLaunchParamsController().registerModifier(modifier); in testCreateTaskLayout()
[all …]
DActivityInterceptorCallbackRegistryTest.java92 int size = mAtm.getActivityInterceptorCallbacks().size(); in registerActivityInterceptorCallbackSuccessfully()
96 assertEquals(size + 1, mAtm.getActivityInterceptorCallbacks().size()); in registerActivityInterceptorCallbackSuccessfully()
97 assertTrue(mAtm.getActivityInterceptorCallbacks().contains(orderId)); in registerActivityInterceptorCallbackSuccessfully()
129 int size = mAtm.getActivityInterceptorCallbacks().size(); in unregisterActivityInterceptorCallbackSuccessfully()
133 assertEquals(size + 1, mAtm.getActivityInterceptorCallbacks().size()); in unregisterActivityInterceptorCallbackSuccessfully()
134 assertTrue(mAtm.getActivityInterceptorCallbacks().contains(orderId)); in unregisterActivityInterceptorCallbackSuccessfully()
137 assertEquals(size, mAtm.getActivityInterceptorCallbacks().size()); in unregisterActivityInterceptorCallbackSuccessfully()
138 assertFalse(mAtm.getActivityInterceptorCallbacks().contains(orderId)); in unregisterActivityInterceptorCallbackSuccessfully()
DWindowProcessControllerMapTests.java67 mAtm, mAtm.mContext.getApplicationInfo(), "fakepid1fakeuid1", FAKE_UID1, in setUp()
71 mAtm, mAtm.mContext.getApplicationInfo(), "fakepid1fakeuid2", FAKE_UID2, in setUp()
75 mAtm, mAtm.mContext.getApplicationInfo(), "fakepid2fakeuid1", FAKE_UID1, in setUp()
79 mAtm, mAtm.mContext.getApplicationInfo(), "fakepid3fakeuid1", FAKE_UID1, in setUp()
83 mAtm, mAtm.mContext.getApplicationInfo(), "fakepid4fakeuid2", FAKE_UID2, in setUp()
DRunningTasksTest.java69 final DisplayContent display = new TestDisplayContent.Builder(mAtm, 1000, 2500).build(); in testTaskInfo_expectNoExtrasByDefault()
84 mAtm.getRecentTasks(), mRootWindowContainer, -1 /* callingUid */, PROFILE_IDS); in testTaskInfo_expectNoExtrasByDefault()
94 final DisplayContent display = new TestDisplayContent.Builder(mAtm, 1000, 2500).build(); in testTaskInfo_expectExtrasWithKeepExtraFlag()
110 mAtm.getRecentTasks(), mRootWindowContainer, -1 /* callingUid */, PROFILE_IDS); in testTaskInfo_expectExtrasWithKeepExtraFlag()
121 final DisplayContent display = new TestDisplayContent.Builder(mAtm, 1000, 2500).build(); in testGetTasksSortByFocusAndVisibility()
150 mAtm.getRecentTasks(), mRootWindowContainer, -1 /* callingUid */, PROFILE_IDS); in testGetTasksSortByFocusAndVisibility()
161 mAtm.getRecentTasks(), mRootWindowContainer, -1 /* callingUid */, PROFILE_IDS); in testGetTasksSortByFocusAndVisibility()
172 final Task task = new TaskBuilder(mAtm.mTaskSupervisor) in createTask()
177 final ActivityRecord activity = new ActivityBuilder(mAtm) in createTask()
188 final DisplayContent display0 = new TestDisplayContent.Builder(mAtm, 1000, 2500).build(); in testMultipleDisplays()
[all …]
DRootWindowContainerTests.java108 doNothing().when(mAtm).updateSleepIfNeededLocked(); in setUp()
210 final ActivityRecord activity1 = new ActivityBuilder(mAtm).setTask(task1).build(); in testTaskLayerRank()
219 final ActivityRecord activity2 = new ActivityBuilder(mAtm).setTask(task2).build(); in testTaskLayerRank()
239 doReturn(true).when(mAtm).isSleepingOrShuttingDownLocked(); in testTaskLayerRank()
243 mAtm.mTaskSupervisor.checkReadyForSleepLocked(false /* allowDelay */); in testTaskLayerRank()
277 final ActivityRecord activity = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testAttachApplication()
279 mAtm.startProcessAsync(activity, false /* knownToBeDead */, in testAttachApplication()
313 final ActivityRecord firstActivity = new ActivityBuilder(mAtm) in testReplacingTaskInPinnedRootTask()
315 final ActivityRecord secondActivity = new ActivityBuilder(mAtm) in testReplacingTaskInPinnedRootTask()
350 final ActivityRecord firstActivity = new ActivityBuilder(mAtm) in testMovingBottomMostRootTaskActivityToPinnedRootTask()
[all …]
DActivityStartControllerTests.java59 mController = new ActivityStartController(mAtm, mAtm.mTaskSupervisor, mFactory); in setUp()
60 mStarter = spy(new ActivityStarter(mController, mAtm, in setUp()
61 mAtm.mTaskSupervisor, mock(ActivityStartInterceptor.class))); in setUp()
93 final ActivityStarter optionStarter = new ActivityStarter(mController, mAtm, in testRecycling()
94 mAtm.mTaskSupervisor, mock(ActivityStartInterceptor.class)); in testRecycling()
DTaskTests.java150 verify(mAtm.getLockTaskController(), atLeast(1)).clearLockedTask(task); in testRemoveContainer()
151 verify(mAtm.getLockTaskController(), atLeast(1)).clearLockedTask(rootTask); in testRemoveContainer()
227 final ActivityRecord activityMain = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testReparentPinnedActivityBackToOriginalTask()
229 final ActivityRecord activityPip = new ActivityBuilder(mAtm).setTask(originalTask).build(); in testReparentPinnedActivityBackToOriginalTask()
231 mAtm.mRootWindowContainer.moveActivityToPinnedRootTask(activityPip, in testReparentPinnedActivityBackToOriginalTask()
236 mAtm.getRecentTasks().getRawTasks().add(pinnedActivityTask); in testReparentPinnedActivityBackToOriginalTask()
243 assertThat(mAtm.getRecentTasks().getRawTasks()).containsExactly(originalTask); 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()
[all …]
DTaskFragmentTest.java113 mTaskFragment = new TaskFragmentBuilder(mAtm) in setup()
262 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()
350 final TaskFragment taskFragment1 = new TaskFragmentBuilder(mAtm) in testEmbeddedTaskFragmentEnterPip_singleActivity_resetOrganizerOverrideConfig()
399 spyOn(mAtm.mTaskFragmentOrganizerController); in testEmbeddedTaskFragmentEnterPip_multiActivities_notifyOrganizer()
414 verify(mAtm.mTaskFragmentOrganizerController) in testEmbeddedTaskFragmentEnterPip_multiActivities_notifyOrganizer()
424 final TaskFragment taskFragment = new TaskFragmentBuilder(mAtm) in testEmbeddedActivityExitPip_notifyOrganizer()
[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()
297 TestSplitOrganizer organizer = new TestSplitOrganizer(mAtm); in testSplitScreenMoveToBack()
337 final ActivityRecord homeActivity = new ActivityBuilder(mAtm) in testRemoveOrganizedTask_UpdateRootTaskReference()
340 final Task secondaryRootTask = mAtm.mTaskOrganizerController.createRootTask( 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()
[all …]
DActivityRecordTests.java198 setBooted(mAtm); in setUp()
206 return new TestStartingWindowOrganizer(mAtm); in registerTestStartingWindowOrganizer()
234 assertNull(mAtm.mRootWindowContainer.getRootTask(rootTask.mTaskId)); in testRootTaskCleanupOnTaskRemoval()
241 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()
329 mAtm.mSupportsMultiWindow = true; in testCanBeLaunchedOnDisplay()
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()
[all …]
DLaunchParamsControllerTests.java77 mController = new LaunchParamsController(mAtm, mPersister); in setUp()
89 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()
234 mAtm.mVr2dDisplayId = vrDisplay.mDisplayId; in testVrPreferredDisplay()
237 final ActivityRecord vrActivity = new ActivityBuilder(mAtm).build(); in testVrPreferredDisplay()
247 final ActivityRecord vr2dActivity = new ActivityBuilder(mAtm).build(); in testVrPreferredDisplay()
255 mAtm.mVr2dDisplayId = INVALID_DISPLAY; in testVrPreferredDisplay()
268 final ActivityRecord record = new ActivityBuilder(mAtm).build(); in testCalculatePhase()
269 final ActivityRecord source = new ActivityBuilder(mAtm).build(); in testCalculatePhase()
[all …]
DWindowContainerTransactionTests.java77 verify(mAtm.getLockTaskController(), atLeast(1)).clearLockedTask(task); in testRemoveTask()
78 verify(mAtm.getLockTaskController(), atLeast(1)).clearLockedTask(rootTask); in testRemoveTask()
83 final TestDesktopOrganizer desktopOrganizer = new TestDesktopOrganizer(mAtm); in testDesktopMode_tasksAreBroughtToFront()
113 final TestDesktopOrganizer desktopOrganizer = new TestDesktopOrganizer(mAtm); in testDesktopMode_moveTaskToDesktop()
156 final TestDesktopOrganizer desktopOrganizer = new TestDesktopOrganizer(mAtm); in testDesktopMode_moveTaskToFullscreen()
175 final TestDesktopOrganizer desktopOrganizer = new TestDesktopOrganizer(mAtm); in testDesktopMode_moveTaskToFront()
199 return new Task.Builder(mAtm)
DTaskFragmentOrganizerControllerTest.java160 mWindowOrganizerController = mAtm.mWindowOrganizerController; in setup()
168 new TaskFragment(mAtm, mFragmentToken, true /* createdByOrganizer */); in setup()
454 final TaskFragment taskFragment = new TaskFragmentBuilder(mAtm) in testOnActivityReparentedToTask_activityInOrganizerProcess_useActivityToken()
675 clearInvocations(mAtm.mRootWindowContainer); in testApplyTransaction_enforceHierarchyChange_deleteTaskFragment()
678 verify(mAtm.mRootWindowContainer).resumeFocusedTasksTopActivities(); in testApplyTransaction_enforceHierarchyChange_deleteTaskFragment()
706 mTaskFragment = new TaskFragmentBuilder(mAtm) in testApplyTransaction_enforceTaskFragmentOrganized_startActivityInTaskFragment()
729 mTaskFragment = new TaskFragmentBuilder(mAtm) in testApplyTransaction_enforceTaskFragmentOrganized_reparentActivityInTaskFragment()
750 mTaskFragment = new TaskFragmentBuilder(mAtm) in testApplyTransaction_enforceTaskFragmentOrganized_setAdjacentTaskFragments()
756 final TaskFragment taskFragment2 = new TaskFragmentBuilder(mAtm) in testApplyTransaction_enforceTaskFragmentOrganized_setAdjacentTaskFragments()
797 mTaskFragment = new TaskFragmentBuilder(mAtm) in testApplyTransaction_enforceTaskFragmentOrganized_clearAdjacentTaskFragments()
[all …]
DRecentTasksTest.java132 mRecentTasks = new TestRecentTasks(mAtm, mTaskPersister); in setUp()
134 mAtm.setRecentTasks(mRecentTasks); in setUp()
139 mAtm.mTaskSupervisor.setRunningTasks(mRunningTasks); in setUp()
492 final ActivityRecord r = new ActivityBuilder(mAtm).setTask(task).build(); in testAddTasksHomeClearUntrackedTasks_expectFinish()
953 new ActivityBuilder(mAtm).setTask(t).build(); in testFreezeTaskListOrder_timeout()
973 doReturn(stack).when(mAtm.mRootWindowContainer).getTopDisplayFocusedRootTask(); 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()
1157 assertNotRestoreTask(() -> mAtm.setFocusedTask(taskId)); in testNotRestoreRecentTaskApis()
1158 assertNotRestoreTask(() -> mAtm.startSystemLockTaskMode(taskId)); in testNotRestoreRecentTaskApis()
[all …]
DWindowProcessControllerTests.java92 mAtm, info, null, 0, -1, null, mMockListener); in setUp()
139 mAtm, displayBounds.width(), displayBounds.height()) in testDisplayAreaConfigurationListener_verifyConfig()
181 waitHandlerIdle(mAtm.mH); in testSetAnimatingReason()
192 waitHandlerIdle(mAtm.mH); in testSetRunningRemoteAnimation()
206 waitHandlerIdle(mAtm.mH); in testSetRunningBothAnimations()
220 final DisplayContent display = new TestDisplayContent.Builder(mAtm, 2000, 1000) in testConfigurationForSecondaryScreenDisplayArea()
226 final Configuration expectedConfig = mAtm.mRootWindowContainer.getConfiguration(); in testConfigurationForSecondaryScreenDisplayArea()
233 final ComponentName systemUiServiceComponent = mAtm.getSysUiServiceComponentLocked(); in testActivityNotOverridingSystemUiProcessConfig()
238 mAtm, applicationInfo, null, 0, -1, null, mMockListener); in testActivityNotOverridingSystemUiProcessConfig()
397 final VisibleActivityProcessTracker tracker = mAtm.mVisibleActivityProcessTracker; in testComputeProcessActivityState()
[all …]
DDisplayWindowPolicyControllerTests.java116 final ActivityRecord activity = new ActivityBuilder(mAtm) in launchActivityOnDisplay()
174 ActivityStarter starter = new ActivityStarter(mock(ActivityStartController.class), mAtm, in testCanActivityBeLaunched()
177 final ActivityRecord sourceRecord = new ActivityBuilder(mAtm).setTask(task).build(); in testCanActivityBeLaunched()
179 new ActivityBuilder(mAtm).setComponent(mDwpc.DISALLOWED_ACTIVITY).build(); in testCanActivityBeLaunched()
204 ActivityStarter starter = new ActivityStarter(mock(ActivityStartController.class), mAtm, in testCanActivityBeLaunched_requiredDisplayCategory()
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()
119 waitHandlerIdle(mAtm.mH); in verifyAsync()
221 doReturn(null).when(mAtm).getProcessController(app.mName, app.mUid); in testLaunchState()
263 final ActivityRecord noDrawnActivity = new ActivityBuilder(mAtm) in testOnActivityLaunchCancelled_finishedBeforeDrawn()
277 final ActivityRecord removedImm = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testOnActivityLaunchCancelled_finishedBeforeDrawn()
291 waitHandlerIdle(mAtm.mH); in testOnActivityLaunchWhileSleeping()
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()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DWindowProcessController.java140 private final ActivityTaskManagerService mAtm; field in WindowProcessController
337 mAtm = atm; in WindowProcessController()
342 mAtm.getSysUiServiceComponentLocked().getPackageName()); in WindowProcessController()
349 && (isSysUiPackage || mAtm.isCallerRecents(uid)); in WindowProcessController()
352 mAtm.mPackageConfigPersister.updateConfigIfNeeded(this, mUserId, mInfo.packageName); in WindowProcessController()
365 synchronized (mAtm.mGlobalLockWithoutBoost) { in setThread()
375 mAtm.mVisibleActivityProcessTracker.removeProcess(this); in setThread()
435 mAtm.getLifecycleManager().scheduleTransactionItemNow( in setReportedProcState()
494 return mAtm.mTopApp == this || (mActivityStateFlags in hasForegroundActivities()
546 mAtm.mH.sendMessage(m); in postPendingUiCleanMsg()
[all …]
DPackageConfigurationUpdaterImpl.java41 private ActivityTaskManagerService mAtm; field in PackageConfigurationUpdaterImpl
45 mAtm = atm; in PackageConfigurationUpdaterImpl()
52 mAtm = atm; in PackageConfigurationUpdaterImpl()
85 synchronized (mAtm.mGlobalLock) { in commit()
90 WindowProcessController wpc = mAtm.mProcessMap.getProcess(mPid.get()); in commit()
100 uid = mAtm.getPackageManagerInternalLocked().getPackageUid(mPackageName, in commit()
109 return mAtm.mPackageConfigPersister in commit()
120 final ArraySet<WindowProcessController> processes = mAtm.mProcessMap.getProcesses(uid); in updateConfig()
123 mLocales, mAtm.getGlobalConfiguration().getLocales()); in updateConfig()
/frameworks/opt/car/services/builtInServices/src/com/android/server/wm/
DCarLaunchParamsModifier.java58 private ActivityTaskManagerService mAtm; // set only from init() field in CarLaunchParamsModifier
84 mAtm = (ActivityTaskManagerService) ActivityTaskManager.getService(); in init()
85 LaunchParamsController controller = mAtm.mTaskSupervisor.getLaunchParamsController(); in init()
131 options, request, phase, currentParams, outParams, mAtm.mSupportsMultiDisplay); in onCalculate()
140 DisplayContent dc = mAtm.mRootWindowContainer.getDisplayContentOrCreate(displayId); in getDefaultTaskDisplayAreaOnDisplay()
169 WindowProcessController controllerFromLaunchingRecord = mAtm.getProcessController( in getFallbackDisplayAreasForActivity()
178 WindowProcessController controllerFromProcess = mAtm.getProcessController( in getFallbackDisplayAreasForActivity()
187 request == null ? null : mAtm.getProcessController(request.realCallingPid, in getFallbackDisplayAreasForActivity()
200 DisplayContent display = mAtm.mRootWindowContainer.getDisplayContent(displayId); in findTaskDisplayArea()
234 return mAtm.mAmInternal.getCurrentAndTargetUserIds();

123