From fcd569055e791e8e803bd5581f724e39b31a6887 Mon Sep 17 00:00:00 2001 From: Vadim Tryshev Date: Mon, 7 Mar 2022 20:37:42 +0000 Subject: [PATCH] Revert "Adding better diags when SysUI crashes during Launcher test" This reverts commit b0e0f5f44ad8d03bb1f41b0ad68d371d8ccb2b4c. Reason for revert: This cl prevents the ability to run tests from android studio. Change-Id: I8a1cbcd2e8faefdd168aac5bcad4f21c73694839 --- .../tests/src/com/android/quickstep/FallbackRecentsTest.java | 4 +--- .../src/com/android/launcher3/ui/AbstractLauncherUiTest.java | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java b/quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java index 9a39b34ea7..4529217a21 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.platform.test.rule.CrashDetector; import androidx.test.filters.LargeTest; import androidx.test.runner.AndroidJUnit4; @@ -106,8 +105,7 @@ public class FallbackRecentsTest { } mOrderSensitiveRules = RuleChain - .outerRule(new CrashDetector("com.android.systemui")) - .around(new NavigationModeSwitchRule(mLauncher)) + .outerRule(new NavigationModeSwitchRule(mLauncher)) .around(new FailureWatcher(mDevice, mLauncher)); mOtherLauncherActivity = context.getPackageManager().queryIntentActivities( diff --git a/tests/src/com/android/launcher3/ui/AbstractLauncherUiTest.java b/tests/src/com/android/launcher3/ui/AbstractLauncherUiTest.java index 5abdcd3508..79a4673b04 100644 --- a/tests/src/com/android/launcher3/ui/AbstractLauncherUiTest.java +++ b/tests/src/com/android/launcher3/ui/AbstractLauncherUiTest.java @@ -38,7 +38,6 @@ import android.os.Process; import android.os.RemoteException; import android.os.UserHandle; import android.os.UserManager; -import android.platform.test.rule.CrashDetector; import android.system.OsConstants; import android.util.Log; @@ -226,7 +225,6 @@ public abstract class AbstractLauncherUiTest { @Rule public TestRule mOrderSensitiveRules = RuleChain .outerRule(new TestStabilityRule()) - .around(new CrashDetector("com.android.systemui")) .around(mActivityMonitor) .around(getRulesInsideActivityMonitor());