/external/skia/tests/ |
D | PathOpsLineIntersectionTest.cpp | 87 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/src/fxcodec/jbig2/ |
D | JBig2_GrdProc.cpp | 70 FX_DWORD line1, line2; in decode_Arith_Template0_opt3() local 96 line1 = (*pLine1++) << 6; in decode_Arith_Template0_opt3() 98 CONTEXT = ((line1 & 0xf800) | (line2 & 0x07f0)); in decode_Arith_Template0_opt3() 100 line1 = (line1 << 8) | ((*pLine1++) << 6); in decode_Arith_Template0_opt3() 107 ((line1 >> k) & 0x0800) | ((line2 >> k) & 0x0010)); in decode_Arith_Template0_opt3() 111 line1 <<= 8; in decode_Arith_Template0_opt3() 119 ((line1 >> (7 - k)) & 0x0800) | ((line2 >> (7 - k)) & 0x0010)); in decode_Arith_Template0_opt3() 160 FX_DWORD line1, line2, line3; in decode_Arith_Template0_unopt() local 172 line1 = GBREG->getPixel(1, h - 2); in decode_Arith_Template0_unopt() 173 line1 |= GBREG->getPixel(0, h - 2) << 1; in decode_Arith_Template0_unopt() [all …]
|
D | JBig2_GrrdProc.cpp | 39 FX_DWORD line1, line2, line3, line4, line5; in decode_Template0_unopt() local 49 line1 = GRREG->getPixel(1, h - 1); in decode_Template0_unopt() 50 line1 |= GRREG->getPixel(0, h - 1) << 1; in decode_Template0_unopt() 72 CONTEXT |= line1 << 10; in decode_Template0_unopt() 76 line1 = ((line1 << 1) | GRREG->getPixel(w + 2, h - 1)) & 0x03; in decode_Template0_unopt() 92 line1 = GRREG->getPixel(1, h - 1); in decode_Template0_unopt() 93 line1 |= GRREG->getPixel(0, h - 1) << 1; in decode_Template0_unopt() 124 CONTEXT |= line1 << 10; in decode_Template0_unopt() 129 line1 = ((line1 << 1) | GRREG->getPixel(w + 2, h - 1)) & 0x03; in decode_Template0_unopt() 157 FX_DWORD line1, line1_r, line2_r, line3_r; in decode_Template0_opt() local [all …]
|
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/ |
D | RegionTest.java | 44 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()
|
D | LineRegionTest.java | 60 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/chromium-trace/catapult/telemetry/telemetry/internal/image_processing/ |
D | cv_util.py | 13 def AreLinesOrthogonal(line1, line2, tolerance): argument 16 theta1 = np.arctan2(np.float(line1[1] - line1[3]), 17 np.float(line1[0] - line1[2])) 28 def FindLineIntersection(line1, line2): argument 35 line1p1 = line1[:2] 36 line1p0 = line1[2:]
|
D | screen_finder.py | 287 def __init__(self, corner_index, corner_location, brightness_score, line1, argument 292 self.line1 = line1 302 ',\nline1: ' + str(self.line1) + ',\nline2: ' + str(self.line2)) 327 for corner_pos, score, point, line1, line2 in \ 335 corner_data = self.CornerData(corner_pos, point, score, line1, line2) 353 filtered[i].line1, 550 corner_data[i].line1, 554 corner_data[i - 1].line1, 589 point, line1, line2 = point_info 601 cv_util.IsPointApproxOnLine(corner, line1, tolerance)
|
D | screen_finder_unittest.py | 95 line1 = np.asfarray(((0, 0, 1, 0))) 98 point_info = (point, line1, line2) 112 def _BuildResult(point, line1, line2): argument 113 return [point, np.asfarray(line1).tolist(), np.asfarray(line2).tolist()] 118 point, line1, line2 = result 120 l1 = np.round(line1).tolist() 201 self.assertEqual(cd.line1, 'd')
|
/external/libchrome/base/files/ |
D | file_util.cc | 96 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/opencv3/3rdparty/openexr/Imath/ |
D | ImathLineAlgo.h | 84 (const Line3<T>& line1, in closestPoints() argument 97 Vec3<T> w = line1.pos - line2.pos; in closestPoints() 98 T d1w = line1.dir ^ w; in closestPoints() 100 T d1d2 = line1.dir ^ line2.dir; in closestPoints() 110 point1 = line1 (n1 / d); in closestPoints()
|
/external/jdiff/src/jdiff/ |
D | DiffMyers.java | 374 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()
|
D | Diff.java | 136 int first1 = hunk.line1; // Index of first inserted word in mergeDiffs() 141 first1 == lasthunk.line1 + lasthunk.inserted + 1) { in mergeDiffs() 193 int first1 = hunk.line1; // Index of first inserted word in addDiffs() 195 int last1 = hunk.line1 + hunk.inserted - 1; in addDiffs()
|
/external/chromium-trace/catapult/third_party/Paste/paste/ |
D | cgiapp.py | 132 line1, self.buffer = self.buffer.split(b'\r\n', 1) 134 line1, self.buffer = self.buffer.split(b'\n', 1) 135 if not line1: 144 elif b':' not in line1: 146 "Bad header line: %r" % line1) 148 name, value = line1.split(b':', 1)
|
/external/google-breakpad/src/common/ |
D | stabs_to_module_unittest.cc | 173 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()
|
D | module_unittest.cc | 116 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/ |
D | PipelinedMsgParser.java | 226 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/ |
D | ih264_deblk_luma_ssse3.c | 108 __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/snakeyaml/src/test/java/org/yaml/snakeyaml/types/ |
D | BinaryTagTest.java | 26 String line1 = "R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5"; field in BinaryTagTest 30 String content = line1 + line2 + line3 + line4;
|
/external/pdfium/third_party/lcms2-2.6/src/ |
D | cmssm.c | 217 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/ |
D | test173 | 35 line1 68 line1
|
/external/deqp/scripts/src_util/ |
D | check_include_guards.py | 40 line1 = f.readline().strip() 44 if line1 != ("#define %s" % includeGuard):
|
/external/iproute2/lib/ |
D | utils.c | 945 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()
|
/external/opencv3/modules/imgcodecs/test/ |
D | test_drawing.cpp | 426 vector<Point> line1; in run() local 429 line1.push_back(Point(1, 1)); in run() 430 line1.push_back(Point(5, 1)); in run() 431 line1.push_back(Point(5, 8)); in run() 432 line1.push_back(Point(1, 8)); in run() 440 fillConvexPoly(gray0, line1, Scalar(255), 8, 0); in run()
|
/external/elfutils/libdw/ |
D | dwarf_getsrclines.c | 65 Dwarf_Line *line1 = &list1->line; in compare_lines() local 68 if (line1->addr != line2->addr) in compare_lines() 69 return (line1->addr < line2->addr) ? -1 : 1; in compare_lines() 72 if (line1->end_sequence != line2->end_sequence) in compare_lines() 73 return line2->end_sequence - line1->end_sequence; in compare_lines()
|
/external/skia/src/gpu/batches/ |
D | GrPLSPathRenderer.cpp | 93 static bool outset(SkPoint* p1, SkPoint line1, SkPoint line2) { in outset() argument 96 SkScalar dotProd = line1.fY * line2.fY + line1.fX * line2.fX; in outset() 101 SkPoint bisector = line1 + line2; in outset() 109 SkPoint line1 = pts[0] - pts[1]; in bloat_tri() local 110 line1.normalize(); in bloat_tri() 118 if (!outset(&result[0], line1, line2)) { in bloat_tri() 122 if (!outset(&result[1], -line1, line3)) { in bloat_tri()
|