From 357e5499a2c7c8a8f0f219a07240c6e6803f92ed Mon Sep 17 00:00:00 2001 From: vadimt Date: Mon, 4 May 2020 10:20:13 -0700 Subject: [PATCH] Remove unnecessary waitForIdle calls They were added back in times when the code was very different, and we don't need them now. Change-Id: Ie96b081a4f2319c7b58d22ffc410f74e9ab56d94 --- .../com/android/launcher3/tapl/LauncherInstrumentation.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java index 35cc94f0f4..7f0a66f5ac 100644 --- a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java +++ b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java @@ -668,8 +668,6 @@ public final class LauncherInstrumentation { dumpViewHierarchy(); log(action = "clicking home button from " + getVisibleStateMessage()); try (LauncherInstrumentation.Closable c = addContextLayer(action)) { - mDevice.waitForIdle(); - if (!isLauncher3() && getNavigationModel() == NavigationModel.TWO_BUTTON) { expectEvent(TestProtocol.SEQUENCE_TIS, EVENT_TOUCH_DOWN_TIS); expectEvent(TestProtocol.SEQUENCE_TIS, EVENT_TOUCH_UP_TIS); @@ -681,7 +679,6 @@ public final class LauncherInstrumentation { !hasLauncherObject(WORKSPACE_RES_ID) && (hasLauncherObject(APPS_RES_ID) || hasLauncherObject(OVERVIEW_RES_ID))); - mDevice.waitForIdle(); } } try (LauncherInstrumentation.Closable c = addContextLayer(