/frameworks/base/core/tests/coretests/src/android/view/ |
D | FocusFinderTest.java | 111 final Rect rect2 = new Rect(rect1); in testOverlapBeamsRightLeftUpToEdge() local 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() 119 rect2.offset(0, 1); in testOverlapBeamsRightLeftUpToEdge() 120 assertBeamsOverlap(View.FOCUS_LEFT, rect1, rect2); in testOverlapBeamsRightLeftUpToEdge() 121 assertBeamsOverlap(View.FOCUS_RIGHT, rect1, rect2); in testOverlapBeamsRightLeftUpToEdge() 124 rect2.offset(0, 1); in testOverlapBeamsRightLeftUpToEdge() 125 assertBeamsDontOverlap(View.FOCUS_LEFT, rect1, rect2); in testOverlapBeamsRightLeftUpToEdge() 126 assertBeamsDontOverlap(View.FOCUS_RIGHT, rect1, rect2); 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 | 447 boolean isBetterCandidate(int direction, Rect source, Rect rect1, Rect rect2) { in isBetterCandidate() argument 457 if (!isCandidate(source, rect2, direction)) { in isBetterCandidate() 462 if (beamBeats(direction, source, rect1, rect2)) { in isBetterCandidate() 467 if (beamBeats(direction, source, rect2, rect1)) { in isBetterCandidate() 476 majorAxisDistance(direction, source, rect2), in isBetterCandidate() 477 minorAxisDistance(direction, source, rect2))); in isBetterCandidate() 486 boolean beamBeats(int direction, Rect source, Rect rect1, Rect rect2) { in beamBeats() argument 488 final boolean rect2InSrcBeam = beamsOverlap(direction, source, rect2); in beamBeats() 501 if (!isToDirectionOf(direction, source, rect2)) { in beamBeats() 515 < majorAxisDistanceToFarEdge(direction, source, rect2)); in beamBeats() [all …]
|
/frameworks/support/core-ui/java/android/support/v4/widget/ |
D | FocusStrategy.java | 242 @NonNull Rect source, @NonNull Rect rect1, @NonNull Rect rect2) { in beamBeats() argument 244 final boolean rect2InSrcBeam = beamsOverlap(direction, source, rect2); in beamBeats() 257 if (!isToDirectionOf(direction, source, rect2)) { in beamBeats() 272 < majorAxisDistanceToFarEdge(direction, source, rect2); in beamBeats() 325 @NonNull Rect rect1, @NonNull Rect rect2) { in beamsOverlap() argument 329 return (rect2.bottom >= rect1.top) && (rect2.top <= rect1.bottom); in beamsOverlap() 332 return (rect2.right >= rect1.left) && (rect2.left <= rect1.right); in beamsOverlap()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskSnapshotController.java | 200 private Rect minRect(Rect rect1, Rect rect2) { in minRect() argument 201 return new Rect(Math.min(rect1.left, rect2.left), in minRect() 202 Math.min(rect1.top, rect2.top), in minRect() 203 Math.min(rect1.right, rect2.right), in minRect() 204 Math.min(rect1.bottom, rect2.bottom)); in minRect()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | BridgeWindow.java | 52 public void resized(Rect rect, Rect rect2, Rect rect3, Rect rect4, Rect rect5, Rect rect6, in resized() argument
|
D | BridgeWindowSession.java | 91 int i3, int i4, int i5, Rect rect, Rect rect2, Rect rect3, Rect rect4, Rect rect5, in relayout() argument
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | GcSnapshot.java | 294 RectF rect2 = new RectF(); in GcSnapshot() local 295 mapRect(matrix, rect2, layerBounds); in GcSnapshot() 297 rect2.round(mLayerBounds); in GcSnapshot()
|