Merge "Removing unused tracing" into sc-v2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
72da449f8a
@@ -42,7 +42,6 @@ import android.content.Context;
|
|||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.content.pm.ActivityInfo;
|
import android.content.pm.ActivityInfo;
|
||||||
import android.os.RemoteException;
|
import android.os.RemoteException;
|
||||||
import android.util.Log;
|
|
||||||
|
|
||||||
import androidx.test.filters.LargeTest;
|
import androidx.test.filters.LargeTest;
|
||||||
import androidx.test.runner.AndroidJUnit4;
|
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.OverviewTask;
|
||||||
import com.android.launcher3.tapl.TestHelpers;
|
import com.android.launcher3.tapl.TestHelpers;
|
||||||
import com.android.launcher3.testcomponent.TestCommandReceiver;
|
import com.android.launcher3.testcomponent.TestCommandReceiver;
|
||||||
import com.android.launcher3.testing.TestProtocol;
|
|
||||||
import com.android.launcher3.util.Wait;
|
import com.android.launcher3.util.Wait;
|
||||||
import com.android.launcher3.util.rule.FailureWatcher;
|
import com.android.launcher3.util.rule.FailureWatcher;
|
||||||
import com.android.quickstep.views.RecentsView;
|
import com.android.quickstep.views.RecentsView;
|
||||||
@@ -188,15 +186,9 @@ public class FallbackRecentsTest {
|
|||||||
|
|
||||||
protected <T> T getFromRecents(Function<RecentsActivity, T> f) {
|
protected <T> T getFromRecents(Function<RecentsActivity, T> f) {
|
||||||
if (!TestHelpers.isInLauncherProcess()) return null;
|
if (!TestHelpers.isInLauncherProcess()) return null;
|
||||||
if (TestProtocol.sDebugTracing) {
|
|
||||||
Log.d(TestProtocol.FALLBACK_ACTIVITY_NO_SET, "getFromRecents");
|
|
||||||
}
|
|
||||||
Object[] result = new Object[1];
|
Object[] result = new Object[1];
|
||||||
Wait.atMost("Failed to get from recents", () -> MAIN_EXECUTOR.submit(() -> {
|
Wait.atMost("Failed to get from recents", () -> MAIN_EXECUTOR.submit(() -> {
|
||||||
RecentsActivity activity = RecentsActivity.ACTIVITY_TRACKER.getCreatedActivity();
|
RecentsActivity activity = RecentsActivity.ACTIVITY_TRACKER.getCreatedActivity();
|
||||||
if (TestProtocol.sDebugTracing) {
|
|
||||||
Log.d(TestProtocol.FALLBACK_ACTIVITY_NO_SET, "activity=" + activity);
|
|
||||||
}
|
|
||||||
if (activity == null) {
|
if (activity == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -116,7 +116,6 @@ public final class TestProtocol {
|
|||||||
|
|
||||||
public static final String PERMANENT_DIAG_TAG = "TaplTarget";
|
public static final String PERMANENT_DIAG_TAG = "TaplTarget";
|
||||||
public static final String WORK_PROFILE_REMOVED = "b/159671700";
|
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 TASK_VIEW_ID_CRASH = "b/195430732";
|
||||||
public static final String L3_SWIPE_TO_HOME = "b/192018189";
|
public static final String L3_SWIPE_TO_HOME = "b/192018189";
|
||||||
public static final String NO_DROP_TARGET = "b/195031154";
|
public static final String NO_DROP_TARGET = "b/195031154";
|
||||||
|
|||||||
Reference in New Issue
Block a user