HomeSort by relevance Sort by last modified time
    Searched refs:rect2 (Results 1 - 25 of 71) sorted by null

1 2 3

  /external/skia/tests/
PathOpsDRectTest.cpp 46 SkDRect rect, rect2; local
53 rect2.setBounds(quad);
54 REPORTER_ASSERT(reporter, rect.intersects(rect2));
56 SkDPoint leftTop = {rect2.fLeft, rect2.fTop};
58 SkDPoint rightBottom = {rect2.fRight, rect2.fBottom};
67 rect2.setBounds(cubic);
68 REPORTER_ASSERT(reporter, rect.intersects(rect2));
70 SkDPoint leftTop = {rect2.fLeft, rect2.fTop}
    [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...]
  /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...]
  /hardware/qcom/display/msm8998/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...]
  /hardware/qcom/display/sdm845/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/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 448 * Is rect1 a better candidate than rect2 for a focus search in a particular
454 * @param rect2 The current best candidate.
457 boolean isBetterCandidate(int direction, Rect source, Rect rect1, Rect rect2) {
465 // we know that rect1 is a candidate.. if rect2 is not a candidate,
467 if (!isCandidate(source, rect2, direction)) {
472 if (beamBeats(direction, source, rect1, rect2)) {
476 // if rect2 is better, then rect1 cant' be :)
477 if (beamBeats(direction, source, rect2, rect1)) {
486 majorAxisDistance(direction, source, rect2),
487 minorAxisDistance(direction, source, rect2)));
    [all...]
  /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/msm8998/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/sdm845/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);
  /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);
  /cts/tests/tests/graphics/src/android/graphics/cts/
RegionTest.java 230 Rect rect2 = new Rect(0, 0, 20, 20); local
236 mRegion.set(rect2);
243 mRegion.set(rect2);
251 mRegion.set(rect2);
259 mRegion.set(rect2);
322 Rect rect2 = new Rect(5, 6, 7, 8); local
323 assertFalse(mRegion.getBounds(rect2));
329 Rect rect2 = new Rect(0, 0, 20, 20); local
335 verifyDifferenceOp1(rect1, rect2, rect3, rect4, rect5);
336 verifyIntersectOp1(rect1, rect2, rect3, rect4, rect5)
542 Rect rect2 = new Rect(0, 0, 20, 20); local
969 Rect rect2 = new Rect(0, 0, 20, 20); local
1437 Rect rect2 = new Rect(10, 10, 30, 30); local
1448 Rect rect2 = new Rect(10, 10, 30, 30); local
1510 Rect rect2 = new Rect(40, 40, 60, 60); local
    [all...]
  /external/skia/gm/
clip_strokerect.cpp 54 SkRect rect2 = SkRect::MakeXYWH(20, 120, 100, 19); variable
57 canvas->clipRect(rect2, true);
63 canvas->drawRect(rect2, p);
clipdrawdraw.cpp 47 const SkRect rect2 = SkRect::MakeLTRB(207.5f, 179.499f, 530.5f, 429.5f); local
50 Draw(canvas, rect2);
thinstrokedrects.cpp 36 constexpr SkRect rect2 = { 0, 0, 20, 20 }; variable
63 canvas->drawRect(rect2, paint);
  /hardware/qcom/display/msm8084/libqdutils/
cb_utils.cpp 32 void getUnion(hwc_rect_t& rect1,hwc_rect_t& rect2, hwc_rect_t& irect) {
34 irect.left = min(rect1.left, rect2.left);
35 irect.top = min(rect1.top, rect2.top);
36 irect.right = max(rect1.right, rect2.right);
37 irect.bottom = max(rect1.bottom, rect2.bottom);
  /hardware/qcom/display/msm8226/libqdutils/
cb_utils.cpp 32 void getUnion(hwc_rect_t& rect1,hwc_rect_t& rect2, hwc_rect_t& irect) {
34 irect.left = min(rect1.left, rect2.left);
35 irect.top = min(rect1.top, rect2.top);
36 irect.right = max(rect1.right, rect2.right);
37 irect.bottom = max(rect1.bottom, rect2.bottom);
  /hardware/qcom/display/msm8994/libqdutils/
cb_utils.cpp 32 void getUnion(hwc_rect_t& rect1,hwc_rect_t& rect2, hwc_rect_t& irect) {
34 irect.left = min(rect1.left, rect2.left);
35 irect.top = min(rect1.top, rect2.top);
36 irect.right = max(rect1.right, rect2.right);
37 irect.bottom = max(rect1.bottom, rect2.bottom);
  /hardware/qcom/display/msm8909/libqdutils/
cb_utils.cpp 32 void getUnion(hwc_rect_t& rect1,hwc_rect_t& rect2, hwc_rect_t& irect) {
34 irect.left = min(rect1.left, rect2.left);
35 irect.top = min(rect1.top, rect2.top);
36 irect.right = max(rect1.right, rect2.right);
37 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...]
  /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
  /hardware/qcom/display/msm8226/libhwcomposer/
hwc_utils.cpp     [all...]
  /external/libmojo/mojo/public/cpp/bindings/tests/
type_conversion_unittest.cc 150 RectPtr rect2(Rect::From(rr));
151 EXPECT_EQ(rect->x, rect2->x);
152 EXPECT_EQ(rect->y, rect2->y);
153 EXPECT_EQ(rect->width, rect2->width);
154 EXPECT_EQ(rect->height, rect2->height);
  /external/pdfium/xfa/fxbarcode/oned/
BC_OnedUPCAWriter.cpp 169 CFX_FloatRect rect2(0.0, (FX_FLOAT)(m_Height - iTextHeight),
172 matr2.TransformRect(rect2);
173 re = rect2.GetOuterRect();
214 FX_RECT rect2(0, 0, (int)strWidth, iTextHeight);
215 ge.FillRect(&rect2, m_backgroundColor);
  /frameworks/base/services/core/java/com/android/server/wm/
TaskSnapshotController.java 231 private Rect minRect(Rect rect1, Rect rect2) {
232 return new Rect(Math.min(rect1.left, rect2.left),
233 Math.min(rect1.top, rect2.top),
234 Math.min(rect1.right, rect2.right),
235 Math.min(rect1.bottom, rect2.bottom));

Completed in 1799 milliseconds

1 2 3