From 4e743887c582a22661f55deef3b515163fecc8a4 Mon Sep 17 00:00:00 2001 From: vadimt Date: Thu, 9 Sep 2021 20:01:47 -0700 Subject: [PATCH] Removing unused tracing Bug: 181019015 Test: presubmit Change-Id: I7df032e4345c512ba8eb06a2c4104362e1d51dbd --- .../src/com/android/quickstep/FallbackRecentsTest.java | 8 -------- src/com/android/launcher3/testing/TestProtocol.java | 1 - 2 files changed, 9 deletions(-) diff --git a/quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java b/quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java index 45e7e695a4..cba48334d8 100644 --- a/quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java +++ b/quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java @@ -42,7 +42,6 @@ import android.content.Context; import android.content.Intent; import android.content.pm.ActivityInfo; import android.os.RemoteException; -import android.util.Log; import androidx.test.filters.LargeTest; import androidx.test.runner.AndroidJUnit4; @@ -56,7 +55,6 @@ import com.android.launcher3.tapl.LauncherInstrumentation; import com.android.launcher3.tapl.OverviewTask; import com.android.launcher3.tapl.TestHelpers; import com.android.launcher3.testcomponent.TestCommandReceiver; -import com.android.launcher3.testing.TestProtocol; import com.android.launcher3.util.Wait; import com.android.launcher3.util.rule.FailureWatcher; import com.android.quickstep.views.RecentsView; @@ -188,15 +186,9 @@ public class FallbackRecentsTest { protected T getFromRecents(Function f) { if (!TestHelpers.isInLauncherProcess()) return null; - if (TestProtocol.sDebugTracing) { - Log.d(TestProtocol.FALLBACK_ACTIVITY_NO_SET, "getFromRecents"); - } Object[] result = new Object[1]; Wait.atMost("Failed to get from recents", () -> MAIN_EXECUTOR.submit(() -> { RecentsActivity activity = RecentsActivity.ACTIVITY_TRACKER.getCreatedActivity(); - if (TestProtocol.sDebugTracing) { - Log.d(TestProtocol.FALLBACK_ACTIVITY_NO_SET, "activity=" + activity); - } if (activity == null) { return false; } diff --git a/src/com/android/launcher3/testing/TestProtocol.java b/src/com/android/launcher3/testing/TestProtocol.java index ed52e20a34..b82de60500 100644 --- a/src/com/android/launcher3/testing/TestProtocol.java +++ b/src/com/android/launcher3/testing/TestProtocol.java @@ -116,7 +116,6 @@ public final class TestProtocol { public static final String PERMANENT_DIAG_TAG = "TaplTarget"; public static final String WORK_PROFILE_REMOVED = "b/159671700"; - public static final String FALLBACK_ACTIVITY_NO_SET = "b/181019015"; public static final String TASK_VIEW_ID_CRASH = "b/195430732"; public static final String L3_SWIPE_TO_HOME = "b/192018189"; public static final String NO_DROP_TARGET = "b/195031154";