Loading tests/tapl/com/android/launcher3/tapl/Background.java +5 −1 Original line number Diff line number Diff line Loading @@ -62,7 +62,7 @@ public class Background extends LauncherInstrumentation.VisibleContainer { final int height = mLauncher.getDevice().getDisplayHeight(); final UiObject2 navBar = mLauncher.getSystemUiObject("navigation_bar_frame"); int swipeLength = Math.round(100 * mLauncher.getDisplayDensity()); int swipeLength = Math.round(getSwipeLength() * mLauncher.getDisplayDensity()); mLauncher.swipe( navBar.getVisibleBounds().centerX(), navBar.getVisibleBounds().centerY(), navBar.getVisibleBounds().centerX(), height - swipeLength, Loading @@ -71,4 +71,8 @@ public class Background extends LauncherInstrumentation.VisibleContainer { mLauncher.getSystemUiObject("recent_apps").click(); } } protected int getSwipeLength() { return 200; } } tests/tapl/com/android/launcher3/tapl/Workspace.java +5 −0 Original line number Diff line number Diff line Loading @@ -160,4 +160,9 @@ public final class Workspace extends Home { mLauncher.getDevice().pressKeyCode(KeyEvent.KEYCODE_W, KeyEvent.META_CTRL_ON); return new Widgets(mLauncher); } @Override protected int getSwipeLength() { return 100; } } No newline at end of file Loading
tests/tapl/com/android/launcher3/tapl/Background.java +5 −1 Original line number Diff line number Diff line Loading @@ -62,7 +62,7 @@ public class Background extends LauncherInstrumentation.VisibleContainer { final int height = mLauncher.getDevice().getDisplayHeight(); final UiObject2 navBar = mLauncher.getSystemUiObject("navigation_bar_frame"); int swipeLength = Math.round(100 * mLauncher.getDisplayDensity()); int swipeLength = Math.round(getSwipeLength() * mLauncher.getDisplayDensity()); mLauncher.swipe( navBar.getVisibleBounds().centerX(), navBar.getVisibleBounds().centerY(), navBar.getVisibleBounds().centerX(), height - swipeLength, Loading @@ -71,4 +71,8 @@ public class Background extends LauncherInstrumentation.VisibleContainer { mLauncher.getSystemUiObject("recent_apps").click(); } } protected int getSwipeLength() { return 200; } }
tests/tapl/com/android/launcher3/tapl/Workspace.java +5 −0 Original line number Diff line number Diff line Loading @@ -160,4 +160,9 @@ public final class Workspace extends Home { mLauncher.getDevice().pressKeyCode(KeyEvent.KEYCODE_W, KeyEvent.META_CTRL_ON); return new Widgets(mLauncher); } @Override protected int getSwipeLength() { return 100; } } No newline at end of file