/frameworks/base/core/tests/coretests/src/android/view/ |
D | FocusFinderTest.java | 112 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/ |
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 | 471 boolean isBetterCandidate(int direction, Rect source, Rect rect1, Rect rect2) { in isBetterCandidate() argument 481 if (!isCandidate(source, rect2, direction)) { in isBetterCandidate() 486 if (beamBeats(direction, source, rect1, rect2)) { in isBetterCandidate() 491 if (beamBeats(direction, source, rect2, rect1)) { in isBetterCandidate() 500 majorAxisDistance(direction, source, rect2), in isBetterCandidate() 501 minorAxisDistance(direction, source, rect2))); in isBetterCandidate() 510 boolean beamBeats(int direction, Rect source, Rect rect1, Rect rect2) { in beamBeats() argument 512 final boolean rect2InSrcBeam = beamsOverlap(direction, source, rect2); in beamBeats() 525 if (!isToDirectionOf(direction, source, rect2)) { in beamBeats() 539 < majorAxisDistanceToFarEdge(direction, source, rect2)); in beamBeats() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/stylus/ |
D | HandwritingAreaTrackerTest.java | 78 Rect rect2 = new Rect(100, 100, 200, 200); in updateHandwritingAreaForView_multipleViews() local 81 View view2 = createView(rect2); in updateHandwritingAreaForView_multipleViews() 93 assertThat(viewInfos.get(1).getHandwritingArea()).isEqualTo(rect2); in updateHandwritingAreaForView_multipleViews() 99 Rect rect2 = new Rect(100, 100, 200, 200); in updateHandwritingAreaForView_afterDisableAutoHandwriting() local 102 View view2 = createView(rect2); in updateHandwritingAreaForView_afterDisableAutoHandwriting() 120 assertThat(viewInfos.get(0).getHandwritingArea()).isEqualTo(rect2); in updateHandwritingAreaForView_afterDisableAutoHandwriting() 126 Rect rect2 = new Rect(100, 100, 200, 200); in updateHandwritingAreaForView_removesInactiveView() local 129 View view2 = createView(rect2); in updateHandwritingAreaForView_removesInactiveView() 147 assertThat(viewInfos.get(0).getHandwritingArea()).isEqualTo(rect2); in updateHandwritingAreaForView_removesInactiveView()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/ |
D | InsetUtilsTest.java | 44 final Rect rect2 = new Rect(50, 60, 70, 80); in testAdd() local 45 InsetUtils.addInsets(rect1, rect2); in testAdd()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | DisplayContentTests.java | 2776 final Rect rect2 = new Rect(10, 10, 20, 20); in testKeepClearAreasMultipleWindows() local 2777 w2.setKeepClearAreas(Arrays.asList(rect2), Collections.emptyList()); in testKeepClearAreasMultipleWindows() 2790 assertEquals(new ArraySet(Arrays.asList(rect1, rect2)), in testKeepClearAreasMultipleWindows()
|