Home
last modified time | relevance | path

Searched refs:AnrItem (Results 1 – 5 of 5) sorted by relevance

/tools/loganalysis/javatests/com/android/loganalysis/parser/
DAnrParserTest.java18 import com.android.loganalysis.item.AnrItem;
50 AnrItem anr = new AnrParser().parse(lines); 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()
60 assertEquals(0.3, anr.getCpuUsage(AnrItem.CpuUsageCategory.IOWAIT)); in testParse_application_not_responding()
83 AnrItem anr = new AnrParser().parse(lines); in testParse_anr_in_app()
[all …]
/tools/loganalysis/src/com/android/loganalysis/parser/
DAnrParser.java18 import com.android.loganalysis.item.AnrItem;
63 public AnrItem parse(List<String> lines) { in parse()
64 AnrItem anr = null; in parse()
72 anr = new AnrItem(); 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()
100 anr.setCpuUsage(AnrItem.CpuUsageCategory.USER, usage); in parse()
104 anr.setCpuUsage(AnrItem.CpuUsageCategory.KERNEL, usage); in parse()
[all …]
DBugreportParser.java19 import com.android.loganalysis.item.AnrItem;
276 private void addAnrTrace(List<AnrItem> anrs, String app, String trace) { in addAnrTrace()
277 ListIterator<AnrItem> li = anrs.listIterator(anrs.size()); in addAnrTrace()
280 AnrItem anr = li.previous(); in addAnrTrace()
/tools/loganalysis/src/com/android/loganalysis/item/
DLogcatItem.java101 public List<AnrItem> getAnrs() { in getAnrs()
102 List<AnrItem> anrs = new LinkedList<AnrItem>(); in getAnrs()
104 if (item instanceof AnrItem) { in getAnrs()
105 anrs.add((AnrItem) item); in getAnrs()
DAnrItem.java27 public class AnrItem extends MiscLogcatItem { class
67 public AnrItem() { in AnrItem() method in AnrItem