/external/google-breakpad/src/common/ |
D | dwarf_line_to_module_unittest.cc | 47 vector<Module::Line> lines; in TEST() local 48 DwarfLineToModule h(&m, "/", &lines); in TEST() 59 EXPECT_EQ(1U, lines.size()); in TEST() 60 EXPECT_EQ(0x6fd126fbf74f2680ULL, lines[0].address); in TEST() 61 EXPECT_EQ(0x63c9a14cf556712bULL, lines[0].size); in TEST() 62 EXPECT_TRUE(lines[0].file == files[0]); in TEST() 63 EXPECT_EQ(0x4c090cbf, lines[0].number); in TEST() 68 vector<Module::Line> lines; in TEST() local 69 DwarfLineToModule h(&m, "/", &lines); in TEST() 98 ASSERT_EQ(5U, lines.size()); in TEST() [all …]
|
/external/python/cpython2/PC/VS9.0/ |
D | vs9to8.py | 15 lines = fin.read() 16 lines = lines.replace('Version="9,00"', 'Version="8.00"') 17 lines = lines.replace('Version="9.00"', 'Version="8.00"') 18 lines = lines.replace('Format Version 10.00', 'Format Version 9.00') 19 lines = lines.replace('Visual Studio 2008', 'Visual Studio 2005') 21 lines = lines.replace('wininst-9.0', 'wininst-8.0') 22 lines = lines.replace('..\\', '..\\..\\') 23 lines = lines.replace('..\\..\\..\\..\\', '..\\..\\..\\') 27 lines = lines.replace('$(sqlite3Dir)', '..\\..\\..\\sqlite-3.6.21') 28 … lines = lines.replace('$(bsddbDir)\\..\\..', '..\\..\\..\\db-4.7.25.0\\build_windows\\..') [all …]
|
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/test/validation/ |
D | SourceTest.java | 38 List<Line> lines = s.getLines(); in should_parse_lines() local 39 assertEquals(3, lines.size()); in should_parse_lines() 40 assertEquals("aaa", lines.get(0).getText()); in should_parse_lines() 41 assertEquals("bbb", lines.get(1).getText()); in should_parse_lines() 42 assertEquals(";", lines.get(2).getText()); in should_parse_lines() 52 List<Line> lines = s.getLines(); in should_parse_empty_lines() local 53 assertEquals(4, lines.size()); in should_parse_empty_lines() 54 assertEquals("", lines.get(0).getText()); in should_parse_empty_lines() 55 assertEquals("aaa", lines.get(1).getText()); in should_parse_empty_lines() 56 assertEquals("", lines.get(2).getText()); in should_parse_empty_lines() [all …]
|
/external/yapf/yapf/yapflib/ |
D | line_joiner.py | 42 def CanMergeMultipleLines(lines, last_was_merged=False): argument 55 indent_amt = lines[0].depth * style.Get('INDENT_WIDTH') 56 if len(lines) == 1 or indent_amt > style.Get('COLUMN_LIMIT'): 59 if (len(lines) >= 3 and lines[2].depth >= lines[1].depth and 60 lines[0].depth != lines[2].depth): 67 if lines[0].first.value in _CLASS_OR_FUNC: 72 if lines[0].last.total_length < limit: 73 limit -= lines[0].last.total_length 75 if lines[0].first.value == 'if': 76 return _CanMergeLineIntoIfStatement(lines, limit) [all …]
|
/external/toolchain-utils/afdo_redaction/ |
D | redact_profile_test.py | 58 lines = [] 61 lines.append(num + function_header) 62 lines.extend(function_body) 63 return lines 73 lines = _generate_repeated_function_body(1) 74 result_file = '\n'.join(lines) + '\n' 75 self.assertEqual(_redact(lines), result_file) 78 lines = _generate_repeated_function_body(2) 79 result_file = '\n'.join(lines) + '\n' 80 self.assertEqual(_redact(lines), result_file) [all …]
|
/external/google-java-format/core/src/test/java/com/google/googlejavaformat/java/ |
D | PartialFormattingTest.java | 57 String lines(String... args) { in lines() method in PartialFormattingTest 64 lines( in testGetFormatReplacements0() 72 lines( in testGetFormatReplacements0() 87 lines( in testGetFormatReplacements1() 95 lines( in testGetFormatReplacements1() 108 lines( in expandToStatement() 118 lines( in expandToStatement() 132 lines( in expandToMethodSignature() 144 lines( in expandToMethodSignature() 161 lines( in expandToClassSignature() [all …]
|
/external/python/cpython3/Lib/test/test_tools/test_c_analyzer/test_parser/ |
D | test_declarations.py | 86 for lines, expected in tests: 91 with self.subTest(lines): 92 lines = lines.splitlines() 94 stmts = list(iter_global_declarations(lines)) 115 with self.subTest(lines): 116 lines = lines.splitlines() 118 stmts = list(iter_global_declarations(lines)) 124 lines = ['static const int const *spam, *ham=NULL, eggs = 3;'] 126 stmts = list(iter_global_declarations(lines)) 135 lines = textwrap.dedent(''' [all …]
|
/external/google-java-format/core/src/main/java/com/google/googlejavaformat/java/ |
D | JavaCommentsHelper.java | 49 List<String> lines = new ArrayList<>(); in rewrite() local 52 lines.add(CharMatcher.whitespace().trimTrailingFrom(it.next())); in rewrite() 55 return indentLineComments(lines, column0); in rewrite() 56 } else if (javadocShaped(lines)) { in rewrite() 57 return indentJavadoc(lines, column0); in rewrite() 59 return preserveIndentation(lines, column0); in rewrite() 65 private String preserveIndentation(List<String> lines, int column0) { in preserveIndentation() argument 70 for (int i = 1; i < lines.size(); i++) { in preserveIndentation() 71 int lineIdx = CharMatcher.whitespace().negate().indexIn(lines.get(i)); in preserveIndentation() 78 builder.append(lines.get(0)); in preserveIndentation() [all …]
|
/external/python/cpython3/Tools/msi/ |
D | csv_to_wxs.py | 64 lines = [ 69 lines.append(' <DirectoryRef Id="{}">'.format(dir_parent)) 71 …lines.append(' <Directory Id="{}_{}" Name="{}" />'.format(dir_parent, make_id(dir_name)… 72 lines.append(' </DirectoryRef>') 74 lines.append(' <DirectoryRef Id="{}">'.format(dir_parent)) 75 …lines.append(' <Directory Id="{}___pycache__" Name="__pycache__" />'.format(dir_parent)) 76 lines.append(' </DirectoryRef>') 77 lines.append(' </Fragment>') 80 lines.extend([ 85 …lines.append(' <Component Id="{}" Directory="{}" Guid="*">'.format(make_id(target), mak… [all …]
|
/external/llvm-project/lldb/test/API/tools/lldb-vscode/breakpoint/ |
D | TestVSCode_setBreakpoints.py | 110 lines = [first_line, third_line, second_line] 119 response = self.vscode.request_setBreakpoints(self.main_path, lines) 123 self.assertEquals(len(breakpoints), len(lines), 124 "expect %u source breakpoints" % (len(lines))) 125 for (breakpoint, index) in zip(breakpoints, range(len(lines))): 127 self.assertTrue(line, lines[index]) 130 self.assertTrue(line in lines, "line expected in lines array") 141 lines.remove(second_line) 144 response = self.vscode.request_setBreakpoints(self.main_path, lines) 147 self.assertEquals(len(breakpoints), len(lines), [all …]
|
/external/boringssl/src/util/ |
D | convert_comments.go | 78 lines []string member 85 (*groups)[len(*groups)-1].lines = append((*groups)[len(*groups)-1].lines, line) 95 lines := strings.Split(string(in), "\n") 98 if len(lines) > 0 && len(lines[len(lines)-1]) == 0 { 99 lines = lines[:len(lines)-1] 107 for len(lines) > 0 { 108 line := lines[0] 109 lines = lines[1:] 124 for len(lines) > 0 { 125 line := lines[0] [all …]
|
/external/python/cpython3/Lib/idlelib/ |
D | format.py | 122 lines = data.split("\n") 124 n = len(lines) 125 while i < n and is_all_white(lines[i]): 129 indent1 = get_indent(lines[i]) 130 if i+1 < n and not is_all_white(lines[i+1]): 131 indent2 = get_indent(lines[i+1]) 134 new = lines[:i] 136 while i < n and not is_all_white(lines[i]): 138 words = re.split(r"(\s+)", lines[i]) 153 new.extend(lines[i:]) [all …]
|
/external/eigen/bench/btl/data/ |
D | perlib_plot_settings.txt | 1 eigen3 ; with lines lw 4 lt 1 lc rgbcolor "black" 2 eigen2 ; with lines lw 3 lt 1 lc rgbcolor "#999999" 3 EigenBLAS ; with lines lw 3 lt 3 lc rgbcolor "#999999" 4 eigen3_novec ; with lines lw 2 lt 1 lc rgbcolor "#999999" 5 eigen3_nogccvec ; with lines lw 2 lt 2 lc rgbcolor "#991010" 6 INTEL_MKL ; with lines lw 3 lt 1 lc rgbcolor "#ff0000" 7 ATLAS ; with lines lw 3 lt 1 lc rgbcolor "#008000" 8 gmm ; with lines lw 3 lt 1 lc rgbcolor "#0000ff" 9 ublas ; with lines lw 3 lt 1 lc rgbcolor "#00b7ff" 10 mtl4 ; with lines lw 3 lt 1 lc rgbcolor "#d18847" [all …]
|
/external/tensorflow/tensorflow/python/debug/cli/ |
D | tensor_format_test.py | 62 while not out.lines[begin_line_num].startswith("array"): 65 for line_num in range(begin_line_num, len(out.lines)): 66 line = out.lines[line_num] 93 while not out.lines[begin_line_num].startswith("array"): 97 for line_num in range(begin_line_num, len(out.lines)): 98 line = out.lines[line_num] 113 def _findFirst(self, lines, string): argument 115 for i, line in enumerate(lines): 131 for i in range(start_line, len(out.lines)): 137 floats.append(float(out.lines[i][begin:end])) [all …]
|
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rjsmin/bench/ |
D | write.py | 154 lines = [] 161 lines.append('') 162 lines.append('') 165 lines.append(line) 166 lines.append('~' * len(line)) 169 lines.append('') 170 lines.append('.. rst-class:: benchmark') 171 lines.append('') 176 lines.append(separator()) 177 lines.append('|'.join([''] + [ [all …]
|
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/bench/ |
D | write.py | 153 lines = [] 160 lines.append('') 161 lines.append('') 164 lines.append(line) 165 lines.append('~' * len(line)) 168 lines.append('') 169 lines.append('.. rst-class:: benchmark') 170 lines.append('') 175 lines.append(separator()) 176 lines.append('|'.join([''] + [ [all …]
|
/external/perfetto/gn/ |
D | write_buildflag_header.py | 69 lines = [] 70 lines.append('// Generated by %s' % os.path.basename(__file__)) 71 lines.append('') 72 lines.append('// fix_include_guards: off') 73 lines.append('#ifndef %s' % guard) 74 lines.append('#define %s' % guard) 75 lines.append('') 76 lines.append('// clang-format off') 78 lines.append('#define PERFETTO_BUILDFLAG_DEFINE_%s() (%s)' % kv) 79 lines.append('') [all …]
|
/external/fonttools/Lib/fontTools/mtiLib/ |
D | __init__.py | 97 def parseScriptList(lines, featureMap=None): argument 100 with lines.between('script table'): 101 for line in lines: 147 def parseFeatureList(lines, lookupMap=None, featureMap=None): argument 150 with lines.between('feature table'): 151 for line in lines: 176 def parseLookupFlags(lines): argument 187 while lines.peeks()[0].lower() in allFlags: 188 line = next(lines) 208 def parseSingleSubst(lines, font, _lookupMap=None): argument [all …]
|
/external/rust/crates/structopt-derive/src/ |
D | doc_comments.rs | 10 pub fn process_doc_comment(lines: Vec<String>, name: &str, preprocess: bool) -> Vec<Method> { in process_doc_comment() 15 let mut lines: Vec<&str> = lines in process_doc_comment() localVariable 21 while let Some(true) = lines.last().map(|s| is_blank(s)) { in process_doc_comment() 22 lines.pop(); in process_doc_comment() 26 for line in lines.iter_mut() { in process_doc_comment() 32 if lines.is_empty() { in process_doc_comment() 39 if let Some(first_blank) = lines.iter().position(|s| is_blank(s)) { in process_doc_comment() 41 let paragraphs = split_paragraphs(&lines); in process_doc_comment() 46 let short = lines[..first_blank].join("\n"); in process_doc_comment() 47 let long = lines.join("\n"); in process_doc_comment() [all …]
|
/external/toolchain-utils/heatmaps/ |
D | heatmap_generator_test.py | 82 lines = f.readlines() 83 self.assertEqual(len(lines), 1) 84 self.assertIn('101/101: 1 0', lines[0]) 98 lines = f.readlines() 99 self.assertEqual(len(lines), 3) 100 self.assertIn('101/101: 1 0', lines[0]) 101 self.assertIn('101/101: 2 0', lines[1]) 102 self.assertIn('101/101: 3 4096', lines[2]) 117 lines = f.readlines() 118 self.assertEqual(len(lines), 2) [all …]
|
/external/ply/ply/ply/ |
D | ygen.py | 13 def get_source_range(lines, tag): argument 14 srclines = enumerate(lines) 28 def filter_section(lines, tag): argument 32 for line in lines: 43 lines = f.readlines() 45 parse_start, parse_end = get_source_range(lines, 'parsedebug') 46 parseopt_start, parseopt_end = get_source_range(lines, 'parseopt') 47 parseopt_notrack_start, parseopt_notrack_end = get_source_range(lines, 'parseopt-notrack') 50 orig_lines = lines[parse_start:parse_end] 59 lines[parseopt_notrack_start:parseopt_notrack_end] = parseopt_notrack_lines [all …]
|
/external/python/pycparser/pycparser/ply/ |
D | ygen.py | 13 def get_source_range(lines, tag): argument 14 srclines = enumerate(lines) 28 def filter_section(lines, tag): argument 32 for line in lines: 43 lines = f.readlines() 45 parse_start, parse_end = get_source_range(lines, 'parsedebug') 46 parseopt_start, parseopt_end = get_source_range(lines, 'parseopt') 47 parseopt_notrack_start, parseopt_notrack_end = get_source_range(lines, 'parseopt-notrack') 50 orig_lines = lines[parse_start:parse_end] 59 lines[parseopt_notrack_start:parseopt_notrack_end] = parseopt_notrack_lines [all …]
|
/external/mockito/src/main/java/org/mockito/internal/debugging/ |
D | LoggingListener.java | 58 List<String> lines = new LinkedList<String>(); in getStubbingInfo() local 59 … lines.add("[Mockito] Additional stubbing information (see javadoc for StubbingInfo class):"); in getStubbingInfo() 62 lines.add("[Mockito]"); in getStubbingInfo() 63 …lines.add("[Mockito] Argument mismatch between stubbing and actual invocation (is stubbing correct… in getStubbingInfo() 64 lines.add("[Mockito]"); in getStubbingInfo() 65 addOrderedList(lines, argMismatchStubs); in getStubbingInfo() 69 lines.add("[Mockito]"); in getStubbingInfo() 70 lines.add("[Mockito] Unused stubbing (perhaps can be removed from the test?):"); in getStubbingInfo() 71 lines.add("[Mockito]"); in getStubbingInfo() 72 addOrderedList(lines, unusedStubs); in getStubbingInfo() [all …]
|
/external/skqp/infra/bots/buildstats/ |
D | buildstats_flutter.py | 45 lines = subprocess.check_output([bloaty_path, stripped_file, 49 grand_total = print_skia_lines_file_symbol(lines) 52 lines = subprocess.check_output([bloaty_path, stripped_file, 56 print_skia_lines_file_symbol(lines) 60 lines = subprocess.check_output([bloaty_path, stripped_file, 64 print_skia_lines_symbol_file(lines) 68 lines = subprocess.check_output([bloaty_path, stripped_file, 72 print_skia_lines_symbol_file(lines) 99 def print_skia_lines_file_symbol(lines): argument 100 lines = lines.split('\n') [all …]
|
/external/jacoco/org.jacoco.report.test/src/org/jacoco/report/csv/ |
D | CSVFormatterTest.java | 62 final List<String> lines = getLines(); in testStructureWithGroup() local 63 assertEquals(HEADER, lines.get(0)); in testStructureWithGroup() 66 lines.get(1)); in testStructureWithGroup() 67 assertEquals(2, lines.size()); in testStructureWithGroup() 73 final List<String> lines = getLines(); in testStructureWithNestedGroups() local 74 assertEquals(HEADER, lines.get(0)); in testStructureWithNestedGroups() 77 lines.get(1)); in testStructureWithNestedGroups() 80 lines.get(2)); in testStructureWithNestedGroups() 81 assertEquals(3, lines.size()); in testStructureWithNestedGroups() 87 final List<String> lines = getLines(); in testStructureWithBundleOnly() local [all …]
|