Searched refs:patternUtil (Results 1 – 2 of 2) sorted by relevance
/tools/loganalysis/tests/src/com/android/loganalysis/util/ |
D | LogPatternUtilTest.java | 31 LogPatternUtil patternUtil = new LogPatternUtil(); in testPatternMatching() local 32 patternUtil.addPattern(Pattern.compile("abc"), "cat1"); in testPatternMatching() 33 patternUtil.addPattern(Pattern.compile("123"), "cat2"); in testPatternMatching() 35 assertNull(patternUtil.checkMessage("xyz")); in testPatternMatching() 36 assertEquals("cat1", patternUtil.checkMessage("abc")); in testPatternMatching() 37 assertEquals("cat2", patternUtil.checkMessage("123")); in testPatternMatching() 44 LogPatternUtil patternUtil = new LogPatternUtil(); in testExtrasMatching() local 45 patternUtil.addPattern(Pattern.compile("abc"), null, "cat1"); in testExtrasMatching() 46 patternUtil.addPattern(Pattern.compile("123"), "E/tag1", "cat2"); in testExtrasMatching() 47 patternUtil.addPattern(Pattern.compile("123"), "E/tag2", "cat3"); in testExtrasMatching() [all …]
|
/tools/loganalysis/tests/src/com/android/loganalysis/parser/ |
D | KernelLogParserTest.java | 193 LogPatternUtil patternUtil = new KernelLogParser().getLogPatternUtil(); in testPatterns() local 197 KernelLogParser.KERNEL_RESET, patternUtil.checkMessage(pattern)); in testPatterns() 200 assertEquals(KernelLogParser.KERNEL_ERROR, patternUtil.checkMessage("Internal error:")); in testPatterns() 201 assertEquals(KernelLogParser.SELINUX_DENIAL, patternUtil.checkMessage( in testPatterns()
|