Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 020c9e4b authored by vadimt's avatar vadimt Committed by Vadim Tryshev
Browse files

Remove unused tracing; it confuses investigators

Bug: 196820244
Test: presubmit
Change-Id: If403f475f393fc95e5efd098ae63c8e8bb199ddc
parent 7356c137
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -32,7 +32,6 @@ public class FailureWatcher extends TestWatcher {
    public FailureWatcher(UiDevice device, LauncherInstrumentation launcher) {
        mDevice = device;
        mLauncher = launcher;
        Log.d("b/196820244", "FailureWatcher.ctor", new Exception());
    }

    @Override
@@ -48,10 +47,8 @@ public class FailureWatcher extends TestWatcher {
            public void evaluate() throws Throwable {
                boolean success = false;
                try {
                    Log.d("b/196820244", "Before evaluate");
                    mDevice.executeShellCommand("cmd statusbar tracing start");
                    FailureWatcher.super.apply(base, description).evaluate();
                    Log.d("b/196820244", "After evaluate");
                    success = true;
                } finally {
                    // Save artifact for Launcher Winscope trace.
@@ -96,9 +93,7 @@ public class FailureWatcher extends TestWatcher {
    public static void onError(LauncherInstrumentation launcher, Description description,
            Throwable e) {
        final UiDevice device = launcher.getDevice();
        Log.d("b/196820244", "onError 1");
        if (device == null) return;
        Log.d("b/196820244", "onError 2");
        final File sceenshot = diagFile(description, "TestScreenshot", "png");
        final File hierarchy = diagFile(description, "Hierarchy", "zip");