Home
last modified time | relevance | path

Searched refs:line2 (Results 1 – 25 of 61) sorted by relevance

123

/external/skia/tests/
DPathOpsLineIntersectionTest.cpp77 static void check_results(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2, in check_results() argument
81 SkDPoint result2 = line2.ptAtT(ts[1][i]); in check_results()
84 result2 = line2.ptAtT(ts[1][i ^ 1]); in check_results()
94 static void testOne(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2) { in testOne() argument
96 SkASSERT(ValidLine(line2)); in testOne()
98 int pts = i.intersect(line1, line2); in testOne()
101 check_results(reporter, line1, line2, i); in testOne()
102 if (line1[0] == line1[1] || line2[0] == line2[1]) { in testOne()
109 ts.horizontal(line2, left, right, line1[0].fY, line1[0].fX != left); in testOne()
110 check_results(reporter, line2, line1, ts); in testOne()
[all …]
DPathOpsDLineTest.cpp35 SkDLine line2; in DEF_TEST() local
37 line2.set(pts); in DEF_TEST()
38 REPORTER_ASSERT(reporter, line[0] == line2[0] && line[1] == line2[1]); in DEF_TEST()
46 line2 = line.subDivide(1, 0); in DEF_TEST()
47 REPORTER_ASSERT(reporter, line[0] == line2[1] && line[1] == line2[0]); in DEF_TEST()
48 line2 = SkDLine::SubDivide(pts, 1, 0); in DEF_TEST()
49 REPORTER_ASSERT(reporter, line[0] == line2[1] && line[1] == line2[0]); in DEF_TEST()
/external/chromium_org/third_party/skia/tests/
DPathOpsLineIntersectionTest.cpp84 static void check_results(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2, in check_results() argument
88 SkDPoint result2 = line2.ptAtT(ts[1][i]); in check_results()
91 result2 = line2.ptAtT(ts[1][i ^ 1]); in check_results()
101 static void testOne(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2) { in testOne() argument
103 SkASSERT(ValidLine(line2)); in testOne()
105 int pts = i.intersect(line1, line2); in testOne()
108 check_results(reporter, line1, line2, i); in testOne()
109 if (line1[0] == line1[1] || line2[0] == line2[1]) { in testOne()
116 ts.horizontal(line2, left, right, line1[0].fY, line1[0].fX != left); in testOne()
117 check_results(reporter, line2, line1, ts); in testOne()
[all …]
DPathOpsDLineTest.cpp35 SkDLine line2; in DEF_TEST() local
37 line2.set(pts); in DEF_TEST()
38 REPORTER_ASSERT(reporter, line[0] == line2[0] && line[1] == line2[1]); in DEF_TEST()
46 line2 = line.subDivide(1, 0); in DEF_TEST()
47 REPORTER_ASSERT(reporter, line[0] == line2[1] && line[1] == line2[0]); in DEF_TEST()
48 line2 = SkDLine::SubDivide(pts, 1, 0); in DEF_TEST()
49 REPORTER_ASSERT(reporter, line[0] == line2[1] && line[1] == line2[0]); in DEF_TEST()
/external/pdfium/core/src/fxcodec/jbig2/
DJBig2_GeneralDecoder.cpp54 FX_DWORD line1, line2, line3; in decode_Arith_Template0_opt() local
69 line2 = GBREG->getPixel(3, h - 1); in decode_Arith_Template0_opt()
70 line2 |= GBREG->getPixel(2, h - 1) << 1; in decode_Arith_Template0_opt()
71 line2 |= GBREG->getPixel(1, h - 1) << 2; in decode_Arith_Template0_opt()
72 line2 |= GBREG->getPixel(0, h - 1) << 3; in decode_Arith_Template0_opt()
79 CONTEXT |= line2 << 4; in decode_Arith_Template0_opt()
87 line2 = ((line2 << 1) | GBREG->getPixel(w + 4, h - 1)) & 0x7f; in decode_Arith_Template0_opt()
99 FX_DWORD line1, line2; in decode_Arith_Template0_opt2() local
122 line2 = (h > 0) ? pLine[-nStride] : 0; in decode_Arith_Template0_opt2()
123 CONTEXT = (line1 & 0xf800) | (line2 & 0x07f0); in decode_Arith_Template0_opt2()
[all …]
/external/chromium_org/third_party/skia/experimental/Intersection/
DLineIntersection_Test.cpp41 const _Line& line2 = tests[index][1]; in LineIntersection_Test() local
43 int pts = intersect(line1, line2, ts); in LineIntersection_Test()
50 xy_at_t(line2, ts.fT[1][i], result2.x, result2.y); in LineIntersection_Test()
55 xy_at_t(line2, ts.fT[1][i ^ 1], result2.x, result2.y); in LineIntersection_Test()
65 const _Line& line2 = noIntersect[index][1]; in LineIntersection_Test() local
67 int pts = intersect(line1, line2, ts); in LineIntersection_Test()
DQuadraticIntersection.cpp128 _Line line1, line2; in intersectAsLine() local
154 xy_at_t(quad2, minT2, line2[0].x, line2[0].y); in intersectAsLine()
155 xy_at_t(quad2, maxT2, line2[1].x, line2[1].y); in intersectAsLine()
161 pts = ::intersect(line1, line2, t1, t2); in intersectAsLine()
176 treat1AsLine ? line1 : line2, lq); in intersectAsLine()
181 double lineT = t_at(treat1AsLine ? line1 : line2, midQuad); in intersectAsLine()
182 xy_at_t(treat1AsLine ? line1 : line2, lineT, midLine.x, midLine.y); in intersectAsLine()
/external/skia/experimental/Intersection/
DLineIntersection_Test.cpp41 const _Line& line2 = tests[index][1]; in LineIntersection_Test() local
43 int pts = intersect(line1, line2, ts); in LineIntersection_Test()
50 xy_at_t(line2, ts.fT[1][i], result2.x, result2.y); in LineIntersection_Test()
55 xy_at_t(line2, ts.fT[1][i ^ 1], result2.x, result2.y); in LineIntersection_Test()
65 const _Line& line2 = noIntersect[index][1]; in LineIntersection_Test() local
67 int pts = intersect(line1, line2, ts); in LineIntersection_Test()
DQuadraticIntersection.cpp128 _Line line1, line2; in intersectAsLine() local
154 xy_at_t(quad2, minT2, line2[0].x, line2[0].y); in intersectAsLine()
155 xy_at_t(quad2, maxT2, line2[1].x, line2[1].y); in intersectAsLine()
161 pts = ::intersect(line1, line2, t1, t2); in intersectAsLine()
176 treat1AsLine ? line1 : line2, lq); in intersectAsLine()
181 double lineT = t_at(treat1AsLine ? line1 : line2, midQuad); in intersectAsLine()
182 xy_at_t(treat1AsLine ? line1 : line2, lineT, midLine.x, midLine.y); in intersectAsLine()
/external/chromium_org/base/files/
Dfile_util.cc100 std::string line1, line2; in TextContentsEqual() local
102 getline(file2, line2); in TextContentsEqual()
117 std::string::size_type end2 = line2.find_last_not_of("\r\n"); in TextContentsEqual()
119 line2.clear(); in TextContentsEqual()
120 else if (end2 + 1 < line2.length()) in TextContentsEqual()
121 line2.erase(end2 + 1); in TextContentsEqual()
123 if (line1 != line2) in TextContentsEqual()
/external/nist-sip/java/gov/nist/javax/sip/parser/
DPipelinedMsgParser.java227 String line2 = null; in run() local
255 line2 = readLine(inputStream); in run()
256 inputBuffer.append(line2); in run()
257 if (line2.trim().equals("")) in run()
269 inputBuffer.append(line2); in run()
/external/lldb/test/lang/c/anonymous/
DTestAnonymous.py76 self.line2 = line_number('main.c', '// Set breakpoint 2 here.')
117 self.common_setup(self.line2)
129 self.common_setup(self.line2)
142 self.common_setup(self.line2)
/external/lldb/test/logging/
DTestLogging.py86 for line1, line2 in zip (log_lines, expected_log_lines):
87 if line1 != line2:
89 err_msg = "Expected '" + line2 + "'; Found '" + line1 + "'"
/external/lldb/test/lang/c/stepping/
DTestThreadStepping.py34 … self.line2 = line_number('main.c', '// frame select 2, thread step-out while stopped at "c(1)"')
58 "frame #3.*main.c:%d" % self.line2])
66 patterns = ["frame #0.*main.c:%d" % self.line2])
/external/chromium_org/build/android/pylib/symbols/
Delf_symbolizer.py337 for (line1, line2) in lines:
342 m = ELFSymbolizer.Addr2Line.SYM_ADDR_RE.match(line2)
349 logging.warning('Got invalid symbol path from addr2line: %s' % line2)
427 line2 = process_pipe.readline().rstrip('\r\n')
428 if not line1 or not line2:
431 (line1 != '??' and line2 != '??:0'))
433 lines_for_one_symbol += [(line1, line2)]
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/
Dtest_expectations.py424 def merge_expectation_lines(line1, line2, model_all_expectations): argument
427 return line2
428 if line2 is None:
430 if model_all_expectations and line1.filename != line2.filename:
431 return line2
438 result.filename = line2.filename
439 result.line_numbers = line1.line_numbers + "," + line2.line_numbers
442 result.parsed_expectations = set(line1.parsed_expectations) | set(line2.parsed_expectations)
443 result.expectations = list(set(line1.expectations) | set(line2.expectations))
444 result.bugs = list(set(line1.bugs) | set(line2.bugs))
[all …]
/external/lldb/test/python_api/function_symbol/
DTestDisasmAPI.py35 self.line2 = line_number('main.c', '// Find the line number for breakpoint 2 here.')
47 breakpoint2 = target.BreakpointCreateByLocation('main.c', self.line2)
86 self.assertTrue(lineEntry.GetLine() == self.line2)
DTestSymbolAPI.py35 self.line2 = line_number('main.c', '// Find the line number for breakpoint 2 here.')
47 breakpoint2 = target.BreakpointCreateByLocation('main.c', self.line2)
/external/chromium_org/native_client_sdk/src/build_tools/
Dverify_filelist.py173 def compare(line1, line2): argument
175 line2 = SplitPattern(line2)[0].lower()
176 return cmp(line1, line2)
/external/lldb/test/functionalities/inferior-changed/
DTestInferiorChanged.py43 self.line2 = line_number('main2.c', '// Not crash here.')
82 …lldbutil.run_break_set_by_file_and_line (self, "main2.c", self.line2, num_expected_locations=1, lo…
/external/lldb/test/python_api/hello_world/
DTestHelloWorld.py91 self.line2 = line_number('main.c', '// Waiting to be attached...')
156 substrs = ['main.c:%d' % self.line2,
194 substrs = ['main.c:%d' % self.line2,
/external/chromium_org/chrome/common/extensions/
DPRESUBMIT.py127 for i, (line1, line2) in enumerate(
129 if line1 != line2:
131 (changes, i + 1, line1, line2))
/external/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/
DTestDataFormatterLibcxxList.py34 self.line2 = line_number('main.cpp', '// Set second break point at this line.')
41 … lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line2, num_expected_locations=-1)
/external/lldb/test/lang/c/set_values/
DTestSetValues.py31 self.line2 = line_number('main.c', '// Set break point #2.')
44 …lldbutil.run_break_set_by_file_and_line (self, "main.c", self.line2, num_expected_locations=1, loc…
/external/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/vector/
DTestDataFormatterLibcxxVector.py34 self.line2 = line_number('main.cpp', '// Set second break point at this line.')
41 … lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line2, num_expected_locations=-1)

123