From 67a11ff6a5bc2ce143c63a382e5ba898faceef51 Mon Sep 17 00:00:00 2001 From: vadimt Date: Tue, 24 Aug 2021 18:29:59 -0700 Subject: [PATCH] Waiting for Launcher to settle after enabling test provider I suspect that something happens in Launcher after enabling the provider that causes "mismatched event sequence" errors. This CL is to verify that. Bug: 195031154 Test: presubmit Change-Id: Ic22df5fa631b287b580f0aaf00c84cd408cb60b0 --- .../com/android/launcher3/tapl/LauncherInstrumentation.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java index 2ca40d8229..bf6af0888e 100644 --- a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java +++ b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java @@ -248,6 +248,8 @@ public final class LauncherInstrumentation { if (pm.getComponentEnabledSetting(cn) != COMPONENT_ENABLED_STATE_ENABLED) { if (TestHelpers.isInLauncherProcess()) { pm.setComponentEnabledSetting(cn, COMPONENT_ENABLED_STATE_ENABLED, DONT_KILL_APP); + // b/195031154 + SystemClock.sleep(5000); } else { try { final int userId = ContextUtils.getUserId(getContext());