Home
last modified time | relevance | path

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

1234

/external/skia/tests/
DPathOpsLineIntersectionTest.cpp94 static void check_results(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2, in check_results() argument
98 SkDPoint result2 = line2.ptAtT(ts[1][i]); in check_results()
104 result2 = line2.ptAtT(ts[1][i ^ 1]); in check_results()
114 static void testOne(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2, in testOne() argument
117 SkASSERT(ValidLine(line2)); in testOne()
120 int pts = i.intersect(line1, line2); in testOne()
123 check_results(reporter, line1, line2, i, nearAllowed); in testOne()
124 if (line1[0] == line1[1] || line2[0] == line2[1]) { in testOne()
131 ts.horizontal(line2, left, right, line1[0].fY, line1[0].fX != left); in testOne()
132 check_results(reporter, line2, line1, ts, nearAllowed); in testOne()
[all …]
DPathOpsDLineTest.cpp33 SkDLine line2; in DEF_TEST() local
35 line2.set(pts); in DEF_TEST()
36 REPORTER_ASSERT(reporter, line[0] == line2[0] && line[1] == line2[1]); in DEF_TEST()
/external/pdfium/core/fxcodec/jbig2/
DJBig2_GrdProc.cpp117 uint32_t line2 = *pLine2++; in DecodeArithOpt3() local
119 ((line2 >> kOptConstant4[OPT]) & kOptConstant5[OPT]); in DecodeArithOpt3()
122 line2 = (line2 << 8) | (*pLine2++); in DecodeArithOpt3()
133 ((line2 >> (k + kOptConstant4[OPT])) & kOptConstant8[OPT])); in DecodeArithOpt3()
138 line2 <<= 8; in DecodeArithOpt3()
149 ((line2 >> (7 + kOptConstant4[OPT] - k)) & kOptConstant8[OPT])); in DecodeArithOpt3()
154 uint32_t line2 = (h & 1) ? (*pLine2++) : 0; in DecodeArithOpt3() local
155 uint32_t CONTEXT = ((line2 >> kOptConstant4[OPT]) & kOptConstant5[OPT]); in DecodeArithOpt3()
158 line2 = (line2 << 8) | (*pLine2++); in DecodeArithOpt3()
169 ((line2 >> (k + kOptConstant4[OPT])) & kOptConstant8[OPT])); in DecodeArithOpt3()
[all …]
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/internal/analysis/
DLineImplTest.java135 LineImpl line2 = LineImpl.EMPTY; in testHashCode() local
136 line2 = line2.increment(CounterImpl.getInstance(111, 222), in testHashCode()
138 assertEquals(line.hashCode(), line2.hashCode()); in testHashCode()
145 LineImpl line2 = LineImpl.EMPTY; in testEquals1() local
146 line2 = line2.increment(CounterImpl.getInstance(111, 222), in testEquals1()
148 assertEquals(line, line2); in testEquals1()
162 LineImpl line2 = LineImpl.EMPTY; in testEquals3() local
163 line2 = line2.increment(CounterImpl.getInstance(111, 2220), in testEquals3()
165 assertFalse(line.equals(line2)); in testEquals3()
172 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/eigen/bench/perf_monitoring/
Dmake_plot.sh65 while read line2
67 if [ ! -z "$line2" ]; then
68 val=`echo $line2 | cut -s -f $col -d ' '`
82 while read line2
85 echo '"'`echo $line2 | cut -f 1 -d ' '`'",' >> $WHAT.html
91 while read line2
94 num=`echo "$line2" | cut -f 1 -d ' '`
103 while read line2
/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.py252 line2, char2 = self._decode(index2)
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
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/apache-velocity-engine/velocity-engine-core/src/test/resources/gobbling/
Dmacro.vtl3 #macro(line2)
4 line2#end
22 #line2()
35 #line2()
/external/mbedtls/tests/src/
Dhelpers.c104 memset( mbedtls_test_info.line2, 0, sizeof( mbedtls_test_info.line2 ) ); in mbedtls_test_info_reset()
130 (void) mbedtls_snprintf( mbedtls_test_info.line2, in mbedtls_test_equal()
131 sizeof( mbedtls_test_info.line2 ), in mbedtls_test_equal()
157 (void) mbedtls_snprintf( mbedtls_test_info.line2, in mbedtls_test_le_u()
158 sizeof( mbedtls_test_info.line2 ), in mbedtls_test_le_u()
184 (void) mbedtls_snprintf( mbedtls_test_info.line2, in mbedtls_test_le_s()
185 sizeof( mbedtls_test_info.line2 ), in mbedtls_test_le_s()
/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/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/spdx-tools/tvloader/reader/
Dreader.go84 line2 := strings.TrimLeftFunc(line, func(r rune) bool {
89 if line2 == "" {
94 if strings.HasPrefix(line2, "#") {
99 substrings := strings.SplitN(line2, ":", 2)
/external/cldr/tools/cldr-code/src/main/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/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/python/absl-py/absl/logging/tests/
Dlogging_functional_test_helper.py202 line2 = _getline()
206 assert (line1 == line2), (line1, line2)
208 assert (line2 != line3), (line2, line3)
/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"):
/external/python/cpython2/Tools/scripts/
Dfindnocoding.py59 line2 = infile.readline()
62 blank_re.match(line1) and get_declaration(line2)):
71 if has_correct_encoding(line1+line2+rest, "ascii"):

1234