Home
last modified time | relevance | path

Searched refs:mAtmService (Results 1 – 25 of 48) sorted by relevance

12

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowOrganizerTests.java120 mWm.mAtmService.mTaskOrganizerController.registerTaskOrganizer(organizer); in registerMockOrganizer()
153 mWm.mAtmService.mTaskOrganizerController.setDeferTaskOrgCallbacksConsumer((r) -> r.run()); in setUp()
162 mWm.mAtmService.mTaskOrganizerController.dispatchPendingEvents(); in testAppearVanish()
168 mWm.mAtmService.mTaskOrganizerController.dispatchPendingEvents(); in testAppearVanish()
178 mWm.mAtmService.mTaskOrganizerController.dispatchPendingEvents(); in testAppearWaitsForVisibility()
184 mWm.mAtmService.mTaskOrganizerController.dispatchPendingEvents(); in testAppearWaitsForVisibility()
191 mWm.mAtmService.mTaskOrganizerController.dispatchPendingEvents(); in testAppearWaitsForVisibility()
217 mWm.mAtmService.mTaskOrganizerController.dispatchPendingEvents(); in testTaskNoDraw()
223 mWm.mAtmService.mTaskOrganizerController.unregisterTaskOrganizer(organizer); in testTaskNoDraw()
225 mWm.mAtmService.mTaskOrganizerController.dispatchPendingEvents(); in testTaskNoDraw()
[all …]
DWindowManagerServiceTests.java108 spyOn(mWm.mAtmService); in testTaskFocusChange_rootTaskNotHomeType_focusChanges()
112 verify(mWm.mAtmService).setFocusedTask(tappedTask.mTaskId); in testTaskFocusChange_rootTaskNotHomeType_focusChanges()
129 spyOn(mWm.mAtmService); in testTaskFocusChange_rootTaskHomeTypeWithSameTaskDisplayArea_focusDoesNotChange()
133 verify(mWm.mAtmService, never()).setFocusedTask(tappedTask.mTaskId); in testTaskFocusChange_rootTaskHomeTypeWithSameTaskDisplayArea_focusDoesNotChange()
152 spyOn(mWm.mAtmService); in testTaskFocusChange_rootTaskHomeTypeWithDifferentTaskDisplayArea_focusChanges()
156 verify(mWm.mAtmService).setFocusedTask(tappedTask.mTaskId); in testTaskFocusChange_rootTaskHomeTypeWithDifferentTaskDisplayArea_focusChanges()
164 doNothing().when(mWm.mAtmService.mTaskSupervisor).wakeUp(anyString()); in testDismissKeyguardCanWakeUp()
166 verify(mWm.mAtmService.mTaskSupervisor).wakeUp(anyString()); in testDismissKeyguardCanWakeUp()
DWindowManagerSettingsTests.java78 mWm.mAtmService.mSupportsFreeformWindowManagement = curFreeformWindow; in testFreeformWindow()
81 assertEquals(mWm.mAtmService.mSupportsFreeformWindowManagement, newFreeformWindow); in testFreeformWindow()
92 mWm.mAtmService.mSupportsFreeformWindowManagement = curFreeformWindow; in testFreeformWindow_valueChanged_updatesDisplaySettings()
116 assertEquals(mWm.mAtmService.mForceResizableActivities, forceResizableMode); in testForceResizableMode()
130 assertEquals(mWm.mAtmService.mDevEnableNonResizableMultiWindow, in testSupportsNonResizableMultiWindow()
DDisplayWindowSettingsTests.java89 mWm.mAtmService.mSupportsFreeformWindowManagement = false; in setUp()
117 mWm.mAtmService.mSupportsFreeformWindowManagement = true; in testPrimaryDisplayDefaultToFullscreen_HasFreeformSupport_NonPc_NoDesktopMode()
127 mWm.mAtmService.mSupportsFreeformWindowManagement = true; in testPrimaryDisplayDefaultToFullscreen_HasFreeformSupport_NonPc_HasDesktopMode()
138 mWm.mAtmService.mSupportsFreeformWindowManagement = true; in testPrimaryDisplayDefaultToFreeform_HasFreeformSupport_IsPc()
150 mWm.mAtmService.mSupportsFreeformWindowManagement = true; in testPrimaryDisplayUpdateToFreeform_HasFreeformSupport_IsPc()
169 mWm.mAtmService.mSupportsFreeformWindowManagement = true; in testSecondaryDisplayDefaultToFreeform_HasFreeformSupport_NonPc_NoDesktopMode()
179 mWm.mAtmService.mSupportsFreeformWindowManagement = true; in testSecondaryDisplayDefaultToFreeform_HasFreeformSupport_NonPc_HasDesktopMode()
190 mWm.mAtmService.mSupportsFreeformWindowManagement = true; in testSecondaryDisplayDefaultToFreeform_HasFreeformSupport_IsPc()
DSystemServicesTestRule.java110 private ActivityTaskManagerService mAtmService; field in SystemServicesTestRule
280 mAtmService = new TestActivityTaskManagerService(mContext, mAmService);
281 LocalServices.addService(ActivityTaskManagerInternal.class, mAtmService.getAtmInternal());
292 mContext, mImService, false, false, mWMPolicy, mAtmService,
322 final DisplayContent display = mAtmService.mRootWindowContainer.getDefaultDisplay();
343 .unregisterDisplayListener(mAtmService.mRootWindowContainer);
398 return mAtmService;
DWallpaperControllerTests.java319 mWm.mAtmService.getTransitionController().registerTransitionPlayer(mockPlayer); in testWallpaperTokenVisibility()
322 mWm.mAtmService.getTransitionController().createTransition(TRANSIT_OPEN); in testWallpaperTokenVisibility()
329 mWm.mAtmService.getTransitionController().abort(transit); in testWallpaperTokenVisibility()
333 transit = mWm.mAtmService.getTransitionController().createTransition(TRANSIT_CLOSE); in testWallpaperTokenVisibility()
347 final ActivityRecord homeActivity = new ActivityBuilder(mWm.mAtmService) in createWallpaperTargetWindow()
DDisplayAreaTest.java540 spyOn(mWm.mAtmService.mWindowOrganizerController.mDisplayAreaOrganizerController); in testDisplayContentUpdateDisplayAreaOrganizers_onDisplayAreaAppeared()
541 when(mWm.mAtmService.mWindowOrganizerController.mDisplayAreaOrganizerController in testDisplayContentUpdateDisplayAreaOrganizers_onDisplayAreaAppeared()
549 verify(mWm.mAtmService.mWindowOrganizerController.mDisplayAreaOrganizerController) in testDisplayContentUpdateDisplayAreaOrganizers_onDisplayAreaAppeared()
562 spyOn(mWm.mAtmService.mWindowOrganizerController.mDisplayAreaOrganizerController); in testRemoveImmediately_onDisplayAreaVanished()
568 verify(mWm.mAtmService.mWindowOrganizerController.mDisplayAreaOrganizerController) in testRemoveImmediately_onDisplayAreaVanished()
579 mWm.mAtmService.mWindowOrganizerController.mDisplayAreaOrganizerController; in testRegisterSameFeatureOrganizer_expectThrowsException()
590 mWm.mAtmService.mWindowOrganizerController.mDisplayAreaOrganizerController; in testRegisterUnregisterOrganizer()
DTaskDisplayAreaTests.java385 final RootWindowContainer rootWindowContainer = mWm.mAtmService.mRootWindowContainer; in testGetOrientation_nonResizableHomeTaskWithHomeActivityPendingVisibilityChange()
406 homeActivity = new ActivityBuilder(mWm.mAtmService) in testGetOrientation_nonResizableHomeTaskWithHomeActivityPendingVisibilityChange()
506 final RootWindowContainer rootWindowContainer = mWm.mAtmService.mRootWindowContainer; in testRemove_reparentToDefault()
522 final RootWindowContainer rootWindowContainer = mWm.mAtmService.mRootWindowContainer; in testRemove_rootTaskCreatedByOrganizer()
DRootWindowContainerTests.java114 mWm.mAtmService.mSupportsFreeformWindowManagement = true; in testUpdateDefaultDisplayWindowingModeOnSettingsRetrieved()
133 final ActivityRecord activity = new ActivityBuilder(mWm.mAtmService) in testFindActivityByTargetComponent()
203 new ActivityBuilder(mWm.mAtmService).setTask(task).setUseProcess(wpc).build(), in testForceStopPackage()
204 new ActivityBuilder(mWm.mAtmService).setTask(task).setUseProcess(wpc).build() in testForceStopPackage()
212 mWm.mAtmService.mInternal.onForceStopPackage(wpc.mInfo.packageName, true /* doit */, in testForceStopPackage()
/frameworks/base/services/core/java/com/android/server/wm/
DActivityRecord.java426 final ActivityTaskManagerService mAtmService; field in ActivityRecord
815 synchronized (mAtmService.mGlobalLock) {
817 mAtmService.logAppTooSlow(app, pauseTime, "pausing " + ActivityRecord.this);
827 synchronized (mAtmService.mGlobalLock) {
829 mAtmService.logAppTooSlow(
839 synchronized (mAtmService.mGlobalLock) {
849 synchronized (mAtmService.mGlobalLock) {
1195 mAtmService.getLifecycleManager().scheduleTransaction(app.getThread(), appToken, in scheduleActivityMovedToDisplay()
1212 mAtmService.getLifecycleManager().scheduleTransaction(app.getThread(), appToken, in scheduleConfigurationChanged()
1230 mAtmService.getLifecycleManager().scheduleTransaction(app.getThread(), appToken, in scheduleTopResumedActivityChanged()
[all …]
DTaskDisplayArea.java121 private ActivityTaskManagerService mAtmService; field in TaskDisplayArea
208 mAtmService = service.mAtmService; in TaskDisplayArea()
379 mAtmService.updateSleepIfNeededLocked();
399 mAtmService.updateSleepIfNeededLocked();
470 mAtmService.mTaskSupervisor.updateTopResumedActivityIfNeeded();
474 mAtmService.setResumedActivityUncheckLocked(r, "positionChildAt");
503 mAtmService.getTaskChangeNotificationController().notifyTaskMovedToFront(t.getTaskInfo());
1124 return new Task.Builder(mAtmService)
1163 return mAtmService.mTaskSupervisor.getNextTaskIdForUser();
1187 return new Task.Builder(mAtmService)
[all …]
DEmbeddedWindowController.java45 private final ActivityTaskManagerService mAtmService; field in EmbeddedWindowController
48 mAtmService = atmService; in EmbeddedWindowController()
83 mAtmService.getProcessController(window.mOwnerPid, window.mOwnerUid); in updateProcessController()
122 mAtmService.getProcessController(window.mOwnerPid, window.mOwnerUid); in onActivityRemoved()
DWindowManagerShellCommand.java582 synchronized (mInternal.mAtmService.mGlobalLock) { in runSetSupportsNonResizableMultiWindow()
583 mInternal.mAtmService.mSupportsNonResizableMultiWindow = configValue; in runSetSupportsNonResizableMultiWindow()
596 synchronized (mInternal.mAtmService.mGlobalLock) { in runSetRespectsActivityMinWidthHeightMultiWindow()
597 mInternal.mAtmService.mRespectsActivityMinWidthHeightMultiWindow = configValue; in runSetRespectsActivityMinWidthHeightMultiWindow()
603 synchronized (mInternal.mAtmService.mGlobalLock) { in runGetMultiWindowConfig()
605 + mInternal.mAtmService.mSupportsNonResizableMultiWindow); in runGetMultiWindowConfig()
607 + mInternal.mAtmService.mRespectsActivityMinWidthHeightMultiWindow); in runGetMultiWindowConfig()
617 synchronized (mInternal.mAtmService.mGlobalLock) { in runResetMultiWindowConfig()
618 mInternal.mAtmService.mSupportsNonResizableMultiWindow = supportsNonResizable; in runResetMultiWindowConfig()
619 mInternal.mAtmService.mRespectsActivityMinWidthHeightMultiWindow = in runResetMultiWindowConfig()
DTask.java500 final ActivityTaskManagerService mAtmService; field in Task
635 synchronized (mAtmService.mGlobalLock) { in handleMessage()
863 mAtmService = atmService; in Task()
865 mRootWindowContainer = mAtmService.mRootWindowContainer; in Task()
912 mAtmService.getTaskChangeNotificationController().notifyTaskCreated(_taskId, realActivity); in Task()
914 mCurrentUser = mAtmService.mAmInternal.getCurrentUserId(); in Task()
941 mAtmService.getTaskChangeNotificationController().notifyTaskCreated(mTaskId, realActivity); in reuseAsLeafTask()
977 mAtmService.getLockTaskController().clearLockedTask(this); in removeIfPossible()
985 mAtmService.getTaskChangeNotificationController().notifyTaskRemoved(mTaskId); in removeIfPossible()
1005 mAtmService.deferWindowLayout(); in resize()
[all …]
DStartingSurfaceController.java71 if (task != null && mService.mAtmService.mTaskOrganizerController.addStartingWindow( in createSplashScreenStartingSurface()
151 mService.mAtmService.mTaskOrganizerController.addStartingWindow(task, in createTaskSnapshotSurface()
170 mService.mAtmService.mTaskOrganizerController.removeStartingWindow(mTask, animate); in remove()
DDisplayWindowListenerController.java42 for (int i = 0; i < mService.mAtmService.mRootWindowContainer.getChildCount(); in registerListener()
44 DisplayContent d = mService.mAtmService.mRootWindowContainer.getChildAt(i); in registerListener()
DDisplayRotation.java417 mService.mAtmService.getTransitionController().getTransitionPlayer() != null; in updateRotationUnchecked()
494 && !mService.mAtmService.getTransitionController().isCollecting()) in updateRotationUnchecked()
495 ? mService.mAtmService.getTransitionController().createTransition(TRANSIT_CHANGE) in updateRotationUnchecked()
497 mService.mAtmService.getTransitionController().collect(mDisplayContent); in updateRotationUnchecked()
514 mService.mAtmService.getTransitionController().requestStartTransition( in updateRotationUnchecked()
592 if (mService.mAtmService.getTransitionController().getTransitionPlayer() != null) { in continueRotation()
593 if (!mService.mAtmService.getTransitionController().isCollecting()) { in continueRotation()
596 mService.mAtmService.getTransitionController().collect(mDisplayContent); in continueRotation()
602 mService.mAtmService.getTransitionController().collect(task); in continueRotation()
607 mService.mAtmService.deferWindowLayout(); in continueRotation()
[all …]
DWallpaperWindowToken.java115 if (mWmService.mAtmService.getTransitionController().getTransitionPlayer() != null) { in updateWallpaperWindows()
160 mWmService.mAtmService.getTransitionController().collect(this); in setVisibility()
165 if (!visible && (mWmService.mAtmService.getTransitionController().inTransition() in setVisibility()
DDisplayContent.java269 final ActivityTaskManagerService mAtmService; field in DisplayContent
1003 mAtmService = mWmService.mAtmService; in DisplayContent()
1037 if (mWmService.mAtmService.getRecentTasks() != null) { in DisplayContent()
1039 mWmService.mAtmService.getRecentTasks().getInputListener()); in DisplayContent()
1473 || mAtmService.getTransitionController().isCollecting(this))) { in updateOrientation()
1503 mAtmService.getTaskChangeNotificationController() in updateOrientation()
1873 mWmService.mAtmService.getTransitionController().getTransitionPlayer() != null; in applyRotation()
2827 mAtmService.mWindowOrganizerController.mDisplayAreaOrganizerController in updateDisplayAreaOrganizers()
3640 mAtmService.onImeWindowSetOnDisplayArea(imePid, mImeWindowsContainer); in setInputMethodWindowLocked()
4976 mAtmService.getTransitionController().requestTransitionIfNeeded(transit, flags, in requestTransitionAndLegacyPrepare()
[all …]
DTaskPositioner.java149 mService.mAtmService.resizeTask( in onInputEvent()
179 mService.mAtmService.resizeTask( in onInputEvent()
373 mService.mAtmService.resizeTask( in startDrag()
DEnsureActivitiesVisibleHelper.java102 if (mTask.mAtmService.getTransitionController().getTransitionPlayer() != null) { in process()
DSession.java354 final ActivityInfo info = mService.mAtmService.resolveActivityInfoForIntent( in validateAndResolveDragMimeTypeExtras()
388 final ActivityInfo info = mService.mAtmService.resolveActivityInfoForIntent( in validateAndResolveDragMimeTypeExtras()
413 final ActivityInfo info = mService.mAtmService.resolveActivityInfoForIntent( in validateAndResolveDragMimeTypeExtras()
640 final WindowProcessController wpc = mService.mAtmService.mProcessMap.getProcess(mPid); in windowAddedLocked()
DResetTargetTaskHelper.java232 final ActivityTaskManagerService atmService = mTargetRootTask.mAtmService; in processPendingReparentActivities()
DDisplayArea.java97 wms.mAtmService.mWindowOrganizerController.mDisplayAreaOrganizerController; in DisplayArea()
557 if (!mWmService.mAtmService.isKeyguardLocked()
DWindowToken.java584 app = mWmService.mAtmService.mProcessMap.getProcess(w.mSession.mPid); in notifyFixedRotationTransform()
597 mWmService.mAtmService.getLifecycleManager().scheduleTransaction( in notifyFixedRotationTransform()

12