diff options
author | vadimt <vadimt@google.com> | 2019-03-28 17:59:27 -0700 |
---|---|---|
committer | vadimt <vadimt@google.com> | 2019-03-28 17:59:27 -0700 |
commit | d1e90a1beb2b42688eaa912d554c57169754371f (patch) | |
tree | 8eb6e81aa66e100311063c7337d527c5d522b85d /tests | |
parent | 09b91447467ad401e994e6e215d9a5b770dbe2c3 (diff) | |
download | android_packages_apps_Trebuchet-d1e90a1beb2b42688eaa912d554c57169754371f.tar.gz android_packages_apps_Trebuchet-d1e90a1beb2b42688eaa912d554c57169754371f.tar.bz2 android_packages_apps_Trebuchet-d1e90a1beb2b42688eaa912d554c57169754371f.zip |
Temporarily going home from an app via device.pressHome
The gesture will be restored once we have a UI automation-stable
gesture detection on the Launcher side.
Change-Id: I94cd52b61cd65961ac471d0e4ae0db1fc766a66b
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java index b71f790b8..00257a5d1 100644 --- a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java +++ b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java @@ -347,12 +347,7 @@ public final class LauncherInstrumentation { log(action = "0-button: from another app"); assertTrue("Launcher is visible, don't know how to go home", !mDevice.hasObject(By.pkg(getLauncherPackageName()))); - final UiObject2 navBar = waitForSystemUiObject("navigation_bar_frame"); - - swipe( - navBar.getVisibleBounds().centerX(), navBar.getVisibleBounds().centerY(), - navBar.getVisibleBounds().centerX(), 0, - BACKGROUND_APP_STATE_ORDINAL, ZERO_BUTTON_STEPS_FROM_BACKGROUND_TO_HOME); + mDevice.pressHome(); } } else { log(action = "clicking home button"); |