Removing tryGetAllApps
There were plans to use it from platform tests, but this turned to be
unnecessary.
Bug: 110103162
Test: compiling
Change-Id: I39bf3f4cff57018bec87dcb3e8dfee522121d85b
diff --git a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java
index 09bf403..63da892 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.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 @@
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 @@
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(