From 2bba25a08df54445774c996c7204726bae67b183 Mon Sep 17 00:00:00 2001 From: vadimt Date: Mon, 18 May 2020 09:34:24 -0700 Subject: [PATCH] Remove tracing for a fixed flake Bug: 155926212 Change-Id: Ia847d735d58154bc768b69d3ae3dc0af7fcdbf11 --- .../com/android/launcher3/tapl/LauncherInstrumentation.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java index b333100393..b4d6cec908 100644 --- a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java +++ b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java @@ -632,8 +632,6 @@ public final class LauncherInstrumentation { * @return the Workspace object. */ public Workspace pressHome() { - mInstrumentation.getUiAutomation().setOnAccessibilityEventListener( - e -> Log.d("b/155926212", e.toString())); try (LauncherInstrumentation.Closable e = eventsCheck()) { waitForLauncherInitialized(); // Click home, then wait for any accessibility event, then wait until accessibility @@ -642,9 +640,7 @@ public final class LauncherInstrumentation { // otherwise waitForIdle may return immediately in case when there was a big enough // pause in accessibility events prior to pressing Home. final String action; - Log.d("b/155926212", "Before isLauncherVisible()"); final boolean launcherWasVisible = isLauncherVisible(); - Log.d("b/155926212", "After isLauncherVisible(): " + launcherWasVisible); if (getNavigationModel() == NavigationModel.ZERO_BUTTON) { checkForAnomaly(); @@ -700,8 +696,6 @@ public final class LauncherInstrumentation { "performed action to switch to Home - " + action)) { return getWorkspace(); } - } finally { - mInstrumentation.getUiAutomation().setOnAccessibilityEventListener(null); } }