Home
last modified time | relevance | path

Searched full:lines (Results 1 – 25 of 3462) sorted by relevance

12345678910>>...139

/external/google-breakpad/src/common/
Ddwarf_line_to_module_unittest.cc47 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/vulkan-validation-layers/demos/smoke/
Dgenerate-dispatch-table87 lines = []
88 lines.append("Extension(name=%s, version=%s, guard=%s, commands=[" %
92 lines.append(" %s," % repr(cmd))
94 lines.append("])")
96 return "\n".join(lines)
320 lines = []
321 lines.append("// This file is generated.")
322 lines.append("#ifndef %s" % guard)
323 lines.append("#define %s" % guard)
324 lines.append("")
[all …]
/external/opencv3/cmake/
Dcl2cpp.cmake47 file(READ "${cl}" lines)
49 string(REPLACE "\r" "" lines "${lines}\n")
50 string(REPLACE "\t" " " lines "${lines}")
52 string(REGEX REPLACE "/\\*([^*]/|\\*[^/]|[^*/])*\\*/" "" lines "${lines}") # multiline comments
53 …string(REGEX REPLACE "/\\*([^\n])*\\*/" "" lines "${lines}") # single-line comments
54 …string(REGEX REPLACE "[ ]*//[^\n]*\n" "\n" lines "${lines}") # single-line comments
55 …string(REGEX REPLACE "\n[ ]*(\n[ ]*)*" "\n" lines "${lines}") # empty lines & leadi…
56 string(REGEX REPLACE "^\n" "" lines "${lines}") # leading new line
58 string(REPLACE "\\" "\\\\" lines "${lines}")
59 string(REPLACE "\"" "\\\"" lines "${lines}")
[all …]
/external/v8/tools/
Djs2c.py53 def RemoveCommentsAndTrailingWhitespace(lines): argument
54 lines = re.sub(r'//.*\n', '\n', lines) # end-of-line comments
55 lines = re.sub(re.compile(r'/\*.*?\*/', re.DOTALL), '', lines) # comments.
56 lines = re.sub(r'\s+\n+', '\n', lines) # trailing whitespace
57 return lines
63 lines = file.read()
66 return lines
75 def Validate(lines): argument
78 if EVAL_PATTERN.search(lines):
80 if WITH_PATTERN.search(lines):
[all …]
/external/chromium-trace/catapult/telemetry/telemetry/internal/image_processing/
Dscreen_finder_unittest.py127 lines = []
129 lines.append(np.asfarray(((0, 1001, 0, -1))))
130 lines.append(np.asfarray(((-1, 0, 1001, 0))))
131 lines.append(np.asfarray(((1000, 1001, 1000, -1))))
132 lines.append(np.asfarray(((-1, 1000, 1001, 1000))))
133 expected.append(_BuildResult([0, 0], lines[0], lines[1]))
134 expected.append(_BuildResult([0, 1000], lines[0], lines[3]))
135 expected.append(_BuildResult([1000, 0], lines[1], lines[2]))
136 expected.append(_BuildResult([1000, 1000], lines[2], lines[3]))
138 # crosses 2 lines at 45 degrees.
[all …]
Dcv_util.py14 """Returns true if lines are within tolerance radians of being orthogonal."""
24 # lines are not orthogonal.
33 # exactly touch the other line. If both are between 0 and 1, then the lines
53 def ExtendLines(lines, length): argument
54 """Extends lines in an array to a given length, maintaining the center
57 angles = np.arctan2(lines[:, 1] - lines[:, 3], lines[:, 0] - lines[:, 2])
60 centerx = (lines[:, 0] + lines[:, 2]) / 2.0
61 centery = (lines[:, 1] + lines[:, 3]) / 2.0
62 lines[:, 0] = centerx - xoffsets
63 lines[:, 2] = centerx + xoffsets
[all …]
/external/opencv3/modules/imgproc/test/
Dtest_lsd.cpp19 vector<Vec4f> lines; member in LSDBase
101 lines.clear(); in SetUp()
114 detector->detect(test_image, lines); in TEST_F()
116 if(40u >= lines.size()) ++passedtests; in TEST_F()
127 detector->detect(test_image, lines); in TEST_F()
129 if(0u == lines.size()) ++passedtests; in TEST_F()
134 TEST_F(Imgproc_LSD_ADV, lines) in TEST_F() argument
141 detector->detect(test_image, lines); in TEST_F()
143 if(numOfLines * 2 == lines.size()) ++passedtests; // * 2 because of Gibbs effect in TEST_F()
154 detector->detect(test_image, lines); in TEST_F()
[all …]
/external/chromium-trace/catapult/third_party/gsutil/gslib/tests/
Dtest_parallel_cp.py53 lines = self.AssertNObjectsInBucket(dst_bucket_uri, 1)
54 self.assertEqual(suri(dst_bucket_uri, 'f0'), lines[0])
64 lines = self.AssertNObjectsInBucket(dst_bucket_uri, 2)
65 self.assertEqual(suri(dst_bucket_uri, 'f0'), lines[0])
66 self.assertEqual(suri(dst_bucket_uri, 'f1'), lines[1])
84 lines = self.AssertNObjectsInBucket(dst_bucket_uri, 2)
85 self.assertEqual(suri(dst_bucket_uri, 'subdir/a'), lines[0])
86 self.assertEqual(suri(dst_bucket_uri, 'subdir/obj'), lines[1])
97 lines = self.AssertNObjectsInBucket(dst_bucket_uri, 4)
99 'dir0', 'dir1', 'nested'), lines[0])
[all …]
/external/eigen/bench/btl/data/
Dperlib_plot_settings.txt1 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/vulkan-validation-layers/tests/gtest-1.7.0/scripts/
Dpump.py163 def StartsWith(lines, pos, string): argument
164 """Returns True iff the given position in lines starts with 'string'."""
166 return lines[pos.line][pos.column:].startswith(string)
174 # We found regex in lines
186 def FindFirst(lines, token_table, cursor): argument
187 """Finds the first occurrence of any string in strings in lines."""
191 for line in lines[start.line:]:
202 return MakeToken(lines, found_start, found_end, token_type)
204 # We failed to find str in lines
208 def SubString(lines, start, end): argument
[all …]
/external/google-breakpad/src/testing/gtest/scripts/
Dpump.py163 def StartsWith(lines, pos, string): argument
164 """Returns True iff the given position in lines starts with 'string'."""
166 return lines[pos.line][pos.column:].startswith(string)
174 # We found regex in lines
186 def FindFirst(lines, token_table, cursor): argument
187 """Finds the first occurrence of any string in strings in lines."""
191 for line in lines[start.line:]:
202 return MakeToken(lines, found_start, found_end, token_type)
204 # We failed to find str in lines
208 def SubString(lines, start, end): argument
[all …]
/external/clang/lib/Format/
DBreakableToken.cpp259 TokenText.substr(2, TokenText.size() - 4).split(Lines, "\n"); in BreakableBlockComment()
262 LeadingWhitespace.resize(Lines.size()); in BreakableBlockComment()
263 StartOfLineColumn.resize(Lines.size()); in BreakableBlockComment()
265 for (size_t i = 1; i < Lines.size(); ++i) in BreakableBlockComment()
269 if (Lines.size() == 1 && !FirstInLine) { in BreakableBlockComment()
272 // lines with the first one. in BreakableBlockComment()
277 for (size_t i = 1, e = Lines.size(); i < e && !Decoration.empty(); ++i) { in BreakableBlockComment()
279 if (i + 1 == e && Lines[i].empty()) in BreakableBlockComment()
281 if (!Lines[i].empty() && i + 1 != e && Decoration.startswith(Lines[i])) in BreakableBlockComment()
283 while (!Lines[i].startswith(Decoration)) in BreakableBlockComment()
[all …]
/external/protobuf/gtest/scripts/
Dpump.py164 def StartsWith(lines, pos, string): argument
165 """Returns True iff the given position in lines starts with 'string'."""
167 return lines[pos.line][pos.column:].startswith(string)
175 # We found regex in lines
187 def FindFirst(lines, token_table, cursor): argument
188 """Finds the first occurrence of any string in strings in lines."""
192 for line in lines[start.line:]:
203 return MakeToken(lines, found_start, found_end, token_type)
205 # We failed to find str in lines
209 def SubString(lines, start, end): argument
[all …]
/external/chromium-trace/catapult/third_party/py_vulcanize/third_party/rjsmin/bench/
Dwrite.py156 lines = []
163 lines.append('')
164 lines.append('')
167 lines.append(line)
168 lines.append('~' * len(line))
171 lines.append('')
172 lines.append('.. rst-class:: benchmark')
173 lines.append('')
178 lines.append(separator())
179 lines.append('|'.join([''] + [
[all …]
/external/chromium-trace/catapult/third_party/py_vulcanize/third_party/rcssmin/bench/
Dwrite.py153 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/harfbuzz_ng/test/shaping/
Dhb_test_tools.py80 def colorize_lines (self, lines): argument
81 lines = (l if l else '' for l in lines)
82 ss = [self.diff_regex.sub (r'\1\n\2\n', l).splitlines (True) for l in lines]
110 lines = [None, None]
116 if lines[i]:
118 for line in self.colorize_lines (lines):
120 lines = [None, None]
121 lines[i] = l[1:]
122 if (all (lines)):
124 for line in self.colorize_lines (lines):
[all …]
/external/chromium-trace/catapult/third_party/Paste/paste/exceptions/
Dformatter.py42 lines = []
54 lines.append(self.format_sup_line_pos(sup.line, sup.column))
56 lines.append(self.format_sup_expression(sup.expression))
59 lines.append(self.format_sup_warning(warning))
61 lines.extend(self.format_sup_info(sup.info))
63 lines.append('Exception in supplement:')
64 lines.append(self.quote_long(frame.supplement_exception))
66 lines.append(self.format_traceback_info(frame.traceback_info))
73 lines.append(self.format_source_line(filename or '?', frame))
77 lines.append(self.format_long_source(
[all …]
/external/boringssl/src/util/
Ddoc.go79 func extractComment(lines []string, lineNo int) (comment []string, rest []string, restLineNo int, e…
80 if len(lines) == 0 {
81 return nil, lines, lineNo, nil
85 rest = lines
117 /* Identing the lines of a paragraph marks them as
141 func extractDecl(lines []string, lineNo int) (decl string, rest []string, restLineNo int, err error…
142 if len(lines) == 0 {
143 return "", lines, lineNo, nil
146 rest = lines
256 var lines, oldLines []string
[all …]
/external/markdown/markdown/
Dblockprocessors.py42 lines = text.split('\n')
43 for line in lines:
50 return '\n'.join(newtext), '\n'.join(lines[len(newtext):])
53 """ Remove a tab from front of lines but allowing dedented lines. """
54 lines = text.split('\n')
55 for i in range(len(lines)):
56 if lines[i].startswith(' '*markdown.TAB_LENGTH*level):
57 lines[i] = lines[i][markdown.TAB_LENGTH*level:]
58 return '\n'.join(lines)
76 blank lines.
[all …]
/external/jdiff/src/jdiff/
DDiffMyers.java8 edit script. The objects compared are traditionally lines
94 The diagonal number equals the number of inserted lines minus the number
95 of deleted lines (counting only lines before the midpoint).
97 lines inserted or deleted (counting only lines before the midpoint).
99 This function assumes that the first lines of the specified portions
100 of the two files do not match, and likewise that the last lines do not
101 match. The caller must trim matching lines from the beginning and end
286 All line numbers are origin-0 and discarded lines are not counted. */
335 /** Discard lines from one file that have no matches in the other file.
345 /** Adjust inserts/deletes of blank lines to join changes
[all …]
/external/opencv3/doc/tutorials/imgproc/imgtrans/hough_lines/
Dhough_lines.markdown9 - Use the OpenCV functions @ref cv::HoughLines and @ref cv::HoughLinesP to detect lines in an
20 -# The Hough Line Transform is a transform used to detect straight lines.
32 For Hough Transforms, we will express lines in the *Polar system*. Hence, a line equation can be
39 -# In general for each point \f$(x_{0}, y_{0})\f$, we can define the family of lines that goes thr…
47 -# If for a given \f$(x_{0}, y_{0})\f$ we plot the family of lines that goes through it, we get a
87 of the detected lines \f$(x_{0}, y_{0}, x_{1}, y_{1})\f$
126 vector<Vec2f> lines;
127 HoughLines(dst, lines, 1, CV_PI/180, 100, 0, 0 );
133 - *lines*: A vector that will store the parameters \f$(r,\theta)\f$ of the detected lines
140 -# And then you display the result by drawing the lines.
[all …]
/external/llvm/utils/lint/
Dcommon_lint.py7 def VerifyLineLength(filename, lines, max_length): argument
8 """Checks to make sure the file has no lines with lines exceeding the length
13 lines: contents of the file as string array
22 for line in lines:
30 def VerifyTabs(filename, lines): argument
35 lines: contents of the file as string array
44 for line in lines:
51 def VerifyTrailingWhitespace(filename, lines): argument
52 """Checks to make sure the file has no lines with trailing whitespace.
56 lines: contents of the file as string array
[all …]
/external/markdown/markdown/extensions/
Dfootnotes.py153 def run(self, lines): argument
154 lines = self._handleFootnoteDefinitions(lines)
155 text = "\n".join(lines)
158 def _handleFootnoteDefinitions(self, lines): argument
160 Recursively find all footnote definitions in lines.
164 * lines: A list of lines of text
166 Return: A list of lines with footnote definitions removed.
169 i, id, footnote = self._findFootnoteDefinition(lines)
172 plain = lines[:i]
173 detabbed, theRest = self.detectTabbed(lines[i+1:])
[all …]
/external/llvm/test/tools/llvm-cov/Inputs/
Dtest_-f.output2 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/autotest/utils/
Dreindent.py14 Also trim excess spaces and tabs from ends of lines, and remove empty lines
33 lines. So long as the input files get a clean bill of health from
158 # Raw file lines.
161 # File lines, rstripped & tab-expanded. Dummy at start is so
164 self.lines = [_rstrip(line).expandtabs() + "\n"
166 self.lines.insert(0, None)
167 self.index = 1 # index into self.lines of next line
170 # comment line. indentlevel is -1 for comment lines, as a
177 # Remove trailing empty lines.
178 lines = self.lines
[all …]

12345678910>>...139