Searched refs:rect1 (Results 1 – 4 of 4) 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 | 283 boolean isBetterCandidate(int direction, Rect source, Rect rect1, Rect rect2) { in isBetterCandidate() argument 287 if (!isCandidate(source, rect1, direction)) { in isBetterCandidate() 298 if (beamBeats(direction, source, rect1, rect2)) { in isBetterCandidate() 303 if (beamBeats(direction, source, rect2, rect1)) { in isBetterCandidate() 309 majorAxisDistance(direction, source, rect1), in isBetterCandidate() 310 minorAxisDistance(direction, source, rect1)) in isBetterCandidate() 322 boolean beamBeats(int direction, Rect source, Rect rect1, Rect rect2) { in beamBeats() argument 323 final boolean rect1InSrcBeam = beamsOverlap(direction, source, rect1); in beamBeats() 350 return (majorAxisDistance(direction, source, rect1) in beamBeats() 399 boolean beamsOverlap(int direction, Rect rect1, Rect rect2) { in beamsOverlap() argument [all …]
|
/frameworks/support/v4/java/android/support/v4/widget/ |
D | FocusStrategy.java | 241 @NonNull Rect source, @NonNull Rect rect1, @NonNull Rect rect2) { in beamBeats() argument 242 final boolean rect1InSrcBeam = beamsOverlap(direction, source, rect1); in beamBeats() 270 return majorAxisDistance(direction, source, rect1) in beamBeats() 324 @NonNull Rect rect1, @NonNull Rect rect2) { in beamsOverlap() argument 328 return (rect2.bottom >= rect1.top) && (rect2.top <= rect1.bottom); in beamsOverlap() 331 return (rect2.right >= rect1.left) && (rect2.left <= rect1.right); in beamsOverlap()
|