mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Merge "Removing unused tracing" into sc-v2-dev am: 72da449f8a am: 502772ad25
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15800620 Change-Id: Ic39116b7c3fdb2d2149285194332eb36324f5703
This commit is contained in:
@@ -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> T getFromRecents(Function<RecentsActivity, T> 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;
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user