Home
last modified time | relevance | path

Searched refs:lines (Results 1 – 25 of 105) sorted by relevance

12345

/tools/loganalysis/tests/src/com/android/loganalysis/parser/
DJavaCrashParserTest.java35 List<String> lines = Arrays.asList( in testParse_no_message() local
41 JavaCrashItem jc = new JavaCrashParser().parse(lines); in testParse_no_message()
45 assertEquals(ArrayUtil.join("\n", lines), jc.getStack()); in testParse_no_message()
52 List<String> lines = Arrays.asList( in testParse_message() local
58 JavaCrashItem jc = new JavaCrashParser().parse(lines); in testParse_message()
62 assertEquals(ArrayUtil.join("\n", lines), jc.getStack()); in testParse_message()
69 List<String> lines = Arrays.asList( in testParse_multiline_message() local
77 JavaCrashItem jc = new JavaCrashParser().parse(lines); in testParse_multiline_message()
81 assertEquals(ArrayUtil.join("\n", lines), jc.getStack()); in testParse_multiline_message()
89 List<String> lines = Arrays.asList( in testParse_caused_by() local
[all …]
DEventsLogParserTest.java50 List<String> lines = Arrays.asList(""); in testEmptyEventsLog() local
52 parseTransitionDelayInfo(readInputBuffer(getTempFile(lines))); in testEmptyEventsLog()
60 List<String> lines = Arrays in testNoTransitionDelayInfo() local
68 parseTransitionDelayInfo(readInputBuffer(getTempFile(lines))); in testNoTransitionDelayInfo()
77 List<String> lines = Arrays in testValidColdTransitionDelay() local
81 parseTransitionDelayInfo(readInputBuffer(getTempFile(lines))); in testValidColdTransitionDelay()
99 List<String> lines = Arrays in testValidHotTransitionDelay() local
105 parseTransitionDelayInfo(readInputBuffer(getTempFile(lines))); in testValidHotTransitionDelay()
121 List<String> lines = Arrays in testTransitionDelayOrder() local
125 parseTransitionDelayInfo(readInputBuffer(getTempFile(lines))); in testTransitionDelayOrder()
[all …]
DNativeCrashParserTest.java35 List<String> lines = Arrays.asList( in testParseage() local
140 NativeCrashItem nc = new NativeCrashParser().parse(lines); in testParseage()
147 assertEquals(ArrayUtil.join("\n", lines), nc.getStack()); in testParseage()
154 List<String> lines = Arrays.asList( in testParseApp() local
160 NativeCrashItem nc = new NativeCrashParser().parse(lines); in testParseApp()
166 lines = Arrays.asList( in testParseApp()
172 nc = new NativeCrashParser().parse(lines); in testParseApp()
179 lines = Arrays.asList( in testParseApp()
185 nc = new NativeCrashParser().parse(lines); in testParseApp()
DLogcatParserTest.java42 List<String> lines = Arrays.asList( in testParse_anr() local
48 LogcatItem logcat = new LogcatParser("2012").parse(lines); in testParse_anr()
65 List<String> lines = Arrays.asList( in testParse_anr_pid() local
72 LogcatItem logcat = new LogcatParser("2012").parse(lines); in testParse_anr_pid()
89 List<String> lines = Arrays.asList( in testParse_java_crash() local
95 LogcatItem logcat = new LogcatParser("2012").parse(lines); in testParse_java_crash()
110 List<String> lines = Arrays.asList( in testParse_test_exception() local
137 LogcatItem logcat = logcatParser.parse(lines); in testParse_test_exception()
149 List<String> lines = Arrays.asList( in testParse_test_exception_with_exras() local
174 LogcatItem logcat = logcatParser.parse(lines); in testParse_test_exception_with_exras()
[all …]
DKernelLogParserTest.java38 List<String> lines = Arrays.asList( in testParseLastKmsg() local
43 KernelLogItem kernelLog = new KernelLogParser().parse(lines); in testParseLastKmsg()
60 List<String> lines = Arrays.asList( in testParseDmesg() local
65 KernelLogItem kernelLog = new KernelLogParser().parse(lines); in testParseDmesg()
82 List<String> lines = Arrays.asList( in testParseLastMessage() local
87 KernelLogItem kernelLog = new KernelLogParser().parse(lines); in testParseLastMessage()
104 List<String> lines = Arrays.asList( in testParseUnknownLastMessage() local
109 KernelLogItem kernelLog = new KernelLogParser().parse(lines); in testParseUnknownLastMessage()
123 List<String> lines = Arrays.asList( in testParseKnownGoodLastMessage() local
128 KernelLogItem kernelLog = new KernelLogParser().parse(lines); in testParseKnownGoodLastMessage()
[all …]
DAnrParserTest.java35 List<String> lines = Arrays.asList( in testParse_application_not_responding() local
50 AnrItem anr = new AnrParser().parse(lines); in testParse_application_not_responding()
61 assertEquals(ArrayUtil.join("\n", lines), anr.getStack()); in testParse_application_not_responding()
68 List<String> lines = Arrays.asList( in testParse_anr_in_app() local
83 AnrItem anr = new AnrParser().parse(lines); in testParse_anr_in_app()
94 assertEquals(ArrayUtil.join("\n", lines), anr.getStack()); in testParse_anr_in_app()
101 List<String> lines = Arrays.asList( in testParse_anr_in_app_class_package() local
116 AnrItem anr = new AnrParser().parse(lines); in testParse_anr_in_app_class_package()
127 assertEquals(ArrayUtil.join("\n", lines), anr.getStack()); in testParse_anr_in_app_class_package()
134 List<String> lines = Arrays.asList( in testParse_anr_in_app_class_package_pid() local
[all …]
DSmartMonkeyLogParserTest.java36 List<String> lines = Arrays.asList( in testExceptions() local
51 SmartMonkeyLogItem monkeyLog = new SmartMonkeyLogParser().parse(lines); in testExceptions()
66 List<String> lines = Arrays.asList( in testHeader() local
81 SmartMonkeyLogItem monkeyLog = new SmartMonkeyLogParser().parse(lines); in testHeader()
101 List<String> lines = Arrays.asList( in testIntermidiateStop() local
112 SmartMonkeyLogItem monkeyLog = new SmartMonkeyLogParser().parse(lines); in testIntermidiateStop()
124 List<String> lines = Arrays.asList( in testFooter() local
140 SmartMonkeyLogItem monkeyLog = new SmartMonkeyLogParser().parse(lines); in testFooter()
DTracesParserTest.java35 List<String> lines = Arrays.asList( in testTracesParser() local
102 TracesItem traces = new TracesParser().parse(lines); in testTracesParser()
121 List<String> lines = Arrays.asList( in testTracesParser_cmdline() local
139 TracesItem traces = new TracesParser().parse(lines); in testTracesParser_cmdline()
144 lines = Arrays.asList( in testTracesParser_cmdline()
162 traces = new TracesParser().parse(lines); in testTracesParser_cmdline()
DAbstractSectionParserTest.java36 public IItem parse(List<String> lines) { in setUp()
37 for (String line : lines) { in setUp()
75 final List<String> lines = new ArrayList<String>(2*nParsers); in testSwitchParsers() local
84 lines.add(String.format(linePattern, i)); in testSwitchParsers()
86 lines.add(String.format(lineFormat, i)); in testSwitchParsers()
89 mParser.parse(lines); in testSwitchParsers()
DMonkeyLogParserTest.java43 List<String> lines = Arrays.asList( in testParse_success() local
76 MonkeyLogItem monkeyLog = new MonkeyLogParser().parse(lines); in testParse_success()
108 List<String> lines = Arrays.asList( in testParse_anr() local
182 MonkeyLogItem monkeyLog = new MonkeyLogParser().parse(lines); in testParse_anr()
215 List<String> lines = Arrays.asList( in testParse_java_crash() local
255 MonkeyLogItem monkeyLog = new MonkeyLogParser().parse(lines); in testParse_java_crash()
287 List<String> lines = Arrays.asList( in testParse_java_crash_mixed() local
327 MonkeyLogItem monkeyLog = new MonkeyLogParser().parse(lines); in testParse_java_crash_mixed()
359 List<String> lines = Arrays.asList( in testParse_native_crash() local
418 MonkeyLogItem monkeyLog = new MonkeyLogParser().parse(lines); in testParse_native_crash()
[all …]
DMemHealthParserTest.java31 List<String> lines = Arrays.asList("Foreground", in testOneForegroundProc() local
50 MemoryHealthItem item = new MemoryHealthParser().parse(lines); in testOneForegroundProc()
72 List<String> lines = Arrays.asList("Foreground", in testTwoForegroundProc() local
107 MemoryHealthItem item = new MemoryHealthParser().parse(lines); in testTwoForegroundProc()
128 List<String> lines = Arrays.asList("Foreground", in testForegroundBackgroundProc() local
164 MemoryHealthItem item = new MemoryHealthParser().parse(lines); in testForegroundBackgroundProc()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/sign/
DManifestGenerationTest.java64 String lines[] = text.split(System.getProperty("line.separator")); in elementaryManifestGeneration() local
65 assertEquals(3, lines.length); in elementaryManifestGeneration()
67 assertEquals("Manifest-Version: 1.0", lines[0].trim()); in elementaryManifestGeneration()
70 for (String l : lines) { in elementaryManifestGeneration()
100 String lines[] = text.split(System.getProperty("line.separator")); in manifestGenerationOnHalfWrittenFile() local
101 assertEquals(3, lines.length); in manifestGenerationOnHalfWrittenFile()
103 assertEquals("Manifest-Version: 1.0", lines[0].trim()); in manifestGenerationOnHalfWrittenFile()
106 for (String l : lines) { in manifestGenerationOnHalfWrittenFile()
138 String lines[] = text.split(System.getProperty("line.separator")); in manifestGenerationOnExistingFile() local
139 assertEquals(3, lines.length); in manifestGenerationOnExistingFile()
[all …]
/tools/loganalysis/tests/src/com/android/loganalysis/item/
DSystemPropsItemTest.java45 JSONObject lines = output.getJSONObject(SystemPropsItem.LINES); in testToJson() local
47 assertEquals(2, lines.length()); in testToJson()
49 assertEquals("123", lines.get("foo")); in testToJson()
50 assertEquals("456", lines.get("bar")); in testToJson()
DMemInfoItemTest.java45 JSONObject lines = output.getJSONObject(MemInfoItem.LINES); in testToJson() local
47 assertEquals(2, lines.length()); in testToJson()
49 assertEquals(123, lines.get("foo")); in testToJson()
50 assertEquals(456, lines.get("bar")); in testToJson()
DProcrankItemTest.java46 JSONArray lines = output.getJSONArray(ProcrankItem.LINES); in testToJson() local
48 assertEquals(2, lines.length()); in testToJson()
49 assertTrue(lines.get(0) instanceof JSONObject); in testToJson()
51 JSONObject line = lines.getJSONObject(0); in testToJson()
/tools/tradefederation/core/src/com/android/tradefed/util/
DAppVersionFetcher.java86 String[] lines = packageInfo.split("\\r?\\n"); in parseVersionString() local
87 if (lines.length > 1) { in parseVersionString()
88 CLog.i("There are two versions:\n%s\nThe first one is picked.", Arrays.toString(lines)); in parseVersionString()
90 Matcher matcher = pattern.matcher(lines[0]); in parseVersionString()
92 throw new IllegalStateException("Invalid app version string: " + lines[0]); in parseVersionString()
/tools/loganalysis/src/com/android/loganalysis/parser/
DDvmLockSampleParser.java72 List<String> lines = new ArrayList<>(); in parse() local
75 lines.add(line); in parse()
78 return parse(lines); in parse()
87 public DvmLockSampleItem parse(List<String> lines) { in parse() argument
90 for (String line : lines) { in parse()
DSystemPropsParser.java38 public SystemPropsItem parse(List<String> lines) { in parse() argument
39 final String text = ArrayUtil.join("\n", lines).trim(); in parse()
47 for (String line : lines) { in parse()
DMemInfoParser.java39 public MemInfoItem parse(List<String> lines) { in parse() argument
40 final String text = ArrayUtil.join("\n", lines).trim(); in parse()
48 for (String line : lines) { in parse()
DTopParser.java46 public TopItem parse(List<String> lines) { in parse() argument
47 final String text = ArrayUtil.join("\n", lines).trim(); in parse()
55 for (String line : lines) { in parse()
DMemoryHealthParser.java66 public MemoryHealthItem parse(List<String> lines) { in parse() argument
70 for (String line : lines) { in parse()
108 List<String> lines = new ArrayList<String>(); in parse() local
111 lines.add(line); in parse()
114 return parse(lines); in parse()
DTraceFormatParser.java87 public TraceFormatItem parse(List<String> lines) { in parse() argument
89 if (lines == null || lines.size() != 1) { in parse()
94 Matcher formatLineMatcher = SPLIT_FORMAT_LINE.matcher(lines.get(0)); in parse()
DProcrankParser.java50 public ProcrankItem parse(List<String> lines) { in parse() argument
51 final String text = ArrayUtil.join("\n", lines).replaceAll("\\s+$", ""); in parse()
59 for (String line : lines) { in parse()
/tools/tradefederation/core/prod-tests/src/com/android/graphics/tests/
DFlatlandTest.java151 String[] lines = result.split(System.getProperty("line.separator")); in parseResult() local
152 if (lines.length <= 0) { in parseResult()
155 for (int i = 0; i < lines.length; i++) { in parseResult()
156 if (!lines[i].contains(FIRST_LINE) && !(lines[i].contains(TITLE))) { in parseResult()
158 String[] items = lines[i].trim().split("\\|"); in parseResult()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DTopHelperTest.java45 final String lines = ("User 7%, System 5%, IOW 3%, IRQ 2%\r\n" + in testTopParser_parse() local
55 mTop.getReceiver().processNewLines(lines.split("\r\n")); in testTopParser_parse()
71 final String lines = ( in testTopParser_stats() local
90 mTop.getReceiver().processNewLines(lines.split("\r\n")); in testTopParser_stats()

12345