Home
last modified time | relevance | path

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

12

/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/pdfium/core/fxcodec/jbig2/
DJBig2_GrdProc.cpp88 uint32_t line1 = (*pLine1++) << 6; in decode_Arith_Template0_opt3() local
90 uint32_t CONTEXT = ((line1 & 0xf800) | (line2 & 0x07f0)); in decode_Arith_Template0_opt3()
92 line1 = (line1 << 8) | ((*pLine1++) << 6); in decode_Arith_Template0_opt3()
99 ((line1 >> k) & 0x0800) | ((line2 >> k) & 0x0010)); in decode_Arith_Template0_opt3()
103 line1 <<= 8; in decode_Arith_Template0_opt3()
111 ((line1 >> (7 - k)) & 0x0800) | ((line2 >> (7 - k)) & 0x0010)); in decode_Arith_Template0_opt3()
159 uint32_t line1 = GBREG->getPixel(1, h - 2); in decode_Arith_Template0_unopt() local
160 line1 |= GBREG->getPixel(0, h - 2) << 1; in decode_Arith_Template0_unopt()
175 CONTEXT |= line1 << 12; in decode_Arith_Template0_unopt()
182 line1 = ((line1 << 1) | GBREG->getPixel(w + 2, h - 2)) & 0x07; in decode_Arith_Template0_unopt()
[all …]
DJBig2_GrrdProc.cpp44 uint32_t line1 = GRREG->getPixel(1, h - 1); in decode_Template0_unopt() local
45 line1 |= GRREG->getPixel(0, h - 1) << 1; in decode_Template0_unopt()
70 CONTEXT |= line1 << 10; in decode_Template0_unopt()
74 line1 = ((line1 << 1) | GRREG->getPixel(w + 2, h - 1)) & 0x03; in decode_Template0_unopt()
90 uint32_t line1 = GRREG->getPixel(1, h - 1); in decode_Template0_unopt() local
91 line1 |= GRREG->getPixel(0, h - 1) << 1; in decode_Template0_unopt()
125 CONTEXT |= line1 << 10; in decode_Template0_unopt()
130 line1 = ((line1 << 1) | GRREG->getPixel(w + 2, h - 1)) & 0x03; in decode_Template0_unopt()
175 uint32_t line1 = (h > 0) ? pLine[-nStride] << 4 : 0; in decode_Template0_opt() local
184 uint32_t CONTEXT = (line1 & 0x1c00) | (line1_r & 0x01c0) | in decode_Template0_opt()
[all …]
/external/v8/tools/foozzie/
Dv8_suppressions.py182 def caret_match(line1, line2): argument
183 if (not line1 or
185 len(line1) > MAX_LINE_LENGTH or
188 return bool(CARET_RE.match(line1) and CARET_RE.match(line2))
198 def ignore_by_regexp(line1, line2, allowed): argument
199 if len(line1) > MAX_LINE_LENGTH or len(line2) > MAX_LINE_LENGTH:
202 match1 = exp.match(line1)
233 for ((line1, lookahead1), (line2, lookahead2)) in itertools.izip_longest(
237 assert not (line1 is None and line2 is None)
240 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/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/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/skia/infra/bots/recipe_modules/core/resources/
Delf_symbolizer.py344 for (line1, line2) in lines:
346 name = line1 if not line1.startswith('?') else None
434 line1 = process_pipe.readline().rstrip('\r\n')
436 if not line1 or not line2:
439 (line1 != '??' and line2 != '??:0'))
441 lines_for_one_symbol += [(line1, line2)]
/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()
Dmodule_unittest.cc116 Module::Line line1 = { 0xbec774ea5dd935f3LL, 0x1c2be6d6c5af2611LL, in TEST() local
121 function->lines.push_back(line1); in TEST()
173 Module::Line line1 = { 0x595fa44ebacc1086LL, 0x1e1e0191b066c5b3LL, in TEST() local
177 function->lines.push_back(line1); in TEST()
221 Module::Line line1 = { 0xbec774ea5dd935f3LL, 0x1c2be6d6c5af2611LL, in TEST() local
223 function->lines.push_back(line1); in TEST()
/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()
/external/libavc/common/x86/
Dih264_deblk_luma_ssse3.c108 __m128i line1, line2, line3, line4, line5, line6, line7, line8; in ih264_deblk_luma_vert_bs4_ssse3() local
113 line1 = _mm_loadl_epi64((__m128i *)(pu1_src - 4 + 0 * src_strd)); in ih264_deblk_luma_vert_bs4_ssse3()
122 temp1 = _mm_unpacklo_epi8(line1, line2); in ih264_deblk_luma_vert_bs4_ssse3()
127 line1 = _mm_unpacklo_epi16(temp1, temp2); in ih264_deblk_luma_vert_bs4_ssse3()
132 p1_8x16 = _mm_unpacklo_epi32(line1, line3); in ih264_deblk_luma_vert_bs4_ssse3()
133 p0_8x16 = _mm_unpackhi_epi32(line1, line3); in ih264_deblk_luma_vert_bs4_ssse3()
137 line1 = _mm_loadl_epi64((__m128i *)(pu1_src - 4 + 8 * src_strd)); in ih264_deblk_luma_vert_bs4_ssse3()
146 temp1 = _mm_unpacklo_epi8(line1, line2); in ih264_deblk_luma_vert_bs4_ssse3()
151 line1 = _mm_unpacklo_epi16(temp1, temp2); in ih264_deblk_luma_vert_bs4_ssse3()
156 temp1 = _mm_unpacklo_epi32(line1, line3); in ih264_deblk_luma_vert_bs4_ssse3()
[all …]
/external/mesa3d/src/gallium/drivers/swr/rasterizer/scripts/mako/
Dutil.py222 line1 = fp.readline()
223 has_bom = line1.startswith(codecs.BOM_UTF8)
225 line1 = line1[len(codecs.BOM_UTF8):]
227 m = _PYTHON_MAGIC_COMMENT_re.match(line1.decode('ascii', 'ignore'))
231 parser.suite(line1.decode('ascii', 'ignore'))
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/types/
DBinaryTagTest.java26 String line1 = "R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5"; field in BinaryTagTest
30 String content = line1 + line2 + line3 + line4;
/external/python/cpython2/Lib/test/
Dtest_gzip.py198 line1 = f.readline()
199 if not line1: break
202 if len(line1)>10:
205 amount = len(line1)
207 self.assertEqual(line1[:amount], line2)
/external/pdfium/third_party/lcms2-2.6/src/
Dcmssm.c217 cmsBool ClosestLineToLine(cmsVEC3* r, const cmsLine* line1, const cmsLine* line2) in ClosestLineToLine() argument
224 _cmsVEC3minus(&w0, &line1 ->a, &line2 ->a); in ClosestLineToLine()
226 a = _cmsVEC3dot(&line1 ->u, &line1 ->u); in ClosestLineToLine()
227 b = _cmsVEC3dot(&line1 ->u, &line2 ->u); in ClosestLineToLine()
229 d = _cmsVEC3dot(&line1 ->u, &w0); in ClosestLineToLine()
291 GetPointOfLine(r, line1, sc); in ClosestLineToLine()
/external/curl/tests/data/
Dtest17335 line1
68 line1
/external/deqp/scripts/src_util/
Dcheck_include_guards.py41 line1 = f.readline().strip()
45 if line1 != ("#define %s" % includeGuard):
/external/toybox/tests/
Dmore.test8 line1
/external/iproute2/lib/
Dutils.c945 char *line1 = NULL; in getcmdline() local
949 if ((cc1 = getline(&line1, &len1, in)) < 0) { in getcmdline()
957 cp = strchr(line1, '#'); in getcmdline()
961 *lenp = strlen(*linep) + strlen(line1) + 1; in getcmdline()
969 strcat(*linep, line1); in getcmdline()
970 free(line1); in getcmdline()

12