Home
last modified time | relevance | path

Searched refs:mWm (Results 1 – 25 of 47) sorted by relevance

12

/frameworks/base/tests/permission/src/com/android/framework/permission/tests/
DWindowManagerPermissionTests.java34 IWindowManager mWm; field in WindowManagerPermissionTests
39 mWm = IWindowManager.Stub.asInterface( in setUp()
46 mWm.setEventDispatching(true); in testMANAGE_APP_TOKENS()
56 mWm.addWindowToken(null, 0, DEFAULT_DISPLAY); in testMANAGE_APP_TOKENS()
66 mWm.removeWindowToken(null, DEFAULT_DISPLAY); in testMANAGE_APP_TOKENS()
76 mWm.prepareAppTransition(0, false); in testMANAGE_APP_TOKENS()
86 mWm.executeAppTransition(); in testMANAGE_APP_TOKENS()
100 mWm.disableKeyguard(token, "foo", UserHandle.myUserId()); in testDISABLE_KEYGUARD()
110 mWm.reenableKeyguard(token, UserHandle.myUserId()); in testDISABLE_KEYGUARD()
120 mWm.exitKeyguardSecurely(null); in testDISABLE_KEYGUARD()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowTestsBase.java79 WindowManagerService mWm; field in WindowTestsBase
141 mWm = mSystemServicesTestRule.getWindowManagerService(); in setUpBase()
146 mWm.mTransactionFactory = () -> mTransaction; in setUpBase()
148 mWm.mSurfaceBuilderFactory = (unused) -> new MockSurfaceControlBuilder(); in setUpBase()
150 mWm.mSurfaceFactory = () -> mock(Surface.class); in setUpBase()
156 mWm.mDisplayEnabled = true; in setUpBase()
157 mWm.mDisplayReady = true; in setUpBase()
161 synchronized (mWm.mGlobalLock) { in setUpBase()
203 synchronized (mWm.mGlobalLock) { in tearDownBase()
204 mWm.mRoot.forAllWindows(w -> { in tearDownBase()
[all …]
DTaskPositioningControllerTests.java58 assertNotNull(mWm.mTaskPositioningController); in setUp()
59 mTarget = mWm.mTaskPositioningController; in setUp()
61 when(mWm.mInputManager.transferTouchFocus( in setUp()
67 synchronized (mWm.mGlobalLock) { in setUp()
68 mWm.mWindowMap.put(mWindow.mClient.asBinder(), mWindow); in setUp()
76 synchronized (mWm.mGlobalLock) { in testStartAndFinishPositioning()
83 synchronized (mWm.mGlobalLock) { in testStartAndFinishPositioning()
90 assertTrue(mWm.mH.runWithScissors(() -> { }, TIMEOUT_MS)); in testStartAndFinishPositioning()
99 synchronized (mWm.mGlobalLock) { in testFinishPositioningWhenAppRequested()
106 synchronized (mWm.mGlobalLock) { in testFinishPositioningWhenAppRequested()
[all …]
DRootWindowContainerTests.java60 assertTrue(mWm.mRoot.isAnyNonToastWindowVisibleForUid(FAKE_CALLING_UID)); in testIsAnyNonToastWindowVisibleForUid_oneToastOneAppStartOneNonToastBothVisible()
69 assertFalse(mWm.mRoot.isAnyNonToastWindowVisibleForUid(FAKE_CALLING_UID)); in testIsAnyNonToastWindowVisibleForUid_onlyToastVisible()
79 assertFalse(mWm.mRoot.isAnyNonToastWindowVisibleForUid(FAKE_CALLING_UID)); in testIsAnyNonToastWindowVisibleForUid_onlyAppStartingVisible()
89 assertFalse(mWm.mRoot.isAnyNonToastWindowVisibleForUid(FAKE_CALLING_UID)); in testIsAnyNonToastWindowVisibleForUid_aFewNonToastButNoneVisible()
94 synchronized (mWm.mGlobalLock) { in testUpdateDefaultDisplayWindowingModeOnSettingsRetrieved()
96 mWm.getDefaultDisplayContentLocked().getWindowingMode()); in testUpdateDefaultDisplayWindowingModeOnSettingsRetrieved()
98 mWm.mIsPc = true; in testUpdateDefaultDisplayWindowingModeOnSettingsRetrieved()
99 mWm.mSupportsFreeformWindowManagement = true; in testUpdateDefaultDisplayWindowingModeOnSettingsRetrieved()
101 mWm.mRoot.onSettingsRetrieved(); in testUpdateDefaultDisplayWindowingModeOnSettingsRetrieved()
104 mWm.getDefaultDisplayContentLocked().getWindowingMode()); in testUpdateDefaultDisplayWindowingModeOnSettingsRetrieved()
DWindowContainerControllerTests.java45 final WindowContainerController controller = new WindowContainerController<>(null, mWm); in testCreation()
46 final WindowContainer container = new WindowContainer(mWm); in testCreation()
55 final WindowContainerController controller = new WindowContainerController<>(null, mWm); in testSetContainer()
56 final WindowContainer container = new WindowContainer(mWm); in testSetContainer()
64 controller.setContainer(new WindowContainer(mWm)); in testSetContainer()
77 final WindowContainerController controller = new WindowContainerController<>(null, mWm); in testRemoveContainer()
78 final WindowContainer container = new WindowContainer(mWm); in testRemoveContainer()
89 final WindowContainerController controller = new WindowContainerController<>(null, mWm); in testOnOverrideConfigurationChanged()
90 final WindowContainer container = new WindowContainer(mWm); in testOnOverrideConfigurationChanged()
DDisplayWindowSettingsTests.java97 mWm.setSupportsFreeformWindowManagement(false); in setUp()
98 mWm.setIsPc(false); in setUp()
99 mWm.setForceDesktopModeOnExternalDisplays(false); in setUp()
102 mTarget = new DisplayWindowSettings(mWm, mStorage); in setUp()
104 mPrimaryDisplay = mWm.getDefaultDisplayContentLocked(); in setUp()
136 mWm.setSupportsFreeformWindowManagement(true); in testPrimaryDisplayDefaultToFullscreen_HasFreeformSupport_NonPc_NoDesktopMode()
146 mWm.setSupportsFreeformWindowManagement(true); in testPrimaryDisplayDefaultToFullscreen_HasFreeformSupport_NonPc_HasDesktopMode()
147 mWm.setForceDesktopModeOnExternalDisplays(true); in testPrimaryDisplayDefaultToFullscreen_HasFreeformSupport_NonPc_HasDesktopMode()
157 mWm.setSupportsFreeformWindowManagement(true); in testPrimaryDisplayDefaultToFreeform_HasFreeformSupport_IsPc()
158 mWm.setIsPc(true); in testPrimaryDisplayDefaultToFreeform_HasFreeformSupport_IsPc()
[all …]
DTaskSnapshotCacheTest.java48 mCache = new TaskSnapshotCache(mWm, mLoader); in setUp()
87 mPersister.persistSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, createSnapshot()); in testReduced_notCached()
89 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached()
93 assertNotNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached()
97 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached()
104 mPersister.persistSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, createSnapshot()); in testRestoreFromDisk()
106 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testRestoreFromDisk()
110 assertNotNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testRestoreFromDisk()
DAppTransitionTests.java70 synchronized (mWm.mGlobalLock) { in setUp()
72 spyOn(mWm.mRoot); in setUp()
73 doNothing().when(mWm.mRoot).performSurfacePlacement(anyBoolean()); in setUp()
75 mDc = mWm.getDefaultDisplayContentLocked(); in setUp()
81 mWm.prepareAppTransition(TRANSIT_ACTIVITY_OPEN, false /* alwaysKeepCurrent */); in testKeyguardOverride()
82 mWm.prepareAppTransition(TRANSIT_KEYGUARD_GOING_AWAY, false /* alwaysKeepCurrent */); in testKeyguardOverride()
89 mWm.prepareAppTransition(TRANSIT_KEYGUARD_GOING_AWAY, false /* alwaysKeepCurrent */); in testKeyguardKeep()
90 mWm.prepareAppTransition(TRANSIT_ACTIVITY_OPEN, false /* alwaysKeepCurrent */); in testKeyguardKeep()
97 mWm.prepareAppTransition(TRANSIT_KEYGUARD_UNOCCLUDE, false /* alwaysKeepCurrent */); in testForceOverride()
105 mWm.prepareAppTransition(TRANSIT_ACTIVITY_OPEN, false /* alwaysKeepCurrent */); in testCrashing()
[all …]
DTaskSnapshotControllerTest.java56 mWm.mTaskSnapshotController.getClosingTasks(closingApps, closingTasks); in testGetClosingApps_closing()
74 mWm.mTaskSnapshotController.getClosingTasks(closingApps, closingTasks); in testGetClosingApps_notClosing()
87 mWm.mTaskSnapshotController.addSkipClosingAppSnapshotTasks( in testGetClosingApps_skipClosingAppsSnapshotTasks()
89 mWm.mTaskSnapshotController.getClosingTasks(closingApps, closingTasks); in testGetClosingApps_skipClosingAppsSnapshotTasks()
99 mWm.mTaskSnapshotController.getSnapshotMode(disabledWindow.getTask())); in testGetSnapshotMode()
104 mWm.mTaskSnapshotController.getSnapshotMode(normalWindow.getTask())); in testGetSnapshotMode()
110 mWm.mTaskSnapshotController.getSnapshotMode(secureWindow.getTask())); in testGetSnapshotMode()
DWindowContainerTests.java69 final TestWindowContainer w = new TestWindowContainerBuilder(mWm).setLayer(0).build(); in testCreation()
76 final TestWindowContainerBuilder builder = new TestWindowContainerBuilder(mWm); in testAdd()
116 try (MockSurfaceBuildingContainer top = new MockSurfaceBuildingContainer(mWm)) { in testAddChildSetsSurfacePosition()
117 WindowContainer child = new WindowContainer(mWm); in testAddChildSetsSurfacePosition()
128 final TestWindowContainerBuilder builder = new TestWindowContainerBuilder(mWm); in testAdd_AlreadyHasParent()
153 final TestWindowContainerBuilder builder = new TestWindowContainerBuilder(mWm); in testHasChild()
183 final TestWindowContainerBuilder builder = new TestWindowContainerBuilder(mWm); in testRemoveImmediately()
218 final WindowContainer container = new WindowContainer(mWm); in testRemoveImmediately_WithController()
219 final WindowContainerController controller = new WindowContainerController<>(null, mWm); in testRemoveImmediately_WithController()
232 final WindowContainerController controller = new WindowContainerController<>(null, mWm); in testSetController()
[all …]
DDisplayContentTests.java271 mWm.setNewDisplayOverrideConfiguration(newOverrideConfig, mDisplayContent); in testDisplayOverrideConfigUpdate()
282 DisplayContent defaultDisplay = mWm.mRoot.getDisplayContent(DEFAULT_DISPLAY); in testDefaultDisplayOverrideConfigUpdate()
290 mWm.setNewDisplayOverrideConfiguration(newOverrideConfig, defaultDisplay); in testDefaultDisplayOverrideConfigUpdate()
293 Configuration globalConfig = mWm.mRoot.getConfiguration(); in testDefaultDisplayOverrideConfigUpdate()
298 mWm.setNewDisplayOverrideConfiguration(currentConfig, defaultDisplay); in testDefaultDisplayOverrideConfigUpdate()
299 globalConfig = mWm.mRoot.getConfiguration(); in testDefaultDisplayOverrideConfigUpdate()
309 DisplayContent dc0 = mWm.getDefaultDisplayContentLocked(); in testInputEventBringsCorrectDisplayInFocus()
333 assertEquals(mWm.mRoot.getTopFocusedDisplayContent().mCurrentFocus, in testInputEventBringsCorrectDisplayInFocus()
339 assertEquals(mWm.mRoot.getTopFocusedDisplayContent().mCurrentFocus, in testInputEventBringsCorrectDisplayInFocus()
360 mWm.mPerDisplayFocusEnabled = perDisplayFocusEnabled; in doTestFocusedWindowMultipleDisplays()
[all …]
DDisplayPolicyLayoutTests.java121 synchronized (mWm.mGlobalLock) { in layoutWindowLw_appDrawsBars()
138 synchronized (mWm.mGlobalLock) { in layoutWindowLw_appWontDrawBars()
155 synchronized (mWm.mGlobalLock) { in layoutWindowLw_appWontDrawBars_forceStatusAndNav()
173 synchronized (mWm.mGlobalLock) { in layoutWindowLw_keyguardDialog_hideNav()
192 synchronized (mWm.mGlobalLock) { in layoutWindowLw_withDisplayCutout()
210 synchronized (mWm.mGlobalLock) { in layoutWindowLw_withDisplayCutout_never()
229 synchronized (mWm.mGlobalLock) { in layoutWindowLw_withDisplayCutout_layoutFullscreen()
248 synchronized (mWm.mGlobalLock) { in layoutWindowLw_withDisplayCutout_fullscreen()
267 synchronized (mWm.mGlobalLock) { in layoutWindowLw_withDisplayCutout_fullscreenInCutout()
288 synchronized (mWm.mGlobalLock) { in layoutWindowLw_withDisplayCutout_landscape()
[all …]
DDragDropControllerTests.java125 mTarget = new TestDragDropController(mWm, mWm.mH.getLooper()); in setUp()
129 when(mWm.mInputManager.transferTouchFocus(any(), any())).thenReturn(true); in setUp()
131 synchronized (mWm.mGlobalLock) { in setUp()
132 mWm.mWindowMap.put(mWindow.mClient.asBinder(), mWindow); in setUp()
139 synchronized (mWm.mGlobalLock) { in tearDown()
183 assertTrue(mWm.mInputManager.transferTouchFocus(null, null)); in dragFlow()
DRecentsAnimationControllerTest.java81 synchronized (mWm.mGlobalLock) { in setUp()
83 spyOn(mWm.mRoot); in setUp()
84 doNothing().when(mWm.mRoot).performSurfacePlacement(anyBoolean()); in setUp()
85 doReturn(mDisplayContent).when(mWm.mRoot).getDisplayContent(anyInt()); in setUp()
88 mController = new RecentsAnimationController(mWm, mMockRunner, mAnimationCallbacks, in setUp()
132 mWm.setRecentsAnimationController(mController); in testIncludedApps_expectTargetAndVisible()
152 mWm.setRecentsAnimationController(mController); in testDeferCancelAnimation()
175 mWm.setRecentsAnimationController(mController); in testDeferCancelAnimationWithScreenShot()
202 mWm.setRecentsAnimationController(mController); in testShouldAnimateWhenNoCancelWithDeferredScreenshot()
DAppTransitionControllerTest.java52 mAppTransitionController = new AppTransitionController(mWm, mDisplayContent); in setUp()
58 synchronized (mWm.mGlobalLock) { in testTranslucentOpen()
76 synchronized (mWm.mGlobalLock) { in testTranslucentClose()
92 synchronized (mWm.mGlobalLock) { in testChangeIsNotOverwritten()
110 synchronized (mWm.mGlobalLock) { in testTransitWithinTask()
DDimmerTests.java119 mHost = new MockSurfaceBuildingContainer(mWm); in setUp()
177 TestWindowContainer child = new TestWindowContainer(mWm); in testDimAboveWithChildCreatesSurfaceAboveChild()
192 TestWindowContainer child = new TestWindowContainer(mWm); in testDimBelowWithChildSurfaceCreatesSurfaceBelowChild()
207 TestWindowContainer child = new TestWindowContainer(mWm); in testDimBelowWithChildSurfaceDestroyedWhenReset()
223 TestWindowContainer child = new TestWindowContainer(mWm); in testDimBelowWithChildSurfaceNotDestroyedWhenPersisted()
240 TestWindowContainer child = new TestWindowContainer(mWm); in testDimUpdateWhileDimming()
261 TestWindowContainer child = new TestWindowContainer(mWm); in testRemoveDimImmediately()
DAppWindowTokenTests.java156 mWm.mDisplayReady = true; in testLandscapeSeascapeRotationByApp()
157 mWm.mDisplayEnabled = true; in testLandscapeSeascapeRotationByApp()
180 mWm.mRoot.performSurfacePlacement(false /* recoveringMemory */); in testLandscapeSeascapeRotationByApp()
189 mWm.mDisplayReady = true; in testLandscapeSeascapeRotationByPolicy()
190 mWm.mDisplayEnabled = true; in testLandscapeSeascapeRotationByPolicy()
215 mWm.updateRotation(false, false); in performRotation()
220 mWm.mAnimator.setScreenRotationAnimationLocked(mDisplayContent.getDisplayId(), null); in performRotation()
221 mWm.mRoot.performSurfacePlacement(false /* recoveringMemory */); in performRotation()
338 mWm.mDisplayFrozen = false; in testSetOrientation()
343 synchronized (mWm.mGlobalLock) { in testReportOrientationChangeOnVisibilityChange()
[all …]
DPinnedStackControllerTest.java64 mWm.mSupportsPictureInPicture = true; in setShelfHeight_shelfVisibilityChangedTriggered()
65 mWm.registerPinnedStackListener(DEFAULT_DISPLAY, mIPinnedStackListener); in setShelfHeight_shelfVisibilityChangedTriggered()
76 mWm.setShelfHeight(true, SHELF_HEIGHT); in setShelfHeight_shelfVisibilityChangedTriggered()
DRemoteAnimationControllerTest.java83 mWm.mH.runWithScissors(() -> mHandler = new TestHandler(null, mClock), 0); in setUp()
84 mController = new RemoteAnimationController(mWm, mAdapter, mHandler); in setUp()
96 mWm.mAnimator.executeAfterPrepareSurfacesRunnables(); in testRun()
153 mWm.setAnimationScale(2, 5.0f); in testTimeout_scaled()
172 mWm.setAnimationScale(2, 1.0f); in testTimeout_scaled()
201 mWm.mAnimator.executeAfterPrepareSurfacesRunnables(); in testOneNotStarted()
237 mWm.mAnimator.executeAfterPrepareSurfacesRunnables(); in testChange()
DWindowManagerServiceTests.java44 mWm.setForceShowSystemBars(true); in testForceShowSystemBarsThrowsExceptionForNonAutomotive()
52 mWm.setForceShowSystemBars(true); in testForceShowSystemBarsDoesNotThrowExceptionForAutomotiveWithStatusBarPermission()
DTaskStackContainersTests.java118 mWm.mRoot.positionChildAt(WindowContainer.POSITION_TOP, createNewDisplay(), in testDisplayPositionWithPinnedStack()
123 final int indexOfDisplayWithPinnedStack = mWm.mRoot.mChildren.indexOf(mDisplayContent); in testDisplayPositionWithPinnedStack()
126 mWm.mRoot.getChildCount() - 1, indexOfDisplayWithPinnedStack); in testDisplayPositionWithPinnedStack()
DWallpaperControllerTests.java47 synchronized (mWm.mGlobalLock) { in testWallpaperScreenshot()
53 WindowToken wallpaperWindowToken = new WallpaperWindowToken(mWm, mock(IBinder.class), in testWallpaperScreenshot()
/frameworks/base/core/java/android/service/autofill/augmented/
DFillWindow.java76 private WindowManager mWm; field in FillWindow
138 mWm = rootView.getContext().getSystemService(WindowManager.class); in update()
168 if (mWm == null || mFillView == null) { in show()
193 if (mWm == null || mFillView == null) { in hide()
209 if (mWm != null && mFillView != null) { in handleShow()
212 mWm.addView(mFillView, p); in handleShow()
215 mWm.updateViewLayout(mFillView, p); in handleShow()
224 if (mWm != null && mFillView != null && mShowing) { in handleHide()
225 mWm.removeView(mFillView); in handleHide()
285 pw.println(mWm); in dump()
/frameworks/base/packages/WallpaperBackup/src/com/android/wallpaperbackup/
DWallpaperBackupAgent.java84 private WallpaperManager mWm; field in WallpaperBackupAgent
96 mWm = (WallpaperManager) getSystemService(Context.WALLPAPER_SERVICE); in onCreate()
129 mWm.getWallpaperIdForUser(FLAG_SYSTEM, UserHandle.USER_SYSTEM); in onFullBackup()
131 mWm.getWallpaperIdForUser(FLAG_LOCK, UserHandle.USER_SYSTEM); in onFullBackup()
135 final boolean sysEligible = mWm.isWallpaperBackupEligible(FLAG_SYSTEM); in onFullBackup()
136 final boolean lockEligible = mWm.isWallpaperBackupEligible(FLAG_LOCK); in onFullBackup()
140 … ParcelFileDescriptor lockFd = mWm.getWallpaperFile(FLAG_LOCK, UserHandle.USER_SYSTEM); in onFullBackup()
234 mWm.setWallpaperComponent(wpService, UserHandle.USER_SYSTEM); in onRestoreFinished()
238 mWm.clear(FLAG_LOCK); in onRestoreFinished()
275 mWm.setStream(in, cropHint.isEmpty() ? null : cropHint, true, which); in restoreFromStage()
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/
DAssistDisclosure.java43 private final WindowManager mWm; field in AssistDisclosure
52 mWm = mContext.getSystemService(WindowManager.class); in AssistDisclosure()
74 mWm.addView(mView, lp); in show()
81 mWm.removeView(mView); in hide()

12