From a90d17b4116476e343ce404c141170f28b6ed62c Mon Sep 17 00:00:00 2001 From: Vadim Tryshev Date: Wed, 29 Aug 2018 11:54:49 -0700 Subject: [PATCH] Removing tryGetAllApps There were plans to use it from platform tests, but this turned to be unnecessary. Bug: 110103162 Test: compiling Change-Id: I39bf3f4cff57018bec87dcb3e8dfee522121d85b --- .../tapl/LauncherInstrumentation.java | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java index 09bf403aa1..63da892434 100644 --- a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java +++ b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java @@ -30,7 +30,6 @@ import android.provider.Settings; import android.view.accessibility.AccessibilityEvent; import androidx.annotation.NonNull; -import androidx.annotation.Nullable; import androidx.test.uiautomator.By; import androidx.test.uiautomator.BySelector; import androidx.test.uiautomator.UiDevice; @@ -272,19 +271,6 @@ public final class LauncherInstrumentation { return new AllAppsFromOverview(this); } - /** - * Gets the All Apps object if the current state is showing the all apps panel opened by swiping - * from workspace. Returns null if launcher is not in that state. Please don't call this method - * if App Apps was opened by swiping up from Overview, as it won't fail and will return an - * incorrect object. - * - * @return All Aps object or null. - */ - @Nullable - public AllApps tryGetAllApps() { - return tryGetLauncherObject(APPS_RES_ID) != null ? getAllApps() : null; - } - private void waitUntilGone(String resId) { assertTrue("Unexpected launcher object visible: " + resId, mDevice.wait(Until.gone(getLauncherObjectSelector(resId)), @@ -305,11 +291,6 @@ public final class LauncherInstrumentation { return object; } - @Nullable - private UiObject2 tryGetLauncherObject(String resName) { - return mDevice.findObject(getLauncherObjectSelector(resName)); - } - @NonNull UiObject2 waitForObjectInContainer(UiObject2 container, String resName) { final UiObject2 object = container.wait(