From 3a60866b700a2d4cff318c8885d4431aa02c878d Mon Sep 17 00:00:00 2001 From: vadimt Date: Mon, 18 Apr 2022 14:42:36 -0700 Subject: [PATCH] Trying to remove waiting for broadcasts Way back we suspected that this would prevent Launcher restarts while the test runs, but later we seem to have found another solution. Now the tests can sit for, like, 90 sec in this call. So let's remove it and see what happens. Test: presubmit Bug: 187761685 Change-Id: I4baa174b48151151d657e833f121b2e6daa27453 --- .../com/android/launcher3/tapl/LauncherInstrumentation.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java index 950e72c4ea..afb4f8d973 100644 --- a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java +++ b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java @@ -227,11 +227,6 @@ public final class LauncherInstrumentation { public LauncherInstrumentation(Instrumentation instrumentation) { mInstrumentation = instrumentation; mDevice = UiDevice.getInstance(instrumentation); - try { - mDevice.executeShellCommand("am wait-for-broadcast-idle"); - } catch (IOException e) { - log("Failed to wait for broadcast idle"); - } // Launcher should run in test harness so that custom accessibility protocol between // Launcher and TAPL is enabled. In-process tests enable this protocol with a direct call