/tools/loganalysis/tests/src/com/android/loganalysis/parser/ |
D | LogcatParserTest.java | 42 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 …]
|
D | BugreportParserTest.java | 41 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 …]
|
D | EventsLogParserTest.java | 50 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 …]
|
D | KernelLogParserTest.java | 38 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 …]
|
D | JavaCrashParserTest.java | 35 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 …]
|
D | MonkeyLogParserTest.java | 43 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 …]
|
D | AnrParserTest.java | 35 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 …]
|
D | NativeCrashParserTest.java | 35 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()
|
D | SmartMonkeyLogParserTest.java | 36 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()
|
D | TracesParserTest.java | 35 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()
|
D | AbstractSectionParserTest.java | 36 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()
|
D | MemHealthParserTest.java | 31 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/repohooks/tools/ |
D | cpplint.py | 616 def ProcessGlobalSuppresions(lines): argument 625 for line in lines: 1365 def FindNextMultiLineCommentStart(lines, lineix): argument 1367 while lineix < len(lines): 1368 if lines[lineix].strip().startswith('/*'): 1370 if lines[lineix].strip().find('*/', 2) < 0: 1373 return len(lines) 1376 def FindNextMultiLineCommentEnd(lines, lineix): argument 1378 while lineix < len(lines): 1379 if lines[lineix].strip().endswith('*/'): [all …]
|
D | checkpatch.pl | 824 my @lines = split('\n', $text); 826 foreach my $line (@lines) { 913 my @lines = split("\n", $output); 915 return ($id, $desc) if ($#lines < 0); 917 if ($lines[0] =~ /^error: short SHA1 $commit is ambiguous\./) { 927 …} elsif ($lines[0] =~ /^fatal: ambiguous argument '$commit': unknown revision or path not in the w… 930 $id = substr($lines[0], 0, 12); 931 $desc = substr($lines[0], 41); 940 my @lines = (); 961 my $lines = `git log --no-color --no-merges --pretty=format:'%H %s' $git_range`; [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/ap_lib/ |
D | radvd.py | 168 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 …]
|
D | dhcp_server.py | 189 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/ |
D | SimpleFileLoggerTest.java | 78 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/tradefederation/core/src/com/android/tradefed/device/ |
D | TestDevice.java | 1160 ArrayList<String[]> lines = tokenizeListUsers(); in getUserInfos() local 1161 Map<Integer, UserInfo> result = new HashMap<Integer, UserInfo>(lines.size()); in getUserInfos() 1162 for (String[] tokens : lines) { in getUserInfos() 1187 String[] lines = commandOutput.split("\\r?\\n"); in tokenizeListUsers() local 1188 if (!lines[0].equals("Users:")) { in tokenizeListUsers() 1192 ArrayList<String[]> users = new ArrayList<String[]>(lines.length - 1); in tokenizeListUsers() 1193 for (int i = 1; i < lines.length; i++) { in tokenizeListUsers() 1196 String[] tokens = lines[i].split("\\{|\\}|:"); in tokenizeListUsers() 1202 commandOutput, lines[i])); in tokenizeListUsers() 1777 String[] lines = commandOutput.split("\\r?\\n"); in removeOwners() local [all …]
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/sign/ |
D | ManifestGenerationTest.java | 64 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/ |
D | StringStreamTest.kt | 59 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/external_updater/ |
D | git_utils.py | 68 lines = out.splitlines() 69 return dict([parse_remote(line) for line in lines]) 95 lines = _run(['git', 'branch', '-r'], cwd=proj_path).splitlines() 96 stripped = [line.strip() for line in lines] 112 lines = _run(['git', "ls-remote", "--tags", remote_name], 114 tags = [parse_remote_tag(line) for line in lines]
|
/tools/tradefederation/contrib/src/com/android/graphics/tests/ |
D | FlatlandTest.java | 156 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()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | BluetoothUtils.java | 111 String lines[] = runBluetoothInstrumentation(device, "getAddress").split("\\r?\\n"); in getBluetoothMac() local 112 for (String line : lines) { in getBluetoothMac() 154 String lines[] = runBluetoothInstrumentation(device, "getBondedDevices").split("\\r?\\n"); in getBondedDevices() local 155 return parseBondedDeviceInstrumentationOutput(lines); in getBondedDevices() 159 static Set<String> parseBondedDeviceInstrumentationOutput(String[] lines) { in parseBondedDeviceInstrumentationOutput() argument 161 for (String line : lines) { in parseBondedDeviceInstrumentationOutput()
|
D | AppVersionFetcher.java | 86 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/test/openhst/ |
D | stress_test.py | 706 lines = [ 711 lines.append(_SUMMARY_COL_FORMATT % ( 713 lines.append(_SUMMARY_LINES) 714 return lines 975 lines = [ 982 lines.extend(device.GetSummaryLines()) 983 lines.append(_SUMMARY_LINES) 984 return lines
|