Home
last modified time | relevance | path

Searched refs:nc (Results 1 – 3 of 3) sorted by relevance

/tools/loganalysis/tests/src/com/android/loganalysis/parser/
DNativeCrashParserTest.java140 NativeCrashItem nc = new NativeCrashParser().parse(lines); in testParseage() local
141 assertNotNull(nc); in testParseage()
142 assertEquals(2058, nc.getPid().intValue()); in testParseage()
143 assertEquals(2523, nc.getTid().intValue()); in testParseage()
144 assertEquals("com.google.android.browser", nc.getApp()); in testParseage()
146 nc.getFingerprint()); in testParseage()
147 assertEquals(ArrayUtil.join("\n", lines), nc.getStack()); in testParseage()
160 NativeCrashItem nc = new NativeCrashParser().parse(lines); in testParseApp() local
161 assertNotNull(nc); in testParseApp()
162 assertEquals(2058, nc.getPid().intValue()); in testParseApp()
[all …]
DMonkeyLogParserTest.java536 NativeCrashItem nc = (NativeCrashItem) monkeyLog.getCrash(); in testParse_native_crash_strip_extra() local
538 nc.getFingerprint()); in testParse_native_crash_strip_extra()
540 assertEquals(23, nc.getStack().split("\n").length); in testParse_native_crash_strip_extra()
541 assertFalse(nc.getStack().contains("New native crash detected")); in testParse_native_crash_strip_extra()
602 NativeCrashItem nc = (NativeCrashItem) monkeyLog.getCrash(); in testParse_native_crash_empty() local
603 assertNull(nc.getFingerprint()); in testParse_native_crash_empty()
604 assertEquals("", nc.getStack()); in testParse_native_crash_empty()
/tools/loganalysis/src/com/android/loganalysis/parser/
DNativeCrashParser.java42 NativeCrashItem nc = null; in parse() local
48 nc = new NativeCrashItem(); in parse()
49 nc.setFingerprint(m.group(1)); in parse()
52 if (nc != null) { in parse()
55 nc.setPid(Integer.valueOf(m.group(1))); in parse()
56 nc.setTid(Integer.valueOf(m.group(2))); in parse()
57 nc.setApp(m.group(4)); in parse()
64 if (nc != null) { in parse()
65 nc.setStack(stack.toString().trim()); in parse()
67 return nc; in parse()