/external/chromium_org/third_party/skia/tests/ |
H A D | PathOpsDRectTest.cpp | 43 SkDRect rect, rect2; local 52 rect2.set(line[0]); 53 rect2.add(line[1]); 54 REPORTER_ASSERT(reporter, rect2.fLeft == SkTMin(line[0].fX, line[1].fX)); 55 REPORTER_ASSERT(reporter, rect2.fTop == SkTMin(line[0].fY, line[1].fY)); 56 REPORTER_ASSERT(reporter, rect2.fRight == SkTMax(line[0].fX, line[1].fX)); 57 REPORTER_ASSERT(reporter, rect2.fBottom == SkTMax(line[0].fY, line[1].fY)); 59 REPORTER_ASSERT(reporter, rect.intersects(&rect2)); 73 rect2.setBounds(quad); 74 REPORTER_ASSERT(reporter, rect.intersects(&rect2)); [all...] |
H A D | TileGridTest.cpp | 60 SkRect rect2 = SkRect::MakeXYWH(SkIntToScalar(11), SkIntToScalar(11), local 67 canvas->drawRect(rect2, paint); 94 REPORTER_ASSERT(reporter, rect2 == mockCanvas.fRects[1]); 102 REPORTER_ASSERT(reporter, rect2 == mockCanvas.fRects[0]); 124 REPORTER_ASSERT(reporter, rect2 == mockCanvas.fRects[0]); 131 REPORTER_ASSERT(reporter, rect2 == mockCanvas.fRects[0]); 146 SkRect rect2 = SkRect::MakeXYWH(SkIntToScalar(12), SkIntToScalar(12), local 156 canvas->drawRect(rect2, paint); 181 REPORTER_ASSERT(reporter, rect2 == mockCanvas.fRects[1]); 191 REPORTER_ASSERT(reporter, rect2 [all...] |
H A D | PathOpsCubicIntersectionTest.cpp | 417 SkDRect rect1, rect2; local 419 rect2.setBounds(cubic2); 420 bool boundsIntersect = rect1.fLeft <= rect2.fRight && rect2.fLeft <= rect2.fRight 421 && rect1.fTop <= rect2.fBottom && rect2.fTop <= rect1.fBottom;
|
/external/skia/tests/ |
H A D | PathOpsDRectTest.cpp | 43 SkDRect rect, rect2; local 52 rect2.set(line[0]); 53 rect2.add(line[1]); 54 REPORTER_ASSERT(reporter, rect2.fLeft == SkTMin(line[0].fX, line[1].fX)); 55 REPORTER_ASSERT(reporter, rect2.fTop == SkTMin(line[0].fY, line[1].fY)); 56 REPORTER_ASSERT(reporter, rect2.fRight == SkTMax(line[0].fX, line[1].fX)); 57 REPORTER_ASSERT(reporter, rect2.fBottom == SkTMax(line[0].fY, line[1].fY)); 59 REPORTER_ASSERT(reporter, rect.intersects(&rect2)); 73 rect2.setBounds(quad); 74 REPORTER_ASSERT(reporter, rect.intersects(&rect2)); [all...] |
H A D | TileGridTest.cpp | 61 SkRect rect2 = SkRect::MakeXYWH(SkIntToScalar(11), SkIntToScalar(11), local 68 canvas->drawRect(rect2, paint); 95 REPORTER_ASSERT(reporter, rect2 == mockCanvas.fRects[1]); 103 REPORTER_ASSERT(reporter, rect2 == mockCanvas.fRects[0]); 125 REPORTER_ASSERT(reporter, rect2 == mockCanvas.fRects[0]); 132 REPORTER_ASSERT(reporter, rect2 == mockCanvas.fRects[0]); 147 SkRect rect2 = SkRect::MakeXYWH(SkIntToScalar(12), SkIntToScalar(12), local 157 canvas->drawRect(rect2, paint); 182 REPORTER_ASSERT(reporter, rect2 == mockCanvas.fRects[1]); 192 REPORTER_ASSERT(reporter, rect2 [all...] |
H A D | PathOpsCubicIntersectionTest.cpp | 417 SkDRect rect1, rect2; local 419 rect2.setBounds(cubic2); 420 bool boundsIntersect = rect1.fLeft <= rect2.fRight && rect2.fLeft <= rect2.fRight 421 && rect1.fTop <= rect2.fBottom && rect2.fTop <= rect1.fBottom;
|
/external/pdfium/fpdfsdk/src/formfiller/ |
H A D | FFL_Utils.cpp | 10 CPDF_Rect CFFL_Utils::MaxRect(const CPDF_Rect & rect1,const CPDF_Rect & rect2)
argument 14 rcRet.left = FFL_MIN(rect1.left,rect2.left);
15 rcRet.bottom = FFL_MIN(rect1.bottom,rect2.bottom);
16 rcRet.right = FFL_MAX(rect1.right,rect2.right);
17 rcRet.top = FFL_MAX(rect1.top,rect2.top);
|
/external/chromium_org/third_party/skia/gm/ |
H A D | clip_strokerect.cpp | 54 SkRect rect2 = SkRect::MakeXYWH(20, 120, 100, 19); variable 57 canvas->clipRect(rect2, SkRegion::kReplace_Op, true); 63 canvas->drawRect(rect2, p);
|
H A D | thinstrokedrects.cpp | 36 static const SkRect rect2 = { 0, 0, 20, 20 }; variable 63 canvas->drawRect(rect2, paint);
|
/external/chromium_org/third_party/skia/experimental/Intersection/ |
H A D | EdgeWalkerRectangles_Test.cpp | 159 SkRect rect2 = SkRect::MakeXYWH(10, 10, 10, 10); local 167 path.addRect(rect2, static_cast<SkPath::Direction>(inDir)); 215 && (bounds[0] == rect2 || bounds[1] == rect2)); 260 SkRect rect2 = SkRect::MakeXYWH(10, 10, 30, 30); local 265 bool extend = start[startIndex] == rect2.fLeft && stop[stopIndex] == rect2.fRight; 266 bool edge = start[startIndex] == rect2.fLeft || stop[stopIndex] == rect2.fRight; 270 path.addRect(rect2, static_cas 305 SkRect rect2 = SkRect::MakeXYWH(10, 10, 30, 30); local 329 SkRect rect2 = SkRect::MakeXYWH(1, 1, 3, 3); local 354 SkRect rect2 = SkRect::MakeXYWH(10, 10, 30, 30); local [all...] |
H A D | CubicIntersection_Test.cpp | 487 _Rect rect1, rect2; local 489 rect2.setBounds(cubic2); 490 bool boundsIntersect = rect1.left <= rect2.right && rect2.left <= rect2.right 491 && rect1.top <= rect2.bottom && rect2.top <= rect1.bottom; 586 _Rect rect1, rect2; local 588 rect2.setBounds(cubic2); 589 bool boundsIntersect = rect1.left <= rect2 [all...] |
/external/skia/experimental/Intersection/ |
H A D | EdgeWalkerRectangles_Test.cpp | 159 SkRect rect2 = SkRect::MakeXYWH(10, 10, 10, 10); local 167 path.addRect(rect2, static_cast<SkPath::Direction>(inDir)); 215 && (bounds[0] == rect2 || bounds[1] == rect2)); 260 SkRect rect2 = SkRect::MakeXYWH(10, 10, 30, 30); local 265 bool extend = start[startIndex] == rect2.fLeft && stop[stopIndex] == rect2.fRight; 266 bool edge = start[startIndex] == rect2.fLeft || stop[stopIndex] == rect2.fRight; 270 path.addRect(rect2, static_cas 305 SkRect rect2 = SkRect::MakeXYWH(10, 10, 30, 30); local 329 SkRect rect2 = SkRect::MakeXYWH(1, 1, 3, 3); local 354 SkRect rect2 = SkRect::MakeXYWH(10, 10, 30, 30); local [all...] |
H A D | CubicIntersection_Test.cpp | 487 _Rect rect1, rect2; local 489 rect2.setBounds(cubic2); 490 bool boundsIntersect = rect1.left <= rect2.right && rect2.left <= rect2.right 491 && rect1.top <= rect2.bottom && rect2.top <= rect1.bottom; 586 _Rect rect1, rect2; local 588 rect2.setBounds(cubic2); 589 bool boundsIntersect = rect1.left <= rect2 [all...] |
/external/pdfium/fpdfsdk/include/formfiller/ |
H A D | FFL_Utils.h | 15 static CPDF_Rect MaxRect(const CPDF_Rect & rect1,const CPDF_Rect & rect2);
|
/external/skia/gm/ |
H A D | thinstrokedrects.cpp | 40 static const SkRect rect2 = { 0, 0, 20, 20 }; variable 67 canvas->drawRect(rect2, paint);
|
/external/qemu/distrib/sdl-1.2.15/src/video/symbian/EKA1/ |
H A D | SDL_epocvideo.cpp | 789 TRect rect2 = TRect(Private->EPOC_WsWindow.Size()); local 791 Private->EPOC_DrawDevice->UpdateRegion(rect2); // Should we update rects parameter area only?? 804 SDL_Rect rect2; 805 rect2.x = currentRect.x; 806 rect2.y = currentRect.y; 807 rect2.w = currentRect.w; 808 rect2.h = currentRect.h; 810 if (rect2.w <= 0 || rect2.h <= 0) 882 SDL_Rect rect2; local 1169 SDL_Rect rect2; local [all...] |
/external/chromium_org/third_party/WebKit/Source/web/resources/ |
H A D | pickerCommon.js | 76 * @param {!Rectangle} rect2 79 Rectangle.intersection = function(rect1, rect2) { 80 var x = Math.max(rect1.x, rect2.x); 81 var maxX = Math.min(rect1.maxX, rect2.maxX); 82 var y = Math.max(rect1.y, rect2.y); 83 var maxY = Math.min(rect1.maxY, rect2.maxY);
|
/external/chromium_org/mojo/public/cpp/bindings/tests/ |
H A D | struct_unittest.cc | 65 RectPtr rect2; local 66 Deserialize_(data, &rect2); 68 CheckRect(*rect2);
|
H A D | type_conversion_unittest.cc | 144 RectPtr rect2(Rect::From(rr)); 145 EXPECT_EQ(rect->x, rect2->x); 146 EXPECT_EQ(rect->y, rect2->y); 147 EXPECT_EQ(rect->width, rect2->width); 148 EXPECT_EQ(rect->height, rect2->height);
|
/external/fonttools/Lib/fontTools/misc/ |
H A D | arrayTools.py | 86 def sectRect(rect1, rect2): 92 (xMin2, yMin2, xMax2, yMax2) = rect2 99 def unionRect(rect1, rect2): 105 (xMin2, yMin2, xMax2, yMax2) = rect2
|
/external/fonttools/Tools/fontTools/misc/ |
H A D | arrayTools.py | 86 def sectRect(rect1, rect2): 92 (xMin2, yMin2, xMax2, yMax2) = rect2 99 def unionRect(rect1, rect2): 105 (xMin2, yMin2, xMax2, yMax2) = rect2
|
/external/chromium_org/chrome/browser/resources/pdf/ |
H A D | viewport.js | 8 * @param {Object} rect2 the second rect 11 function getIntersectionArea(rect1, rect2) { 13 Math.min(rect1.x + rect1.width, rect2.x + rect2.width) - 14 Math.max(rect1.x, rect2.x)); 16 Math.min(rect1.y + rect1.height, rect2.y + rect2.height) - 17 Math.max(rect1.y, rect2.y));
|
/external/chromium_org/third_party/skia/src/core/ |
H A D | SkRTree.cpp | 12 static inline uint32_t get_overlap(const SkIRect& rect1, const SkIRect& rect2); 14 static inline uint32_t get_area_increase(const SkIRect& rect1, SkIRect rect2); 465 static inline uint32_t get_overlap(const SkIRect& rect1, const SkIRect& rect2) { argument 467 return SkMax32(0, SkMin32(rect1.fRight, rect2.fRight) - SkMax32(rect1.fLeft, rect2.fLeft)) * 468 SkMax32(0, SkMin32(rect1.fBottom, rect2.fBottom) - SkMax32(rect1.fTop, rect2.fTop)); 476 static inline uint32_t get_area_increase(const SkIRect& rect1, SkIRect rect2) { argument 477 join_no_empty_check(rect1, &rect2); 478 return get_area(rect2) [all...] |
/external/skia/src/core/ |
H A D | SkRTree.cpp | 12 static inline uint32_t get_overlap(const SkIRect& rect1, const SkIRect& rect2); 14 static inline uint32_t get_area_increase(const SkIRect& rect1, SkIRect rect2); 458 static inline uint32_t get_overlap(const SkIRect& rect1, const SkIRect& rect2) { argument 460 return SkMax32(0, SkMin32(rect1.fRight, rect2.fRight) - SkMax32(rect1.fLeft, rect2.fLeft)) * 461 SkMax32(0, SkMin32(rect1.fBottom, rect2.fBottom) - SkMax32(rect1.fTop, rect2.fTop)); 469 static inline uint32_t get_area_increase(const SkIRect& rect1, SkIRect rect2) { argument 470 join_no_empty_check(rect1, &rect2); 471 return get_area(rect2) [all...] |
/external/opencv/cv/src/ |
H A D | cvgeometry.cpp | 45 cvMaxRect( const CvRect* rect1, const CvRect* rect2 ) 47 if( rect1 && rect2 ) 53 b = rect2->x; 58 b += rect2->width; 65 b = rect2->y; 70 b += rect2->height; 79 else if( rect2 ) 80 return *rect2;
|