Home
last modified time | relevance | path

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

/tools/loganalysis/tests/src/com/android/loganalysis/parser/
DAnrParserTest.java50 AnrItem anr = new AnrParser().parse(lines); in testParse_application_not_responding() local
51 assertNotNull(anr); in testParse_application_not_responding()
52 assertEquals("com.android.package", anr.getApp()); in testParse_application_not_responding()
53 assertEquals("keyDispatchingTimedOut", anr.getReason()); in testParse_application_not_responding()
54 assertEquals(0.71, anr.getLoad(AnrItem.LoadCategory.LOAD_1)); in testParse_application_not_responding()
55 assertEquals(0.83, anr.getLoad(AnrItem.LoadCategory.LOAD_5)); in testParse_application_not_responding()
56 assertEquals(0.51, anr.getLoad(AnrItem.LoadCategory.LOAD_15)); in testParse_application_not_responding()
57 assertEquals(33.0, anr.getCpuUsage(AnrItem.CpuUsageCategory.TOTAL)); in testParse_application_not_responding()
58 assertEquals(21.0, anr.getCpuUsage(AnrItem.CpuUsageCategory.USER)); in testParse_application_not_responding()
59 assertEquals(11.0, anr.getCpuUsage(AnrItem.CpuUsageCategory.KERNEL)); in testParse_application_not_responding()
[all …]
/tools/loganalysis/src/com/android/loganalysis/parser/
DAnrParser.java64 AnrItem anr = null; in parse() local
72 anr = new AnrItem(); in parse()
73 anr.setApp(m.group(1)); in parse()
76 if (anr != null) { in parse()
79 anr.setPid(Integer.valueOf(m.group(1))); in parse()
83 anr.setReason(m.group(1)); in parse()
88 anr.setLoad(AnrItem.LoadCategory.LOAD_1, Double.parseDouble(m.group(1))); in parse()
89 anr.setLoad(AnrItem.LoadCategory.LOAD_5, Double.parseDouble(m.group(2))); in parse()
90 anr.setLoad(AnrItem.LoadCategory.LOAD_15, Double.parseDouble(m.group(3))); in parse()
96 anr.setCpuUsage(AnrItem.CpuUsageCategory.TOTAL, Double.parseDouble(m.group(1))); in parse()
[all …]
DBugreportParser.java280 AnrItem anr = li.previous(); in addAnrTrace() local
281 if (app.equals(anr.getApp())) { in addAnrTrace()
282 anr.setTrace(trace); in addAnrTrace()