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

1 2

  /frameworks/base/core/tests/coretests/src/android/view/
FocusFinderTest.java 110 final Rect rect1 = new Rect(0, 0, 20, 20); local
111 final Rect rect2 = new Rect(rect1);
114 rect2.offset(0, rect1.height() - 1);
115 assertBeamsOverlap(View.FOCUS_LEFT, rect1, rect2);
116 assertBeamsOverlap(View.FOCUS_RIGHT, rect1, rect2);
120 assertBeamsOverlap(View.FOCUS_LEFT, rect1, rect2);
121 assertBeamsOverlap(View.FOCUS_RIGHT, rect1, rect2);
125 assertBeamsDontOverlap(View.FOCUS_LEFT, rect1, rect2);
126 assertBeamsDontOverlap(View.FOCUS_RIGHT, rect1, rect2);
129 rect2.set(rect1);
147 final Rect rect1 = new Rect(0, 0, 20, 20); 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
275 * @param rect1 The candidate rectangle
279 boolean isBetterCandidate(int direction, Rect source, Rect rect1, Rect rect2) {
283 if (!isCandidate(source, rect1, direction)) {
287 // we know that rect1 is a candidate.. if rect2 is not a candidate,
288 // rect1 is better
293 // if rect1 is better by beam, it wins
294 if (beamBeats(direction, source, rect1, rect2)) {
298 // if rect2 is better, then rect1 cant' be :)
299 if (beamBeats(direction, source, rect2, rect1)) {
    [all...]
  /external/skia/tests/
TileGridTest.cpp 64 SkRect rect1 = SkRect::MakeXYWH(SkIntToScalar(0), SkIntToScalar(0), local
70 canvas->drawRect(rect1, paint);
84 REPORTER_ASSERT(reporter, rect1 == mockCanvas.fRects[0]);
92 REPORTER_ASSERT(reporter, rect1 == mockCanvas.fRects[0]);
101 REPORTER_ASSERT(reporter, rect1 == mockCanvas.fRects[0]);
120 REPORTER_ASSERT(reporter, rect1 == mockCanvas.fRects[0]);
128 REPORTER_ASSERT(reporter, rect1 == mockCanvas.fRects[0]);
157 SkRect rect1 = SkRect::MakeXYWH(SkIntToScalar(0), SkIntToScalar(0), local
167 canvas->drawRect(rect1, paint);
189 REPORTER_ASSERT(reporter, rect1 == mockCanvas.fRects[0])
    [all...]
PathOpsCubicIntersectionTest.cpp 414 SkDRect rect1, rect2; local
415 rect1.setBounds(cubic1);
417 bool boundsIntersect = rect1.fLeft <= rect2.fRight && rect2.fLeft <= rect2.fRight
418 && rect1.fTop <= rect2.fBottom && rect2.fTop <= rect1.fBottom;
PictureTest.cpp 431 SkRect rect1 = SkRect::MakeXYWH(SkIntToScalar(4), SkIntToScalar(4), local
439 invPath.addOval(rect1);
  /cts/tests/tests/graphics/src/android/graphics/cts/
RegionTest.java 218 Rect rect1 = new Rect(); local
230 assertTrue(mRegion.union(rect1));
313 Rect rect1 = new Rect(1, 2, 3, 4); local
314 mRegion = new Region(rect1);
315 assertTrue(mRegion.getBounds(rect1));
324 Rect rect1 = new Rect(); local
330 assertNullRegionOp1(rect1);
331 assertDifferenceOp1(rect1, rect2, rect3, rect4, rect5);
332 assertIntersectOp1(rect1, rect2, rect3, rect4, rect5);
333 assertUnionOp1(rect1, rect2, rect3, rect4, rect5)
989 Rect rect1 = new Rect(); local
1473 Rect rect1 = new Rect(0, 0, 20, 20); local
1484 Rect rect1 = new Rect(0, 0, 20, 20); local
1526 Rect rect1 = new Rect(); local
    [all...]
RectTest.java 91 Rect rect1; local
94 rect1 = new Rect(0, 0, 10, 10);
96 assertTrue(Rect.intersects(rect1, rect2));
98 rect1 = new Rect(0, 0, 10, 10);
100 assertFalse(Rect.intersects(rect1, rect2));
122 Rect rect1 = new Rect(0, 0, 10, 10); 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...]
BitmapRegionDecoderTest.java 319 Rect rect1 = new Rect(i * TILE_SIZE, j * TILE_SIZE, local
321 rect1.intersect(rect);
322 actual = decoder.decodeRegion(rect1, opts);
323 int left = rect1.left / opts.inSampleSize;
324 int top = rect1.top / opts.inSampleSize;
328 int currentWidth = rect1.width() / opts.inSampleSize;
329 int currentHeight = rect1.height() / opts.inSampleSize;
YuvImageTest.java 254 // Compress rect1 in testBitmap and rect2 in image.
257 Rect rect1, Rect rect2) {
260 boolean sameRect = rect1.equals(rect2) ? true : false;
265 Rect expectedRect = sameRect ? actualRect : rect1;
  /external/chromium_org/third_party/skia/src/core/
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) {
460 return SkMax32(0, SkMin32(rect1.fRight, rect2.fRight) - SkMax32(rect1.fLeft, rect2.fLeft)) *
461 SkMax32(0, SkMin32(rect1.fBottom, rect2.fBottom) - SkMax32(rect1.fTop, rect2.fTop));
469 static inline uint32_t get_area_increase(const SkIRect& rect1, SkIRect rect2) {
470 join_no_empty_check(rect1, &rect2);
471 return get_area(rect2) - get_area(rect1);
    [all...]
  /external/skia/src/core/
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) {
460 return SkMax32(0, SkMin32(rect1.fRight, rect2.fRight) - SkMax32(rect1.fLeft, rect2.fLeft)) *
461 SkMax32(0, SkMin32(rect1.fBottom, rect2.fBottom) - SkMax32(rect1.fTop, rect2.fTop));
469 static inline uint32_t get_area_increase(const SkIRect& rect1, SkIRect rect2) {
470 join_no_empty_check(rect1, &rect2);
471 return get_area(rect2) - get_area(rect1);
    [all...]
  /external/chromium/chrome/browser/chromeos/frame/
bubble_window.cc 66 GdkRectangle rect1 = {border_radius, 0, w - 2 * border_radius, h}; local
68 gdk_region_union_with_rect(region, &rect1);
  /external/opencv/cv/src/
cvgeometry.cpp 45 cvMaxRect( const CvRect* rect1, const CvRect* rect2 )
47 if( rect1 && rect2 )
52 max_rect.x = a = rect1->x;
57 max_rect.width = a += rect1->width;
64 max_rect.y = a = rect1->y;
69 max_rect.height = a += rect1->height;
77 else if( rect1 )
78 return *rect1;
  /external/skia/gm/
modecolorfilters.cpp 49 SkRect rect1 = SkRect::MakeXYWH(SkIntToScalar(checkSize), SkIntToScalar(checkSize), local
51 canvas.drawRect(rect1, paint);
  /external/chromium_org/third_party/WebKit/Source/web/resources/
pickerCommon.js 75 * @param {!Rectangle} rect1
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/graphics/src/android/graphics/drawable/cts/
DrawableTest.java 73 Rect rect1 = mockDrawable.copyBounds(); local
76 assertEquals(0, rect1.bottom);
77 assertEquals(0, rect1.left);
78 assertEquals(0, rect1.right);
79 assertEquals(0, rect1.top);
  /external/qemu/android/skin/
region.c 1249 SkinRect rect1, rect2; local
1254 skin_region_get_bounds( r, &rect1 );
1256 if ( !skin_rect_equals( &rect1, &rect2 ) ) {
1258 rect1.pos.x, rect1.pos.y,
1259 rect1.pos.x + rect1.size.w, rect1.pos.y + rect1.size.h,
    [all...]
  /external/chromium_org/chrome_frame/test/
infobar_unittests.cc 37 ACTION_P4(RespondToNcCalcSize, result, rect1, rect2, rect3) {
38 reinterpret_cast<RECT*>(arg1)[0] = rect1;
  /cts/tests/uiautomator/src/com/android/cts/uiautomatortest/
CtsUiAutomatorTest.java 709 Rect rect1 = getObjectByText("Button 1").getVisibleBounds(); local
714 rect1.left < rect2.left && rect2.right < rect3.right);
716 rect1.top == rect2.top && rect2.bottom == rect3.bottom);
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
RenderPreviewManager.java 1642 Rect rect1 = new Rect( local
    [all...]
  /external/chromium/chrome/browser/ui/views/
about_chrome_view.cc 451 gfx::Rect* rect1 = chromium_url_appears_first_ ? local
462 main_label_chunk1_, link1, rect1, &position, text_direction_is_rtl_,
    [all...]
  /external/opencv/cv/include/
cv.h     [all...]
  /cts/suite/cts/deviceTests/browserbench/assets/octane/
pdfjs.js     [all...]
  /prebuilts/devtools/tools/lib/
jcommon-1.0.12.jar 

Completed in 885 milliseconds

1 2