Searched refs:rect1 (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/view/ |
D | FocusFinderTest.java | 110 final Rect rect1 = new Rect(0, 0, 20, 20); in testOverlapBeamsRightLeftUpToEdge() local 111 final Rect rect2 = new Rect(rect1); in testOverlapBeamsRightLeftUpToEdge() 114 rect2.offset(0, rect1.height() - 1); in testOverlapBeamsRightLeftUpToEdge() 115 assertBeamsOverlap(View.FOCUS_LEFT, rect1, rect2); in testOverlapBeamsRightLeftUpToEdge() 116 assertBeamsOverlap(View.FOCUS_RIGHT, rect1, rect2); in testOverlapBeamsRightLeftUpToEdge() 120 assertBeamsOverlap(View.FOCUS_LEFT, rect1, rect2); in testOverlapBeamsRightLeftUpToEdge() 121 assertBeamsOverlap(View.FOCUS_RIGHT, rect1, rect2); in testOverlapBeamsRightLeftUpToEdge() 125 assertBeamsDontOverlap(View.FOCUS_LEFT, rect1, rect2); in testOverlapBeamsRightLeftUpToEdge() 126 assertBeamsDontOverlap(View.FOCUS_RIGHT, rect1, rect2); in testOverlapBeamsRightLeftUpToEdge() 129 rect2.set(rect1); in testOverlapBeamsRightLeftUpToEdge() [all …]
|
/frameworks/base/core/java/android/view/ |
D | FocusFinderHelper.java | 36 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()
|
D | FocusFinder.java | 279 boolean isBetterCandidate(int direction, Rect source, Rect rect1, Rect rect2) { in isBetterCandidate() argument 283 if (!isCandidate(source, rect1, direction)) { in isBetterCandidate() 294 if (beamBeats(direction, source, rect1, rect2)) { in isBetterCandidate() 299 if (beamBeats(direction, source, rect2, rect1)) { in isBetterCandidate() 305 majorAxisDistance(direction, source, rect1), in isBetterCandidate() 306 minorAxisDistance(direction, source, rect1)) in isBetterCandidate() 318 boolean beamBeats(int direction, Rect source, Rect rect1, Rect rect2) { in beamBeats() argument 319 final boolean rect1InSrcBeam = beamsOverlap(direction, source, rect1); in beamBeats() 346 return (majorAxisDistance(direction, source, rect1) in beamBeats() 395 boolean beamsOverlap(int direction, Rect rect1, Rect rect2) { in beamsOverlap() argument [all …]
|