/external/skia/tests/ |
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...] |
TileGridTest.cpp | 69 SkRect rect2 = SkRect::MakeXYWH(SkIntToScalar(11), SkIntToScalar(11), local 74 canvas->drawRect(rect2, paint); 105 REPORTER_ASSERT(reporter, rect2 == mockCanvas.fRects[1]); 114 REPORTER_ASSERT(reporter, rect2 == mockCanvas.fRects[0]); 139 REPORTER_ASSERT(reporter, rect2 == mockCanvas.fRects[0]); 147 REPORTER_ASSERT(reporter, rect2 == mockCanvas.fRects[0]); 163 SkRect rect2 = SkRect::MakeXYWH(SkIntToScalar(12), SkIntToScalar(12), local 171 canvas->drawRect(rect2, paint); 201 REPORTER_ASSERT(reporter, rect2 == mockCanvas.fRects[1]); 212 REPORTER_ASSERT(reporter, rect2 == mockCanvas.fRects[0]) [all...] |
PathOpsCubicIntersectionTest.cpp | 387 SkDRect rect1, rect2; local 389 rect2.setBounds(cubic2); 390 bool boundsIntersect = rect1.fLeft <= rect2.fRight && rect2.fLeft <= rect2.fRight 391 && rect1.fTop <= rect2.fBottom && rect2.fTop <= rect1.fBottom;
|
PictureTest.cpp | 458 SkRect rect2 = SkRect::MakeXYWH(SkIntToScalar(7), SkIntToScalar(7), local 467 path.addOval(rect2);
|
ClipStackTest.cpp | 397 SkRect rect2 = SkRect::MakeXYWH(50, 50, 100, 100); 442 stack.clipDevRect(rect2, SkRegion::kIntersect_Op, false); 462 stack.clipDevRect(rect2, SkRegion::kIntersect_Op, false); [all...] |
/frameworks/base/core/tests/coretests/src/android/view/ |
FocusFinderTest.java | 111 final Rect rect2 = new Rect(rect1); local 114 rect2.offset(0, rect1.height() - 1); 115 assertBeamsOverlap(View.FOCUS_LEFT, rect1, rect2); 116 assertBeamsOverlap(View.FOCUS_RIGHT, rect1, rect2); 119 rect2.offset(0, 1); 120 assertBeamsOverlap(View.FOCUS_LEFT, rect1, rect2); 121 assertBeamsOverlap(View.FOCUS_RIGHT, rect1, rect2); 124 rect2.offset(0, 1); 125 assertBeamsDontOverlap(View.FOCUS_LEFT, rect1, rect2); 126 assertBeamsDontOverlap(View.FOCUS_RIGHT, rect1, rect2); 148 final Rect rect2 = new Rect(rect1); local [all...] |
/frameworks/base/core/java/android/view/ |
FocusFinderHelper.java | 36 public boolean isBetterCandidate(int direction, Rect source, Rect rect1, Rect rect2) { 37 return mFocusFinder.isBetterCandidate(direction, source, rect1, rect2); 40 public boolean beamBeats(int direction, Rect source, Rect rect1, Rect rect2) { 41 return mFocusFinder.beamBeats(direction, source, rect1, rect2); 48 public boolean beamsOverlap(int direction, Rect rect1, Rect rect2) { 49 return mFocusFinder.beamsOverlap(direction, rect1, rect2);
|
FocusFinder.java | 270 * Is rect1 a better candidate than rect2 for a focus search in a particular 276 * @param rect2 The current best candidate. 279 boolean isBetterCandidate(int direction, Rect source, Rect rect1, Rect rect2) { 287 // we know that rect1 is a candidate.. if rect2 is not a candidate, 289 if (!isCandidate(source, rect2, direction)) { 294 if (beamBeats(direction, source, rect1, rect2)) { 298 // if rect2 is better, then rect1 cant' be :) 299 if (beamBeats(direction, source, rect2, rect1)) { 308 majorAxisDistance(direction, source, rect2), 309 minorAxisDistance(direction, source, rect2))); [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
RegionTest.java | 219 Rect rect2 = new Rect(0, 0, 20, 20); local 227 mRegion.set(rect2); 234 mRegion.set(rect2); 242 mRegion.set(rect2); 250 mRegion.set(rect2); 318 Rect rect2 = new Rect(5, 6, 7, 8); local 319 assertFalse(mRegion.getBounds(rect2)); 325 Rect rect2 = new Rect(0, 0, 20, 20); local 331 assertDifferenceOp1(rect1, rect2, rect3, rect4, rect5); 332 assertIntersectOp1(rect1, rect2, rect3, rect4, rect5) 549 Rect rect2 = new Rect(0, 0, 20, 20); local 990 Rect rect2 = new Rect(0, 0, 20, 20); local 1474 Rect rect2 = new Rect(10, 10, 30, 30); local 1485 Rect rect2 = new Rect(10, 10, 30, 30); local 1527 Rect rect2 = new Rect(40, 40, 60, 60); local [all...] |
RectTest.java | 92 Rect rect2; local 95 rect2 = new Rect(5, 5, 15, 15); 96 assertTrue(Rect.intersects(rect1, rect2)); 99 rect2 = new Rect(15, 15, 25, 25); 100 assertFalse(Rect.intersects(rect1, rect2)); 123 Rect rect2 = new Rect(5, 5, 15, 15); local 127 assertTrue(mRect.setIntersect(rect1, rect2)); 135 assertTrue(mRect.setIntersect(rect1, rect2)); 145 // Both rect1 and rect2 are not empty. 175 // rect1 is empty, update to rect2 [all...] |
YuvImageTest.java | 254 // Compress rect1 in testBitmap and rect2 in image. 257 Rect rect1, Rect rect2) { 260 boolean sameRect = rect1.equals(rect2) ? true : false; 262 Rect actualRect = new Rect(rect2);
|
/external/skia/gm/ |
thinstrokedrects.cpp | 36 static const SkRect rect2 = { 0, 0, 20, 20 }; variable 63 canvas->drawRect(rect2, paint);
|
/external/qemu/distrib/sdl-1.2.15/src/video/symbian/EKA1/ |
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/skia/src/core/ |
SkRTree.cpp | 13 static inline uint32_t get_overlap(const SkIRect& rect1, const SkIRect& rect2); 15 static inline uint32_t get_overlap_increase(const SkIRect& rect1, const SkIRect& rect2, 17 static inline uint32_t get_area_increase(const SkIRect& rect1, SkIRect rect2); 451 static inline uint32_t get_overlap(const SkIRect& rect1, const SkIRect& rect2) { 453 return SkMax32(0, SkMin32(rect1.fRight, rect2.fRight) - SkMax32(rect1.fLeft, rect2.fLeft)) * 454 SkMax32(0, SkMin32(rect1.fBottom, rect2.fBottom) - SkMax32(rect1.fTop, rect2.fTop)); 462 static inline uint32_t get_overlap_increase(const SkIRect& rect1, const SkIRect& rect2, 465 return get_overlap(expandBy, rect2) - get_overlap(rect1, rect2) [all...] |
/external/skia/src/core/ |
SkRTree.cpp | 13 static inline uint32_t get_overlap(const SkIRect& rect1, const SkIRect& rect2); 15 static inline uint32_t get_overlap_increase(const SkIRect& rect1, const SkIRect& rect2, 17 static inline uint32_t get_area_increase(const SkIRect& rect1, SkIRect rect2); 451 static inline uint32_t get_overlap(const SkIRect& rect1, const SkIRect& rect2) { 453 return SkMax32(0, SkMin32(rect1.fRight, rect2.fRight) - SkMax32(rect1.fLeft, rect2.fLeft)) * 454 SkMax32(0, SkMin32(rect1.fBottom, rect2.fBottom) - SkMax32(rect1.fTop, rect2.fTop)); 462 static inline uint32_t get_overlap_increase(const SkIRect& rect1, const SkIRect& rect2, 465 return get_overlap(expandBy, rect2) - get_overlap(rect1, rect2) [all...] |
/external/opencv/cv/src/ |
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;
|
/external/chromium_org/third_party/WebKit/Source/core/Resources/pagepopups/ |
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);
|
/cts/tests/tests/widget/src/android/widget/cts/ |
FrameLayoutTest.java | 120 Rect rect2 = newForeground.getBounds(); local 122 assertEquals(foreground.getIntrinsicHeight(), rect2.bottom - rect2.top); 123 assertEquals(foreground.getIntrinsicWidth(), rect2.right - rect2.left);
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
DrawableTest.java | 86 Rect rect2 = mockDrawable.copyBounds(); local 89 assertEquals(100, rect2.bottom); 90 assertEquals(10, rect2.left); 91 assertEquals(100, rect2.right); 92 assertEquals(10, rect2.top);
|
/external/qemu/android/skin/ |
region.c | 1249 SkinRect rect1, rect2; local 1255 skin_box_to_rect( (SkinBox*)boxes, &rect2 ); 1256 if ( !skin_rect_equals( &rect1, &rect2 ) ) { 1260 rect2.pos.x, rect2.pos.y, 1261 rect2.pos.x + rect2.size.w, rect2.pos.y + rect2.size.h ); [all...] |
/cts/tests/uiautomator/src/com/android/cts/uiautomatortest/ |
CtsUiAutomatorTest.java | 710 Rect rect2 = getObjectByText("Button 2").getVisibleBounds(); local 714 rect1.left < rect2.left && rect2.right < rect3.right); 716 rect1.top == rect2.top && rect2.bottom == rect3.bottom); [all...] |
/frameworks/uiautomator/tests/CtsUiAutomatorTest/src/com/android/uiautomator/tests/cts/ |
CtsUiAutomatorTest.java | 684 Rect rect2 = getObjectByText("Button 2").getVisibleBounds(); local 688 rect1.left < rect2.left && rect2.right < rect3.right); 690 rect1.top == rect2.top && rect2.bottom == rect3.bottom); [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
GcSnapshot.java | 290 RectF rect2 = new RectF(); local 291 mapRect(matrix, rect2, layerBounds); 293 rect2.round(mLayerBounds);
|
/hardware/samsung_slsi/exynos5/include/ |
ExynosCamera.h | 790 void m_secRect2SecRect2(ExynosRect *rect, ExynosRect2 *rect2); 791 void m_secRect22SecRect(ExynosRect2 *rect2, ExynosRect *rect);
|
/external/chromium_org/chrome_frame/test/ |
infobar_unittests.cc | 37 ACTION_P4(RespondToNcCalcSize, result, rect1, rect2, rect3) { 39 reinterpret_cast<RECT*>(arg1)[1] = rect2;
|