/aosp14/frameworks/base/core/tests/coretests/src/android/view/ |
H A D | FocusFinderTest.java | 51 final Rect dest = new Rect(src); in testAboveShareEdgeEdgeOkForDirectionUp() 112 final Rect rect2 = new Rect(rect1); in testOverlapBeamsRightLeftUpToEdge() 149 final Rect rect2 = new Rect(rect1); in testOverlapBeamsUpDownUpToEdge() 187 Rect directlyAbove = new Rect(src); in testDirectlyAboveTrumpsAboveLeft() 190 Rect aboveLeft = new Rect(src); in testDirectlyAboveTrumpsAboveLeft() 200 Rect directlyAbove = new Rect(src); in testAboveInBeamTrumpsSlightlyCloserOutOfBeam() 203 Rect aboveLeft = new Rect(src); in testAboveInBeamTrumpsSlightlyCloserOutOfBeam() 220 Rect aboveInBeam = new Rect(src); in testOutOfBeamBeatsInBeamUp() 246 Rect nonCandidate = new Rect(src); in testSomeCandidateBetterThanNonCandidate() 251 Rect candidate = new Rect(src); in testSomeCandidateBetterThanNonCandidate() [all …]
|
H A D | InsetsStateTest.java | 445 Rect one = new Rect(0, 1, 2, 3); in testEquals_samePrivacyIndicator() 446 Rect two = new Rect(4, 5, 6, 7); in testEquals_samePrivacyIndicator() 447 Rect[] bounds = new Rect[] { one, two, one, two }; in testEquals_samePrivacyIndicator() 455 Rect one = new Rect(0, 1, 2, 3); in testEquals_differentPrivacyIndicatorStaticBounds() 456 Rect two = new Rect(4, 5, 6, 7); in testEquals_differentPrivacyIndicatorStaticBounds() 457 Rect three = new Rect(8, 9, 10, 11); in testEquals_differentPrivacyIndicatorStaticBounds() 458 Rect[] boundsOne = new Rect[] { one, two, one, two }; in testEquals_differentPrivacyIndicatorStaticBounds() 462 Rect[] boundsNull = new Rect[4]; in testEquals_differentPrivacyIndicatorStaticBounds() 480 Rect one = new Rect(0, 1, 2, 3); in testEquals_differentPrivacyIndicatorRotation() 481 Rect two = new Rect(4, 5, 6, 7); in testEquals_differentPrivacyIndicatorRotation() [all …]
|
H A D | InsetsSourceTest.java | 30 import android.graphics.Rect; 66 mSource.setFrame(new Rect(0, 0, 500, 100)); in testCalculateInsetsTop() 74 mSource.setFrame(new Rect(0, 400, 500, 500)); in testCalculateInsetsBottom() 82 mSource.setFrame(new Rect(0, 0, 100, 500)); in testCalculateInsetsLeft() 98 mSource.setFrame(new Rect(0, 0, 500, 100)); in testCalculateInsets_overextend() 125 mSource.setFrame(new Rect(0, 0, 500, 100)); in testCalculateInsets_invisible() 134 mSource.setFrame(new Rect(0, 0, 500, 100)); in testCalculateInsets_ignoreVisibility() 143 mSource.setFrame(new Rect(0, 0, 500, 100)); in testCalculateVisibleInsets_default() 150 mSource.setFrame(new Rect(0, 0, 500, 100)); in testCalculateInsets_noIntersection_vertical() 157 mSource.setFrame(new Rect(0, 0, 500, 100)); in testCalculateInsets_zeroWidthIntersection_vertical_start() [all …]
|
H A D | ScrollCaptureSearchResultsTest.java | 32 import android.graphics.Rect; 60 private static final Rect EMPTY_RECT = new Rect(); 275 @NonNull Consumer<Rect> onReady) { in testWithCallbackMultipleReplies() 276 onReady.accept(new Rect(1, 2, 3, 4)); in testWithCallbackMultipleReplies() 299 Rect bounds = new Rect(localVisibleRect); in setupTargetView() 333 private Rect mScrollBounds; 347 Rect b = getScrollBounds(); in onScrollCaptureSearch() 360 CancellationSignal signal, Rect captureArea, Consumer<Rect> onReady) { in onScrollCaptureImageRequest() 377 protected Rect getScrollBounds() { in getScrollBounds() 401 @NonNull Consumer<Rect> onReady) { in onScrollCaptureSearch() [all …]
|
H A D | DisplayCutoutTest.java | 84 Rect safeInsets = new Rect(10, 0, 0, 0); in testExtractBoundsFromList_left() 85 Rect bound = new Rect(0, 80, 10, 120); in testExtractBoundsFromList_left() 92 Rect safeInsets = new Rect(0, 10, 0, 0); in testExtractBoundsFromList_top() 93 Rect bound = new Rect(80, 0, 120, 10); in testExtractBoundsFromList_top() 100 Rect safeInsets = new Rect(0, 0, 10, 0); in testExtractBoundsFromList_right() 101 Rect bound = new Rect(190, 80, 200, 120); in testExtractBoundsFromList_right() 108 Rect safeInsets = new Rect(0, 0, 0, 10); in testExtractBoundsFromList_bottom() 109 Rect bound = new Rect(80, 190, 120, 200); in testExtractBoundsFromList_bottom() 116 Rect safeInsets = new Rect(0, 10, 0, 10); in testExtractBoundsFromList_top_and_bottom() 117 Rect boundTop = new Rect(0, 0, 120, 10); in testExtractBoundsFromList_top_and_bottom() [all …]
|
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/phone/ |
H A D | PhonePipKeepClearAlgorithmTest.java | 183 final Rect pipBounds = new Rect( in adjust_aboveDisplayBounds_onLeftEdge_appliesBottomLeftGravity() 185 final Rect expected = new Rect( in adjust_aboveDisplayBounds_onLeftEdge_appliesBottomLeftGravity() 203 final Rect pipBounds = new Rect( in adjust_belowDisplayBounds_onLeftEdge_appliesBottomLeftGravity() 205 final Rect expected = new Rect( in adjust_belowDisplayBounds_onLeftEdge_appliesBottomLeftGravity() 223 final Rect pipBounds = new Rect( in adjust_aboveDisplayBounds_onRightEdge_appliesBottomRightGravity() 226 final Rect expected = new Rect( in adjust_aboveDisplayBounds_onRightEdge_appliesBottomRightGravity() 245 final Rect pipBounds = new Rect( in adjust_belowDisplayBounds_onRightEdge_appliesBottomRightGravity() 248 final Rect expected = new Rect( in adjust_belowDisplayBounds_onRightEdge_appliesBottomRightGravity() 267 final Rect pipBounds = new Rect( in adjust_whileStashed_aboveDisplayBounds_alignsToBottomInset() 269 final Rect expected = new Rect( in adjust_whileStashed_aboveDisplayBounds_alignsToBottomInset() [all …]
|
/aosp14/frameworks/base/core/tests/coretests/src/android/window/ |
H A D | SnapshotDrawerUtilsTest.java | 161 final Rect contentInsets = new Rect(0, 10, 0, 10); in testCalculateSnapshotCrop() 177 final Rect contentInsets = new Rect(0, 10, 0, 0); in testCalculateSnapshotCrop_navBarLeft() 202 final Rect insets = new Rect(0, 10, 0, 10); in testCalculateSnapshotFrame() 211 final Rect insets = new Rect(10, 10, 0, 0); in testCalculateSnapshotFrame_navBarLeft() 220 final Rect insets = new Rect(0, 10, 0, 10); in testCalculateSnapshotFrame_waterfall() 229 final Rect insets = new Rect(0, 10, 10, 0); in testDrawStatusBarBackground() 241 final Rect insets = new Rect(0, 10, 10, 0); in testDrawStatusBarBackground_nullFrame() 253 final Rect insets = new Rect(0, 10, 10, 0); in testDrawStatusBarBackground_nope() 264 final Rect insets = new Rect(0, 10, 0, 10); in testDrawNavigationBarBackground() 277 final Rect insets = new Rect(10, 10, 0, 0); in testDrawNavigationBarBackground_left() [all …]
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/ |
H A D | PhonePipKeepClearAlgorithm.java | 60 Rect insets = new Rect(); in adjust() 74 Rect pipBounds = new Rect(startingBounds); in adjust() 112 public Rect findUnoccludedPosition(Rect defaultBounds, Set<Rect> restrictedKeepClearAreas, in findUnoccludedPosition() 124 Rect outBounds = new Rect(defaultBounds); in findUnoccludedPosition() 126 Rect tmpRect = new Rect(r); in findUnoccludedPosition() 139 private static boolean tryOffsetLeft(Rect rectToMove, Rect rectToAvoid, Rect allowedBounds) { in tryOffsetLeft() 144 private static boolean tryOffsetRight(Rect rectToMove, Rect rectToAvoid, Rect allowedBounds) { in tryOffsetRight() 149 private static boolean tryOffsetUp(Rect rectToMove, Rect rectToAvoid, Rect allowedBounds) { in tryOffsetUp() 154 private static boolean tryOffsetDown(Rect rectToMove, Rect rectToAvoid, Rect allowedBounds) { in tryOffsetDown() 159 private static boolean tryOffset(Rect rectToMove, Rect rectToAvoid, Rect allowedBounds, in tryOffset() [all …]
|
H A D | PipBoundsAlgorithm.java | 117 Rect insets = new Rect(); in getEntryDestinationBounds() 235 final Rect destinationBounds = new Rect(bounds); in transformBoundsToAspectRatioIfValid() 273 final Rect defaultBounds = new Rect(); in getDefaultBounds() 284 final Rect insetBounds = new Rect(); in getDefaultBounds() 321 public Rect getMovementBounds(Rect stackBounds) { in getMovementBounds() 329 public Rect getMovementBounds(Rect stackBounds, boolean adjustForIme) { in getMovementBounds() 330 final Rect movementBounds = new Rect(); in getMovementBounds() 344 public void getMovementBounds(Rect stackBounds, Rect insetBounds, Rect movementBoundsOut, in getMovementBounds() 367 public float getSnapFraction(Rect stackBounds, Rect movementBounds) { in getSnapFraction() 389 public Rect adjustNormalBoundsToFitMenu(@NonNull Rect normalBounds, in adjustNormalBoundsToFitMenu() [all …]
|
H A D | PipBoundsState.java | 29 import android.graphics.Rect; 74 private final @NonNull Rect mBounds = new Rect(); 75 private final @NonNull Rect mMovementBounds = new Rect(); 76 private final @NonNull Rect mNormalBounds = new Rect(); 77 private final @NonNull Rect mExpandedBounds = new Rect(); 78 private final @NonNull Rect mNormalMovementBounds = new Rect(); 79 private final @NonNull Rect mExpandedMovementBounds = new Rect(); 159 public Rect getBounds() { in getBounds() 160 return new Rect(mBounds); in getBounds() 505 private final @NonNull Rect mBoundsInMotion = new Rect(); [all …]
|
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/ |
H A D | PipSnapAlgorithmTest.java | 45 private static final Rect MOVEMENT_BOUNDS = new Rect(0, 0, 59 final Rect bounds = new Rect(STACK_BOUNDS_CENTERED); in testApplySnapFraction_topEdge() 70 final Rect bounds = new Rect(STACK_BOUNDS_CENTERED); in testApplySnapFraction_rightEdge() 81 final Rect bounds = new Rect(STACK_BOUNDS_CENTERED); in testApplySnapFraction_bottomEdge() 92 final Rect bounds = new Rect(STACK_BOUNDS_CENTERED); in testApplySnapFraction_leftEdge() 103 final Rect bounds = new Rect(STACK_BOUNDS_CENTERED); in testApplySnapFraction_notStashed_isNotOffBounds() 116 final Rect bounds = new Rect(STACK_BOUNDS_CENTERED); in testApplySnapFraction_stashedLeft() 130 final Rect bounds = new Rect(STACK_BOUNDS_CENTERED); in testApplySnapFraction_stashedRight() 143 final Rect bounds = new Rect(STACK_BOUNDS_CENTERED); in testApplySnapFraction_stashedRight_withInset() 156 final Rect bounds = new Rect(STACK_BOUNDS_CENTERED); in testSnapRectToClosestEdge_rightEdge() [all …]
|
H A D | PipAnimationControllerTest.java | 92 .getAnimator(mTaskInfo, mLeash, new Rect(), new Rect(), new Rect(), null, in getAnimator_withBounds_returnBoundsAnimator() 101 final Rect baseValue = new Rect(0, 0, 100, 100); in getAnimator_whenSameTypeRunning_updateExistingAnimator() 102 final Rect startValue = new Rect(0, 0, 100, 100); in getAnimator_whenSameTypeRunning_updateExistingAnimator() 103 final Rect endValue1 = new Rect(100, 100, 200, 200); in getAnimator_whenSameTypeRunning_updateExistingAnimator() 104 final Rect endValue2 = new Rect(200, 200, 300, 300); in getAnimator_whenSameTypeRunning_updateExistingAnimator() 141 final Rect endBounds = new Rect(0, 0, 500, 1000); in pipTransitionAnimator_rotatedEndValue() 148 final Rect rotatedEndBounds = new Rect(endBounds); in pipTransitionAnimator_rotatedEndValue() 168 final Rect baseValue = new Rect(0, 0, 100, 100); in pipTransitionAnimator_updateEndValue() 169 final Rect startValue = new Rect(0, 0, 100, 100); in pipTransitionAnimator_updateEndValue() 183 final Rect baseValue = new Rect(0, 0, 100, 100); in pipTransitionAnimator_setPipAnimationCallback() [all …]
|
H A D | PipBoundsAlgorithmTest.java | 22 import android.graphics.Rect; 226 final Rect insetBounds = new Rect(); in getDefaultBounds_boundsAtDefaultGravity() 296 final Rect currentBounds = new Rect(0, 0, 0, 100); in getAdjustedDestinationBounds_returnBoundsMatchesAspectRatio() 342 final Rect currentBounds = new Rect(0, 0, 0, 100); in getAdjustedDestinationBounds_ignoreMinBounds() 426 final Rect normalBounds = new Rect(0, 0, 400, 711); in adjustNormalBoundsToFitMenu_alreadyFits() 431 final Rect bounds = in adjustNormalBoundsToFitMenu_alreadyFits() 439 final Rect normalBounds = new Rect(0, 0, 297, 528); in adjustNormalBoundsToFitMenu_widthTooSmall() 444 final Rect bounds = in adjustNormalBoundsToFitMenu_widthTooSmall() 454 final Rect normalBounds = new Rect(0, 0, 400, 280); in adjustNormalBoundsToFitMenu_heightTooSmall() 469 final Rect normalBounds = new Rect(0, 0, 350, 280); in adjustNormalBoundsToFitMenu_widthAndHeightTooSmall() [all …]
|
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/ |
H A D | WmDisplayCutoutTest.java | 30 import android.graphics.Rect; 48 private static final Rect ZERO_RECT = new Rect(); 51 null /* boundLeft */, new Rect(50, 0, 75, 100) /* boundTop */, 165 new Rect[] {ZERO_RECT, new Rect(80, 0, 120, 30), ZERO_RECT, ZERO_RECT}, in computeSafeInsets_cutoutTop_greaterThan_waterfallTop() 176 new Rect[] {ZERO_RECT, new Rect(80, 0, 120, 30), ZERO_RECT, ZERO_RECT}, in computeSafeInsets_cutoutTop_lessThan_waterfallTop() 187 new Rect[] {new Rect(0, 180, 30, 220), ZERO_RECT, ZERO_RECT, ZERO_RECT}, in computeSafeInsets_cutoutLeft_greaterThan_waterfallLeft() 198 new Rect[] {new Rect(0, 180, 30, 220), ZERO_RECT, ZERO_RECT, ZERO_RECT}, in computeSafeInsets_cutoutLeft_lessThan_waterfallLeft() 209 new Rect[] {ZERO_RECT, ZERO_RECT, ZERO_RECT, new Rect(80, 370, 120, 400)}, in computeSafeInsets_cutoutBottom_greaterThan_waterfallBottom() 220 new Rect[] {ZERO_RECT, ZERO_RECT, ZERO_RECT, new Rect(80, 370, 120, 400)}, in computeSafeInsets_cutoutBottom_lessThan_waterfallBottom() 231 new Rect[] {ZERO_RECT, ZERO_RECT, new Rect(170, 180, 200, 220), ZERO_RECT}, in computeSafeInsets_cutoutRight_greaterThan_waterfallRight() [all …]
|
H A D | InsetUtilsTest.java | 26 import android.graphics.Rect; 43 final Rect rect1 = new Rect(10, 20, 30, 40); in testAdd() 44 final Rect rect2 = new Rect(50, 60, 70, 80); in testAdd() 46 assertEquals(new Rect(60, 80, 100, 120), rect1); in testAdd() 51 final Rect original = new Rect(1, 2, 3, 4); in rotate() 55 final Rect rot90 = rotateCopy(original, ROTATION_90); in rotate() 56 assertEquals("rot90", new Rect(2, 3, 4, 1), rot90); in rotate() 59 assertEquals("rot180", new Rect(3, 4, 1, 2), rot180); in rotate() 63 assertEquals("rot270", new Rect(4, 1, 2, 3), rot270); in rotate() 67 private static Rect rotateCopy(Rect insets, int rotationDelta) { in rotateCopy() [all …]
|
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/udfps/ |
H A D | UdfpsUtilsTest.java | 22 import android.graphics.Rect; 61 new UdfpsOverlayParams(new Rect(), new Rect(), 0, 0, 1f, rotation) in testTouchOutsideAreaNoRotation() 68 new UdfpsOverlayParams(new Rect(), new Rect(), 0, 0, 1f, rotation) in testTouchOutsideAreaNoRotation() 75 new UdfpsOverlayParams(new Rect(), new Rect(), 0, 0, 1f, rotation) in testTouchOutsideAreaNoRotation() 82 new UdfpsOverlayParams(new Rect(), new Rect(), 0, 0, 1f, rotation) in testTouchOutsideAreaNoRotation() 95 new UdfpsOverlayParams(new Rect(), new Rect(), 0, 0, 1f, rotation) in testTouchOutsideAreaNoRotation90Degrees() 102 new UdfpsOverlayParams(new Rect(), new Rect(), 0, 0, 1f, rotation) in testTouchOutsideAreaNoRotation90Degrees() 109 new UdfpsOverlayParams(new Rect(), new Rect(), 0, 0, 1f, rotation) in testTouchOutsideAreaNoRotation90Degrees() 116 new UdfpsOverlayParams(new Rect(), new Rect(), 0, 0, 1f, rotation) in testTouchOutsideAreaNoRotation90Degrees() 129 new UdfpsOverlayParams(new Rect(), new Rect(), 0, 0, 1f, rotation) in testTouchOutsideAreaNoRotation270Degrees() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
H A D | LetterboxAppearanceCalculatorTest.kt | 20 import android.graphics.Rect 47 private val TEST_APPEARANCE_REGION_BOUNDS = Rect(0, 0, 20, 100) 51 private val TEST_WINDOW_BOUNDS = Rect(0, 0, 500, 500) 80 val letterbox = letterboxWithInnerBounds(Rect(50, 50, 150, 150)) 115 val statusBarEndSideBoundsCopy = Rect(statusBarEndSideBounds) 116 val letterBoxInnerBoundsCopy = Rect(letterBoxInnerBounds) 166 val letterbox = letterboxWithInnerBounds(Rect(0, 0, 101, 101)) 192 val letterbox = letterboxWithInnerBounds(Rect(0, 0, 300, 100)) 242 private fun letterboxWithBounds(innerBounds: Rect, fullBounds: Rect) = 245 private fun letterboxWithInnerBounds(innerBounds: Rect) = [all …]
|
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
H A D | LetterboxTest.java | 81 final Rect outer = new Rect(0, 0, 10, 50); in testNotIntersectsOrFullyContains_usesGlobalCoordinates() 84 final Rect topBar = new Rect(0, 0, 10, 2); in testNotIntersectsOrFullyContains_usesGlobalCoordinates() 86 final Rect leftBar = new Rect(0, 0, 2, 50); in testNotIntersectsOrFullyContains_usesGlobalCoordinates() 87 final Rect rightBar = new Rect(8, 0, 10, 50); in testNotIntersectsOrFullyContains_usesGlobalCoordinates() 118 final Rect mInner = new Rect(); 121 final Rect mTempRect = new Rect(); 123 final Rect mTop = new Rect(); 124 final Rect mBottom = new Rect(); 125 final Rect mLeft = new Rect(); 126 final Rect mRight = new Rect(); [all …]
|
/aosp14/frameworks/base/core/java/android/view/ |
H A D | FocusFinderHelper.java | 19 import android.graphics.Rect; 36 public boolean isBetterCandidate(int direction, Rect source, Rect rect1, Rect rect2) { in isBetterCandidate() 40 public boolean beamBeats(int direction, Rect source, Rect rect1, Rect rect2) { in beamBeats() 44 public boolean isCandidate(Rect srcRect, Rect destRect, int direction) { in isCandidate() 48 public boolean beamsOverlap(int direction, Rect rect1, Rect rect2) { in beamsOverlap() 52 public static int majorAxisDistance(int direction, Rect source, Rect dest) { in majorAxisDistance() 56 public static int majorAxisDistanceToFarEdge(int direction, Rect source, Rect dest) { in majorAxisDistanceToFarEdge()
|
H A D | DisplayCutout.java | 79 private static final Rect ZERO_RECT = new Rect(); 166 private Bounds(Rect left, Rect top, Rect right, Rect bottom, boolean copyArguments) { in Bounds() 211 Rect[] rects = new Rect[BOUNDS_POSITION_LENGTH]; in getRects() 404 @Nullable Rect boundTop, @Nullable Rect boundRight, @Nullable Rect boundBottom) { in DisplayCutout() 430 @Nullable Rect boundTop, @Nullable Rect boundRight, @Nullable Rect boundBottom, in DisplayCutout() 455 @Nullable Rect boundTop, @Nullable Rect boundRight, @Nullable Rect boundBottom, in DisplayCutout() 498 private DisplayCutout(Rect safeInsets, Insets waterfallInsets, Rect boundLeft, Rect boundTop, in DisplayCutout() 554 public static Rect[] extractBoundsFromList(Rect safeInsets, List<Rect> boundingRects) { in extractBoundsFromList() 918 Rect[] bounds = new Rect[BOUNDS_POSITION_LENGTH]; in fromBoundingRect() 1416 private final Rect mBoundingRectLeft = new Rect(); [all …]
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/ |
H A D | FloatingContentCoordinator.kt | 19 import android.graphics.Rect 78 fun moveToBounds(bounds: Rect) 100 otherContentBounds: List<Rect> 101 ): Rect { 257 contentRect: Rect, 258 newlyOverlappingRect: Rect, 260 allowedBounds: Rect 261 ): Rect { 327 contentRect: Rect, 330 ): Rect { [all …]
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/ |
H A D | TvPipKeepClearAlgorithm.kt | 21 import android.graphics.Rect 151 private fun transformAndFilterAreas(areas: Set<Rect>): Set<Rect> { 229 ): Rect? { 248 ): Rect? { 284 ): Rect? { 342 private fun getNearbyStashedPosition(bounds: Rect, keepClearAreas: Set<Rect>): Rect { 477 pipBounds: Rect, 507 pipBounds: Rect, 630 private fun toTransformedSpace(r: Rect): Rect { 673 private fun fromTransformedSpace(r: Rect): Rect { [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | WindowFrames.java | 25 import android.graphics.Rect; 41 public final Rect mParentFrame = new Rect(); 46 public final Rect mDisplayFrame = new Rect(); 51 final Rect mFrame = new Rect(); 56 final Rect mLastFrame = new Rect(); 61 final Rect mRelFrame = new Rect(); 66 final Rect mLastRelFrame = new Rect(); 72 final Rect mCompatFrame = new Rect(); 86 public void setFrames(Rect parentFrame, Rect displayFrame) { in setFrames()
|
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/view/ |
H A D | AbsCaptureHelperTest.java | 33 import android.graphics.Rect; 93 private Rect mScrollBounds; 169 Rect request = new Rect(0, -CAPTURE_HEIGHT, WINDOW_WIDTH, 0); in onScrollRequested_up_fromTop() 192 Rect request = new Rect(0, -CAPTURE_HEIGHT, WINDOW_WIDTH, 0); in onScrollRequested_up_fromMiddle() 220 Rect request = new Rect(0, -CAPTURE_HEIGHT, WINDOW_WIDTH, 0); in onScrollRequested_up_fromBottom() 249 Rect request = in onScrollRequested_offTopEdge() 255 Rect expectedResult = new Rect(request); in onScrollRequested_offTopEdge() 272 Rect expectedResult = new Rect(request); in onScrollRequested_offBottomEdge() 333 Rect r = new Rect(0, 0, v.getWidth(), v.getHeight()); in getVisibleBounds() 340 Rect localAvailable = new Rect(result.availableArea); in assertAvailableAreaCompletelyVisible() [all …]
|
/aosp14/frameworks/base/core/java/com/android/internal/view/ |
H A D | RecyclerViewCaptureHelper.java | 20 import android.graphics.Rect; 70 result.requestedArea = new Rect(requestRect); in onScrollRequested() 72 result.availableArea = new Rect(); // empty in onScrollRequested() 81 Rect requestedContainerBounds = new Rect(requestRect); in onScrollRequested() 94 Rect requestedContentBounds = new Rect(requestedContainerBounds); in onScrollRequested() 99 Rect input = new Rect(requestedContentBounds); in onScrollRequested() 123 Rect recyclerLocalVisible = new Rect(scrollBounds); in onScrollRequested() 131 Rect available = new Rect(requestedContainerBounds); in onScrollRequested() 147 static View findChildNearestTarget(ViewGroup parent, Rect targetRect) { in findChildNearestTarget() 158 Rect parentLocalVis = new Rect(); in findChildNearestTarget() [all …]
|