summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2019-02-25 14:31:42 -0800
committerSunny Goyal <sunnygoyal@google.com>2019-02-25 14:32:37 -0800
commit50d5cb85f2717d5e9067213d89e51d125a3e2767 (patch)
treec923b50c05a9024bbafc49b866b2e0209bb9802c /tests
parente516cb1b9f5db5a312dc4cbef917aa6b673ea5bd (diff)
downloadandroid_packages_apps_Trebuchet-50d5cb85f2717d5e9067213d89e51d125a3e2767.tar.gz
android_packages_apps_Trebuchet-50d5cb85f2717d5e9067213d89e51d125a3e2767.tar.bz2
android_packages_apps_Trebuchet-50d5cb85f2717d5e9067213d89e51d125a3e2767.zip
Reducing the swipe length for going to overview to account for
recent threshold changes Bug: 125795067 Change-Id: I53a9b833cc1b73626fec13742f3ea5ccbfc6abb4
Diffstat (limited to 'tests')
-rw-r--r--tests/tapl/com/android/launcher3/tapl/Background.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tapl/com/android/launcher3/tapl/Background.java b/tests/tapl/com/android/launcher3/tapl/Background.java
index c54a43f23..b3fb5e7fd 100644
--- a/tests/tapl/com/android/launcher3/tapl/Background.java
+++ b/tests/tapl/com/android/launcher3/tapl/Background.java
@@ -57,15 +57,15 @@ public class Background extends LauncherInstrumentation.VisibleContainer {
return new BaseOverview(mLauncher);
}
-
protected void goToOverviewUnchecked(int expectedState) {
if (mLauncher.isSwipeUpEnabled()) {
final int height = mLauncher.getDevice().getDisplayHeight();
final UiObject2 navBar = mLauncher.getSystemUiObject("navigation_bar_frame");
+ int swipeLength = Math.round(100 * mLauncher.getDisplayDensity());
mLauncher.swipe(
navBar.getVisibleBounds().centerX(), navBar.getVisibleBounds().centerY(),
- navBar.getVisibleBounds().centerX(), height - 400,
+ navBar.getVisibleBounds().centerX(), height - swipeLength,
expectedState);
} else {
mLauncher.getSystemUiObject("recent_apps").click();