Loading tests/tapl/com/android/launcher3/tapl/LogEventChecker.java +2 −11 Original line number Diff line number Diff line Loading @@ -94,8 +94,7 @@ public class LogEventChecker { List<String> actual = new ArrayList<>(actualEvents.getNonNull(sequence)); final int mismatchPosition = getMismatchPosition(expectedEvents.getValue(), actual); hasMismatches = hasMismatches || mismatchPosition != -1 && !ignoreMistatch(successfulGesture, sequence); hasMismatches = hasMismatches || mismatchPosition != -1; formatSequenceWithMismatch( sb, sequence, Loading @@ -106,8 +105,7 @@ public class LogEventChecker { // Check for unexpected event sequences in the actual data. for (String actualNamedSequence : actualEvents.keySet()) { if (!mExpectedEvents.containsKey(actualNamedSequence)) { hasMismatches = hasMismatches || !ignoreMistatch(successfulGesture, actualNamedSequence); hasMismatches = true; formatSequenceWithMismatch( sb, actualNamedSequence, Loading @@ -120,13 +118,6 @@ public class LogEventChecker { return hasMismatches ? "mismatching events: " + sb.toString() : null; } // Workaround for b/154157191 private static boolean ignoreMistatch(boolean successfulGesture, String sequence) { // b/156287114 return false; // return TestProtocol.SEQUENCE_TIS.equals(sequence) && successfulGesture; } // If the list of actual events matches the list of expected events, returns -1, otherwise // the position of the mismatch. private static int getMismatchPosition(List<Pattern> expected, List<String> actual) { Loading Loading
tests/tapl/com/android/launcher3/tapl/LogEventChecker.java +2 −11 Original line number Diff line number Diff line Loading @@ -94,8 +94,7 @@ public class LogEventChecker { List<String> actual = new ArrayList<>(actualEvents.getNonNull(sequence)); final int mismatchPosition = getMismatchPosition(expectedEvents.getValue(), actual); hasMismatches = hasMismatches || mismatchPosition != -1 && !ignoreMistatch(successfulGesture, sequence); hasMismatches = hasMismatches || mismatchPosition != -1; formatSequenceWithMismatch( sb, sequence, Loading @@ -106,8 +105,7 @@ public class LogEventChecker { // Check for unexpected event sequences in the actual data. for (String actualNamedSequence : actualEvents.keySet()) { if (!mExpectedEvents.containsKey(actualNamedSequence)) { hasMismatches = hasMismatches || !ignoreMistatch(successfulGesture, actualNamedSequence); hasMismatches = true; formatSequenceWithMismatch( sb, actualNamedSequence, Loading @@ -120,13 +118,6 @@ public class LogEventChecker { return hasMismatches ? "mismatching events: " + sb.toString() : null; } // Workaround for b/154157191 private static boolean ignoreMistatch(boolean successfulGesture, String sequence) { // b/156287114 return false; // return TestProtocol.SEQUENCE_TIS.equals(sequence) && successfulGesture; } // If the list of actual events matches the list of expected events, returns -1, otherwise // the position of the mismatch. private static int getMismatchPosition(List<Pattern> expected, List<String> actual) { Loading