Home
last modified time | relevance | path

Searched refs:line1 (Results 1 – 25 of 46) sorted by relevance

12

/third_party/flutter/skia/tests/
DPathOpsLineIntersectionTest.cpp87 static void check_results(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2, in check_results() argument
90 SkDPoint result1 = line1.ptAtT(ts[0][i]); in check_results()
107 static void testOne(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2, in testOne() argument
109 SkASSERT(ValidLine(line1)); in testOne()
113 int pts = i.intersect(line1, line2); in testOne()
116 check_results(reporter, line1, line2, i, nearAllowed); in testOne()
117 if (line1[0] == line1[1] || line2[0] == line2[1]) { in testOne()
120 if (line1[0].fY == line1[1].fY) { in testOne()
121 double left = SkTMin(line1[0].fX, line1[1].fX); in testOne()
122 double right = SkTMax(line1[0].fX, line1[1].fX); in testOne()
[all …]
/third_party/skia/tests/
DPathOpsLineIntersectionTest.cpp87 static void check_results(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2, in check_results() argument
90 SkDPoint result1 = line1.ptAtT(ts[0][i]); in check_results()
107 static void testOne(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2, in testOne() argument
109 SkASSERT(ValidLine(line1)); in testOne()
113 int pts = i.intersect(line1, line2); in testOne()
116 check_results(reporter, line1, line2, i, nearAllowed); in testOne()
117 if (line1[0] == line1[1] || line2[0] == line2[1]) { in testOne()
120 if (line1[0].fY == line1[1].fY) { in testOne()
121 double left = std::min(line1[0].fX, line1[1].fX); in testOne()
122 double right = std::max(line1[0].fX, line1[1].fX); in testOne()
[all …]
/third_party/python/Lib/idlelib/idle_test/
Dtest_history.py12 line1 = 'a = 7' variable
43 self.history.store(line1)
44 self.assertEqual(self.history.history, [line1])
46 self.assertEqual(self.history.history, [line1, line2])
47 self.history.store(line1)
48 self.assertEqual(self.history.history, [line2, line1])
51 self.history.prefix = line1
83 self.history.history = [line1, line2]
110 test(True, line1, prefix, 0)
116 test(False, line1, prefix, 0)
[all …]
Dmock_tk.py251 line1, char1 = self._decode(index1)
254 return line1 < line2 or line1 == line2 and char1 < char2
256 return line1 < line2 or line1 == line2 and char1 <= char2
258 return line1 > line2 or line1 == line2 and char1 > char2
260 return line1 > line2 or line1 == line2 and char1 >= char2
262 return line1 == line2 and char1 == char2
264 return line1 != line2 or char1 != char2
/third_party/gstreamer/gstplugins_bad/gst/ivtc/
Dgstivtc.c371 reconstruct_line (guint8 * line1, guint8 * line2, int i, int a, int b, int c, in reconstruct_line() argument
376 x = line1[i - 3] * a; in reconstruct_line()
377 x += line1[i - 2] * b; in reconstruct_line()
378 x += line1[i - 1] * c; in reconstruct_line()
379 x += line1[i - 0] * d; in reconstruct_line()
410 guint8 *line1 = GET_LINE (&field->frame, k, j - 1); in reconstruct_single() local
418 dx = -line1[i - 1] - line2[i - 1] + line1[i + 1] + line2[i + 1]; in reconstruct_single()
421 dy = -line1[i - 1] - 2 * line1[i] - line1[i + 1] in reconstruct_single()
429 dest[i] = (line1[i] + line2[i] + 1) >> 1; in reconstruct_single()
432 dest[i] = reconstruct_line (line1, line2, i, 0, 0, 0, 16); in reconstruct_single()
[all …]
/third_party/ltp/testcases/kernel/fs/mongo/
Dmongo_compare.c54 char line1[100]; in main() local
103 while (fgets(line1, 100, f1)) { in main()
106 if (p = strstr(line1, "\n")) in main()
111 strcpy(line3, line1); in main()
171 if (p1 = strstr(line1, " :")) { in main()
173 strncpy(name_str1, line1, p1 - line1); in main()
196 line1[0] = 0; in main()
/third_party/gn/src/base/files/
Dfile_util.cc88 std::string line1, line2; in TextContentsEqual() local
89 getline(file1, line1); in TextContentsEqual()
98 std::string::size_type end1 = line1.find_last_not_of("\r\n"); in TextContentsEqual()
100 line1.clear(); in TextContentsEqual()
101 else if (end1 + 1 < line1.length()) in TextContentsEqual()
102 line1.erase(end1 + 1); in TextContentsEqual()
110 if (line1 != line2) in TextContentsEqual()
/third_party/python/Lib/unittest/test/testmock/
Dtestwith.py206 line1 = h.readline()
209 self.assertEqual(line1, 'foo\n')
242 line1 = next(h)
245 self.assertEqual(line1, 'foo\n')
280 line1 = f.readline()
283 self.assertEqual(line1, b'abc\n')
315 line1 = h.readline()
317 self.assertEqual(line1, 'foo\n')
323 line1 = h.readline()
325 self.assertEqual(line1, 'foo\n')
/third_party/python/Tools/scripts/
Dfindnocoding.py59 line1 = infile.readline()
62 if (get_declaration(line1) or
63 blank_re.match(line1) and get_declaration(line2)):
70 if has_correct_encoding(line1+line2+rest, "utf-8"):
/third_party/mbedtls/tests/src/
Dhelpers.c98 memset( mbedtls_test_info.line1, 0, sizeof( mbedtls_test_info.line1 ) ); in mbedtls_test_info_reset()
114 (void) mbedtls_snprintf( mbedtls_test_info.line1, in mbedtls_test_equal()
115 sizeof( mbedtls_test_info.line1 ), in mbedtls_test_equal()
/third_party/typescript/src/testRunner/unittests/tsserver/
DtextStorage.ts46 const { line: line1, offset: offset1 } = ts1.positionToLineOffset(pos);
48 …assert.strictEqual(line1, line2, `positionToLineOffset ${pos}::line:: expected ${line1} to equal $…
/third_party/vk-gl-cts/scripts/src_util/
Dcheck_include_guards.py41 line1 = f.readline().strip()
45 if line1 != ("#define %s" % includeGuard):
/third_party/flutter/flutter/packages/flutter_test/lib/src/
Dstack_manipulation.dart19 final RegExp line1 = RegExp(r'^#1 +_expect \(.+\)$');
25 line1.firstMatch(stackLines[1]) != null &&
/third_party/ffmpeg/libavcodec/ppc/
Dme_cmp.c461 register vector signed short line1 = vec_sub(temp0, temp1); in hadamard8_diff8x8_altivec() local
471 register vector signed short line1B = vec_add(line1, line3); in hadamard8_diff8x8_altivec()
472 register vector signed short line3B = vec_sub(line1, line3); in hadamard8_diff8x8_altivec()
634 register vector signed short line1 = vec_sub(temp0, temp1); in hadamard8_diff16x8_altivec() local
644 register vector signed short line1B = vec_add(line1, line3); in hadamard8_diff16x8_altivec()
645 register vector signed short line3B = vec_sub(line1, line3); in hadamard8_diff16x8_altivec()
Dh264dsp.c647 register vec_u8 line0, line1, line2, line3, line4, line5; in h264_h_loop_filter_luma_altivec() local
650 readAndTranspose16x6(pix-3, stride, line0, line1, line2, line3, line4, line5); in h264_h_loop_filter_luma_altivec()
651 h264_loop_filter_luma_altivec(line0, line1, line2, line3, line4, line5, alpha, beta, tc0); in h264_h_loop_filter_luma_altivec()
652 transpose4x16(line1, line2, line3, line4); in h264_h_loop_filter_luma_altivec()
653 write16x4(pix-2, stride, line1, line2, line3, line4); in h264_h_loop_filter_luma_altivec()
/third_party/toybox/tests/
Dmore.test8 line1
/third_party/mesa3d/src/gallium/tools/trace/
Dpytracediff.py447 line1 = pkk_get_line(data1, nline) variable
451 if not options.plain and line1 != line2:
459 ansi1, pkk_format_line(line1, indent, colwidth), ansiend,
/third_party/elfutils/libdw/
Ddwarf_getsrclines.c64 Dwarf_Line *line1 = &list1->line; in compare_lines() local
67 if (line1->addr != line2->addr) in compare_lines()
68 return (line1->addr < line2->addr) ? -1 : 1; in compare_lines()
71 if (line1->end_sequence != line2->end_sequence) in compare_lines()
72 return line2->end_sequence - line1->end_sequence; in compare_lines()
/third_party/vk-gl-cts/execserver/tools/
DxsTest.cpp601 const char line1[] = "Bar\n"; in runProgram() local
610 XS_CHECK(deFile_write(file, line1, sizeof(line1)-1, &numWritten) == DE_FILERESULT_SUCCESS); in runProgram()
611 XS_CHECK(numWritten == sizeof(line1)-1); in runProgram()
/third_party/mbedtls/tests/include/test/
Dhelpers.h76 char line1[76]; member
/third_party/protobuf/src/google/protobuf/stubs/
Dcommon_unittest.cc143 int line1 = __LINE__; GOOGLE_LOG(INFO) << "Visible1"; in TEST() local
157 "0 " __FILE__ ":" + SimpleItoa(line1) + ": Visible1", in TEST()
/third_party/python/Lib/test/
Dtest_gzip.py257 line1 = f.readline()
258 if not line1: break
261 if len(line1)>10:
264 amount = len(line1)
266 self.assertEqual(line1[:amount], line2)
/third_party/typescript/tests/baselines/reference/
DcommentsCommentParsing.types31 *New line1
41 *New line1
DcommentsCommentParsing.symbols28 *New line1
37 *New line1
/third_party/python/Lib/lib2to3/
Drefactor.py645 for type, value, (line0, col0), (line1, col1), line_text in tokens:
647 line1 += lineno - 1
653 yield type, value, (line0, col0), (line1, col1), line_text

12