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

Commit ae701bfc authored by vadimt's avatar vadimt
Browse files

Investigator: adding "Screen is empty" as another sign of crashed sysui

Also generating recognizable anomaly message in more cases

Change-Id: Ia4d4d87a1a46291f3ea1057e00acbd98d9ccb3a5
parent 4e7a48f2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -55,7 +55,7 @@ class FailureInvestigator {
    private static final ExceptionMatch[] EXCEPTION_MATCHES = {
            new ExceptionMatch(
                    "java.lang.AssertionError: http://go/tapl : Tests are broken by a "
                            + "non-Launcher system error: Phone is locked",
                            + "non-Launcher system error: (Phone is locked|Screen is empty)",
                    new LogcatMatch[]{
                            new LogcatMatch(
                                    "BroadcastQueue: Can't deliver broadcast to com.android"
+2 −1
Original line number Diff line number Diff line
@@ -340,7 +340,8 @@ public final class LauncherInstrumentation {
    public void checkForAnomaly() {
        final String anomalyMessage = getAnomalyMessage();
        if (anomalyMessage != null) {
            String message = "Tests are broken by a non-Launcher system error: " + anomalyMessage;
            String message = "http://go/tapl : Tests are broken by a non-Launcher system error: "
                    + anomalyMessage;
            log("Hierarchy dump for: " + message);
            dumpViewHierarchy();