Home
last modified time | relevance | path

Searched refs:line2 (Results 1 – 25 of 71) 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
91 SkDPoint result2 = line2.ptAtT(ts[1][i]); in check_results()
97 result2 = line2.ptAtT(ts[1][i ^ 1]); in check_results()
107 static void testOne(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2, in testOne() argument
110 SkASSERT(ValidLine(line2)); 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()
124 ts.horizontal(line2, left, right, line1[0].fY, line1[0].fX != left); in testOne()
125 check_results(reporter, line2, line1, ts, nearAllowed); in testOne()
[all …]
DPathOpsDLineTest.cpp26 SkDLine line2; in DEF_TEST() local
28 line2.set(pts); in DEF_TEST()
29 REPORTER_ASSERT(reporter, line[0] == line2[0] && line[1] == line2[1]); in DEF_TEST()
/external/skqp/tests/
DPathOpsLineIntersectionTest.cpp87 static void check_results(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2, in check_results() argument
91 SkDPoint result2 = line2.ptAtT(ts[1][i]); in check_results()
97 result2 = line2.ptAtT(ts[1][i ^ 1]); in check_results()
107 static void testOne(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2, in testOne() argument
110 SkASSERT(ValidLine(line2)); 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()
124 ts.horizontal(line2, left, right, line1[0].fY, line1[0].fX != left); in testOne()
125 check_results(reporter, line2, line1, ts, nearAllowed); in testOne()
[all …]
DPathOpsDLineTest.cpp26 SkDLine line2; in DEF_TEST() local
28 line2.set(pts); in DEF_TEST()
29 REPORTER_ASSERT(reporter, line[0] == line2[0] && line[1] == line2[1]); in DEF_TEST()
/external/pdfium/core/fxcodec/jbig2/
DJBig2_GrdProc.cpp101 uint32_t line2 = *pLine2++; in decode_Arith_Template0_opt3() local
102 uint32_t CONTEXT = ((line1 & 0xf800) | (line2 & 0x07f0)); in decode_Arith_Template0_opt3()
105 line2 = (line2 << 8) | (*pLine2++); in decode_Arith_Template0_opt3()
114 ((line1 >> k) & 0x0800) | ((line2 >> k) & 0x0010)); in decode_Arith_Template0_opt3()
119 line2 <<= 8; in decode_Arith_Template0_opt3()
129 ((line1 >> (7 - k)) & 0x0800) | ((line2 >> (7 - k)) & 0x0010)); in decode_Arith_Template0_opt3()
134 uint32_t line2 = (h & 1) ? (*pLine2++) : 0; in decode_Arith_Template0_opt3() local
135 uint32_t CONTEXT = (line2 & 0x07f0); in decode_Arith_Template0_opt3()
138 line2 = (line2 << 8) | (*pLine2++); in decode_Arith_Template0_opt3()
148 (((CONTEXT & 0x7bf7) << 1) | bVal | ((line2 >> k) & 0x0010)); in decode_Arith_Template0_opt3()
[all …]
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/internal/analysis/
DLineImplTest.java134 LineImpl line2 = LineImpl.EMPTY; in testHashCode() local
135 line2 = line2.increment(CounterImpl.getInstance(111, 222), in testHashCode()
137 assertEquals(line.hashCode(), line2.hashCode()); in testHashCode()
144 LineImpl line2 = LineImpl.EMPTY; in testEquals1() local
145 line2 = line2.increment(CounterImpl.getInstance(111, 222), in testEquals1()
147 assertEquals(line, line2); in testEquals1()
161 LineImpl line2 = LineImpl.EMPTY; in testEquals3() local
162 line2 = line2.increment(CounterImpl.getInstance(111, 2220), in testEquals3()
164 assertFalse(line.equals(line2)); in testEquals3()
171 LineImpl line2 = LineImpl.EMPTY; in testEquals4() local
[all …]
/external/libxcam/cl_kernel/
Dkernel_wavelet_coeff.cl67 …float16 line2 = *((__local float16 *)(local_src_data + (local_id_y + 2) * SLM_CELL_X_SIZE + local_…
92 line_sum[2] = mad(line2.s0123, line2.s0123, line_sum[2]);
93 line_sum[2] = mad(line2.s1234, line2.s1234, line_sum[2]);
94 line_sum[2] = mad(line2.s2345, line2.s2345, line_sum[2]);
95 line_sum[2] = mad(line2.s3456, line2.s3456, line_sum[2]);
96 line_sum[2] = mad(line2.s4567, line2.s4567, line_sum[2]);
97 line_sum[2] = mad(line2.s5678, line2.s5678, line_sum[2]);
98 line_sum[2] = mad(line2.s6789, line2.s6789, line_sum[2]);
99 line_sum[2] = mad(line2.s789a, line2.s789a, line_sum[2]);
100 line_sum[2] = mad(line2.s89ab, line2.s89ab, line_sum[2]);
[all …]
/external/v8/tools/clusterfuzz/
Dv8_suppressions.py149 def caret_match(line1, line2): argument
151 not line2 or
153 len(line2) > MAX_LINE_LENGTH):
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:
170 match2 = exp.match(line2)
200 for ((line1, lookahead1), (line2, lookahead2)) in itertools.izip_longest(
204 assert not (line1 is None and line2 is None)
208 return '+ %s' % short_line_output(line2), source
[all …]
/external/ltp/testcases/kernel/fs/mongo/
Dmongo_compare.c55 char line2[100]; in main() local
104 fgets(line2, 100, f2); in main()
108 if (p = strstr(line2, "\n")) in main()
125 strcpy(tmp_str[i], line2); in main()
134 line3, line2); in main()
160 line2[strlen(line2) - 1] = 0; in main()
161 while (strlen(line2) < 40) { in main()
162 strcat(line2, " "); in main()
165 strcat(line3, line2); in main()
175 if (p2 = strstr(line2, " :")) { in main()
[all …]
/external/syzkaller/pkg/email/
Dreply_test.go31 line2
37 > line2
47 > line2
53 >> line2
63 line2
67 > line2
77 line2
81 > line2
/external/perf_data_converter/src/quipper/
Dperf_stat_parser_test.cc67 const auto& line2 = proto.line(1); in TEST() local
68 EXPECT_EQ("/uncore/writes/", line2.event_name()); in TEST()
69 EXPECT_EQ(140867, line2.count()); in TEST()
70 EXPECT_FALSE(line2.has_time_ms()); in TEST()
103 const auto& line2 = proto.line(1); in TEST() local
104 EXPECT_EQ("L1-dcache-loads", line2.event_name()); in TEST()
105 EXPECT_EQ(2081375, line2.count()); in TEST()
106 EXPECT_EQ(2001, line2.time_ms()); in TEST()
/external/python/cpython3/Lib/idlelib/idle_test/
Dmock_tk.py249 line2, char2 = self._decode(index2)
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
Dtest_history.py13 line2 = 'b = a' variable
45 self.history.store(line2)
46 self.assertEqual(self.history.history, [line1, line2])
48 self.assertEqual(self.history.history, [line2, line1])
53 self.history.store(line2)
83 self.history.history = [line1, line2]
109 test(True, line2, prefix, 1)
117 test(False, line2, prefix, 1)
137 test(True, line2, prefix, 1)
146 test(True, line2, prefix, 1)
[all …]
/external/python/cpython2/Lib/idlelib/idle_test/
Dmock_tk.py249 line2, char2 = self._decode(index2)
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
Dtest_idlehistory.py11 line2 = 'b = a' variable
42 self.history.store(line2)
43 self.assertEqual(self.history.history, [line1, line2])
45 self.assertEqual(self.history.history, [line2, line1])
50 self.history.store(line2)
79 self.history.history = [line1, line2]
105 test(True, line2, prefix, 1)
113 test(False, line2, prefix, 1)
133 test(True, line2, prefix, 1)
142 test(True, line2, prefix, 1)
[all …]
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/
DRegionTest.java45 LineRegion line2 = new LineRegion(11, 20); in testIntersects() local
46 assertFalse(line1.intersects(line2)); in testIntersects()
49 assertTrue(line1.intersects(line2)); in testIntersects()
53 assertTrue(line1.intersects(line2)); in testIntersects()
57 assertFalse(line1.intersects(line2)); in testIntersects()
DLineRegionTest.java61 LineRegion line2 = new LineRegion(11, 20); in testIntersects() local
62 assertFalse(line1.intersects(line2)); in testIntersects()
65 assertTrue(line1.intersects(line2)); in testIntersects()
69 assertTrue(line1.intersects(line2)); in testIntersects()
73 assertFalse(line1.intersects(line2)); in testIntersects()
/external/catch2/scripts/
DreleaseNotes.py51 line2 = "" variable
55 line2 = line2 + match.group(1) + issue variable
57 if line2 == "":
60 messages.append( line2 )
/external/libchrome/base/files/
Dfile_util.cc96 std::string line1, line2; in TextContentsEqual() local
98 getline(file2, line2); in TextContentsEqual()
113 std::string::size_type end2 = line2.find_last_not_of("\r\n"); in TextContentsEqual()
115 line2.clear(); in TextContentsEqual()
116 else if (end2 + 1 < line2.length()) in TextContentsEqual()
117 line2.erase(end2 + 1); in TextContentsEqual()
119 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/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/google-breakpad/src/common/
Dstabs_to_module_unittest.cc179 Module::Line *line2 = &function->lines[1]; in TEST() local
180 EXPECT_EQ(0xb4513963eff94e92LL, line2->address); in TEST()
181 EXPECT_EQ(0x1000000000000ULL, line2->size); // derived from EndFunction in TEST()
182 EXPECT_TRUE(line2->file == file2); in TEST()
183 EXPECT_EQ(87660088, line2->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/cldr/tools/java/org/unicode/cldr/util/
DCldrUtility.java181 int compare(String line1, String line2); in compare() argument
194 public int compare(String line1, String line2) { in compare() argument
203 if (line2 == null) { in compare()
206 if ((flags & TRIM) != 0) line2 = line2.trim(); in compare()
207 if ((flags & SKIP_EMPTY) != 0 && line2.length() == 0) skipper += SKIP_SECOND; in compare()
216 if (line2 == null) return LINES_SAME; in compare()
219 if (line2 == null) { in compare()
224 if (line1.equals(line2)) return LINES_SAME; in compare()
228 if (line1.indexOf('$') >= 0 && line2.indexOf('$') >= 0) { in compare()
230 line2 = stripTags(line2); in compare()
[all …]
/external/python/cpython2/Lib/
DStringIO.py302 line2 = f.read(len(line))
303 if line != line2:
305 f.seek(len(line2), 1)
309 line2 = f.read()
310 if line != line2:

123