/external/yapf/yapf/yapflib/ |
D | line_joiner.py | 14 """Join logical lines together. 16 Determine how many lines can be joined into one line. For instance, we could 28 1. The lines should have been joined in the original source. 29 2. The joined lines must not go over the column boundary if placed on the same 34 follows that there can only be at most two lines to join. 42 def CanMergeMultipleLines(lines, last_was_merged=False): argument 43 """Determine if multiple lines can be joined into one. 46 lines: (list of LogicalLine) This is a splice of LogicalLines from the full 51 True if two consecutive lines can be joined together. In reality, this will 52 only happen if two consecutive lines can be joined, due to the style guide. [all …]
|
D | yapf_api.py | 26 lines: (list of tuples of integers) A list of tuples of lines, [start, end], 27 that we want to format. The lines are 1-based indexed. It can be used by 55 lines=None, argument 66 lines: (list of tuples of integers) A list of tuples of lines, [start, end], 67 that we want to format. The lines are 1-based indexed. It can be used by 92 lines=lines, 105 def FormatTree(tree, style_config=None, lines=None): argument 115 lines: (list of tuples of integers) A list of tuples of lines, [start, end], 116 that we want to format. The lines are 1-based indexed. It can be used by 137 lines = _LineRangesToSet(lines) [all …]
|
/external/google-breakpad/src/common/ |
D | dwarf_line_to_module_unittest.cc | 50 vector<Module::Line> lines; in TEST() local 52 DwarfLineToModule h(&m, "/", &lines, &cu_files); in TEST() 63 EXPECT_EQ(1U, lines.size()); in TEST() 64 EXPECT_EQ(0x6fd126fbf74f2680ULL, lines[0].address); in TEST() 65 EXPECT_EQ(0x63c9a14cf556712bULL, lines[0].size); in TEST() 66 EXPECT_TRUE(lines[0].file == files[0]); in TEST() 67 EXPECT_EQ(0x4c090cbf, lines[0].number); in TEST() 72 vector<Module::Line> lines; in TEST() local 74 DwarfLineToModule h(&m, "/", &lines, &cu_files); in TEST() 103 ASSERT_EQ(5U, lines.size()); in TEST() [all …]
|
/external/deqp/android/cts/main/vk-main-2021-03-01/ |
D | rasterization.txt | 1 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.degenerate.0_00 2 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.degenerate.0_25 3 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.degenerate.max 4 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.degenerate.min 5 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.normal.0_00 6 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.normal.0_25 7 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.normal.0_50 8 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.normal.0_75 9 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.normal.1_00 10 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.normal.2_00 [all …]
|
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/test/validation/ |
D | SourceTest.java | 39 List<Line> lines = s.getLines(); in should_parse_lines() local 40 assertEquals(3, lines.size()); in should_parse_lines() 41 assertEquals("aaa", lines.get(0).getText()); in should_parse_lines() 42 assertEquals("bbb", lines.get(1).getText()); in should_parse_lines() 43 assertEquals(";", lines.get(2).getText()); in should_parse_lines() 53 List<Line> lines = s.getLines(); in should_parse_empty_lines() local 54 assertEquals(4, lines.size()); in should_parse_empty_lines() 55 assertEquals("", lines.get(0).getText()); in should_parse_empty_lines() 56 assertEquals("aaa", lines.get(1).getText()); in should_parse_empty_lines() 57 assertEquals("", lines.get(2).getText()); in should_parse_empty_lines() [all …]
|
/external/apache-commons-io/src/test/java/org/apache/commons/io/ |
D | LineIteratorTest.java | 51 private void assertLines(final List<String> lines, final LineIterator iterator) { in assertLines() argument 53 for (int i = 0; i < lines.size(); i++) { in assertLines() 55 assertEquals(lines.get(i), line, "nextLine() line " + i); in assertLines() 64 * Creates a test file with a specified number of lines. 67 * @param lineCount number of lines to create 72 final List<String> lines = createStringLines(lineCount); in createLinesFile() local 73 FileUtils.writeLines(file, lines); in createLinesFile() 74 return lines; in createLinesFile() 78 * Creates a test file with a specified number of lines. 81 * @param encoding the encoding to use while writing the lines [all …]
|
/external/toolchain-utils/afdo_redaction/ |
D | redact_profile_test.py | 59 lines = [] 62 lines.append(num + function_header) 63 lines.extend(function_body) 64 return lines 74 lines = _generate_repeated_function_body(1) 75 result_file = "\n".join(lines) + "\n" 76 self.assertEqual(_redact(lines), result_file) 79 lines = _generate_repeated_function_body(2) 80 result_file = "\n".join(lines) + "\n" 81 self.assertEqual(_redact(lines), result_file) [all …]
|
/external/python/cpython3/Tools/clinic/libclinic/ |
D | formatting.py | 14 lines = [] 17 lines.append('"') 18 lines.append(_quoted_for_c_string(line)) 19 lines.append('\\n"\n') 21 if lines[-2] == SIG_END_MARKER: 24 lines.append('"\\n"') 26 lines.pop() 27 lines.append('"') 28 return "".join(lines) 66 """Return 'text' with 'prefix' prepended and 'suffix' appended to all lines. [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/fonttools/Lib/fontTools/mtiLib/ |
D | __init__.py | 119 def parseScriptList(lines, featureMap=None): argument 122 with lines.between("script table"): 123 for line in lines: 179 def parseFeatureList(lines, lookupMap=None, featureMap=None): argument 182 with lines.between("feature table"): 183 for line in lines: 212 def parseLookupFlags(lines): argument 223 while lines.peeks()[0].lower() in allFlags: 224 line = next(lines) 245 def parseSingleSubst(lines, font, _lookupMap=None): argument [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() 60 javadocShaped(lines) in rewrite() 61 ? indentJavadoc(lines, column0) in rewrite() 62 : preserveIndentation(lines, column0)); in rewrite() 67 private String preserveIndentation(List<String> lines, int column0) { in preserveIndentation() argument 70 // find the leftmost non-whitespace character in all trailing lines in preserveIndentation() 72 for (int i = 1; i < lines.size(); i++) { in preserveIndentation() 73 int lineIdx = CharMatcher.whitespace().negate().indexIn(lines.get(i)); in preserveIndentation() [all …]
|
/external/skia/bazel/ |
D | remove_indentation.bzl | 7 indentation, for example inside a macro. It discards the first and last lines if they only 9 line and removes that prefix from all lines. 53 lines = string.split("\n") 56 if get_indentation(lines[0]) == lines[0]: 57 lines = lines[1:] 59 # Compute indentation based on the first remaining line, and remove indentation from all lines. 60 indentation = get_indentation(lines[0]) 61 lines = [line.removeprefix(indentation) for line in lines] 64 if get_indentation(lines[len(lines) - 1]) == lines[len(lines) - 1]: 65 lines = lines[:-1] [all …]
|
/external/tensorflow/tensorflow/python/debug/cli/ |
D | tensor_format_test.py | 54 ValueError: if any ellipses ("...") are found in the lines representing 58 while not out.lines[begin_line_num].startswith("array"): 61 for line_num in range(begin_line_num, len(out.lines)): 62 line = out.lines[line_num] 84 ValueError: if any ellipses ("...") are found in the lines representing 89 while not out.lines[begin_line_num].startswith("array"): 93 for line_num in range(begin_line_num, len(out.lines)): 94 line = out.lines[line_num] 109 def _findFirst(self, lines, string): argument 111 for i, line in enumerate(lines): [all …]
|
/external/python/cpython3/Lib/idlelib/ |
D | format.py | 45 If text is selected, format_paragraph_event will start breaking lines 49 cursor location to determine the paragraph (lines of text surrounded 50 by blank lines) and formats it. 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] [all …]
|
/external/google-java-format/core/src/test/java/com/google/googlejavaformat/java/ |
D | PartialFormattingTest.java | 56 String lines(String... args) { in lines() method in PartialFormattingTest 63 lines( in testGetFormatReplacements0() 71 lines( in testGetFormatReplacements0() 86 lines( in testGetFormatReplacements1() 94 lines( in testGetFormatReplacements1() 107 lines( in expandToStatement() 117 lines( in expandToStatement() 131 lines( in expandToMethodSignature() 143 lines( in expandToMethodSignature() 160 lines( in expandToClassSignature() [all …]
|
/external/freetype/ |
D | generate_notice.py | 131 C_STYLE_BLOCK_AS_LINE = 2 # /* ... */ but uses multiple lines of block comments. 155 # If all lines starts from empty space, strip it out. 192 def extract_copyright_at(lines: Sequence[str], i: int, path: str) -> Tuple[str, int]: 193 commentType = get_comment_type(lines[i], path) 196 return extract_from_c_style_block_at(lines, i, path) 198 return extract_from_c_style_block_as_line_at(lines, i, path) 200 return extract_from_c_style_lines_at(lines, i, path) 202 return extract_from_script_hash_at(lines, i, path) 204 return extract_from_script_doller_at(lines, i, path) 206 return extract_from_doc_style_at(lines, i, path) [all …]
|
/external/clang/test/Preprocessor/ |
D | arm-target-features.c | 1 // RUN: %clang -target armv8a-none-linux-gnu -x c -E -dM %s -o - | FileCheck -match-full-lines --ch… 12 // RUN: %clang -target armv7a-none-linux-gnu -x c -E -dM %s -o - | FileCheck -match-full-lines --ch… 21 …pple-macosx10.10 -arch armv7s -x c -E -dM %s -o - | FileCheck -match-full-lines --check-prefix=CHE… 30 // RUN: %clang -target armv8a -mfloat-abi=hard -x c -E -dM %s | FileCheck -match-full-lines --check… 42 …8a -mfloat-abi=hard -mfpu=fp-armv8 -x c -E -dM %s | FileCheck -match-full-lines --check-prefix=CHE… 47 …float-abi=hard -mfpu=neon-fp-armv8 -x c -E -dM %s | FileCheck -match-full-lines --check-prefix=CHE… 48 …bi=hard -mfpu=crypto-neon-fp-armv8 -x c -E -dM %s | FileCheck -match-full-lines --check-prefix=CHE… 53 // RUN: %clang -target armv8a -mnocrc -x c -E -dM %s | FileCheck -match-full-lines --check-prefix=C… 58 // RUN: %clang -target armv8 -x c -E -dM %s -o - | FileCheck -match-full-lines --check-prefix=V8 %s 59 // RUN: %clang -target armv8 -mthumb -x c -E -dM %s -o - | FileCheck -match-full-lines --check-pref… [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/ktfmt/core/src/main/java/com/facebook/ktfmt/kdoc/ |
D | KDocCommentsHelper.kt | 67 val lines = ArrayList<String>() in rewrite() constant 70 lines.add(CharMatcher.whitespace().trimTrailingFrom(it.next())) in rewrite() 73 indentLineComments(lines, column0) in rewrite() 74 } else if (javadocShaped(lines)) { in rewrite() 75 indentJavadoc(lines, column0) in rewrite() 77 preserveIndentation(lines, column0) in rewrite() 83 private fun preserveIndentation(lines: List<String>, column0: Int): String { in preserveIndentation() 86 // find the leftmost non-whitespace character in all trailing lines in preserveIndentation() 88 for (i in 1 until lines.size) { in preserveIndentation() 89 val lineIdx = CharMatcher.whitespace().negate().indexIn(lines[i]) in preserveIndentation() [all …]
|
/external/rust/android-crates-io/crates/tokio-stream/src/wrappers/ |
D | lines.rs | 6 use tokio::io::{AsyncBufRead, Lines}; 9 /// A wrapper around [`tokio::io::Lines`] that implements [`Stream`]. 11 /// [`tokio::io::Lines`]: struct@tokio::io::Lines 17 inner: Lines<R>, 23 pub fn new(lines: Lines<R>) -> Self { in new() 24 Self { inner: lines } in new() 27 /// Get back the inner `Lines`. 28 pub fn into_inner(self) -> Lines<R> { in into_inner() 32 /// Obtain a pinned reference to the inner `Lines<R>`. 33 pub fn as_pin_mut(self: Pin<&mut Self>) -> Pin<&mut Lines<R>> { in as_pin_mut() [all …]
|
/external/rust/android-crates-io/crates/clap_derive/src/utils/ |
D | doc_comments.rs | 4 //! non-empty adjacent lines, delimited by sequences of blank (whitespace only) lines. 10 // we need to split so we could handle the lines correctly in extract_doc_comment() 12 // we also need to remove leading and trailing blank lines in extract_doc_comment() 13 let mut lines: Vec<_> = attrs in extract_doc_comment() localVariable 33 let lines = s in extract_doc_comment() localVariable 41 lines in extract_doc_comment() 45 while let Some(true) = lines.last().map(|s| is_blank(s)) { in extract_doc_comment() 46 lines.pop(); in extract_doc_comment() 49 lines in extract_doc_comment() 53 lines: &[String], in format_doc_comment() [all …]
|
/external/deqp/external/vulkancts/mustpass/main/vksc-default/ |
D | rasterization.txt | 1 dEQP-VKSC.rasterization.conservative.overestimate.samples_1.lines.degenerate.0_00 2 dEQP-VKSC.rasterization.conservative.overestimate.samples_1.lines.degenerate.0_25 3 dEQP-VKSC.rasterization.conservative.overestimate.samples_1.lines.degenerate.max 4 dEQP-VKSC.rasterization.conservative.overestimate.samples_1.lines.degenerate.min 5 dEQP-VKSC.rasterization.conservative.overestimate.samples_1.lines.normal.0_00 6 dEQP-VKSC.rasterization.conservative.overestimate.samples_1.lines.normal.0_25 7 dEQP-VKSC.rasterization.conservative.overestimate.samples_1.lines.normal.0_50 8 dEQP-VKSC.rasterization.conservative.overestimate.samples_1.lines.normal.0_75 9 dEQP-VKSC.rasterization.conservative.overestimate.samples_1.lines.normal.1_00 10 dEQP-VKSC.rasterization.conservative.overestimate.samples_1.lines.normal.2_00 [all …]
|
/external/turbine/javatests/com/google/turbine/parse/ |
D | ParseErrorTest.java | 60 lines( in unexpectedTopLevel() 73 lines( in unexpectedIdentifier() 86 lines( in missingTrailingCloseBrace() 99 lines( in annotationArgument() 112 lines( in dropParens() 125 lines( in dropBlocks() 138 lines( in unterminatedString() 151 lines( in emptyChar() 164 lines( in unterminatedChar() 177 lines( in unterminatedExpr() [all …]
|
/external/llvm/test/tools/llvm-cov/Inputs/ |
D | test_-f.output | 2 Lines executed:100.00% of 1 5 Lines executed:0.00% of 1 8 Lines executed:0.00% of 1 11 Lines executed:100.00% of 2 14 Lines executed:0.00% of 2 17 Lines executed:100.00% of 3 20 Lines executed:100.00% of 4 23 Lines executed:91.67% of 24 26 Lines executed:100.00% of 1 29 Lines executed:100.00% of 1 [all …]
|
/external/coreboot/src/vendorcode/intel/edk2/edk2-stable202302/MdePkg/Include/Library/ |
D | CacheMaintenanceLib.h | 27 Invalidates a range of instruction cache lines in the cache coherency domain 30 Invalidates the instruction cache lines specified by Address and Length. If 37 lines are invalidated. Address is returned. 41 @param Address The base address of the instruction cache lines to 63 of the calling CPU. This function guarantees that all dirty cache lines are 64 written back to system memory, and also invalidates all the data cache lines 75 Writes Back and Invalidates a range of data cache lines in the cache 78 Writes Back and Invalidate the data cache lines specified by Address and 85 range. If Length is 0, then no data cache lines are written back and 90 @param Address The base address of the data cache lines to write back and [all …]
|