commit | ea8fa012e5d51e074bb441561870211bf9b61f67 | [log] [tgz] |
---|---|---|
author | Vadim Tryshev <vadimt@google.com> | Mon Jul 19 22:16:01 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Mon Jul 19 22:16:01 2021 +0000 |
tree | 187e83120eeb6796c88b2786435c424a48218dc4 | |
parent | aca38ce66a632bed63f91800b5e06cb5e12ca639 [diff] | |
parent | 0e8f7098b4703333a96ce0c73b7ab1821facb435 [diff] |
Merge "Waiting for broadcasts idle in TaplInstrumentation constructor" into sc-v2-dev am: 0e8f7098b4 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15302542 Change-Id: I05f6e2d24cce8935548fe33ad19b990af3cf4942
diff --git a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java index ef809d5..1e7f8a5 100644 --- a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java +++ b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java
@@ -207,6 +207,11 @@ 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