/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | WindowManagerServiceTests.java | 102 mWm.setOrientationRequestPolicy(/* isIgnoreOrientationRequestDisabled*/ true, in testIsRequestedOrientationMapped() 104 assertThat(mWm.mapOrientationRequest(1)).isEqualTo(2); in testIsRequestedOrientationMapped() 105 assertThat(mWm.mapOrientationRequest(3)).isEqualTo(3); in testIsRequestedOrientationMapped() 108 mWm.setOrientationRequestPolicy(/* isIgnoreOrientationRequestDisabled*/ false, in testIsRequestedOrientationMapped() 110 assertThat(mWm.mapOrientationRequest(1)).isEqualTo(1); in testIsRequestedOrientationMapped() 111 assertThat(mWm.mapOrientationRequest(3)).isEqualTo(3); in testIsRequestedOrientationMapped() 117 mWm.addWindowToken(token, TYPE_TOAST, mDisplayContent.getDisplayId(), null /* options */); in testAddWindowToken() 119 WindowToken windowToken = mWm.mRoot.getWindowToken(token); in testAddWindowToken() 137 spyOn(mWm.mAtmService); in testTaskFocusChange_rootTaskNotHomeType_focusChanges() 139 mWm.handleTaskFocusChange(tappedTask, null /* window */); in testTaskFocusChange_rootTaskNotHomeType_focusChanges() [all …]
|
D | WindowManagerSettingsTests.java | 65 mWm.mSettingsObserver.onChange(false, forceDesktopModeUri); in testForceDesktopModeOnExternalDisplays() 67 assertEquals(mWm.mForceDesktopModeOnExternalDisplays, forceDesktopMode); in testForceDesktopModeOnExternalDisplays() 78 mWm.mAtmService.mSupportsFreeformWindowManagement = curFreeformWindow; in testFreeformWindow() 79 mWm.mSettingsObserver.onChange(false, freeformWindowUri); in testFreeformWindow() 81 assertEquals(mWm.mAtmService.mSupportsFreeformWindowManagement, newFreeformWindow); in testFreeformWindow() 92 mWm.mAtmService.mSupportsFreeformWindowManagement = curFreeformWindow; in testFreeformWindow_valueChanged_updatesDisplaySettings() 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() [all …]
|
D | WindowOrganizerTests.java | 122 mWm.mAtmService.mTaskOrganizerController.registerTaskOrganizer(organizer); in registerMockOrganizer() 155 mWm.mAtmService.mTaskOrganizerController.setDeferTaskOrgCallbacksConsumer((r) -> r.run()); in setUp() 164 mWm.mAtmService.mTaskOrganizerController.dispatchPendingEvents(); in testAppearVanish() 170 mWm.mAtmService.mTaskOrganizerController.dispatchPendingEvents(); in testAppearVanish() 180 mWm.mAtmService.mTaskOrganizerController.dispatchPendingEvents(); in testAppearWaitsForVisibility() 186 mWm.mAtmService.mTaskOrganizerController.dispatchPendingEvents(); in testAppearWaitsForVisibility() 193 mWm.mAtmService.mTaskOrganizerController.dispatchPendingEvents(); in testAppearWaitsForVisibility() 219 mWm.mAtmService.mTaskOrganizerController.dispatchPendingEvents(); in testTaskNoDraw() 225 mWm.mAtmService.mTaskOrganizerController.unregisterTaskOrganizer(organizer); in testTaskNoDraw() 227 mWm.mAtmService.mTaskOrganizerController.dispatchPendingEvents(); in testTaskNoDraw() [all …]
|
D | DisplayAreaTest.java | 95 DisplayArea<WindowContainer> parent = new DisplayArea<>(mWm, BELOW_TASKS, "Parent"); in testDisplayArea_positionChanged_throwsIfIncompatibleChild() 96 DisplayArea<WindowContainer> child = new DisplayArea<>(mWm, ANY, "Child"); in testDisplayArea_positionChanged_throwsIfIncompatibleChild() 103 assertEquals(ABOVE_TASKS, typeOf(new DisplayArea<>(mWm, ABOVE_TASKS, "test"))); in testType_typeOf() 104 assertEquals(ANY, typeOf(new DisplayArea<>(mWm, ANY, "test"))); in testType_typeOf() 105 assertEquals(BELOW_TASKS, typeOf(new DisplayArea<>(mWm, BELOW_TASKS, "test"))); in testType_typeOf() 145 final WindowContainer windowContainer = new WindowContainer(mWm); in testAsDisplayArea() 146 final DisplayArea<WindowContainer> displayArea = new DisplayArea<>(mWm, ANY, "DA"); in testAsDisplayArea() 148 mWm, "TDA", FEATURE_DEFAULT_TASK_CONTAINER); in testAsDisplayArea() 158 new DisplayAreaPolicyBuilderTest.SurfacelessDisplayAreaRoot(mWm); in testForAllTaskDisplayAreas_onlyTraversesDisplayAreaOfTypeAny() 165 final DisplayArea<WindowContainer> da1 = new DisplayArea<>(mWm, BELOW_TASKS, "DA1"); in testForAllTaskDisplayAreas_onlyTraversesDisplayAreaOfTypeAny() [all …]
|
D | SyncEngineTests.java | 64 spyOn(mWm.mWindowPlacerLocked); in setUp() 69 TestWindowContainer mockWC = new TestWindowContainer(mWm, false /* waiter */); in testTrivialSyncCallback() 79 verify(mWm.mWindowPlacerLocked, times(0)).requestTraversal(); in testTrivialSyncCallback() 86 verify(mWm.mWindowPlacerLocked).requestTraversal(); in testTrivialSyncCallback() 97 TestWindowContainer mockWC = new TestWindowContainer(mWm, true /* waiter */); in testWaitingSyncCallback() 108 verify(mWm.mWindowPlacerLocked).requestTraversal(); in testWaitingSyncCallback() 119 TestWindowContainer mockWC = new TestWindowContainer(mWm, true /* waiter */); in testInvisibleSyncCallback() 130 verify(mWm.mWindowPlacerLocked).requestTraversal(); in testInvisibleSyncCallback() 143 TestWindowContainer parentWC = new TestWindowContainer(mWm, true /* waiter */); in testWaitForChildrenCallback() 144 TestWindowContainer childWC = new TestWindowContainer(mWm, true /* waiter */); in testWaitForChildrenCallback() [all …]
|
D | DisplayWindowSettingsTests.java | 90 mWm.mAtmService.mSupportsFreeformWindowManagement = false; in setUp() 91 mWm.setIsPc(false); in setUp() 92 mWm.setForceDesktopModeOnExternalDisplays(false); in setUp() 95 mDisplayWindowSettings = new DisplayWindowSettings(mWm, mSettingsProvider); in setUp() 97 mPrimaryDisplay = mWm.getDefaultDisplayContentLocked(); in setUp() 118 mWm.mAtmService.mSupportsFreeformWindowManagement = true; in testPrimaryDisplayDefaultToFullscreen_HasFreeformSupport_NonPc_NoDesktopMode() 128 mWm.mAtmService.mSupportsFreeformWindowManagement = true; in testPrimaryDisplayDefaultToFullscreen_HasFreeformSupport_NonPc_HasDesktopMode() 129 mWm.setForceDesktopModeOnExternalDisplays(true); in testPrimaryDisplayDefaultToFullscreen_HasFreeformSupport_NonPc_HasDesktopMode() 139 mWm.mAtmService.mSupportsFreeformWindowManagement = true; in testPrimaryDisplayDefaultToFreeform_HasFreeformSupport_IsPc() 140 mWm.setIsPc(true); in testPrimaryDisplayDefaultToFreeform_HasFreeformSupport_IsPc() [all …]
|
D | ContentRecordingControllerTests.java | 70 controller.setContentRecordingSessionLocked(mDefaultSession, mWm); in testSetContentRecordingSessionLocked_defaultSession() 81 controller.setContentRecordingSessionLocked(session, mWm); in testSetContentRecordingSessionLocked_invalidDisplayId_notAccepted() 94 controller.setContentRecordingSessionLocked(session, mWm); in testSetContentRecordingSessionLocked_invalidToken_notAccepted() 107 controller.setContentRecordingSessionLocked(session, mWm); in testSetContentRecordingSessionLocked_newDisplaySession_accepted() 120 controller.setContentRecordingSessionLocked(session, mWm); in testSetContentRecordingSessionLocked_updateCurrentDisplaySession_notAccepted() 127 controller.setContentRecordingSessionLocked(sessionUpdate, mWm); in testSetContentRecordingSessionLocked_updateCurrentDisplaySession_notAccepted() 141 controller.setContentRecordingSessionLocked(session, mWm); in testSetContentRecordingSessionLocked_disableCurrentDisplaySession_accepted() 146 controller.setContentRecordingSessionLocked(sessionUpdate, mWm); in testSetContentRecordingSessionLocked_disableCurrentDisplaySession_accepted() 161 controller.setContentRecordingSessionLocked(session, mWm); in testSetContentRecordingSessionLocked_takeOverCurrentDisplaySession_accepted() 170 controller.setContentRecordingSessionLocked(sessionUpdate, mWm); in testSetContentRecordingSessionLocked_takeOverCurrentDisplaySession_accepted()
|
D | TaskPositioningControllerTests.java | 60 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()
|
D | TaskSnapshotCacheTest.java | 61 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()
|
D | LetterboxUiControllerTest.java | 124 mLetterboxConfiguration = mWm.mLetterboxConfiguration; in setUp() 127 mController = new LetterboxUiController(mWm, mActivity); in setUp() 147 mController = new LetterboxUiController(mWm, mActivity); in testShouldIgnoreRequestedOrientation_cameraCompatTreatment_returnsTrue() 171 mController = new LetterboxUiController(mWm, mActivity); in testShouldIgnoreRequestedOrientation_propertyIsTrue_returnsTrue() 185 mController = new LetterboxUiController(mWm, mActivity); in testShouldIgnoreRequestedOrientation_propertyIsFalseAndOverride_returnsFalse() 213 mController = new LetterboxUiController(mWm, mActivity); in testShouldIgnoreOrientationRequestLoop_propertyIsFalseAndOverride_returnsFalse() 324 mController = new LetterboxUiController(mWm, mActivity); in testShouldRefreshActivityForCameraCompat_propertyIsTrueAndOverride_returnsFalse() 336 mController = new LetterboxUiController(mWm, mActivity); in testShouldRefreshActivityForCameraCompat_propertyIsFalse_returnsFalse() 348 mController = new LetterboxUiController(mWm, mActivity); in testShouldRefreshActivityForCameraCompat_propertyIsTrue_returnsTrue() 381 mController = new LetterboxUiController(mWm, mActivity); in testShouldRefreshActivityViaPauseForCameraCompat_propertyIsFalseAndOverride_returnFalse() [all …]
|
D | RecentsAnimationControllerTest.java | 103 doNothing().when(mWm.mRoot).performSurfacePlacement(); in setUp() 105 mController = spy(new RecentsAnimationController(mWm, mMockRunner, mAnimationCallbacks, in setUp() 151 mWm.setRecentsAnimationController(mController); in testIncludedApps_expectTargetAndVisible() 168 mWm.setRecentsAnimationController(mController); in testLaunchAndStartRecents_expectTargetAndVisible() 192 mWm.setRecentsAnimationController(mController); in testWallpaperIncluded_expectTarget() 197 final WallpaperWindowToken wallpaperWindowToken = new WallpaperWindowToken(mWm, in testWallpaperIncluded_expectTarget() 214 mWm.setRecentsAnimationController(mController); in testWallpaperAnimatorCanceled_expectAnimationKeepsRunning() 219 final WallpaperWindowToken wallpaperWindowToken = new WallpaperWindowToken(mWm, in testWallpaperAnimatorCanceled_expectAnimationKeepsRunning() 239 mWm.setRecentsAnimationController(mController); in testFinish_expectTargetAndWallpaperAdaptersRemoved() 246 final WallpaperWindowToken wallpaperWindowToken = new WallpaperWindowToken(mWm, in testFinish_expectTargetAndWallpaperAdaptersRemoved() [all …]
|
D | TaskSnapshotLowResDisabledTest.java | 64 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()
|
D | TaskSnapshotControllerTest.java | 78 mWm.mTaskSnapshotController.getClosingTasks(closingApps, closingTasks); in testGetClosingApps_closing() 96 mWm.mTaskSnapshotController.getClosingTasks(closingApps, closingTasks); in testGetClosingApps_notClosing() 109 mWm.mTaskSnapshotController.addSkipClosingAppSnapshotTasks( in testGetClosingApps_skipClosingAppsSnapshotTasks() 111 mWm.mTaskSnapshotController.getClosingTasks(closingApps, closingTasks); in testGetClosingApps_skipClosingAppsSnapshotTasks() 121 mWm.mTaskSnapshotController.getSnapshotMode(disabledWindow.getTask())); in testGetSnapshotMode() 126 mWm.mTaskSnapshotController.getSnapshotMode(normalWindow.getTask())); in testGetSnapshotMode() 132 mWm.mTaskSnapshotController.getSnapshotMode(secureWindow.getTask())); in testGetSnapshotMode() 205 mWm.mTaskSnapshotController.createTaskSnapshot(mAppWindow.mActivityRecord.getTask(), in testCreateTaskSnapshotWithExcludingIme() 226 mWm.mTaskSnapshotController.createTaskSnapshot( in testCreateTaskSnapshotWithIncludingIme() 250 boolean success = mWm.mTaskSnapshotController.prepareTaskSnapshot( in testPrepareTaskSnapshot() [all …]
|
D | DragDropControllerTests.java | 151 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() 326 final Session session = new Session(mWm, new IWindowSessionCallback.Stub() { in testValidateAppActivityArguments() 365 doReturn(PERMISSION_GRANTED).when(mWm.mContext) in testValidateAppShortcutArguments() 367 final Session session = new Session(mWm, new IWindowSessionCallback.Stub() { in testValidateAppShortcutArguments() [all …]
|
D | WindowContainerTests.java | 104 final TestWindowContainer w = new TestWindowContainerBuilder(mWm).setLayer(0).build(); in testCreation() 111 final TestWindowContainerBuilder builder = new TestWindowContainerBuilder(mWm); in testAdd() 152 try (MockSurfaceBuildingContainer top = new MockSurfaceBuildingContainer(mWm)) { in testAddChildSetsSurfacePosition() 153 WindowContainer child = new WindowContainer(mWm); in testAddChildSetsSurfacePosition() 164 final TestWindowContainerBuilder builder = new TestWindowContainerBuilder(mWm); in testAdd_AlreadyHasParent() 189 final TestWindowContainerBuilder builder = new TestWindowContainerBuilder(mWm); in testHasChild() 219 final TestWindowContainerBuilder builder = new TestWindowContainerBuilder(mWm); in testRemoveImmediately() 255 try (MockSurfaceBuildingContainer top = new MockSurfaceBuildingContainer(mWm)) { in testRemoveImmediatelyClearsLastSurfacePosition() 256 final WindowContainer<WindowContainer> child1 = new WindowContainer(mWm); in testRemoveImmediatelyClearsLastSurfacePosition() 263 WindowContainer child11 = new WindowContainer(mWm); in testRemoveImmediatelyClearsLastSurfacePosition() [all …]
|
D | DimmerTests.java | 134 mHost = new MockSurfaceBuildingContainer(mWm); in setUp() 142 TestWindowContainer child = new TestWindowContainer(mWm); in testUpdateDimsAppliesCrop() 159 TestWindowContainer child = new TestWindowContainer(mWm); in testDimAboveWithChildCreatesSurfaceAboveChild() 174 TestWindowContainer child = new TestWindowContainer(mWm); in testDimBelowWithChildSurfaceCreatesSurfaceBelowChild() 189 TestWindowContainer child = new TestWindowContainer(mWm); in testDimBelowWithChildSurfaceDestroyedWhenReset() 206 TestWindowContainer child = new TestWindowContainer(mWm); in testDimBelowWithChildSurfaceNotDestroyedWhenPersisted() 223 TestWindowContainer child = new TestWindowContainer(mWm); in testDimUpdateWhileDimming() 244 TestWindowContainer child = new TestWindowContainer(mWm); in testRemoveDimImmediately()
|
D | WallpaperControllerTests.java | 91 Resources resources = mWm.mContext.getResources(); in setup() 180 final DisplayContent dc = mWm.mRoot.getDefaultDisplay(); in testWallpaperZoom() 203 final DisplayContent dc = mWm.mRoot.getDefaultDisplay(); in testWallpaperZoom_shouldNotScaleWallpaper() 230 final DisplayContent dc = mWm.mRoot.getDefaultDisplay(); in testWallpaperZoom_multipleCallers() 276 mWm.setRecentsAnimationController(recentsController); in testUpdateWallpaperTarget() 290 final DisplayContent dc = mWm.mRoot.getDefaultDisplay(); in testWallpaperTokenWindowingMode() 291 final WallpaperWindowToken token = new WallpaperWindowToken(mWm, mock(IBinder.class), in testWallpaperTokenWindowingMode() 311 mWm.setRecentsAnimationController(recentsController); in testFixedRotationRecentsAnimatingTask() 367 final DisplayContent dc = mWm.mRoot.getDefaultDisplay(); in testWallpaperTokenVisibility() 376 mWm.mAtmService.getTransitionController().createTransition(TRANSIT_OPEN); in testWallpaperTokenVisibility() [all …]
|
D | DisplayAreaPolicyTests.java | 122 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()
|
D | TaskDisplayAreaTests.java | 279 mWm.mRoot.positionChildAt(WindowContainer.POSITION_TOP, createNewDisplay(), in testDisplayPositionWithPinnedRootTask() 284 final int indexOfDisplayWithPinnedRootTask = mWm.mRoot.mChildren.indexOf(mDisplayContent); in testDisplayPositionWithPinnedRootTask() 287 mWm.mRoot.getChildCount() - 1, indexOfDisplayWithPinnedRootTask); in testDisplayPositionWithPinnedRootTask() 304 mWm.mRoot.positionChildAt(WindowContainer.POSITION_TOP, createNewDisplay(), in testMovingChildTaskOnTop() 309 mWm.mRoot.getChildCount() - 2, mWm.mRoot.mChildren.indexOf(mDisplayContent)); in testMovingChildTaskOnTop() 316 mWm.mRoot.getChildCount() - 1, mWm.mRoot.mChildren.indexOf(mDisplayContent)); in testMovingChildTaskOnTop() 333 mWm.mRoot.positionChildAt(WindowContainer.POSITION_TOP, createNewDisplay(), in testDontMovingChildTaskOnTop() 338 mWm.mRoot.getChildCount() - 2, mWm.mRoot.mChildren.indexOf(mDisplayContent)); in testDontMovingChildTaskOnTop() 346 mWm.mRoot.getChildCount() - 2, mWm.mRoot.mChildren.indexOf(mDisplayContent)); in testDontMovingChildTaskOnTop() 377 final RootWindowContainer rootWindowContainer = mWm.mAtmService.mRootWindowContainer; in testGetOrientation_nonResizableHomeTaskWithHomeActivityPendingVisibilityChange() [all …]
|
/frameworks/base/tests/permission/src/com/android/framework/permission/tests/ |
D | WindowManagerPermissionTests.java | 35 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 …]
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | WindowMetricsTest.java | 53 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()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | BLASTSyncEngine.java | 112 synchronized (mWm.mGlobalLock) { in SyncGroup() 131 mOrphanTransaction = mWm.mTransactionFactory.get(); in getOrphanTransaction() 156 SurfaceControl.Transaction merged = mWm.mTransactionFactory.get(); in finishNow() 172 synchronized (mWm.mGlobalLock) { in finishNow() 176 mWm.mH.removeCallbacks(this); in finishNow() 203 mWm.mH.postDelayed(callback, BLAST_TIMEOUT_DURATION); in finishNow() 209 mWm.mH.removeCallbacks(mOnTimeout); in finishNow() 220 mWm.mH.post(() -> { in finishNow() 221 synchronized (mWm.mGlobalLock) { in finishNow() 235 mWm.mWindowPlacerLocked.requestTraversal(); in setReady() [all …]
|
/frameworks/base/core/java/android/view/ |
D | SurfaceControlViewHost.java | 49 private WindowlessWindowManager mWm; field in SurfaceControlViewHost 62 if (mWm != null) { in onConfigurationChanged() 63 mWm.setConfiguration(configuration); in onConfigurationChanged() 88 mWm.setInsetsState(state); in onInsetsChanged() 274 mWm = wwm; in SurfaceControlViewHost() 275 mViewRoot = new ViewRootImpl(c, d, mWm, new WindowlessWindowLayout()); in SurfaceControlViewHost() 302 mWm = new WindowlessWindowManager(context.getResources().getConfiguration(), in SurfaceControlViewHost() 305 mViewRoot = new ViewRootImpl(context, display, mWm, new WindowlessWindowLayout()); in SurfaceControlViewHost() 348 mWm.getFocusGrantToken(), mRemoteInterface); in getSurfacePackage() 401 return mWm; in getWindowlessWM() [all …]
|
/frameworks/base/core/java/android/service/autofill/augmented/ |
D | FillWindow.java | 75 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()
|
/frameworks/base/packages/WallpaperBackup/src/com/android/wallpaperbackup/ |
D | WallpaperBackupAgent.java | 87 private WallpaperManager mWm; field in WallpaperBackupAgent 99 mWm = (WallpaperManager) getSystemService(Context.WALLPAPER_SERVICE); in onCreate() 137 mWm.getWallpaperIdForUser(FLAG_SYSTEM, UserHandle.USER_SYSTEM); in onFullBackup() 139 mWm.getWallpaperIdForUser(FLAG_LOCK, UserHandle.USER_SYSTEM); in onFullBackup() 143 final boolean sysEligible = mWm.isWallpaperBackupEligible(FLAG_SYSTEM); in onFullBackup() 144 final boolean lockEligible = mWm.isWallpaperBackupEligible(FLAG_LOCK); in onFullBackup() 148 … ParcelFileDescriptor lockFd = mWm.getWallpaperFile(FLAG_LOCK, UserHandle.USER_SYSTEM); in onFullBackup() 286 mWm.setWallpaperComponent(wpService, UserHandle.USER_SYSTEM); in updateWallpaperComponent() 290 mWm.clear(FLAG_LOCK); in updateWallpaperComponent() 314 mWm.setStream(in, cropHint.isEmpty() ? null : cropHint, true, which); in restoreFromStage() [all …]
|