/external/skia/tests/ |
PathOpsDRectTest.cpp | 46 SkDRect rect, rect2; local 51 rect2.setBounds(quad); 52 REPORTER_ASSERT(reporter, rect.intersects(rect2)); 54 SkDPoint leftTop = {rect2.fLeft, rect2.fTop}; 56 SkDPoint rightBottom = {rect2.fRight, rect2.fBottom}; 63 rect2.setBounds(cubic); 64 REPORTER_ASSERT(reporter, rect.intersects(rect2)); 66 SkDPoint leftTop = {rect2.fLeft, rect2.fTop} [all...] |
/external/opencv3/modules/imgproc/test/ |
test_intersection.cpp | 102 RotatedRect rect1, rect2; local 110 rect2.center.x = 10; 111 rect2.center.y = 10; 112 rect2.size.width = 2; 113 rect2.size.height = 2; 114 rect2.angle = 34.0f; 118 int ret = rotatedRectangleIntersection(rect1, rect2, vertices); 128 RotatedRect rect1, rect2; local 136 rect2.center.x = 1; 137 rect2.center.y = 1 [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 | 274 * Is rect1 a better candidate than rect2 for a focus search in a particular 280 * @param rect2 The current best candidate. 283 boolean isBetterCandidate(int direction, Rect source, Rect rect1, Rect rect2) { 291 // we know that rect1 is a candidate.. if rect2 is not a candidate, 293 if (!isCandidate(source, rect2, direction)) { 298 if (beamBeats(direction, source, rect1, rect2)) { 302 // if rect2 is better, then rect1 cant' be :) 303 if (beamBeats(direction, source, rect2, rect1)) { 312 majorAxisDistance(direction, source, rect2), 313 minorAxisDistance(direction, source, rect2))); [all...] |
/hardware/qcom/display/msm8996/sdm/libs/utils/ |
rect.cpp | 43 bool IsCongruent(const LayerRect &rect1, const LayerRect &rect2) { 44 return ((rect1.left == rect2.left) && 45 (rect1.top == rect2.top) && 46 (rect1.right == rect2.right) && 47 (rect1.bottom == rect2.bottom)); 62 LayerRect Intersection(const LayerRect &rect1, const LayerRect &rect2) { 65 if (!IsValid(rect1) || !IsValid(rect2)) { 69 res.left = std::max(rect1.left, rect2.left); 70 res.top = std::max(rect1.top, rect2.top); 71 res.right = std::min(rect1.right, rect2.right) [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...] |
/external/skia/experimental/c-api-example/ |
skia-c-example.c | 62 sk_rect_t rect2; local 63 rect2.left = 120.0f; 64 rect2.top = 120.0f; 65 rect2.right = 520.0f; 66 rect2.bottom = 360.0f; 67 sk_canvas_draw_oval(canvas, &rect2, fill);
|
c.md | 83 sk_rect_t rect2; 84 rect2.left = 120.0f; 85 rect2.top = 120.0f; 86 rect2.right = 520.0f; 87 rect2.bottom = 360.0f; 88 sk_canvas_draw_oval(canvas, &rect2, fill);
|
/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 1548 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...] |
/external/skia/gm/ |
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);
|
clipdrawdraw.cpp | 45 const SkRect rect2 = SkRect::MakeLTRB(207.5f, 179.499f, 530.5f, 429.5f); local 48 Draw(canvas, rect2);
|
thinstrokedrects.cpp | 36 static const SkRect rect2 = { 0, 0, 20, 20 }; variable 63 canvas->drawRect(rect2, paint);
|
/hardware/qcom/display/msm8996/sdm/include/utils/ |
rect.h | 47 bool IsCongruent(const LayerRect &rect1, const LayerRect &rect2); 50 LayerRect Union(const LayerRect &rect1, const LayerRect &rect2); 51 LayerRect Intersection(const LayerRect &rect1, const LayerRect &rect2); 52 LayerRect Subtract(const LayerRect &rect1, const LayerRect &rect2);
|
/hardware/qcom/display/msm8084/libqdutils/ |
cb_utils.cpp | 31 void getUnion(hwc_rect_t& rect1,hwc_rect_t& rect2, hwc_rect_t& irect) { 33 irect.left = min(rect1.left, rect2.left); 34 irect.top = min(rect1.top, rect2.top); 35 irect.right = max(rect1.right, rect2.right); 36 irect.bottom = max(rect1.bottom, rect2.bottom);
|
/hardware/qcom/display/msm8226/libqdutils/ |
cb_utils.cpp | 31 void getUnion(hwc_rect_t& rect1,hwc_rect_t& rect2, hwc_rect_t& irect) { 33 irect.left = min(rect1.left, rect2.left); 34 irect.top = min(rect1.top, rect2.top); 35 irect.right = max(rect1.right, rect2.right); 36 irect.bottom = max(rect1.bottom, rect2.bottom);
|
/hardware/qcom/display/msm8994/libqdutils/ |
cb_utils.cpp | 31 void getUnion(hwc_rect_t& rect1,hwc_rect_t& rect2, hwc_rect_t& irect) { 33 irect.left = min(rect1.left, rect2.left); 34 irect.top = min(rect1.top, rect2.top); 35 irect.right = max(rect1.right, rect2.right); 36 irect.bottom = max(rect1.bottom, rect2.bottom);
|
/frameworks/support/core-ui/java/android/support/v4/widget/ |
FocusStrategy.java | 238 * @return whether rect1 is a better candidate than rect2 by virtue of 242 @NonNull Rect source, @NonNull Rect rect1, @NonNull Rect rect2) { 244 final boolean rect2InSrcBeam = beamsOverlap(direction, source, rect2); 251 // We know rect1 is in the beam, and rect2 is not. 253 // If rect1 is to the direction of, and rect2 is not, rect1 wins. 255 // source and rect2 is below, then we always prefer the in beam 256 // rect1, since rect2 could be reached by going down. 257 if (!isToDirectionOf(direction, source, rect2)) { 268 // long as rect2 isn't completely closer, rect1 wins, e.g. for 269 // direction down, completely closer means for rect2's top edge t [all...] |
/hardware/qcom/display/msm8909/libqdutils/ |
cb_utils.cpp | 31 void getUnion(hwc_rect_t& rect1,hwc_rect_t& rect2, hwc_rect_t& irect) { 33 irect.left = min(rect1.left, rect2.left); 34 irect.top = min(rect1.top, rect2.top); 35 irect.right = max(rect1.right, rect2.right); 36 irect.bottom = max(rect1.bottom, rect2.bottom);
|
/external/fonttools/Lib/fontTools/misc/ |
arrayTools.py | 86 def sectRect(rect1, rect2): 92 (xMin2, yMin2, xMax2, yMax2) = rect2 99 def unionRect(rect1, rect2): 105 (xMin2, yMin2, xMax2, yMax2) = rect2
|
/frameworks/base/tests/VectorDrawableTest/res/drawable/ |
vector_drawable_linear_progress_bar.xml | 40 android:name="rect2"
|
/external/pdfium/xfa/src/fxbarcode/oned/ |
BC_OnedUPCAWriter.cpp | 161 CFX_FloatRect rect2(0.0, (FX_FLOAT)(m_Height - iTextHeight),
164 matr2.TransformRect(rect2);
165 re = rect2.GetOutterRect();
209 FX_RECT rect2(0, 0, (int)strWidth, iTextHeight);
210 ge.FillRect(&rect2, m_backgroundColor);
|
/external/opencv3/modules/imgproc/src/ |
intersection.cpp | 50 int rotatedRectangleIntersection( const RotatedRect& rect1, const RotatedRect& rect2, OutputArray intersectingRegion ) 60 rect2.points(pts2); 64 // Specical case of rect1 == rect2 182 // Reverse the check - check for vertices from rect2 inside recct1
|
/frameworks/base/core/res/res/drawable/ |
vector_drawable_progress_indeterminate_horizontal.xml | 36 android:name="rect2"
|
/frameworks/base/packages/SystemUI/res/drawable/ |
indeterminate.xml | 40 android:name="rect2"
|