/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 | 150 * Is rect1 a better candidate than rect2 for a focus search in a particular 156 * @param rect2 The current best candidate. 159 boolean isBetterCandidate(int direction, Rect source, Rect rect1, Rect rect2) { 167 // we know that rect1 is a candidate.. if rect2 is not a candidate, 169 if (!isCandidate(source, rect2, direction)) { 174 if (beamBeats(direction, source, rect1, rect2)) { 178 // if rect2 is better, then rect1 cant' be :) 179 if (beamBeats(direction, source, rect2, rect1)) { 188 majorAxisDistance(direction, source, rect2), 189 minorAxisDistance(direction, source, rect2))); [all...] |
/frameworks/base/core/tests/coretests/src/android/view/ |
FocusFinderTest.java | 112 final Rect rect2 = new Rect(rect1); local 115 rect2.offset(0, rect1.height() - 1); 116 assertBeamsOverlap(View.FOCUS_LEFT, rect1, rect2); 117 assertBeamsOverlap(View.FOCUS_RIGHT, rect1, rect2); 120 rect2.offset(0, 1); 121 assertBeamsOverlap(View.FOCUS_LEFT, rect1, rect2); 122 assertBeamsOverlap(View.FOCUS_RIGHT, rect1, rect2); 125 rect2.offset(0, 1); 126 assertBeamsDontOverlap(View.FOCUS_LEFT, rect1, rect2); 127 assertBeamsDontOverlap(View.FOCUS_RIGHT, rect1, rect2); 149 final Rect rect2 = new Rect(rect1); local [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
RegionTest.java | 314 Rect rect2 = new Rect(0, 0, 20, 20); local 322 mRegion.set(rect2); 329 mRegion.set(rect2); 337 mRegion.set(rect2); 345 mRegion.set(rect2); 435 Rect rect2 = new Rect(5, 6, 7, 8); local 436 assertFalse(mRegion.getBounds(rect2)); 447 Rect rect2 = new Rect(0, 0, 20, 20); local 453 assertDifferenceOp1(rect1, rect2, rect3, rect4, rect5); 454 assertIntersectOp1(rect1, rect2, rect3, rect4, rect5) 676 Rect rect2 = new Rect(0, 0, 20, 20); local 1128 Rect rect2 = new Rect(0, 0, 20, 20); local 1638 Rect rect2 = new Rect(10, 10, 30, 30); local 1654 Rect rect2 = new Rect(10, 10, 30, 30); local 1711 Rect rect2 = new Rect(40, 40, 60, 60); local [all...] |
RectTest.java | 134 Rect rect2; local 137 rect2 = new Rect(5, 5, 15, 15); 138 assertTrue(Rect.intersects(rect1, rect2)); 141 rect2 = new Rect(15, 15, 25, 25); 142 assertFalse(Rect.intersects(rect1, rect2)); 180 Rect rect2 = new Rect(5, 5, 15, 15); local 184 assertTrue(mRect.setIntersect(rect1, rect2)); 192 assertTrue(mRect.setIntersect(rect1, rect2)); 207 // Both rect1 and rect2 are not empty. 237 // rect1 is empty, update to rect2 [all...] |
YuvImageTest.java | 241 // Compress rect1 in testBitmap and rect2 in image. 244 Rect rect1, Rect rect2) { 247 boolean sameRect = rect1.equals(rect2) ? true : false; 250 actual = compressDecompress(image, rect2);
|
RectFTest.java | 255 // Both rect1 and rect2 are not empty. 285 // rect1 is empty, update to rect2. 293 // rect2 is empty, nothing changed. 312 // Both rect1 and rect2 are not empty. 345 // rect1 is empty, update to rect2. 354 // rect2 is empty, nothing changed.
|
/external/qemu/distrib/sdl-1.2.12/src/video/epoc/ |
SDL_epocvideo.cpp | 511 SDL_Rect rect2; local 513 rect2.x = currentRect.x; 514 rect2.y = currentRect.y; 515 rect2.w = currentRect.w; 516 rect2.h = currentRect.h; 518 if (rect2.w <= 0 || rect2.h <= 0) /* sanity check */ 522 rect2.y >>= 1; 523 if (!(rect2.h >>= 1)) 524 rect2.h = 1; // always at least 1 pixel height [all...] |
/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...] |
/frameworks/base/awt/org/apache/harmony/awt/gl/ |
MultiRectAreaOp.java | 318 int[] rect2 = src2.rect; local 329 for(int j = 1; j < rect2[0];) { 331 int x21 = rect2[j++]; 332 int y21 = rect2[j++]; 333 int x22 = rect2[j++]; 334 int y22 = rect2[j++];
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
DrawableTest.java | 110 Rect rect2 = mockDrawable.copyBounds(); local 113 assertEquals(100, rect2.bottom); 114 assertEquals(10, rect2.left); 115 assertEquals(100, rect2.right); 116 assertEquals(10, rect2.top);
|
/external/webkit/WebCore/accessibility/ |
AccessibilityRenderObject.cpp | 2228 IntRect rect2 = range.end.absoluteCaretBounds(); local [all...] |