Loading tests/src/com/android/launcher3/ui/PortraitLandscapeRunner.java +2 −0 Original line number Diff line number Diff line Loading @@ -49,12 +49,14 @@ class PortraitLandscapeRunner implements TestRule { mTest.mDevice.setOrientationNatural(); mTest.mLauncher.setExpectedRotation(Surface.ROTATION_0); base.evaluate(); mTest.getDevice().pressHome(); } private void evaluateInLandscape() throws Throwable { mTest.mDevice.setOrientationLeft(); mTest.mLauncher.setExpectedRotation(Surface.ROTATION_90); base.evaluate(); mTest.getDevice().pressHome(); } }; } Loading Loading
tests/src/com/android/launcher3/ui/PortraitLandscapeRunner.java +2 −0 Original line number Diff line number Diff line Loading @@ -49,12 +49,14 @@ class PortraitLandscapeRunner implements TestRule { mTest.mDevice.setOrientationNatural(); mTest.mLauncher.setExpectedRotation(Surface.ROTATION_0); base.evaluate(); mTest.getDevice().pressHome(); } private void evaluateInLandscape() throws Throwable { mTest.mDevice.setOrientationLeft(); mTest.mLauncher.setExpectedRotation(Surface.ROTATION_90); base.evaluate(); mTest.getDevice().pressHome(); } }; } Loading