Home
last modified time | relevance | path

Searched refs:rect2 (Results 1 – 25 of 42) sorted by relevance

12

/external/chromium_org/third_party/skia/tests/
DPathOpsDRectTest.cpp43 SkDRect rect, rect2; in DEF_TEST() local
52 rect2.set(line[0]); in DEF_TEST()
53 rect2.add(line[1]); in DEF_TEST()
54 REPORTER_ASSERT(reporter, rect2.fLeft == SkTMin(line[0].fX, line[1].fX)); in DEF_TEST()
55 REPORTER_ASSERT(reporter, rect2.fTop == SkTMin(line[0].fY, line[1].fY)); in DEF_TEST()
56 REPORTER_ASSERT(reporter, rect2.fRight == SkTMax(line[0].fX, line[1].fX)); in DEF_TEST()
57 REPORTER_ASSERT(reporter, rect2.fBottom == SkTMax(line[0].fY, line[1].fY)); in DEF_TEST()
59 REPORTER_ASSERT(reporter, rect.intersects(&rect2)); in DEF_TEST()
73 rect2.setBounds(quad); in DEF_TEST()
74 REPORTER_ASSERT(reporter, rect.intersects(&rect2)); in DEF_TEST()
[all …]
DTileGridTest.cpp60 SkRect rect2 = SkRect::MakeXYWH(SkIntToScalar(11), SkIntToScalar(11), in DEF_TEST() local
67 canvas->drawRect(rect2, paint); in DEF_TEST()
94 REPORTER_ASSERT(reporter, rect2 == mockCanvas.fRects[1]); in DEF_TEST()
102 REPORTER_ASSERT(reporter, rect2 == mockCanvas.fRects[0]); in DEF_TEST()
124 REPORTER_ASSERT(reporter, rect2 == mockCanvas.fRects[0]); in DEF_TEST()
131 REPORTER_ASSERT(reporter, rect2 == mockCanvas.fRects[0]); in DEF_TEST()
146 SkRect rect2 = SkRect::MakeXYWH(SkIntToScalar(12), SkIntToScalar(12), in DEF_TEST() local
156 canvas->drawRect(rect2, paint); in DEF_TEST()
181 REPORTER_ASSERT(reporter, rect2 == mockCanvas.fRects[1]); in DEF_TEST()
191 REPORTER_ASSERT(reporter, rect2 == mockCanvas.fRects[0]); in DEF_TEST()
[all …]
DPathOpsCubicIntersectionTest.cpp417 SkDRect rect1, rect2; in CubicIntersection_RandTest() local
419 rect2.setBounds(cubic2); 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()
/external/skia/tests/
DPathOpsDRectTest.cpp43 SkDRect rect, rect2; in DEF_TEST() local
52 rect2.set(line[0]); in DEF_TEST()
53 rect2.add(line[1]); in DEF_TEST()
54 REPORTER_ASSERT(reporter, rect2.fLeft == SkTMin(line[0].fX, line[1].fX)); in DEF_TEST()
55 REPORTER_ASSERT(reporter, rect2.fTop == SkTMin(line[0].fY, line[1].fY)); in DEF_TEST()
56 REPORTER_ASSERT(reporter, rect2.fRight == SkTMax(line[0].fX, line[1].fX)); in DEF_TEST()
57 REPORTER_ASSERT(reporter, rect2.fBottom == SkTMax(line[0].fY, line[1].fY)); in DEF_TEST()
59 REPORTER_ASSERT(reporter, rect.intersects(&rect2)); in DEF_TEST()
73 rect2.setBounds(quad); in DEF_TEST()
74 REPORTER_ASSERT(reporter, rect.intersects(&rect2)); in DEF_TEST()
[all …]
DTileGridTest.cpp61 SkRect rect2 = SkRect::MakeXYWH(SkIntToScalar(11), SkIntToScalar(11), in DEF_TEST() local
68 canvas->drawRect(rect2, paint); in DEF_TEST()
95 REPORTER_ASSERT(reporter, rect2 == mockCanvas.fRects[1]); in DEF_TEST()
103 REPORTER_ASSERT(reporter, rect2 == mockCanvas.fRects[0]); in DEF_TEST()
125 REPORTER_ASSERT(reporter, rect2 == mockCanvas.fRects[0]); in DEF_TEST()
132 REPORTER_ASSERT(reporter, rect2 == mockCanvas.fRects[0]); in DEF_TEST()
147 SkRect rect2 = SkRect::MakeXYWH(SkIntToScalar(12), SkIntToScalar(12), in DEF_TEST() local
157 canvas->drawRect(rect2, paint); in DEF_TEST()
182 REPORTER_ASSERT(reporter, rect2 == mockCanvas.fRects[1]); in DEF_TEST()
192 REPORTER_ASSERT(reporter, rect2 == mockCanvas.fRects[0]); in DEF_TEST()
[all …]
DPathOpsCubicIntersectionTest.cpp417 SkDRect rect1, rect2; in CubicIntersection_RandTest() local
419 rect2.setBounds(cubic2); 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()
/external/chromium_org/third_party/skia/experimental/Intersection/
DEdgeWalkerRectangles_Test.cpp159 SkRect rect2 = SkRect::MakeXYWH(10, 10, 10, 10); in testSimplifyDiagonal() local
167 path.addRect(rect2, static_cast<SkPath::Direction>(inDir)); in testSimplifyDiagonal()
215 && (bounds[0] == rect2 || bounds[1] == rect2)); in testSimplifyDiagonal()
260 SkRect rect2 = SkRect::MakeXYWH(10, 10, 30, 30); in testSimplifyCoincident() local
265 … bool extend = start[startIndex] == rect2.fLeft && stop[stopIndex] == rect2.fRight; in testSimplifyCoincident()
266 bool edge = start[startIndex] == rect2.fLeft || stop[stopIndex] == rect2.fRight; in testSimplifyCoincident()
270 path.addRect(rect2, static_cast<SkPath::Direction>(inDir)); in testSimplifyCoincident()
277 path.addRect(rect2, static_cast<SkPath::Direction>(inDir)); in testSimplifyCoincident()
284 path.addRect(rect2, static_cast<SkPath::Direction>(inDir)); in testSimplifyCoincident()
291 path.addRect(rect2, static_cast<SkPath::Direction>(inDir)); in testSimplifyCoincident()
[all …]
DCubicIntersection_Test.cpp487 _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.right && rect2.left <= rect2.right
590 && rect1.top <= rect2.bottom && rect2.top <= rect1.bottom;
/external/skia/experimental/Intersection/
DEdgeWalkerRectangles_Test.cpp159 SkRect rect2 = SkRect::MakeXYWH(10, 10, 10, 10); in testSimplifyDiagonal() local
167 path.addRect(rect2, static_cast<SkPath::Direction>(inDir)); in testSimplifyDiagonal()
215 && (bounds[0] == rect2 || bounds[1] == rect2)); in testSimplifyDiagonal()
260 SkRect rect2 = SkRect::MakeXYWH(10, 10, 30, 30); in testSimplifyCoincident() local
265 … bool extend = start[startIndex] == rect2.fLeft && stop[stopIndex] == rect2.fRight; in testSimplifyCoincident()
266 bool edge = start[startIndex] == rect2.fLeft || stop[stopIndex] == rect2.fRight; in testSimplifyCoincident()
270 path.addRect(rect2, static_cast<SkPath::Direction>(inDir)); in testSimplifyCoincident()
277 path.addRect(rect2, static_cast<SkPath::Direction>(inDir)); in testSimplifyCoincident()
284 path.addRect(rect2, static_cast<SkPath::Direction>(inDir)); in testSimplifyCoincident()
291 path.addRect(rect2, static_cast<SkPath::Direction>(inDir)); in testSimplifyCoincident()
[all …]
DCubicIntersection_Test.cpp487 _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.right && rect2.left <= rect2.right
590 && rect1.top <= rect2.bottom && rect2.top <= rect1.bottom;
/external/qemu/distrib/sdl-1.2.15/src/video/symbian/EKA1/
DSDL_epocvideo.cpp789 TRect rect2 = TRect(Private->EPOC_WsWindow.Size()); in EPOC_DirectUpdate() local
791 Private->EPOC_DrawDevice->UpdateRegion(rect2); // Should we update rects parameter area only?? in EPOC_DirectUpdate()
882 SDL_Rect rect2; in DirectDraw() local
883 rect2.x = currentRect.x; in DirectDraw()
884 rect2.y = currentRect.y; in DirectDraw()
885 rect2.w = currentRect.w; in DirectDraw()
886 rect2.h = currentRect.h; in DirectDraw()
888 if (rect2.w <= 0 || rect2.h <= 0) /* sanity check */ in DirectDraw()
894 TInt maxX = Min(screenW - 1, rect2.x + rect2.w - 1); in DirectDraw()
895 TInt maxY = Min(screenH - 1, rect2.y + rect2.h - 1); in DirectDraw()
[all …]
/external/pdfium/fpdfsdk/src/formfiller/
DFFL_Utils.cpp10 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/chromium_org/third_party/skia/gm/
Dclip_strokerect.cpp54 SkRect rect2 = SkRect::MakeXYWH(20, 120, 100, 19); in onDraw() local
57 canvas->clipRect(rect2, SkRegion::kReplace_Op, true); in onDraw()
63 canvas->drawRect(rect2, p); in onDraw()
Dthinstrokedrects.cpp36 static const SkRect rect2 = { 0, 0, 20, 20 }; in onDraw() local
63 canvas->drawRect(rect2, paint); in onDraw()
/external/skia/src/core/
DSkRTree.cpp12 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/
Dviewport.js11 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/
DSkRTree.cpp12 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/
DpickerCommon.js79 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/fonttools/Lib/fontTools/misc/
DarrayTools.py86 def sectRect(rect1, rect2): argument
92 (xMin2, yMin2, xMax2, yMax2) = rect2
99 def unionRect(rect1, rect2): argument
105 (xMin2, yMin2, xMax2, yMax2) = rect2
/external/chromium_org/mojo/public/cpp/bindings/tests/
Dtype_conversion_unittest.cc144 RectPtr rect2(Rect::From(rr)); in TEST() local
145 EXPECT_EQ(rect->x, rect2->x); in TEST()
146 EXPECT_EQ(rect->y, rect2->y); in TEST()
147 EXPECT_EQ(rect->width, rect2->width); in TEST()
148 EXPECT_EQ(rect->height, rect2->height); in TEST()
Dstruct_unittest.cc65 RectPtr rect2; in TEST_F() local
66 Deserialize_(data, &rect2); in TEST_F()
68 CheckRect(*rect2); in TEST_F()
/external/skia/gm/
Dthinstrokedrects.cpp40 static const SkRect rect2 = { 0, 0, 20, 20 }; in onDraw() local
67 canvas->drawRect(rect2, paint); in onDraw()
/external/opencv/cv/src/
Dcvgeometry.cpp45 cvMaxRect( const CvRect* rect1, const CvRect* rect2 ) in cvMaxRect() argument
47 if( rect1 && rect2 ) in cvMaxRect()
53 b = rect2->x; in cvMaxRect()
58 b += rect2->width; in cvMaxRect()
65 b = rect2->y; in cvMaxRect()
70 b += rect2->height; in cvMaxRect()
79 else if( rect2 ) in cvMaxRect()
80 return *rect2; in cvMaxRect()
/external/chromium_org/ash/wm/maximize_mode/
Dmaximize_mode_window_manager_unittest.cc157 gfx::Rect rect2(10, 60, 200, 50); in TEST_F() local
162 scoped_ptr<aura::Window> w2(CreateWindow(ui::wm::WINDOW_TYPE_NORMAL, rect2)); in TEST_F()
174 EXPECT_EQ(rect2.ToString(), w2->bounds().ToString()); in TEST_F()
207 EXPECT_EQ(rect2.ToString(), w2->bounds().ToString()); in TEST_F()
283 gfx::Rect rect2(10, 60, 200, 50); in TEST_F() local
288 scoped_ptr<aura::Window> w2(CreateWindow(ui::wm::WINDOW_TYPE_NORMAL, rect2)); in TEST_F()
330 EXPECT_EQ(rect2.ToString(), w2->bounds().ToString()); in TEST_F()
487 gfx::Rect rect2(10, 60, 200, 50); in TEST_F() local
494 CreateWindow(ui::wm::WINDOW_TYPE_NORMAL, rect2)); in TEST_F()
517 gfx::Rect rect2(10, 60, 200, 50); in TEST_F() local
[all …]
/external/qemu/android/skin/
Dregion.c1249 SkinRect rect1, rect2; in _expectCompare() local
1255 skin_box_to_rect( (SkinBox*)boxes, &rect2 ); in _expectCompare()
1256 if ( !skin_rect_equals( &rect1, &rect2 ) ) { in _expectCompare()
1260 rect2.pos.x, rect2.pos.y, in _expectCompare()
1261 rect2.pos.x + rect2.size.w, rect2.pos.y + rect2.size.h ); in _expectCompare()

12