Home
last modified time | relevance | path

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

1234

/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DWindowManagerServiceTests.java163 spyOn(mWm.mAtmService); in testTaskFocusChange_rootTaskNotHomeType_focusChanges()
184 spyOn(mWm.mAtmService); in testTaskFocusChange_rootTaskHomeTypeWithSameTaskDisplayArea_focusDoesNotChange()
207 spyOn(mWm.mAtmService); in testTaskFocusChange_rootTaskHomeTypeWithDifferentTaskDisplayArea_focusChanges()
238 spyOn(mWm.mWindowPlacerLocked); in testRelayoutExitingWindow()
522 mWm.mPerDisplayFocusEnabled = true; in testSetInTouchMode_instrumentedProcessGetPermissionToSwitchTouchMode()
542 mWm.mPerDisplayFocusEnabled = true; in testSetInTouchMode_nonInstrumentedProcessDontGetPermissionToSwitchTouchMode()
562 mWm.mPerDisplayFocusEnabled = false; in testSetInTouchMode_multiDisplay_globalTouchModeUpdate()
593 mWm.mPerDisplayFocusEnabled = true; in testSetInTouchMode_multiDisplay_perDisplayFocus_singleDisplayTouchModeUpdate()
619 mWm.mPerDisplayFocusEnabled = false; in testSetInTouchMode_multiDisplay_ownTouchMode_singleDisplayTouchModeUpdate()
694 mWm.mRoot.onDisplayAdded(displayId); in createVirtualDisplay()
[all …]
H A DWindowManagerSettingsTests.java79 mWm.mSettingsObserver.onChange(false, freeformWindowUri); in testFreeformWindow()
93 clearInvocations(mWm.mRoot); in testFreeformWindow_valueChanged_updatesDisplaySettings()
94 mWm.mSettingsObserver.onChange(false, freeformWindowUri); in testFreeformWindow_valueChanged_updatesDisplaySettings()
97 verify(mWm.mRoot).onSettingsRetrieved(); in testFreeformWindow_valueChanged_updatesDisplaySettings()
99 clearInvocations(mWm.mRoot); in testFreeformWindow_valueChanged_updatesDisplaySettings()
103 verify(mWm.mRoot, never()).onSettingsRetrieved(); in testFreeformWindow_valueChanged_updatesDisplaySettings()
142 clearInvocations(mWm.mRoot); in testChangeBaseDisplaySettingsPath()
143 clearInvocations(mWm.mDisplayWindowSettings); in testChangeBaseDisplaySettingsPath()
144 clearInvocations(mWm.mDisplayWindowSettingsProvider); in testChangeBaseDisplaySettingsPath()
155 verify(mWm.mDisplayWindowSettings, times(mWm.mRoot.mChildren.size())) in testChangeBaseDisplaySettingsPath()
[all …]
H A DWindowOrganizerTests.java261 spyOn(mWm.mAtmService); in testRemoveWithOrganizerRemovesTask()
279 spyOn(mWm.mAtmService); in testNoRemoveWithOrganizerNoRemoveTask()
1240 mWm.mSyncEngine.onSurfacePlacement(); in testBLASTCallbackWithWindows()
1251 mWm.mSyncEngine.onSurfacePlacement(); in testBLASTCallbackWithWindows()
1303 mWm.mWindowPlacerLocked.deferLayout(); in testAppearDeferThenInfoChange()
1327 mWm.mWindowPlacerLocked.deferLayout(); in testAppearDeferThenVanish()
1346 mWm.mWindowPlacerLocked.deferLayout(); in testInfoChangeDeferMultiple()
1376 mWm.mWindowPlacerLocked.deferLayout(); in testInfoChangDeferThenVanish()
1399 mWm.mWindowPlacerLocked.deferLayout(); in testVanishDeferThenInfoChange()
1418 mWm.mWindowPlacerLocked.deferLayout(); in testVanishDeferThenBackOnRoot()
[all …]
H A DDisplayAreaTest.java148 mWm, "TDA", FEATURE_DEFAULT_TASK_CONTAINER); in testAsDisplayArea()
217 new DisplayArea<>(mWm, ANY, "DA1"); in testForAllTaskDisplayAreas_appliesOnTaskDisplayAreaInOrder()
219 new DisplayArea<>(mWm, ANY, "DA2"); in testForAllTaskDisplayAreas_appliesOnTaskDisplayAreaInOrder()
221 mWm, "TDA1", FEATURE_DEFAULT_TASK_CONTAINER); in testForAllTaskDisplayAreas_appliesOnTaskDisplayAreaInOrder()
223 mWm, "TDA2", FEATURE_VENDOR_FIRST); in testForAllTaskDisplayAreas_appliesOnTaskDisplayAreaInOrder()
225 mWm, "TDA3", FEATURE_VENDOR_FIRST + 1); in testForAllTaskDisplayAreas_appliesOnTaskDisplayAreaInOrder()
317 mWm, "TDA1", FEATURE_DEFAULT_TASK_CONTAINER); in testForAllTaskDisplayAreas_returnsWhenCallbackReturnTrue()
319 mWm, "TDA2", FEATURE_VENDOR_FIRST); in testForAllTaskDisplayAreas_returnsWhenCallbackReturnTrue()
345 mWm, "TDA1", FEATURE_DEFAULT_TASK_CONTAINER); in testReduceOnAllTaskDisplayAreas_returnsTheAccumulativeResult()
347 mWm, "TDA2", FEATURE_VENDOR_FIRST); in testReduceOnAllTaskDisplayAreas_returnsTheAccumulativeResult()
[all …]
H A DLetterboxUiControllerTest.java136 mLetterboxConfiguration = mWm.mLetterboxConfiguration; in setUp()
139 mController = new LetterboxUiController(mWm, mActivity); in setUp()
161 mController = new LetterboxUiController(mWm, mActivity); in testShouldIgnoreRequestedOrientation_cameraCompatTreatment_returnsTrue()
185 mController = new LetterboxUiController(mWm, mActivity); in testShouldIgnoreRequestedOrientation_propertyIsTrue_returnsTrue()
199 mController = new LetterboxUiController(mWm, mActivity); in testShouldIgnoreRequestedOrientation_propertyIsFalseAndOverride_returnsFalse()
227 mController = new LetterboxUiController(mWm, mActivity); in testShouldIgnoreOrientationRequestLoop_propertyIsFalseAndOverride_returnsFalse()
338 mController = new LetterboxUiController(mWm, mActivity); in testShouldRefreshActivityForCameraCompat_propertyIsTrueAndOverride_returnsFalse()
350 mController = new LetterboxUiController(mWm, mActivity); in testShouldRefreshActivityForCameraCompat_propertyIsFalse_returnsFalse()
362 mController = new LetterboxUiController(mWm, mActivity); in testShouldRefreshActivityForCameraCompat_propertyIsTrue_returnsTrue()
668 spyOn(mWm); in testOverrideOrientationIfNeeded_mapInvokedOnRequest()
[all …]
H A DSyncEngineTests.java70 spyOn(mWm.mWindowPlacerLocked); in setUp()
75 TestWindowContainer mockWC = new TestWindowContainer(mWm, false /* waiter */); in testTrivialSyncCallback()
85 verify(mWm.mWindowPlacerLocked, times(0)).requestTraversal(); in testTrivialSyncCallback()
92 verify(mWm.mWindowPlacerLocked).requestTraversal(); in testTrivialSyncCallback()
103 TestWindowContainer mockWC = new TestWindowContainer(mWm, true /* waiter */); in testWaitingSyncCallback()
114 verify(mWm.mWindowPlacerLocked).requestTraversal(); in testWaitingSyncCallback()
141 TestWindowContainer mockWC = new TestWindowContainer(mWm, true /* waiter */); in testInvisibleSyncCallback()
152 verify(mWm.mWindowPlacerLocked).requestTraversal(); in testInvisibleSyncCallback()
166 TestWindowContainer childWC = new TestWindowContainer(mWm, true /* waiter */); in testWaitForChildrenCallback()
344 mWm.mTransactionFactory = () -> spy(new StubTransaction()); in testRemoval()
[all …]
H A DDisplayWindowSettingsTests.java92 mWm.setIsPc(false); in setUp()
93 mWm.setForceDesktopModeOnExternalDisplays(false); in setUp()
98 mPrimaryDisplay = mWm.getDefaultDisplayContentLocked(); in setUp()
130 mWm.setForceDesktopModeOnExternalDisplays(true); in testPrimaryDisplayDefaultToFullscreen_HasFreeformSupport_NonPc_HasDesktopMode()
141 mWm.setIsPc(true); in testPrimaryDisplayDefaultToFreeform_HasFreeformSupport_IsPc()
154 mWm.setIsPc(true); in testPrimaryDisplayUpdateToFreeform_HasFreeformSupport_IsPc()
183 mWm.setForceDesktopModeOnExternalDisplays(true); in testSecondaryDisplayDefaultToFreeform_HasFreeformSupport_NonPc_HasDesktopMode()
194 mWm.setIsPc(true); in testSecondaryDisplayDefaultToFreeform_HasFreeformSupport_IsPc()
426 mWm.setForceDesktopModeOnExternalDisplays(true); in testShouldShowImeOnDisplayWithinForceDesktopMode()
435 mWm.setForceDesktopModeOnExternalDisplays(false); in testShouldShowImeOnDisplayWithinForceDesktopMode()
[all …]
H A DContentRecordingControllerTests.java69 mWm.mRoot.onDisplayAdded(mVirtualDisplayId); in setup()
89 controller.setContentRecordingSessionLocked(mDefaultSession, mWm); in testSetContentRecordingSessionLocked_defaultSession()
101 controller.setContentRecordingSessionLocked(session, mWm); in testSetContentRecordingSessionLocked_invalidDisplayId_notAccepted()
112 controller.setContentRecordingSessionLocked(mDefaultSession, mWm); in testSetContentRecordingSessionLocked_newSession_accepted()
133 controller.setContentRecordingSessionLocked(sessionUpdate, mWm); in testSetContentRecordingSessionLocked_updateSession_noLongerWaiting_accepted()
146 controller.setContentRecordingSessionLocked(mDefaultSession, mWm); in testSetContentRecordingSessionLocked_invalidUpdateSession_notWaiting_notAccepted()
153 controller.setContentRecordingSessionLocked(sessionUpdate, mWm); in testSetContentRecordingSessionLocked_invalidUpdateSession_notWaiting_notAccepted()
165 controller.setContentRecordingSessionLocked(mDefaultSession, mWm); in testSetContentRecordingSessionLocked_disableCurrentSession_accepted()
170 controller.setContentRecordingSessionLocked(sessionUpdate, mWm); in testSetContentRecordingSessionLocked_disableCurrentSession_accepted()
183 controller.setContentRecordingSessionLocked(mDefaultSession, mWm); in testSetContentRecordingSessionLocked_takeOverCurrentSession_accepted()
[all …]
H A DTaskPositioningControllerTests.java60 assertNotNull(mWm.mTaskPositioningController); in setUp()
61 mTarget = mWm.mTaskPositioningController; in setUp()
63 when(mWm.mInputManager.transferTouchFocus( in setUp()
71 mWm.mWindowMap.put(mWindow.mClient.asBinder(), mWindow); in setUp()
87 assertTrue(waitHandlerIdle(mWm.mAnimationHandler, TIMEOUT_MS)); in testStartAndFinishPositioning()
105 assertTrue(waitHandlerIdle(mWm.mAnimationHandler, TIMEOUT_MS)); in testFinishPositioningWhenAppRequested()
122 assertTrue(waitHandlerIdle(mWm.mH, TIMEOUT_MS)); in testHandleTapOutsideTask()
129 assertTrue(waitHandlerIdle(mWm.mAnimationHandler, TIMEOUT_MS)); in testHandleTapOutsideTask()
148 assertTrue(waitHandlerIdle(mWm.mH, TIMEOUT_MS)); in testHandleTapOutsideNonResizableTask()
H A DTaskSnapshotCacheTest.java61 mCache = new TaskSnapshotCache(mWm, mLoader); in setUp()
100 mPersister.persistSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, createSnapshot()); in testReduced_notCached()
102 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached()
106 assertNotNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached()
110 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached()
117 mPersister.persistSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, createSnapshot()); in testRestoreFromDisk()
119 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testRestoreFromDisk()
123 assertNotNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testRestoreFromDisk()
H A DRecentsAnimationControllerTest.java150 mWm.setRecentsAnimationController(mController); in testIncludedApps_expectTargetAndVisible()
167 mWm.setRecentsAnimationController(mController); in testLaunchAndStartRecents_expectTargetAndVisible()
191 mWm.setRecentsAnimationController(mController); in testWallpaperIncluded_expectTarget()
213 mWm.setRecentsAnimationController(mController); in testWallpaperAnimatorCanceled_expectAnimationKeepsRunning()
238 mWm.setRecentsAnimationController(mController); in testFinish_expectTargetAndWallpaperAdaptersRemoved()
268 mWm.setRecentsAnimationController(mController); in testDeferCancelAnimation()
289 mWm.setRecentsAnimationController(mController); in testDeferCancelAnimationWithScreenShot()
300 spyOn(mWm.mTaskSnapshotController); in testDeferCancelAnimationWithScreenShot()
315 mWm.setRecentsAnimationController(mController); in testShouldAnimateWhenNoCancelWithDeferredScreenshot()
343 spyOn(mWm.mTaskSnapshotController); in testBinderDiedAfterCancelWithDeferredScreenshot()
[all …]
H A DTaskSnapshotLowResDisabledTest.java64 mCache = new TaskSnapshotCache(mWm, mLoader); in setUp()
130 mPersister.persistSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, createSnapshot()); in testReduced_notCached()
132 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached()
136 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached()
140 assertNotNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached()
144 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached()
148 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached()
H A DDragDropControllerTests.java151 mWm.mWindowMap.put(window.mClient.asBinder(), window); in createDropTargetWindow()
152 mWm.mInputToWindowMap.put(window.mInputChannelToken, window); in createDropTargetWindow()
169 mTarget = new TestDragDropController(mWm, mWm.mH.getLooper()); in setUp()
172 when(mWm.mInputManager.transferTouchFocus(any(InputChannel.class), in setUp()
175 mWm.mWindowMap.put(mWindow.mClient.asBinder(), mWindow); in setUp()
224 spyOn(mWm.mContext); in testPrivateInterceptGlobalDragDropFlagChecksPermission()
231 verify(mWm.mAtmService).enforceTaskPermission(any()); in testPrivateInterceptGlobalDragDropFlagChecksPermission()
365 doReturn(PERMISSION_GRANTED).when(mWm.mContext) in testValidateAppShortcutArguments()
399 doReturn(PERMISSION_GRANTED).when(mWm.mContext) in testValidateProfileAppShortcutArguments_notCallingUid()
444 doReturn(PERMISSION_GRANTED).when(mWm.mContext) in testValidateAppTaskArguments()
[all …]
H A DDimmerTests.java136 mHost = new MockSurfaceBuildingContainer(mWm); in setUp()
144 TestWindowContainer child = new TestWindowContainer(mWm); in testUpdateDimsAppliesCrop()
161 TestWindowContainer child = new TestWindowContainer(mWm); in testDimAboveWithChildCreatesSurfaceAboveChild()
176 TestWindowContainer child = new TestWindowContainer(mWm); in testDimBelowWithChildSurfaceCreatesSurfaceBelowChild()
191 TestWindowContainer child = new TestWindowContainer(mWm); in testDimBelowWithChildSurfaceDestroyedWhenReset()
208 TestWindowContainer child = new TestWindowContainer(mWm); in testDimBelowWithChildSurfaceNotDestroyedWhenPersisted()
224 TestWindowContainer child = new TestWindowContainer(mWm); in testDimUpdateWhileDimming()
246 TestWindowContainer child = new TestWindowContainer(mWm); in testRemoveDimImmediately()
266 TestWindowContainer child = new TestWindowContainer(mWm); in testDimmerWithBlurUpdatesTransaction()
H A DWindowContainerTests.java167 WindowContainer child = new WindowContainer(mWm); in testAddChildSetsSurfacePosition()
270 final WindowContainer<WindowContainer> child1 = new WindowContainer(mWm); in testRemoveImmediatelyClearsLastSurfacePosition()
277 WindowContainer child11 = new WindowContainer(mWm); in testRemoveImmediatelyClearsLastSurfacePosition()
1080 final WindowContainer windowContainer = new WindowContainer(mWm); in testGetDisplayArea()
1102 final DisplayArea displayArea = new DisplayArea(mWm, ANY, "DisplayArea"); in testGetDisplayArea()
1162 final WindowContainer container = new WindowContainer(mWm); in testRegisterWindowContainerListener()
1238 final WindowContainer container = new WindowContainer(mWm); in testAssignRelativeLayer()
1262 final WindowContainer container = new WindowContainer(mWm); in testAssignAnimationLayer()
1779 private final WindowManagerService mWm; field in WindowContainerTests.TestWindowContainerBuilder
1787 mWm = wm; in TestWindowContainerBuilder()
[all …]
H A DTaskSnapshotControllerTest.java109 mWm.mTaskSnapshotController.addSkipClosingAppSnapshotTasks( in testGetClosingApps_skipClosingAppsSnapshotTasks()
124 mWm.mTaskSnapshotController.getClosingTasksInner(task, outClosingTasks); in getClosingTasks()
134 mWm.mTaskSnapshotController.getSnapshotMode(disabledWindow.getTask())); in testGetSnapshotMode()
139 mWm.mTaskSnapshotController.getSnapshotMode(normalWindow.getTask())); in testGetSnapshotMode()
145 mWm.mTaskSnapshotController.getSnapshotMode(secureWindow.getTask())); in testGetSnapshotMode()
218 mWm.mTaskSnapshotController.createSnapshot(mAppWindow.mActivityRecord.getTask(), in testCreateTaskSnapshotWithExcludingIme()
239 mWm.mTaskSnapshotController.createSnapshot( in testCreateTaskSnapshotWithIncludingIme()
263 boolean success = mWm.mTaskSnapshotController.prepareTaskSnapshot( in testPrepareTaskSnapshot()
272 success = mWm.mTaskSnapshotController.prepareTaskSnapshot( in testPrepareTaskSnapshot()
H A DWallpaperControllerTests.java90 Resources resources = mWm.mContext.getResources(); in setup()
184 final DisplayContent dc = mWm.mRoot.getDefaultDisplay(); in testWallpaperZoom()
207 final DisplayContent dc = mWm.mRoot.getDefaultDisplay(); in testWallpaperZoom_shouldNotScaleWallpaper()
234 final DisplayContent dc = mWm.mRoot.getDefaultDisplay(); in testWallpaperZoom_multipleCallers()
280 mWm.setRecentsAnimationController(recentsController); in testUpdateWallpaperTarget()
302 spyOn(mWm.mPolicy); in testShowWhenLockedWallpaperTarget()
303 doReturn(true).when(mWm.mPolicy).isKeyguardLocked(); in testShowWhenLockedWallpaperTarget()
304 doReturn(true).when(mWm.mPolicy).isKeyguardOccluded(); in testShowWhenLockedWallpaperTarget()
320 final DisplayContent dc = mWm.mRoot.getDefaultDisplay(); in testWallpaperTokenWindowingMode()
341 mWm.setRecentsAnimationController(recentsController); in testFixedRotationRecentsAnimatingTask()
[all …]
H A DDisplayContentTests.java607 mWm.mSystemBooted = true; in testShouldWaitForSystemDecorWindowsOnBoot_OnDefaultDisplay()
628 mWm.mSystemBooted = true; in testShouldWaitForSystemDecorWindowsOnBoot_OnSecondaryDisplay()
1753 clearInvocations(mWm); in testFixedRotationWithPip()
1984 mWm.mDisplayChangeController = in testRemoteRotation()
2005 mWm.stopFreezingDisplayLocked(); in testRemoteRotation()
2006 assertTrue(mWm.mDisplayFrozen); in testRemoteRotation()
2012 mWm.stopFreezingDisplayLocked(); in testRemoteRotation()
2074 mWm.mDisplayChangeController = in testShellTransitRotation()
2301 spyOn(mWm.mPolicy); in testAttachAndShowImeScreenshotOnTarget()
2740 mWm.mContentRecordingController.setContentRecordingSessionLocked(session, mWm); in testVirtualDisplayContent_withoutSurface()
[all …]
H A DTaskDisplayAreaTests.java281 mWm.mRoot.positionChildAt(WindowContainer.POSITION_TOP, createNewDisplay(), in testDisplayPositionWithPinnedRootTask()
289 mWm.mRoot.getChildCount() - 1, indexOfDisplayWithPinnedRootTask); in testDisplayPositionWithPinnedRootTask()
306 mWm.mRoot.positionChildAt(WindowContainer.POSITION_TOP, createNewDisplay(), in testMovingChildTaskOnTop()
311 mWm.mRoot.getChildCount() - 2, mWm.mRoot.mChildren.indexOf(mDisplayContent)); in testMovingChildTaskOnTop()
318 mWm.mRoot.getChildCount() - 1, mWm.mRoot.mChildren.indexOf(mDisplayContent)); in testMovingChildTaskOnTop()
335 mWm.mRoot.positionChildAt(WindowContainer.POSITION_TOP, createNewDisplay(), in testDontMovingChildTaskOnTop()
340 mWm.mRoot.getChildCount() - 2, mWm.mRoot.mChildren.indexOf(mDisplayContent)); in testDontMovingChildTaskOnTop()
348 mWm.mRoot.getChildCount() - 2, mWm.mRoot.mChildren.indexOf(mDisplayContent)); in testDontMovingChildTaskOnTop()
380 final RootWindowContainer rootWindowContainer = mWm.mAtmService.mRootWindowContainer; in testGetOrientation_nonResizableHomeTaskWithHomeActivityPendingVisibilityChange()
401 homeActivity = new ActivityBuilder(mWm.mAtmService) in testGetOrientation_nonResizableHomeTaskWithHomeActivityPendingVisibilityChange()
[all …]
H A DDisplayAreaPolicyTests.java122 final WindowManagerService wms = mWm; in testDisplayAreaGroup_taskPositionChanged_updatesDisplayAreaGroupPosition()
190 final WindowManagerService wms = mWm; in testTaskDisplayAreasCanHostHomeTask()
239 final SurfacelessDisplayAreaRoot root = new SurfacelessDisplayAreaRoot(mWm); in createPolicyWith2TaskDisplayAreas()
240 final DisplayArea.Tokens ime = new DisplayArea.Tokens(mWm, ABOVE_TASKS, "Ime"); in createPolicyWith2TaskDisplayAreas()
243 final TaskDisplayArea taskDisplayArea1 = new TaskDisplayArea(displayContent, mWm, "Tasks1", in createPolicyWith2TaskDisplayAreas()
245 final TaskDisplayArea taskDisplayArea2 = new TaskDisplayArea(displayContent, mWm, "Tasks2", in createPolicyWith2TaskDisplayAreas()
255 .build(mWm), taskDisplayAreaList); in createPolicyWith2TaskDisplayAreas()
/aosp14/frameworks/base/tests/permission/src/com/android/framework/permission/tests/
H A DWindowManagerPermissionTests.java35 IWindowManager mWm; field in WindowManagerPermissionTests
40 mWm = IWindowManager.Stub.asInterface( in setUp()
47 mWm.setEventDispatching(true); in testMANAGE_APP_TOKENS()
57 mWm.addWindowToken(null, TYPE_APPLICATION, DEFAULT_DISPLAY, null /* options */); in testMANAGE_APP_TOKENS()
71 mWm.disableKeyguard(token, "foo", UserHandle.myUserId()); in testDISABLE_KEYGUARD()
81 mWm.reenableKeyguard(token, UserHandle.myUserId()); in testDISABLE_KEYGUARD()
91 mWm.exitKeyguardSecurely(null); in testDISABLE_KEYGUARD()
104 mWm.setAnimationScale(0, 1); in testSET_ANIMATION_SCALE()
114 mWm.setAnimationScales(new float[1]); in testSET_ANIMATION_SCALE()
127 mWm.freezeRotation(-1); in testSET_ORIENTATION()
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/view/
H A DWindowMetricsTest.java53 private WindowManager mWm; field in WindowMetricsTest
63 mWm = mWindowContext.getSystemService(WindowManager.class); in setUp()
72 mWm.addView(view, params); in testAddViewAndRemoveView_GetMetrics_DoNotCrash()
74 WindowMetrics currentMetrics = mWm.getCurrentWindowMetrics(); in testAddViewAndRemoveView_GetMetrics_DoNotCrash()
75 WindowMetrics maxMetrics = mWm.getMaximumWindowMetrics(); in testAddViewAndRemoveView_GetMetrics_DoNotCrash()
78 mWm.removeViewImmediate(view); in testAddViewAndRemoveView_GetMetrics_DoNotCrash()
80 currentMetrics = mWm.getCurrentWindowMetrics(); in testAddViewAndRemoveView_GetMetrics_DoNotCrash()
81 maxMetrics = mWm.getMaximumWindowMetrics(); in testAddViewAndRemoveView_GetMetrics_DoNotCrash()
/aosp14/frameworks/base/core/java/android/service/autofill/augmented/
H A DFillWindow.java75 private @NonNull WindowManager mWm; field in FillWindow
137 mWm = rootView.getContext().getSystemService(WindowManager.class); in update()
167 if (mWm == null || mFillView == null) { in show()
192 if (mWm == null || mFillView == null) { in hide()
208 if (mWm != null && mFillView != null) { in handleShow()
212 mWm.addView(mFillView, p); in handleShow()
215 mWm.updateViewLayout(mFillView, p); in handleShow()
229 if (mWm != null && mFillView != null && mShowing) { in handleHide()
231 mWm.removeView(mFillView); in handleHide()
292 pw.println(mWm); in dump()
/aosp14/frameworks/base/core/java/android/view/
H A DSurfaceControlViewHost.java57 private final WindowlessWindowManager mWm; field in SurfaceControlViewHost
70 mWm.setConfiguration(configuration); in onConfigurationChanged()
94 mWm.setInsetsState(state); in onInsetsChanged()
120 mViewRoot.mHandler.post(() -> mWm.setParentInterface(parentInterface)); in attachParentInterface()
313 mWm = wwm; in SurfaceControlViewHost()
314 mViewRoot = new ViewRootImpl(c, d, mWm, new WindowlessWindowLayout()); in SurfaceControlViewHost()
361 mWm = new WindowlessWindowManager(context.getResources().getConfiguration(), in SurfaceControlViewHost()
364 mViewRoot = new ViewRootImpl(context, display, mWm, new WindowlessWindowLayout()); in SurfaceControlViewHost()
471 return mWm; in getWindowlessWM()
482 mWm.setCompletionCallback(mViewRoot.mWindow.asBinder(), callback); in relayout()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DBLASTSyncEngine.java143 synchronized (mWm.mGlobalLock) { in SyncGroup()
162 mOrphanTransaction = mWm.mTransactionFactory.get(); in getOrphanTransaction()
227 synchronized (mWm.mGlobalLock) { in finishNow()
251 synchronized (mWm.mGlobalLock) { in finishNow()
253 ? merged : mWm.mTransactionFactory.get()); in finishNow()
278 synchronized (mWm.mGlobalLock) { in finishNow()
299 mWm.mWindowPlacerLocked.requestTraversal(); in setReady()
341 mWm.mWindowPlacerLocked.requestTraversal(); in addToSync()
394 private final WindowManagerService mWm; field in BLASTSyncEngine
419 mWm = wms; in BLASTSyncEngine()
[all …]

1234