Home
last modified time | relevance | path

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

123

/external/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 …]
/external/skqp/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 …]
/external/pdfium/core/fxcodec/jbig2/
DJBig2_GrdProc.cpp100 uint32_t line1 = (*pLine1++) << 6; in decode_Arith_Template0_opt3() local
102 uint32_t CONTEXT = ((line1 & 0xf800) | (line2 & 0x07f0)); in decode_Arith_Template0_opt3()
104 line1 = (line1 << 8) | ((*pLine1++) << 6); in decode_Arith_Template0_opt3()
114 ((line1 >> k) & 0x0800) | ((line2 >> k) & 0x0010)); in decode_Arith_Template0_opt3()
118 line1 <<= 8; in decode_Arith_Template0_opt3()
129 ((line1 >> (7 - k)) & 0x0800) | ((line2 >> (7 - k)) & 0x0010)); in decode_Arith_Template0_opt3()
187 uint32_t line1 = GBREG->getPixel(1, h - 2); in decode_Arith_Template0_unopt() local
188 line1 |= GBREG->getPixel(0, h - 2) << 1; in decode_Arith_Template0_unopt()
203 CONTEXT |= line1 << 12; in decode_Arith_Template0_unopt()
213 line1 = ((line1 << 1) | GBREG->getPixel(w + 2, h - 2)) & 0x07; in decode_Arith_Template0_unopt()
[all …]
DJBig2_GrrdProc.cpp168 uint32_t line1 = (h > 0) ? pLine[-nStride] << 4 : 0; in decode_Template0_opt() local
177 uint32_t CONTEXT = (line1 & 0x1c00) | (line1_r & 0x01c0) | in decode_Template0_opt()
182 line1 = (line1 << 8) | in decode_Template0_opt()
215 ((line1 >> (7 - k)) & 0x0400) | in decode_Template0_opt()
223 uint32_t CONTEXT = (line1 & 0x1c00) | (line1_r & 0x01c0) | in decode_Template0_opt()
228 line1 = (line1 << 8) | in decode_Template0_opt()
265 ((line1 >> (7 - k)) & 0x0400) | in decode_Template0_opt()
294 uint32_t line1 = GRREG->getPixel(1, h - 1); in decode_Template1_unopt() local
295 line1 |= GRREG->getPixel(0, h - 1) << 1; in decode_Template1_unopt()
296 line1 |= GRREG->getPixel(-1, h - 1) << 2; in decode_Template1_unopt()
[all …]
/external/libxcam/cl_kernel/
Dkernel_wavelet_coeff.cl66 …float16 line1 = *((__local float16 *)(local_src_data + (local_id_y + 1) * SLM_CELL_X_SIZE + local_…
82 line_sum[1] = mad(line1.s0123, line1.s0123, line_sum[1]);
83 line_sum[1] = mad(line1.s1234, line1.s1234, line_sum[1]);
84 line_sum[1] = mad(line1.s2345, line1.s2345, line_sum[1]);
85 line_sum[1] = mad(line1.s3456, line1.s3456, line_sum[1]);
86 line_sum[1] = mad(line1.s4567, line1.s4567, line_sum[1]);
87 line_sum[1] = mad(line1.s5678, line1.s5678, line_sum[1]);
88 line_sum[1] = mad(line1.s6789, line1.s6789, line_sum[1]);
89 line_sum[1] = mad(line1.s789a, line1.s789a, line_sum[1]);
90 line_sum[1] = mad(line1.s89ab, line1.s89ab, line_sum[1]);
[all …]
/external/v8/tools/clusterfuzz/
Dv8_suppressions.py149 def caret_match(line1, line2): argument
150 if (not line1 or
152 len(line1) > MAX_LINE_LENGTH or
155 return bool(CARET_RE.match(line1) and CARET_RE.match(line2))
165 def ignore_by_regexp(line1, line2, allowed): argument
166 if len(line1) > MAX_LINE_LENGTH or len(line2) > MAX_LINE_LENGTH:
169 match1 = exp.match(line1)
200 for ((line1, lookahead1), (line2, lookahead2)) in itertools.izip_longest(
204 assert not (line1 is None and line2 is None)
207 if line1 is None:
[all …]
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/
DRegionTest.java44 LineRegion line1 = new LineRegion(1, 10); in testIntersects() local
46 assertFalse(line1.intersects(line2)); in testIntersects()
48 line1.setMaxVal(15); in testIntersects()
49 assertTrue(line1.intersects(line2)); in testIntersects()
52 line1.setMaxVal(30); in testIntersects()
53 assertTrue(line1.intersects(line2)); in testIntersects()
56 line1.setMinVal(21); in testIntersects()
57 assertFalse(line1.intersects(line2)); in testIntersects()
DLineRegionTest.java60 LineRegion line1 = new LineRegion(1, 10); in testIntersects() local
62 assertFalse(line1.intersects(line2)); in testIntersects()
64 line1.setMaxVal(15); in testIntersects()
65 assertTrue(line1.intersects(line2)); in testIntersects()
68 line1.setMaxVal(30); in testIntersects()
69 assertTrue(line1.intersects(line2)); in testIntersects()
72 line1.setMinVal(21); in testIntersects()
73 assertFalse(line1.intersects(line2)); in testIntersects()
/external/syzkaller/pkg/email/
Dreply_test.go30 email: `line1
36 result: `> line1
46 email: `> line1
52 result: `>> line1
62 email: `line1
66 result: `> line1
76 email: `line1
80 result: `> line1
/external/python/cpython2/Lib/idlelib/idle_test/
Dtest_idlehistory.py10 line1 = 'a = 7' variable
40 self.history.store(line1)
41 self.assertEqual(self.history.history, [line1])
43 self.assertEqual(self.history.history, [line1, line2])
44 self.history.store(line1)
45 self.assertEqual(self.history.history, [line2, line1])
48 self.history.prefix = line1
79 self.history.history = [line1, line2]
106 test(True, line1, prefix, 0)
112 test(False, line1, prefix, 0)
[all …]
Dmock_tk.py248 line1, char1 = self._decode(index1)
251 return line1 < line2 or line1 == line2 and char1 < char2
253 return line1 < line2 or line1 == line2 and char1 <= char2
255 return line1 > line2 or line1 == line2 and char1 > char2
257 return line1 > line2 or line1 == line2 and char1 >= char2
259 return line1 == line2 and char1 == char2
261 return line1 != line2 or char1 != char2
/external/python/cpython3/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.py248 line1, char1 = self._decode(index1)
251 return line1 < line2 or line1 == line2 and char1 < char2
253 return line1 < line2 or line1 == line2 and char1 <= char2
255 return line1 > line2 or line1 == line2 and char1 > char2
257 return line1 > line2 or line1 == line2 and char1 >= char2
259 return line1 == line2 and char1 == char2
261 return line1 != line2 or char1 != char2
/external/perf_data_converter/src/quipper/
Dperf_stat_parser_test.cc62 const auto& line1 = proto.line(0); in TEST() local
63 EXPECT_EQ("/uncore/reads/", line1.event_name()); in TEST()
64 EXPECT_EQ(711983, line1.count()); in TEST()
65 EXPECT_FALSE(line1.has_time_ms()); in TEST()
98 const auto& line1 = proto.line(0); in TEST() local
99 EXPECT_EQ("cycles", line1.event_name()); in TEST()
100 EXPECT_EQ(19062079, line1.count()); in TEST()
101 EXPECT_EQ(2001, line1.time_ms()); in TEST()
/external/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()
/external/libchrome/base/files/
Dfile_util.cc96 std::string line1, line2; in TextContentsEqual() local
97 getline(file1, line1); in TextContentsEqual()
107 std::string::size_type end1 = line1.find_last_not_of("\r\n"); in TextContentsEqual()
109 line1.clear(); in TextContentsEqual()
110 else if (end1 + 1 < line1.length()) in TextContentsEqual()
111 line1.erase(end1 + 1); in TextContentsEqual()
119 if (line1 != line2) in TextContentsEqual()
/external/python/cpython2/Tools/scripts/
Dfindnocoding.py58 line1 = infile.readline()
61 if (get_declaration(line1) or
62 blank_re.match(line1) and get_declaration(line2)):
71 if has_correct_encoding(line1+line2+rest, "ascii"):
/external/python/cpython3/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"):
/external/python/mock/mock/tests/
Dtestwith.py199 line1 = h.readline()
202 self.assertEqual(line1, 'foo\n')
244 line1 = f.readline()
247 self.assertEqual(line1, b'abc\n')
274 line1 = h.readline()
276 self.assertEqual(line1, 'foo\n')
282 line1 = h.readline()
284 self.assertEqual(line1, 'foo\n')
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/bdd/steps/
DPositionRangeSteps.java60 public void givenTheRange(int line1, int column1, int line2, int column2) { in givenTheRange() argument
61 this.range = range(line1, column1, line2, column2); in givenTheRange()
74 public void whenICompareToRange(int line1, int column1, int line2, int column2) { in whenICompareToRange() argument
75 this.secondRange = range(line1, column1, line2, column2); in whenICompareToRange()
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestwith.py209 line1 = h.readline()
212 self.assertEqual(line1, 'foo\n')
268 line1 = f.readline()
271 self.assertEqual(line1, b'abc\n')
298 line1 = h.readline()
300 self.assertEqual(line1, 'foo\n')
306 line1 = h.readline()
308 self.assertEqual(line1, 'foo\n')
/external/jdiff/src/jdiff/
DDiffMyers.java374 int line0 = i0, line1 = i1; in build_reverse_script() local
381 script = new change(line0, line1, i0 - line0, i1 - line1, script); in build_reverse_script()
408 int line0 = i0, line1 = i1; in build_script() local
415 script = new change(i0, i1, line0 - i0, line1 - i1, script); in build_script()
488 public final int line1; field in DiffMyers.change
497 change(int line0, int line1, int deleted, int inserted, change old) { in change() argument
499 this.line1 = line1; in change()
/external/google-breakpad/src/common/
Dstabs_to_module_unittest.cc173 Module::Line *line1 = &function->lines[0]; in TEST() local
174 EXPECT_EQ(0xb4513962eff94e92LL, line1->address); in TEST()
175 EXPECT_EQ(0x100000000ULL, line1->size); // derived from EndFunction in TEST()
176 EXPECT_TRUE(line1->file == file1); in TEST()
177 EXPECT_EQ(77396614, line1->number); in TEST()
/external/antlr/runtime/Cpp/tests/
Dt012lexerXMLLexer.g22 void output(const char* line1, const char *line2)
24 outbuf << line1 << line2 << "\r\n";
27 void output(const char* line1, ImplTraits::StringType const& line2)
29 outbuf << line1 << line2 << "\r\n";
/external/nist-sip/java/gov/nist/javax/sip/parser/
DPipelinedMsgParser.java226 String line1; in run() local
231 line1 = readLine(inputStream); in run()
233 if (line1.equals("\n")) { in run()
248 inputBuffer.append(line1); in run()

123