Loading services/tests/wmtests/src/com/android/server/wm/RecentsAnimationControllerTest.java +2 −0 Original line number Diff line number Diff line Loading @@ -353,6 +353,7 @@ public class RecentsAnimationControllerTest extends WindowTestsBase { @Test public void testRecentViewInFixedPortraitWhenTopAppInLandscape() { makeDisplayPortrait(mDefaultDisplay); unblockDisplayRotation(mDefaultDisplay); mWm.setRecentsAnimationController(mController); Loading Loading @@ -488,6 +489,7 @@ public class RecentsAnimationControllerTest extends WindowTestsBase { @Test public void testWallpaperHasFixedRotationApplied() { makeDisplayPortrait(mDefaultDisplay); unblockDisplayRotation(mDefaultDisplay); mWm.setRecentsAnimationController(mController); Loading services/tests/wmtests/src/com/android/server/wm/WallpaperControllerTests.java +1 −4 Original line number Diff line number Diff line Loading @@ -116,10 +116,7 @@ public class WallpaperControllerTests extends WindowTestsBase { public void testWallpaperSizeWithFixedTransform() { // No wallpaper final DisplayContent dc = mDisplayContent; if (dc.mBaseDisplayHeight <= dc.mBaseDisplayWidth) { // Make sure the display size is portrait. resizeDisplay(dc, 500, 1000); } makeDisplayPortrait(dc); // No wallpaper WSA Surface final WindowState wallpaperWindow = createWallpaperWindow(dc); Loading services/tests/wmtests/src/com/android/server/wm/WindowTestsBase.java +7 −0 Original line number Diff line number Diff line Loading @@ -977,6 +977,13 @@ class WindowTestsBase extends SystemServiceTestsBase { displayContent.onRequestedOverrideConfigurationChanged(c); } /** Used for the tests that assume the display is portrait by default. */ static void makeDisplayPortrait(DisplayContent displayContent) { if (displayContent.mBaseDisplayHeight <= displayContent.mBaseDisplayWidth) { resizeDisplay(displayContent, 500, 1000); } } // The window definition for UseTestDisplay#addWindows. The test can declare to add only // necessary windows, that avoids adding unnecessary overhead of unused windows. static final int W_NOTIFICATION_SHADE = TYPE_NOTIFICATION_SHADE; Loading Loading
services/tests/wmtests/src/com/android/server/wm/RecentsAnimationControllerTest.java +2 −0 Original line number Diff line number Diff line Loading @@ -353,6 +353,7 @@ public class RecentsAnimationControllerTest extends WindowTestsBase { @Test public void testRecentViewInFixedPortraitWhenTopAppInLandscape() { makeDisplayPortrait(mDefaultDisplay); unblockDisplayRotation(mDefaultDisplay); mWm.setRecentsAnimationController(mController); Loading Loading @@ -488,6 +489,7 @@ public class RecentsAnimationControllerTest extends WindowTestsBase { @Test public void testWallpaperHasFixedRotationApplied() { makeDisplayPortrait(mDefaultDisplay); unblockDisplayRotation(mDefaultDisplay); mWm.setRecentsAnimationController(mController); Loading
services/tests/wmtests/src/com/android/server/wm/WallpaperControllerTests.java +1 −4 Original line number Diff line number Diff line Loading @@ -116,10 +116,7 @@ public class WallpaperControllerTests extends WindowTestsBase { public void testWallpaperSizeWithFixedTransform() { // No wallpaper final DisplayContent dc = mDisplayContent; if (dc.mBaseDisplayHeight <= dc.mBaseDisplayWidth) { // Make sure the display size is portrait. resizeDisplay(dc, 500, 1000); } makeDisplayPortrait(dc); // No wallpaper WSA Surface final WindowState wallpaperWindow = createWallpaperWindow(dc); Loading
services/tests/wmtests/src/com/android/server/wm/WindowTestsBase.java +7 −0 Original line number Diff line number Diff line Loading @@ -977,6 +977,13 @@ class WindowTestsBase extends SystemServiceTestsBase { displayContent.onRequestedOverrideConfigurationChanged(c); } /** Used for the tests that assume the display is portrait by default. */ static void makeDisplayPortrait(DisplayContent displayContent) { if (displayContent.mBaseDisplayHeight <= displayContent.mBaseDisplayWidth) { resizeDisplay(displayContent, 500, 1000); } } // The window definition for UseTestDisplay#addWindows. The test can declare to add only // necessary windows, that avoids adding unnecessary overhead of unused windows. static final int W_NOTIFICATION_SHADE = TYPE_NOTIFICATION_SHADE; Loading