Home
last modified time | relevance | path

Searched refs:lines (Results 1 – 25 of 121) 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 …]
DBugreportParserTest.java41 List<String> lines = in testParse() local
164 BugreportItem bugreport = new BugreportParser().parse(lines); in testParse()
207 List<String> lines = Arrays.asList( in testParse_set_logcat_year() local
216 BugreportItem bugreport = new BugreportParser().parse(lines); in testParse_set_logcat_year()
228 List<String> lines = Arrays.asList("Command line:"); in testParse_command_line() local
229 BugreportItem bugreport = new BugreportParser().parse(lines); in testParse_command_line()
232 lines = Arrays.asList("Command line: key=value"); in testParse_command_line()
233 bugreport = new BugreportParser().parse(lines); in testParse_command_line()
237 lines = Arrays.asList("Command line: key1=value1 key2=value2"); in testParse_command_line()
238 bugreport = new BugreportParser().parse(lines); in testParse_command_line()
[all …]
DEventsLogParserTest.java50 List<String> lines = Arrays.asList(""); in testEmptyEventsLog() local
52 new EventsLogParser().parseTransitionDelayInfo(readInputBuffer(getTempFile(lines))); in testEmptyEventsLog()
60 List<String> lines = Arrays in testNoTransitionDelayInfo() local
68 new EventsLogParser().parseTransitionDelayInfo(readInputBuffer(getTempFile(lines))); in testNoTransitionDelayInfo()
77 List<String> lines = Arrays in testValidColdTransitionDelay() local
81 new EventsLogParser().parseTransitionDelayInfo(readInputBuffer(getTempFile(lines))); in testValidColdTransitionDelay()
99 List<String> lines = Arrays in testValidHotTransitionDelay() local
105 new EventsLogParser().parseTransitionDelayInfo(readInputBuffer(getTempFile(lines))); in testValidHotTransitionDelay()
121 List<String> lines = Arrays in testTransitionDelayOrder() local
125 new EventsLogParser().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/test/connectivity/acts/framework/acts/controllers/ap_lib/
Dradvd.py168 lines = ['interface %s {' % self._interface]
171 lines.append('\t%s %s;' %
173 lines.append('\tprefix %s' % conf['prefix'])
174 lines.append('\t{')
176 lines.append('\t\t%s;' % ' '.join(map(str, prefix_option)))
177 lines.append('\t};')
179 lines.append('\tclients')
180 lines.append('\t{')
182 lines.append('\t\t%s;' % client)
183 lines.append('\t};')
[all …]
Ddhcp_server.py189 lines = []
192 lines.append('default-lease-time %d;' % config.default_lease_time)
194 lines.append('max-lease-time %s;' % config.max_lease_time)
204 lines.append('subnet %s netmask %s {' % (address, mask))
205 lines.append('\toption subnet-mask %s;' % mask)
206 lines.append('\toption routers %s;' % router)
207 lines.append('\toption domain-name-servers %s;' % _ROUTER_DNS)
208 lines.append('\trange %s %s;' % (start, end))
210 lines.append('\tdefault-lease-time %d;' % lease_time)
211 lines.append('\tmax-lease-time %d;' % lease_time)
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/log/
DSimpleFileLoggerTest.java78 List<String> lines = readLines(new FileInputStream(mLogFile)); in testPrintLog() local
79 assertEquals(4, lines.size()); in testPrintLog()
80 assertThat(lines.get(0), endsWith(String.format("D/%s: %s", LOG_TAG, "debug"))); in testPrintLog()
81 assertThat(lines.get(1), endsWith(String.format("I/%s: %s", LOG_TAG, "info"))); in testPrintLog()
82 assertThat(lines.get(2), endsWith(String.format("W/%s: %s", LOG_TAG, "warn"))); in testPrintLog()
83 assertThat(lines.get(3), endsWith(String.format("E/%s: %s", LOG_TAG, "error"))); in testPrintLog()
100 List<String> lines = readLines(new FileInputStream(mLogFile)); in testInit() local
101 assertTrue(lines.isEmpty()); in testInit()
110 List<String> lines = readLines(new FileInputStream(mLogFile)); in testCloseLog() local
111 assertTrue(lines.isEmpty()); in testCloseLog()
[all …]
/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/trebuchet/core/common/src/test/kotlin/trebuchet/io/
DStringStreamTest.kt59 val lines = mutableListOf<String>() in expect1_20_300() constant
61 lines.add(it.toString()) in expect1_20_300()
63 assertEquals(3, lines.size) in expect1_20_300()
64 assertEquals("1", lines[0]) in expect1_20_300()
65 assertEquals("20", lines[1]) in expect1_20_300()
66 assertEquals("300", lines[2]) in expect1_20_300()
/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/external_updater/
Dgit_utils.py59 lines = out.stdout.decode('utf-8').splitlines()
60 return dict([line.split()[0:2] for line in lines])
80 lines = out.stdout.decode('utf-8').splitlines()
81 stripped = [line.strip() for line in lines]
105 lines = out.stdout.decode('utf-8').splitlines()
106 tags = [_parse_remote_tag(line) for line in lines]
/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()
/tools/tradefederation/contrib/src/com/android/graphics/tests/
DFlatlandTest.java156 String[] lines = result.split(System.getProperty("line.separator")); in parseResult() local
157 if (lines.length <= 0) { in parseResult()
160 for (int i = 0; i < lines.length; i++) { in parseResult()
161 if (!lines[i].contains(FIRST_LINE) && !lines[i].contains(TITLE)) { in parseResult()
163 String[] items = lines[i].trim().split("\\|"); in parseResult()

12345