/frameworks/base/services/tests/servicestests/src/com/android/server/wm/ |
D | UnknownAppVisibilityControllerTest.java | 42 sWm.mUnknownAppVisibilityController.clear(); in setUp() 48 sWm.mUnknownAppVisibilityController.notifyLaunched(token); in testFlow() 49 sWm.mUnknownAppVisibilityController.notifyAppResumedFinished(token); in testFlow() 50 sWm.mUnknownAppVisibilityController.notifyRelayouted(token); in testFlow() 54 assertTrue(sWm.mUnknownAppVisibilityController.allResolved()); in testFlow() 61 sWm.mUnknownAppVisibilityController.notifyLaunched(token1); in testMultiple() 62 sWm.mUnknownAppVisibilityController.notifyAppResumedFinished(token1); in testMultiple() 63 sWm.mUnknownAppVisibilityController.notifyLaunched(token2); in testMultiple() 64 sWm.mUnknownAppVisibilityController.notifyRelayouted(token1); in testMultiple() 65 sWm.mUnknownAppVisibilityController.notifyAppResumedFinished(token2); in testMultiple() [all …]
|
D | WindowTestsBase.java | 69 WindowManagerService sWm = null; // TODO(roosa): rename to mWm in follow-up CL field in WindowTestsBase 112 sWm = mWmRule.getWindowManagerService(); in setUp() 115 mWallpaperController = new WallpaperController(sWm); in setUp() 119 sWm.mDisplayEnabled = true; in setUp() 120 sWm.mDisplayReady = true; in setUp() 124 synchronized (sWm.mWindowMap) { in setUp() 127 sWm.mInputMethodWindow = mImeWindow; in setUp() 162 synchronized (sWm.mWindowMap) { in tearDown() 163 sWm.mRoot.forAllWindows(w -> { in tearDown() 174 sWm.mInputMethodTarget = null; in tearDown() [all …]
|
D | TaskPositioningControllerTests.java | 54 assertNotNull(sWm.mTaskPositioningController); in setUp() 55 mTarget = sWm.mTaskPositioningController; in setUp() 57 when(sWm.mInputManager.transferTouchFocus( in setUp() 63 synchronized (sWm.mWindowMap) { in setUp() 64 sWm.mWindowMap.put(mWindow.mClient.asBinder(), mWindow); in setUp() 70 synchronized (sWm.mWindowMap) { in testStartAndFinishPositioning() 77 synchronized (sWm.mWindowMap) { in testStartAndFinishPositioning() 84 assertTrue(sWm.mH.runWithScissors(() -> {}, TIMEOUT_MS)); in testStartAndFinishPositioning() 92 synchronized (sWm.mWindowMap) { in testHandleTapOutsideTask() 104 assertTrue(sWm.mH.runWithScissors(() -> {}, TIMEOUT_MS)); in testHandleTapOutsideTask() [all …]
|
D | WindowContainerControllerTests.java | 48 final WindowContainerController controller = new WindowContainerController(null, sWm); in testCreation() 49 final WindowContainer container = new WindowContainer(sWm); in testCreation() 58 final WindowContainerController controller = new WindowContainerController(null, sWm); in testSetContainer() 59 final WindowContainer container = new WindowContainer(sWm); in testSetContainer() 67 controller.setContainer(new WindowContainer(sWm)); in testSetContainer() 80 final WindowContainerController controller = new WindowContainerController(null, sWm); in testRemoveContainer() 81 final WindowContainer container = new WindowContainer(sWm); in testRemoveContainer() 92 final WindowContainerController controller = new WindowContainerController(null, sWm); in testOnOverrideConfigurationChanged() 93 final WindowContainer container = new WindowContainer(sWm); in testOnOverrideConfigurationChanged()
|
D | DisplayContentTests.java | 104 sWm.mInputMethodTarget = imeAppTarget; in testForAllWindows_WithAppImeTarget() 121 sWm.mInputMethodTarget = mChildAppWindowAbove; in testForAllWindows_WithChildWindowImeTarget() 137 sWm.mInputMethodTarget = mStatusBarWindow; in testForAllWindows_WithStatusBarImeTarget() 234 sWm.setNewDisplayOverrideConfiguration(newOverrideConfig, displayId); in testDisplayOverrideConfigUpdate() 252 sWm.setNewDisplayOverrideConfiguration(newOverrideConfig, DEFAULT_DISPLAY); in testDefaultDisplayOverrideConfigUpdate() 255 Configuration globalConfig = sWm.mRoot.getConfiguration(); in testDefaultDisplayOverrideConfigUpdate() 260 sWm.setNewDisplayOverrideConfiguration(currentConfig, DEFAULT_DISPLAY); in testDefaultDisplayOverrideConfigUpdate() 261 globalConfig = sWm.mRoot.getConfiguration(); in testDefaultDisplayOverrideConfigUpdate() 271 DisplayContent dc0 = sWm.getDefaultDisplayContentLocked(); in testInputEventBringsCorrectDisplayInFocus() 281 dc0.mTapDetector = new TaskTapPointerEventListener(sWm, dc0); in testInputEventBringsCorrectDisplayInFocus() [all …]
|
D | TaskSnapshotCacheTest.java | 46 mCache = new TaskSnapshotCache(sWm, mLoader); in setUp() 85 mPersister.persistSnapshot(window.getTask().mTaskId, sWm.mCurrentUserId, createSnapshot()); in testReduced_notCached() 87 assertNull(mCache.getSnapshot(window.getTask().mTaskId, sWm.mCurrentUserId, in testReduced_notCached() 91 assertNotNull(mCache.getSnapshot(window.getTask().mTaskId, sWm.mCurrentUserId, in testReduced_notCached() 95 assertNull(mCache.getSnapshot(window.getTask().mTaskId, sWm.mCurrentUserId, in testReduced_notCached() 102 mPersister.persistSnapshot(window.getTask().mTaskId, sWm.mCurrentUserId, createSnapshot()); in testRestoreFromDisk() 104 assertNull(mCache.getSnapshot(window.getTask().mTaskId, sWm.mCurrentUserId, in testRestoreFromDisk() 108 assertNotNull(mCache.getSnapshot(window.getTask().mTaskId, sWm.mCurrentUserId, in testRestoreFromDisk()
|
D | WindowSurfacePlacerTest.java | 44 mWindowSurfacePlacer = new WindowSurfacePlacer(sWm); in setUp() 49 synchronized (sWm.mWindowMap) { in testTranslucentOpen() 56 sWm.mOpeningApps.add(behind); in testTranslucentOpen() 57 sWm.mOpeningApps.add(translucentOpening); in testTranslucentOpen() 65 synchronized (sWm.mWindowMap) { in testTranslucentClose() 71 sWm.mClosingApps.add(translucentClosing); in testTranslucentClose()
|
D | TaskSnapshotControllerTest.java | 55 sWm.mTaskSnapshotController.getClosingTasks(closingApps, closingTasks); in testGetClosingApps_closing() 73 sWm.mTaskSnapshotController.getClosingTasks(closingApps, closingTasks); in testGetClosingApps_notClosing() 86 sWm.mTaskSnapshotController.addSkipClosingAppSnapshotTasks( in testGetClosingApps_skipClosingAppsSnapshotTasks() 88 sWm.mTaskSnapshotController.getClosingTasks(closingApps, closingTasks); in testGetClosingApps_skipClosingAppsSnapshotTasks() 98 sWm.mTaskSnapshotController.getSnapshotMode(disabledWindow.getTask())); in testGetSnapshotMode() 103 sWm.mTaskSnapshotController.getSnapshotMode(normalWindow.getTask())); in testGetSnapshotMode() 109 sWm.mTaskSnapshotController.getSnapshotMode(secureWindow.getTask())); in testGetSnapshotMode()
|
D | AppWindowTokenTests.java | 133 sWm.mDisplayReady = true; in testLandscapeSeascapeRotationByApp() 134 sWm.mDisplayEnabled = true; in testLandscapeSeascapeRotationByApp() 144 sWm.updateOrientationFromAppTokens(mDisplayContent.getOverrideConfiguration(), null, in testLandscapeSeascapeRotationByApp() 151 sWm.updateOrientationFromAppTokens(mDisplayContent.getOverrideConfiguration(), null, in testLandscapeSeascapeRotationByApp() 153 sWm.mRoot.performSurfacePlacement(false /* recoveringMemory */); in testLandscapeSeascapeRotationByApp() 162 sWm.mDisplayReady = true; in testLandscapeSeascapeRotationByPolicy() 163 sWm.mDisplayEnabled = true; in testLandscapeSeascapeRotationByPolicy() 182 ((TestWindowManagerPolicy) sWm.mPolicy).rotationToReport = rotationToReport; in performRotation() 183 sWm.updateRotation(false, false); in performRotation() 185 sWm.mRoot.mOrientationChangeComplete = true; in performRotation() [all …]
|
D | DragDropControllerTests.java | 113 mTarget = new TestDragDropController(sWm, sWm.mH.getLooper()); in setUp() 117 when(sWm.mInputManager.transferTouchFocus(any(), any())).thenReturn(true); in setUp() 119 synchronized (sWm.mWindowMap) { in setUp() 120 sWm.mWindowMap.put(mWindow.mClient.asBinder(), mWindow); in setUp() 128 synchronized (sWm.mWindowMap) { in tearDown() 172 assertTrue(sWm.mInputManager.transferTouchFocus(null, null)); in dragFlow()
|
D | RemoteAnimationControllerTest.java | 79 sWm.mH.runWithScissors(() -> { in setUp() 82 mController = new RemoteAnimationController(sWm, mAdapter, mHandler); in setUp() 88 sWm.mOpeningApps.add(win.mAppToken); in testRun() 94 sWm.mAnimator.executeAfterPrepareSurfacesRunnables(); in testRun() 116 sWm.mOpeningApps.clear(); in testRun() 149 sWm.setAnimationScale(2, 5.0f); in testTimeout_scaled() 168 sWm.setAnimationScale(2, 1.0f); in testTimeout_scaled() 198 sWm.mAnimator.executeAfterPrepareSurfacesRunnables(); in testOneNotStarted()
|
D | WallpaperControllerTests.java | 34 synchronized (sWm.mWindowMap) { in testWallpaperScreenshot() 37 Bitmap wallpaperBitmap = sWm.mRoot.mWallpaperController.screenshotWallpaperLocked(); in testWallpaperScreenshot() 41 WindowToken wallpaperWindowToken = new WallpaperWindowToken(sWm, mock(IBinder.class), in testWallpaperScreenshot()
|
D | PinnedStackControllerTest.java | 43 sWm.mSupportsPictureInPicture = true; in setShelfHeight_shelfVisibilityChangedTriggered() 44 sWm.registerPinnedStackListener(DEFAULT_DISPLAY, mIPinnedStackListener); in setShelfHeight_shelfVisibilityChangedTriggered() 57 sWm.setShelfHeight(true, SHELF_HEIGHT); in setShelfHeight_shelfVisibilityChangedTriggered()
|
D | ZOrderingTests.java | 128 sWm.mSurfaceBuilderFactory = new HierarchyRecordingBuilderFactory(); in beforeCreateDisplay() 129 sWm.mTransactionFactory = () -> mTransaction; in beforeCreateDisplay() 190 sWm.mInputMethodTarget = null; in testAssignWindowLayers_ForImeWithNoTarget() 208 sWm.mInputMethodTarget = imeAppTarget; in testAssignWindowLayers_ForImeWithAppTarget() 234 sWm.mInputMethodTarget = imeAppTarget; in testAssignWindowLayers_ForImeWithAppTargetWithChildWindows() 256 sWm.mInputMethodTarget = imeAppTarget; in testAssignWindowLayers_ForImeWithAppTargetAndAppAbove() 279 sWm.mInputMethodTarget = imeSystemOverlayTarget; in testAssignWindowLayers_ForImeNonAppImeTarget() 302 sWm.mInputMethodTarget = mStatusBarWindow; in testAssignWindowLayers_ForStatusBarImeTarget()
|
D | RootWindowContainerTests.java | 27 synchronized (sWm.mWindowMap) { in testSetDisplayOverrideConfigurationIfNeeded() 44 final int[] results = sWm.mRoot.setDisplayOverrideConfigurationIfNeeded(override, in testSetDisplayOverrideConfigurationIfNeeded()
|
D | WindowFrameTests.java | 59 super(sWm, null, mIWindow, mWindowToken, null, 0, 0, attrs, 0, 0, in WindowStateWithTask() 80 super(0, mStubStack, 0, sWm, 0, false, new TaskDescription(), null); in TaskWithBounds() 116 sWm.mSystemDecorLayer = 10000; in setUp() 119 sWm.getDefaultDisplayContentLocked()); in setUp() 120 mStubStack = new TaskStack(sWm, 0, null); in setUp() 267 final DisplayInfo displayInfo = sWm.getDefaultDisplayContentLocked().getDisplayInfo(); in testLayoutNonfullscreenTask() 381 final DisplayInfo displayInfo = sWm.getDefaultDisplayContentLocked().getDisplayInfo(); in testLayoutLetterboxedWindow()
|
D | WindowContainerTests.java | 120 sWm.mTransactionFactory = () -> transaction; in testAddChildSetsSurfacePosition() 122 WindowContainer child = new WindowContainer(sWm); in testAddChildSetsSurfacePosition() 222 final WindowContainer container = new WindowContainer(sWm); in testRemoveImmediately_WithController() 223 final WindowContainerController controller = new WindowContainerController(null, sWm); in testRemoveImmediately_WithController() 236 final WindowContainerController controller = new WindowContainerController(null, sWm); in testSetController() 237 final WindowContainer container = new WindowContainer(sWm); in testSetController() 246 container.setController(new WindowContainerController(null, sWm)); in testSetController() 734 super(sWm); in TestWindowContainer() 853 super(sWm); in MockSurfaceBuildingContainer()
|
D | SurfaceAnimatorTest.java | 215 mParent = sWm.makeSurfaceBuilder(mSession) in MyAnimatable() 219 mSurface = sWm.makeSurfaceBuilder(mSession) in MyAnimatable() 225 mSurfaceAnimator = new SurfaceAnimator(this, mFinishedCallback, sWm); in MyAnimatable()
|
D | WindowContainerTraversalTests.java | 55 sWm.mInputMethodTarget = splitScreenWindow; in testDockedDividerPosition()
|
D | AppWindowContainerControllerTests.java | 85 sWm.mDisplayFrozen = false; in testSetOrientation() 160 ((TestWindowManagerPolicy) sWm.mPolicy).setRunnableWhenAddingSplashScreen(() -> { in testTransferStartingWindowWhileCreating()
|
D | DimmerTests.java | 53 super(sWm); in TestWindowContainer() 73 super(sWm); in MockSurfaceBuildingContainer()
|
D | RecentsAnimationControllerTest.java | 65 mController = new RecentsAnimationController(sWm, mMockRunner, mAnimationCallbacks, in setUp()
|
D | TaskStackTests.java | 79 sWm.mClosingApps.add(appWindowToken2); in testClosingAppDifferentStackOrientation()
|
D | WindowConfigurationTests.java | 142 final Rect appBounds = sWm.computeNewConfiguration( in testAppBounds_RootConfigurationBounds()
|
D | TaskPositionerTests.java | 72 mPositioner = TaskPositioner.create(sWm); in setUp() 88 assertNull(TaskPositioner.create(sWm)); in testOverrideFactory()
|