/external/chromium_org/third_party/skia/experimental/Intersection/ |
D | EdgeWalkerRectangles_Test.cpp | 165 SkRect rect1 = SkRect::MakeXYWH(x, y, 10, 10); in testSimplifyDiagonal() local 166 path.addRect(rect1, static_cast<SkPath::Direction>(outDir)); in testSimplifyDiagonal() 214 SkASSERT((bounds[0] == rect1 || bounds[1] == rect1) in testSimplifyDiagonal() 267 SkRect rect1 = SkRect::MakeLTRB(start[startIndex], 0, stop[stopIndex], 10); in testSimplifyCoincident() local 269 path.addRect(rect1, static_cast<SkPath::Direction>(outDir)); in testSimplifyCoincident() 275 rect1 = SkRect::MakeLTRB(start[startIndex], 40, stop[stopIndex], 50); in testSimplifyCoincident() 276 path.addRect(rect1, static_cast<SkPath::Direction>(outDir)); in testSimplifyCoincident() 282 rect1 = SkRect::MakeLTRB(0, start[startIndex], 10, stop[stopIndex]); in testSimplifyCoincident() 283 path.addRect(rect1, static_cast<SkPath::Direction>(outDir)); in testSimplifyCoincident() 289 rect1 = SkRect::MakeLTRB(40, start[startIndex], 50, stop[stopIndex]); in testSimplifyCoincident() [all …]
|
D | CubicIntersection_Test.cpp | 487 _Rect rect1, rect2; local 488 rect1.setBounds(cubic1); 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 587 rect1.setBounds(cubic1); 589 bool boundsIntersect = rect1.left <= rect2.right && rect2.left <= rect2.right 590 && rect1.top <= rect2.bottom && rect2.top <= rect1.bottom;
|
/external/skia/experimental/Intersection/ |
D | EdgeWalkerRectangles_Test.cpp | 165 SkRect rect1 = SkRect::MakeXYWH(x, y, 10, 10); in testSimplifyDiagonal() local 166 path.addRect(rect1, static_cast<SkPath::Direction>(outDir)); in testSimplifyDiagonal() 214 SkASSERT((bounds[0] == rect1 || bounds[1] == rect1) in testSimplifyDiagonal() 267 SkRect rect1 = SkRect::MakeLTRB(start[startIndex], 0, stop[stopIndex], 10); in testSimplifyCoincident() local 269 path.addRect(rect1, static_cast<SkPath::Direction>(outDir)); in testSimplifyCoincident() 275 rect1 = SkRect::MakeLTRB(start[startIndex], 40, stop[stopIndex], 50); in testSimplifyCoincident() 276 path.addRect(rect1, static_cast<SkPath::Direction>(outDir)); in testSimplifyCoincident() 282 rect1 = SkRect::MakeLTRB(0, start[startIndex], 10, stop[stopIndex]); in testSimplifyCoincident() 283 path.addRect(rect1, static_cast<SkPath::Direction>(outDir)); in testSimplifyCoincident() 289 rect1 = SkRect::MakeLTRB(40, start[startIndex], 50, stop[stopIndex]); in testSimplifyCoincident() [all …]
|
D | CubicIntersection_Test.cpp | 487 _Rect rect1, rect2; local 488 rect1.setBounds(cubic1); 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 587 rect1.setBounds(cubic1); 589 bool boundsIntersect = rect1.left <= rect2.right && rect2.left <= rect2.right 590 && rect1.top <= rect2.bottom && rect2.top <= rect1.bottom;
|
/external/chromium_org/third_party/skia/tests/ |
D | TileGridTest.cpp | 58 SkRect rect1 = SkRect::MakeXYWH(SkIntToScalar(0), SkIntToScalar(0), in DEF_TEST() local 66 canvas->drawRect(rect1, paint); in DEF_TEST() 78 REPORTER_ASSERT(reporter, rect1 == mockCanvas.fRects[0]); in DEF_TEST() 85 REPORTER_ASSERT(reporter, rect1 == mockCanvas.fRects[0]); in DEF_TEST() 93 REPORTER_ASSERT(reporter, rect1 == mockCanvas.fRects[0]); in DEF_TEST() 110 REPORTER_ASSERT(reporter, rect1 == mockCanvas.fRects[0]); in DEF_TEST() 117 REPORTER_ASSERT(reporter, rect1 == mockCanvas.fRects[0]); in DEF_TEST() 143 SkRect rect1 = SkRect::MakeXYWH(SkIntToScalar(0), SkIntToScalar(0), in DEF_TEST() local 155 canvas->drawRect(rect1, paint); in DEF_TEST() 173 REPORTER_ASSERT(reporter, rect1 == mockCanvas.fRects[0]); in DEF_TEST() [all …]
|
D | PathOpsCubicIntersectionTest.cpp | 417 SkDRect rect1, rect2; in CubicIntersection_RandTest() local 418 rect1.setBounds(cubic1); in CubicIntersection_RandTest() 420 bool boundsIntersect = rect1.fLeft <= rect2.fRight && rect2.fLeft <= rect2.fRight in CubicIntersection_RandTest() 421 && rect1.fTop <= rect2.fBottom && rect2.fTop <= rect1.fBottom; in CubicIntersection_RandTest()
|
D | Writer32Test.cpp | 194 const SkRect rect1 = SkRect::MakeXYWH(1, 2, 3, 4); in testOverwriteT() local 202 writer->writeRect(rect1); in testOverwriteT() 210 REPORTER_ASSERT(reporter, writer->readTAt<SkRect>(padding + sizeof(uint32_t)) == rect1); in testOverwriteT()
|
/external/skia/tests/ |
D | TileGridTest.cpp | 59 SkRect rect1 = SkRect::MakeXYWH(SkIntToScalar(0), SkIntToScalar(0), in DEF_TEST() local 67 canvas->drawRect(rect1, paint); in DEF_TEST() 79 REPORTER_ASSERT(reporter, rect1 == mockCanvas.fRects[0]); in DEF_TEST() 86 REPORTER_ASSERT(reporter, rect1 == mockCanvas.fRects[0]); in DEF_TEST() 94 REPORTER_ASSERT(reporter, rect1 == mockCanvas.fRects[0]); in DEF_TEST() 111 REPORTER_ASSERT(reporter, rect1 == mockCanvas.fRects[0]); in DEF_TEST() 118 REPORTER_ASSERT(reporter, rect1 == mockCanvas.fRects[0]); in DEF_TEST() 144 SkRect rect1 = SkRect::MakeXYWH(SkIntToScalar(0), SkIntToScalar(0), in DEF_TEST() local 156 canvas->drawRect(rect1, paint); in DEF_TEST() 174 REPORTER_ASSERT(reporter, rect1 == mockCanvas.fRects[0]); in DEF_TEST() [all …]
|
D | PathOpsCubicIntersectionTest.cpp | 417 SkDRect rect1, rect2; in CubicIntersection_RandTest() local 418 rect1.setBounds(cubic1); in CubicIntersection_RandTest() 420 bool boundsIntersect = rect1.fLeft <= rect2.fRight && rect2.fLeft <= rect2.fRight in CubicIntersection_RandTest() 421 && rect1.fTop <= rect2.fBottom && rect2.fTop <= rect1.fBottom; in CubicIntersection_RandTest()
|
D | Writer32Test.cpp | 194 const SkRect rect1 = SkRect::MakeXYWH(1, 2, 3, 4); in testOverwriteT() local 202 writer->writeRect(rect1); in testOverwriteT() 210 REPORTER_ASSERT(reporter, writer->readTAt<SkRect>(padding + sizeof(uint32_t)) == rect1); in testOverwriteT()
|
/external/pdfium/fpdfsdk/src/formfiller/ |
D | FFL_Utils.cpp | 10 CPDF_Rect CFFL_Utils::MaxRect(const CPDF_Rect & rect1,const CPDF_Rect & rect2) in MaxRect() argument 14 rcRet.left = FFL_MIN(rect1.left,rect2.left); in MaxRect() 15 rcRet.bottom = FFL_MIN(rect1.bottom,rect2.bottom); in MaxRect() 16 rcRet.right = FFL_MAX(rect1.right,rect2.right); in MaxRect() 17 rcRet.top = FFL_MAX(rect1.top,rect2.top); in MaxRect()
|
/external/fonttools/Lib/fontTools/misc/ |
D | arrayTools.py | 86 def sectRect(rect1, rect2): argument 91 (xMin1, yMin1, xMax1, yMax1) = rect1 99 def unionRect(rect1, rect2): argument 104 (xMin1, yMin1, xMax1, yMax1) = rect1 115 def intRect(rect1): argument 119 (xMin, yMin, xMax, yMax) = rect1
|
/external/pdfium/core/src/fxcrt/ |
D | fx_basic_coords.cpp | 159 CFX_FloatRect rect1 = *this; in GetOutterRect() local 161 rect.left = (int)FXSYS_floor(rect1.left); in GetOutterRect() 162 rect.right = (int)FXSYS_ceil(rect1.right); in GetOutterRect() 163 rect.top = (int)FXSYS_floor(rect1.bottom); in GetOutterRect() 164 rect.bottom = (int)FXSYS_ceil(rect1.top); in GetOutterRect() 170 CFX_FloatRect rect1 = *this; in GetInnerRect() local 172 rect.left = (int)FXSYS_ceil(rect1.left); in GetInnerRect() 173 rect.right = (int)FXSYS_floor(rect1.right); in GetInnerRect() 174 rect.top = (int)FXSYS_ceil(rect1.bottom); in GetInnerRect() 175 rect.bottom = (int)FXSYS_floor(rect1.top); in GetInnerRect() [all …]
|
/external/skia/src/core/ |
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) { in get_overlap() argument 460 return SkMax32(0, SkMin32(rect1.fRight, rect2.fRight) - SkMax32(rect1.fLeft, rect2.fLeft)) * in get_overlap() 461 SkMax32(0, SkMin32(rect1.fBottom, rect2.fBottom) - SkMax32(rect1.fTop, rect2.fTop)); in get_overlap() 469 static inline uint32_t get_area_increase(const SkIRect& rect1, SkIRect rect2) { in get_area_increase() argument 470 join_no_empty_check(rect1, &rect2); in get_area_increase() 471 return get_area(rect2) - get_area(rect1); in get_area_increase()
|
/external/chromium_org/chrome/browser/resources/pdf/ |
D | viewport.js | 11 function getIntersectionArea(rect1, rect2) { argument 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/ |
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) { in get_overlap() argument 467 return SkMax32(0, SkMin32(rect1.fRight, rect2.fRight) - SkMax32(rect1.fLeft, rect2.fLeft)) * in get_overlap() 468 SkMax32(0, SkMin32(rect1.fBottom, rect2.fBottom) - SkMax32(rect1.fTop, rect2.fTop)); in get_overlap() 476 static inline uint32_t get_area_increase(const SkIRect& rect1, SkIRect rect2) { in get_area_increase() argument 477 join_no_empty_check(rect1, &rect2); in get_area_increase() 478 return get_area(rect2) - get_area(rect1); in get_area_increase()
|
/external/chromium_org/third_party/WebKit/Source/web/resources/ |
D | pickerCommon.js | 79 Rectangle.intersection = function(rect1, rect2) { argument 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/opencv/cv/src/ |
D | cvgeometry.cpp | 45 cvMaxRect( const CvRect* rect1, const CvRect* rect2 ) in cvMaxRect() argument 47 if( rect1 && rect2 ) in cvMaxRect() 52 max_rect.x = a = rect1->x; in cvMaxRect() 57 max_rect.width = a += rect1->width; in cvMaxRect() 64 max_rect.y = a = rect1->y; in cvMaxRect() 69 max_rect.height = a += rect1->height; in cvMaxRect() 77 else if( rect1 ) in cvMaxRect() 78 return *rect1; in cvMaxRect()
|
/external/skia/gm/ |
D | modecolorfilters.cpp | 48 SkRect rect1 = SkRect::MakeXYWH(SkIntToScalar(checkSize), SkIntToScalar(checkSize), in make_bg_shader() local 50 canvas.drawRect(rect1, paint); in make_bg_shader()
|
/external/chromium_org/third_party/skia/gm/ |
D | modecolorfilters.cpp | 48 SkRect rect1 = SkRect::MakeXYWH(SkIntToScalar(checkSize), SkIntToScalar(checkSize), in make_bg_shader() local 50 canvas.drawRect(rect1, paint); in make_bg_shader()
|
/external/qemu/android/skin/ |
D | region.c | 1249 SkinRect rect1, rect2; in _expectCompare() local 1254 skin_region_get_bounds( r, &rect1 ); in _expectCompare() 1256 if ( !skin_rect_equals( &rect1, &rect2 ) ) { in _expectCompare() 1258 rect1.pos.x, rect1.pos.y, in _expectCompare() 1259 rect1.pos.x + rect1.size.w, rect1.pos.y + rect1.size.h, in _expectCompare()
|
/external/pdfium/fpdfsdk/include/formfiller/ |
D | FFL_Utils.h | 15 static CPDF_Rect MaxRect(const CPDF_Rect & rect1,const CPDF_Rect & rect2);
|
/external/chromium_org/ash/wm/maximize_mode/ |
D | maximize_mode_window_manager_unittest.cc | 156 gfx::Rect rect1(10, 10, 200, 50); in TEST_F() local 161 scoped_ptr<aura::Window> w1(CreateWindow(ui::wm::WINDOW_TYPE_NORMAL, rect1)); in TEST_F() 173 EXPECT_EQ(rect1.ToString(), w1->bounds().ToString()); in TEST_F() 206 EXPECT_EQ(rect1.ToString(), w1->bounds().ToString()); in TEST_F() 282 gfx::Rect rect1(10, 10, 200, 50); in TEST_F() local 287 scoped_ptr<aura::Window> w1(CreateWindow(ui::wm::WINDOW_TYPE_NORMAL, rect1)); in TEST_F() 329 EXPECT_EQ(rect1.ToString(), w1->bounds().ToString()); in TEST_F() 486 gfx::Rect rect1(10, 10, 200, 50); in TEST_F() local 492 CreateWindow(ui::wm::WINDOW_TYPE_NORMAL, rect1)); in TEST_F() 516 gfx::Rect rect1(10, 10, 200, 50); in TEST_F() local [all …]
|
/external/pdfium/fpdfsdk/include/pdfwindow/ |
D | PWL_Utils.h | 104 static FX_BOOL IntersectRect(const CPDF_Rect& rect1, const CPDF_Rect& rect2); 111 static CPDF_Rect MaxRect(const CPDF_Rect & rect1,const CPDF_Rect & rect2);
|
/external/pdfium/fpdfsdk/src/pdfwindow/ |
D | PWL_Utils.cpp | 72 CPDF_Rect CPWL_Utils::MaxRect(const CPDF_Rect & rect1,const CPDF_Rect & rect2) in MaxRect() argument 76 rcRet.left = PWL_MIN(rect1.left,rect2.left); in MaxRect() 77 rcRet.bottom = PWL_MIN(rect1.bottom,rect2.bottom); in MaxRect() 78 rcRet.right = PWL_MAX(rect1.right,rect2.right); in MaxRect() 79 rcRet.top = PWL_MAX(rect1.top,rect2.top); in MaxRect() 96 FX_BOOL CPWL_Utils::IntersectRect(const CPDF_Rect& rect1, const CPDF_Rect& rect2) in IntersectRect() argument 98 FX_FLOAT left = rect1.left > rect2.left ? rect1.left : rect2.left; in IntersectRect() 99 FX_FLOAT right = rect1.right < rect2.right ? rect1.right : rect2.right; in IntersectRect() 100 FX_FLOAT bottom = rect1.bottom > rect2.bottom ? rect1.bottom : rect2.bottom; in IntersectRect() 101 FX_FLOAT top = rect1.top < rect2.top ? rect1.top : rect2.top; in IntersectRect()
|