Home
last modified time | relevance | path

Searched refs:rect2 (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/view/
DFocusFinderTest.java112 final Rect rect2 = new Rect(rect1); in testOverlapBeamsRightLeftUpToEdge() local
115 rect2.offset(0, rect1.height() - 1); in testOverlapBeamsRightLeftUpToEdge()
116 assertBeamsOverlap(View.FOCUS_LEFT, rect1, rect2); in testOverlapBeamsRightLeftUpToEdge()
117 assertBeamsOverlap(View.FOCUS_RIGHT, rect1, rect2); in testOverlapBeamsRightLeftUpToEdge()
120 rect2.offset(0, 1); in testOverlapBeamsRightLeftUpToEdge()
121 assertBeamsDontOverlap(View.FOCUS_LEFT, rect1, rect2); in testOverlapBeamsRightLeftUpToEdge()
122 assertBeamsDontOverlap(View.FOCUS_RIGHT, rect1, rect2); in testOverlapBeamsRightLeftUpToEdge()
125 rect2.offset(0, 1); in testOverlapBeamsRightLeftUpToEdge()
126 assertBeamsDontOverlap(View.FOCUS_LEFT, rect1, rect2); in testOverlapBeamsRightLeftUpToEdge()
127 assertBeamsDontOverlap(View.FOCUS_RIGHT, rect1, rect2); in testOverlapBeamsRightLeftUpToEdge()
[all …]
/frameworks/base/core/java/android/view/
DFocusFinderHelper.java36 public boolean isBetterCandidate(int direction, Rect source, Rect rect1, Rect rect2) { in isBetterCandidate() argument
37 return mFocusFinder.isBetterCandidate(direction, source, rect1, rect2); in isBetterCandidate()
40 public boolean beamBeats(int direction, Rect source, Rect rect1, Rect rect2) { in beamBeats() argument
41 return mFocusFinder.beamBeats(direction, source, rect1, rect2); in beamBeats()
48 public boolean beamsOverlap(int direction, Rect rect1, Rect rect2) { in beamsOverlap() argument
49 return mFocusFinder.beamsOverlap(direction, rect1, rect2); in beamsOverlap()
DFocusFinder.java457 boolean isBetterCandidate(int direction, Rect source, Rect rect1, Rect rect2) { in isBetterCandidate() argument
467 if (!isCandidate(source, rect2, direction)) { in isBetterCandidate()
472 if (beamBeats(direction, source, rect1, rect2)) { in isBetterCandidate()
477 if (beamBeats(direction, source, rect2, rect1)) { in isBetterCandidate()
486 majorAxisDistance(direction, source, rect2), in isBetterCandidate()
487 minorAxisDistance(direction, source, rect2))); in isBetterCandidate()
496 boolean beamBeats(int direction, Rect source, Rect rect1, Rect rect2) { in beamBeats() argument
498 final boolean rect2InSrcBeam = beamsOverlap(direction, source, rect2); in beamBeats()
511 if (!isToDirectionOf(direction, source, rect2)) { in beamBeats()
525 < majorAxisDistanceToFarEdge(direction, source, rect2)); in beamBeats()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
DInsetUtilsTest.java44 final Rect rect2 = new Rect(50, 60, 70, 80); in testAdd() local
45 InsetUtils.addInsets(rect1, rect2); in testAdd()
/frameworks/base/services/core/java/com/android/server/wm/
DTaskSnapshotController.java333 private Rect minRect(Rect rect1, Rect rect2) { in minRect() argument
334 return new Rect(Math.min(rect1.left, rect2.left), in minRect()
335 Math.min(rect1.top, rect2.top), in minRect()
336 Math.min(rect1.right, rect2.right), in minRect()
337 Math.min(rect1.bottom, rect2.bottom)); in minRect()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DGcSnapshot.java292 RectF rect2 = new RectF(); in GcSnapshot() local
293 mapRect(matrix, rect2, layerBounds); in GcSnapshot()
295 rect2.round(mLayerBounds); in GcSnapshot()