/aosp12/packages/apps/Car/RotaryController/tests/unit/src/com/android/car/rotary/ |
H A D | FocusFinderTest.java | 95 final Rect dest = new Rect(src); in testAboveShareEdgeEdgeOkForDirectionUp() 157 final Rect rect2 = new Rect(rect1); in testOverlapBeamsRightLeftUpToEdge() 194 final Rect rect2 = new Rect(rect1); in testOverlapBeamsUpDownUpToEdge() 232 Rect directlyAbove = new Rect(src); in testDirectlyAboveTrumpsAboveLeft() 235 Rect aboveLeft = new Rect(src); in testDirectlyAboveTrumpsAboveLeft() 245 Rect directlyAbove = new Rect(src); in testAboveInBeamTrumpsSlightlyCloserOutOfBeam() 248 Rect aboveLeft = new Rect(src); in testAboveInBeamTrumpsSlightlyCloserOutOfBeam() 261 Rect aboveLeftOfBeam = new Rect(src); in testOutOfBeamBeatsInBeamUp() 265 Rect aboveInBeam = new Rect(src); in testOutOfBeamBeatsInBeamUp() 289 Rect nonCandidate = new Rect(src); in testNonCandidateCanBeBetterCandidate() [all …]
|
/aosp12/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 | 319 Rect one = new Rect(0, 1, 2, 3); in testEquals_samePrivacyIndicator() 320 Rect two = new Rect(4, 5, 6, 7); in testEquals_samePrivacyIndicator() 321 Rect[] bounds = new Rect[] { one, two, one, two }; in testEquals_samePrivacyIndicator() 329 Rect one = new Rect(0, 1, 2, 3); in testEquals_differentPrivacyIndicatorStaticBounds() 330 Rect two = new Rect(4, 5, 6, 7); in testEquals_differentPrivacyIndicatorStaticBounds() 331 Rect three = new Rect(8, 9, 10, 11); in testEquals_differentPrivacyIndicatorStaticBounds() 332 Rect[] boundsOne = new Rect[] { one, two, one, two }; in testEquals_differentPrivacyIndicatorStaticBounds() 336 Rect[] boundsNull = new Rect[4]; in testEquals_differentPrivacyIndicatorStaticBounds() 354 Rect one = new Rect(0, 1, 2, 3); in testEquals_differentPrivacyIndicatorRotation() 355 Rect two = new Rect(4, 5, 6, 7); in testEquals_differentPrivacyIndicatorRotation() [all …]
|
H A D | InsetsSourceTest.java | 26 import android.graphics.Rect; 61 mSource.setFrame(new Rect(0, 0, 500, 100)); in testCalculateInsetsTop() 69 mSource.setFrame(new Rect(0, 400, 500, 500)); in testCalculateInsetsBottom() 77 mSource.setFrame(new Rect(0, 0, 100, 500)); in testCalculateInsetsLeft() 93 mSource.setFrame(new Rect(0, 0, 500, 100)); in testCalculateInsets_overextend() 120 mSource.setFrame(new Rect(0, 0, 500, 100)); in testCalculateInsets_invisible() 129 mSource.setFrame(new Rect(0, 0, 500, 100)); in testCalculateInsets_ignoreVisibility() 138 mSource.setFrame(new Rect(0, 0, 500, 100)); in testCalculateVisibleInsets_default() 145 mSource.setFrame(new Rect(0, 0, 500, 100)); in testCalculateInsets_noIntersection_vertical() 152 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 …]
|
/aosp12/frameworks/native/libs/ui/tests/ |
H A D | Rect_test.cpp | 28 const Rect rect; in TEST() 34 const Rect rect(100, 200); in TEST() 151 Rect rect = Rect(10, 20, 50, 60) + Point(1, 2); in TEST() 185 Rect intersection; in TEST() 234 EXPECT_EQ(Rect(10, 20, 20, 60), rect.reduce(Rect(20, 0, 60, 70))); in TEST() 237 EXPECT_EQ(Rect(40, 20, 50, 60), rect.reduce(Rect(0, 0, 40, 70))); in TEST() 240 EXPECT_EQ(Rect(10, 40, 50, 60), rect.reduce(Rect(0, 0, 70, 40))); in TEST() 243 EXPECT_EQ(Rect(10, 20, 50, 40), rect.reduce(Rect(0, 40, 70, 70))); in TEST() 264 Rect(10, 20, 50, 60), Rect(11, 20, 50, 60), Rect(11, 21, 50, 60), in TEST() 265 Rect(11, 21, 51, 60), Rect(11, 21, 51, 61), in TEST() [all …]
|
/aosp12/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/startingsurface/ |
H A D | TaskSnapshotWindowTest.java | 40 import android.graphics.Rect; 164 setupSurface(100, 100, new Rect(0, 10, 0, 10), 0, 0, new Rect(0, 0, 100, 100)); in testCalculateSnapshotCrop() 195 final Rect insets = new Rect(0, 10, 0, 10); in testCalculateSnapshotFrame() 204 final Rect insets = new Rect(10, 10, 0, 0); in testCalculateSnapshotFrame_navBarLeft() 213 final Rect insets = new Rect(0, 10, 0, 10); in testCalculateSnapshotFrame_waterfall() 222 final Rect insets = new Rect(0, 10, 10, 0); in testDrawStatusBarBackground() 234 final Rect insets = new Rect(0, 10, 10, 0); in testDrawStatusBarBackground_nullFrame() 246 final Rect insets = new Rect(0, 10, 10, 0); in testDrawStatusBarBackground_nope() 257 final Rect insets = new Rect(0, 10, 0, 10); in testDrawNavigationBarBackground() 270 final Rect insets = new Rect(10, 10, 0, 0); in testDrawNavigationBarBackground_left() [all …]
|
/aosp12/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
H A D | TaskSnapshotSurfaceTest.java | 45 import android.graphics.Rect; 204 setupSurface(100, 100, new Rect(0, 10, 0, 10), 0, 0, new Rect(0, 0, 100, 100)); in testCalculateSnapshotCrop() 235 final Rect insets = new Rect(0, 10, 0, 10); in testCalculateSnapshotFrame() 244 final Rect insets = new Rect(10, 10, 0, 0); in testCalculateSnapshotFrame_navBarLeft() 253 final Rect insets = new Rect(0, 10, 0, 10); in testCalculateSnapshotFrame_waterfall() 262 final Rect insets = new Rect(0, 10, 10, 0); in testDrawStatusBarBackground() 275 final Rect insets = new Rect(0, 10, 10, 0); in testDrawStatusBarBackground_nullFrame() 288 final Rect insets = new Rect(0, 10, 10, 0); in testDrawStatusBarBackground_nope() 300 final Rect insets = new Rect(0, 10, 0, 10); in testDrawNavigationBarBackground() 313 final Rect insets = new Rect(10, 10, 0, 0); in testDrawNavigationBarBackground_left() [all …]
|
H A D | LetterboxTest.java | 77 final Rect outer = new Rect(0, 0, 10, 50); in testNotIntersectsOrFullyContains_usesGlobalCoordinates() 80 final Rect topBar = new Rect(0, 0, 10, 2); in testNotIntersectsOrFullyContains_usesGlobalCoordinates() 82 final Rect leftBar = new Rect(0, 0, 2, 50); in testNotIntersectsOrFullyContains_usesGlobalCoordinates() 83 final Rect rightBar = new Rect(8, 0, 10, 50); in testNotIntersectsOrFullyContains_usesGlobalCoordinates() 114 final Rect mInner = new Rect(); 117 final Rect mTempRect = new Rect(); 119 final Rect mTop = new Rect(); 120 final Rect mBottom = new Rect(); 121 final Rect mLeft = new Rect(); 122 final Rect mRight = new Rect(); [all …]
|
/aosp12/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/ |
H A D | DisplayRotationUtilTest.java | 33 import android.graphics.Rect; 49 private static final Rect ZERO_RECT = new Rect(); 103 Rect[] bounds = new Rect[] {ZERO_RECT, new Rect(50, 0, 150, 10), ZERO_RECT, ZERO_RECT}; in testGetRotatedBounds_top_rot0() 111 Rect[] bounds = new Rect[] {ZERO_RECT, new Rect(50, 0, 150, 10), ZERO_RECT, ZERO_RECT}; in testGetRotatedBounds_top_rot90() 113 equalTo(new Rect[] {new Rect(0, 50, 10, 150), ZERO_RECT, ZERO_RECT, ZERO_RECT})); in testGetRotatedBounds_top_rot90() 119 Rect[] bounds = new Rect[] {ZERO_RECT, new Rect(50, 0, 150, 10), ZERO_RECT, ZERO_RECT}; in testGetRotatedBounds_top_rot180() 127 Rect[] bounds = new Rect[] {ZERO_RECT, new Rect(50, 0, 150, 10), ZERO_RECT, ZERO_RECT}; in testGetRotatedBounds_top_rot270() 135 Rect[] bounds = new Rect[] {new Rect(0, 50, 10, 150), ZERO_RECT, ZERO_RECT, ZERO_RECT}; in testGetRotatedBounds_left_rot0() 143 Rect[] bounds = new Rect[] {new Rect(0, 50, 10, 150), ZERO_RECT, ZERO_RECT, ZERO_RECT}; in testGetRotatedBounds_left_rot90() 151 Rect[] bounds = new Rect[] {new Rect(0, 50, 10, 150), ZERO_RECT, ZERO_RECT, ZERO_RECT}; in testGetRotatedBounds_left_rot180() [all …]
|
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 …]
|
/aosp12/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/ |
H A D | PipSnapAlgorithmTest.java | 43 private static final Rect MOVEMENT_BOUNDS = new Rect(0, 0, 57 final Rect bounds = new Rect(STACK_BOUNDS_CENTERED); in testApplySnapFraction_topEdge() 68 final Rect bounds = new Rect(STACK_BOUNDS_CENTERED); in testApplySnapFraction_rightEdge() 79 final Rect bounds = new Rect(STACK_BOUNDS_CENTERED); in testApplySnapFraction_bottomEdge() 90 final Rect bounds = new Rect(STACK_BOUNDS_CENTERED); in testApplySnapFraction_leftEdge() 101 final Rect bounds = new Rect(STACK_BOUNDS_CENTERED); in testApplySnapFraction_notStashed_isNotOffBounds() 114 final Rect bounds = new Rect(STACK_BOUNDS_CENTERED); in testApplySnapFraction_stashedLeft() 128 final Rect bounds = new Rect(STACK_BOUNDS_CENTERED); in testApplySnapFraction_stashedRight() 141 final Rect bounds = new Rect(STACK_BOUNDS_CENTERED); in testApplySnapFraction_stashedRight_withInset() 154 final Rect bounds = new Rect(STACK_BOUNDS_CENTERED); in testSnapRectToClosestEdge_rightEdge() [all …]
|
H A D | PipAnimationControllerTest.java | 91 .getAnimator(mTaskInfo, mLeash, new Rect(), new Rect(), new Rect(), null, in getAnimator_withBounds_returnBoundsAnimator() 100 final Rect baseValue = new Rect(0, 0, 100, 100); in getAnimator_whenSameTypeRunning_updateExistingAnimator() 101 final Rect startValue = new Rect(0, 0, 100, 100); in getAnimator_whenSameTypeRunning_updateExistingAnimator() 102 final Rect endValue1 = new Rect(100, 100, 200, 200); in getAnimator_whenSameTypeRunning_updateExistingAnimator() 103 final Rect endValue2 = new Rect(200, 200, 300, 300); in getAnimator_whenSameTypeRunning_updateExistingAnimator() 139 final Rect endBounds = new Rect(0, 0, 500, 1000); in pipTransitionAnimator_rotatedEndValue() 146 final Rect rotatedEndBounds = new Rect(endBounds); in pipTransitionAnimator_rotatedEndValue() 166 final Rect baseValue = new Rect(0, 0, 100, 100); in pipTransitionAnimator_updateEndValue() 167 final Rect startValue = new Rect(0, 0, 100, 100); in pipTransitionAnimator_updateEndValue() 181 final Rect baseValue = new Rect(0, 0, 100, 100); in pipTransitionAnimator_setPipAnimationCallback() [all …]
|
H A D | PipBoundsAlgorithmTest.java | 22 import android.graphics.Rect; 207 final Rect insetBounds = new Rect(); in getDefaultBounds_boundsAtDefaultGravity() 277 final Rect currentBounds = new Rect(0, 0, 0, 100); in getAdjustedDestinationBounds_returnBoundsMatchesAspectRatio() 323 final Rect currentBounds = new Rect(0, 0, 0, 100); in getAdjustedDestinationBounds_ignoreMinBounds() 407 final Rect normalBounds = new Rect(0, 0, 400, 711); in adjustNormalBoundsToFitMenu_alreadyFits() 412 final Rect bounds = in adjustNormalBoundsToFitMenu_alreadyFits() 420 final Rect normalBounds = new Rect(0, 0, 297, 528); in adjustNormalBoundsToFitMenu_widthTooSmall() 425 final Rect bounds = in adjustNormalBoundsToFitMenu_widthTooSmall() 435 final Rect normalBounds = new Rect(0, 0, 400, 280); in adjustNormalBoundsToFitMenu_heightTooSmall() 450 final Rect normalBounds = new Rect(0, 0, 350, 280); in adjustNormalBoundsToFitMenu_widthAndHeightTooSmall() [all …]
|
/aosp12/frameworks/native/libs/ui/include/ui/ |
H A D | Rect.h | 36 class Rect : public ARect, public LightFlattenablePod<Rect> 41 static const Rect INVALID_RECT; 42 static const Rect EMPTY_RECT; 47 inline Rect() : Rect(INVALID_RECT) {} in Rect() function 50 inline Rect(T w, T h) { in Rect() function 123 inline Rect getBounds() const { in getBounds() 175 Rect& offsetToOrigin() { in offsetToOrigin() 196 bool intersect(const Rect& with, Rect* result) const; 216 Rect reduce(const Rect& exclude) const; 234 ANDROID_BASIC_TYPES_TRAITS(Rect) [all …]
|
/aosp12/frameworks/native/libs/ui/include_vndk/ui/ |
H A D | Rect.h | 36 class Rect : public ARect, public LightFlattenablePod<Rect> 41 static const Rect INVALID_RECT; 42 static const Rect EMPTY_RECT; 47 inline Rect() : Rect(INVALID_RECT) {} in Rect() function 50 inline Rect(T w, T h) { in Rect() function 123 inline Rect getBounds() const { in getBounds() 175 Rect& offsetToOrigin() { in offsetToOrigin() 196 bool intersect(const Rect& with, Rect* result) const; 216 Rect reduce(const Rect& exclude) const; 234 ANDROID_BASIC_TYPES_TRAITS(Rect) [all …]
|
/aosp12/frameworks/native/include/ui/ |
H A D | Rect.h | 36 class Rect : public ARect, public LightFlattenablePod<Rect> 41 static const Rect INVALID_RECT; 42 static const Rect EMPTY_RECT; 47 inline Rect() : Rect(INVALID_RECT) {} in Rect() function 50 inline Rect(T w, T h) { in Rect() function 123 inline Rect getBounds() const { in getBounds() 175 Rect& offsetToOrigin() { in offsetToOrigin() 196 bool intersect(const Rect& with, Rect* result) const; 216 Rect reduce(const Rect& exclude) const; 234 ANDROID_BASIC_TYPES_TRAITS(Rect) [all …]
|
/aosp12/frameworks/native/libs/ui/ |
H A D | Rect.cpp | 23 const Rect Rect::INVALID_RECT{0, 0, -1, -1}; 24 const Rect Rect::EMPTY_RECT{0, 0, 0, 0}; 41 bool Rect::operator <(const Rect& rhs) const { in operator <() 60 Rect& Rect::offsetTo(int32_t x, int32_t y) { in offsetTo() 68 Rect& Rect::offsetBy(int32_t x, int32_t y) { in offsetBy() 84 const Rect Rect::operator +(const Point& rhs) const { in operator +() 89 const Rect Rect::operator -(const Point& rhs) const { in operator -() 94 bool Rect::intersect(const Rect& with, Rect* result) const { in intersect() 102 Rect Rect::transform(uint32_t xform, int32_t width, int32_t height) const { in transform() 122 Rect Rect::reduce(const Rect& exclude) const { in reduce() [all …]
|
/aosp12/frameworks/native/services/surfaceflinger/tests/ |
H A D | MirrorLayer_test.cpp | 63 .setCrop(grandchild, Rect(0, 0, 200, 200)) in TEST_F() 82 shot->expectColor(Rect(550, 550, 750, 750), Color::BLUE); in TEST_F() 84 shot->expectColor(Rect(750, 750, 950, 950), Color::GREEN); in TEST_F() 93 shot->expectColor(Rect(550, 550, 750, 750), Color::WHITE); in TEST_F() 126 shot->expectColor(Rect(550, 550, 750, 750), Color::RED); in TEST_F() 128 shot->expectColor(Rect(750, 750, 950, 950), Color::RED); in TEST_F() 137 shot->expectColor(Rect(550, 550, 750, 750), Color::RED); in TEST_F() 139 shot->expectColor(Rect(750, 750, 950, 950), Color::RED); in TEST_F() 287 Rect childBounds = Rect(50, 50, 450, 450); in TEST_F() 314 shot->expectColor(Rect(50, 50, 100, 100), Color::BLUE); in TEST_F() [all …]
|
H A D | LayerRenderTypeTransaction_test.cpp | 61 const Rect rect(0, 0, 32, 32); in TEST_P() 70 const Rect rect(5, 10, 37, 42); in TEST_P() 280 const Rect top(0, 0, 32, 16); in TEST_P() 324 const Rect top(0, 0, 32, 16); in TEST_P() 823 const Rect crop(8, 8, 24, 24); in TEST_P() 836 const Rect crop(8, 8, 24, 24); in TEST_P() 936 const Rect crop(8, 8, 24, 24); in TEST_P() 949 const Rect crop(8, 8, 24, 24); in TEST_P() 996 TransactionUtils::setFrame(t, layer, Rect(0, 0, 32, 32), Rect(8, 8, 8, 8)); in TEST_P() 1004 TransactionUtils::setFrame(t, layer, Rect(0, 0, 32, 32), Rect(8, 8, 0, 0)); in TEST_P() [all …]
|
/aosp12/frameworks/base/core/tests/coretests/src/com/android/internal/view/ |
H A D | ScrollViewCaptureHelperTest.java | 160 Rect request = new Rect(0, WINDOW_HEIGHT, scrollBounds.width(), in onScrollRequested_down_fromTop() 199 Rect request = new Rect(0, WINDOW_HEIGHT, scrollBounds.width(), in onScrollRequested_down_fromMiddle() 264 Rect request = new Rect( in onScrollRequested_offTopEdge() 273 Rect expectedResult = new Rect(request); in onScrollRequested_offTopEdge() 293 Rect request = new Rect( in onScrollRequested_offBottomEdge() 299 Rect expectedResult = new Rect(request); in onScrollRequested_offBottomEdge() 320 static void assertContains(Rect parent, Rect child) { in assertContains() 326 static void assertRectEquals(Rect parent, Rect child) { in assertRectEquals() 333 Rect r = new Rect(0, 0, v.getWidth(), v.getHeight()); in getVisibleRect() 348 Rect captured = new Rect(localVisibleNow); in assertRequestedRectCompletelyVisible() [all …]
|
/aosp12/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
H A D | ProjectionSpaceTest.cpp | 28 Rect getSideStrip(const Rect& rect, ui::Rotation rotation) { in getSideStrip() 50 return Rect::INVALID_RECT; in getSideStrip() 56 space.content = Rect(100, 200); in TEST() 57 space.bounds = Rect(100, 200); in TEST() 68 source.content = Rect(10, 10, 20, 20); in TEST() 69 source.bounds = Rect(100, 200); in TEST() 72 dest.content = Rect(10, 20, 30, 20); in TEST() 81 source.content = Rect(0, 0, 20, 20); in TEST() 82 source.bounds = Rect(100, 200); in TEST() 85 dest.content = Rect(0, 0, 40, 30); in TEST() [all …]
|
/aosp12/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 …]
|
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/ |
H A D | PipBoundsState.java | 27 import android.graphics.Rect; 64 private final @NonNull Rect mBounds = new Rect(); 65 private final @NonNull Rect mMovementBounds = new Rect(); 66 private final @NonNull Rect mNormalBounds = new Rect(); 67 private final @NonNull Rect mExpandedBounds = new Rect(); 68 private final @NonNull Rect mNormalMovementBounds = new Rect(); 69 private final @NonNull Rect mExpandedMovementBounds = new Rect(); 120 public Rect getBounds() { in getBounds() 121 return new Rect(mBounds); in getBounds() 434 private final @NonNull Rect mBoundsInMotion = new Rect(); [all …]
|