Home
last modified time | relevance | path

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

1234

/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/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/pdfium/core/fxcodec/jbig2/
DJBig2_GrdProc.cpp118 uint32_t line2 = *pLine2++; in DecodeArithOpt3() local
120 ((line2 >> kOptConstant4[OPT]) & kOptConstant5[OPT]); in DecodeArithOpt3()
123 line2 = (line2 << 8) | (*pLine2++); in DecodeArithOpt3()
134 ((line2 >> (k + kOptConstant4[OPT])) & kOptConstant8[OPT])); in DecodeArithOpt3()
139 line2 <<= 8; in DecodeArithOpt3()
150 ((line2 >> (7 + kOptConstant4[OPT] - k)) & kOptConstant8[OPT])); in DecodeArithOpt3()
155 uint32_t line2 = (h & 1) ? (*pLine2++) : 0; in DecodeArithOpt3() local
156 uint32_t CONTEXT = ((line2 >> kOptConstant4[OPT]) & kOptConstant5[OPT]); in DecodeArithOpt3()
159 line2 = (line2 << 8) | (*pLine2++); in DecodeArithOpt3()
170 ((line2 >> (k + kOptConstant4[OPT])) & kOptConstant8[OPT])); in DecodeArithOpt3()
[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/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/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/python/cpython3/Lib/idlelib/idle_test/
Dmock_tk.py253 line2, char2 = self._decode(index2)
255 return line1 < line2 or line1 == line2 and char1 < char2
257 return line1 < line2 or line1 == line2 and char1 <= char2
259 return line1 > line2 or line1 == line2 and char1 > char2
261 return line1 > line2 or line1 == line2 and char1 >= char2
263 return line1 == line2 and char1 == char2
265 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/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/llvm-project/lldb/test/API/lang/c/anonymous/
DTestAnonymous.py47 self.common_setup(self.line2)
61 self.common_setup(self.line2)
72 self.common_setup(self.line2)
125 self.common_setup(self.line2)
141 self.line2 = line_number(self.source, '// Set breakpoint 2 here.')
/external/javaparser/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/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/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/llvm-project/lldb/test/API/functionalities/breakpoint/dummy_target_breakpoints/
DTestBreakpointsWithNoTargets.py26 self.line2 = line_number('main.c', 'Set another on this line.')
35 self, "main.c", self.line2, num_expected_locations=0)
57 self.line2])
/external/cldr/tools/java/org/unicode/cldr/util/
DTempPrintWriter.java127 String line2 = ""; in filesAreIdentical() local
131 line2 = getLineWithoutFluff(br2, lineCount == 0, skipCopyright); in filesAreIdentical()
133 if (line2 == null) { in filesAreIdentical()
138 if (!line1.equals(line2)) { in filesAreIdentical()
143 lines[1] = line2; in filesAreIdentical()
/external/llvm-project/lldb/test/API/lang/c/stepping/
DTestThreadStepping.py22 self.line2 = line_number(
51 "frame #3.*main.c:%d" % self.line2])
59 patterns=["frame #0.*main.c:%d" % self.line2])
/external/llvm-project/lldb/test/API/functionalities/breakpoint/move_nearest/
DTestMoveNearest.py20 self.line2 = line_number('foo.h', '// !BR2')
42 lldbutil.run_break_set_by_file_and_line(self, 'foo.h', self.line2,
48 lldbutil.run_break_set_by_file_and_line(self, 'foo.h', self.line2,
/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/python/cpython3/Tools/scripts/
Dfindnocoding.py60 line2 = infile.readline()
63 blank_re.match(line1) and get_declaration(line2)):
70 if has_correct_encoding(line1+line2+rest, "utf-8"):

1234