Home
last modified time | relevance | path

Searched refs:bounds (Results 1 – 25 of 437) sorted by relevance

12345678910>>...18

/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/
H A DPipSnapAlgorithmTest.java150 bounds.left); in testApplySnapFraction_stashedRight_withInset()
158 bounds.offset(10, 0); in testSnapRectToClosestEdge_rightEdge()
160 mPipSnapAlgorithm.snapRectToClosestEdge(bounds, MOVEMENT_BOUNDS, bounds, in testSnapRectToClosestEdge_rightEdge()
170 bounds.offset(-10, 0); in testSnapRectToClosestEdge_leftEdge()
172 mPipSnapAlgorithm.snapRectToClosestEdge(bounds, MOVEMENT_BOUNDS, bounds, in testSnapRectToClosestEdge_leftEdge()
184 mPipSnapAlgorithm.snapRectToClosestEdge(bounds, MOVEMENT_BOUNDS, bounds, in testSnapRectToClosestEdge_topEdge()
194 bounds.offset(0, 10); in testSnapRectToClosestEdge_bottomEdge()
196 mPipSnapAlgorithm.snapRectToClosestEdge(bounds, MOVEMENT_BOUNDS, bounds, in testSnapRectToClosestEdge_bottomEdge()
210 mPipSnapAlgorithm.snapRectToClosestEdge(bounds, MOVEMENT_BOUNDS, bounds, in testSnapRectToClosestEdge_stashed_unStahesBounds()
231 bounds.offset(10, 0); in testGetSnapFraction_rightEdge()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/
H A DDockedDividerUtils.java69 if (bounds.left >= bounds.right) { in sanitizeStackBounds()
70 bounds.left = bounds.right - 1; in sanitizeStackBounds()
72 if (bounds.top >= bounds.bottom) { in sanitizeStackBounds()
73 bounds.top = bounds.bottom - 1; in sanitizeStackBounds()
76 if (bounds.right <= bounds.left) { in sanitizeStackBounds()
77 bounds.right = bounds.left + 1; in sanitizeStackBounds()
79 if (bounds.bottom <= bounds.top) { in sanitizeStackBounds()
80 bounds.bottom = bounds.top + 1; in sanitizeStackBounds()
88 return bounds.right; in calculatePositionForBounds()
90 return bounds.bottom; in calculatePositionForBounds()
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/text/
H A DTextLineTest.java366 float[] bounds = new float[12]; in testMeasureAllBounds_LTR() local
383 float[] bounds = new float[12]; in testMeasureAllBounds_LTR_StyledText() local
398 float[] bounds = new float[12]; in testMeasureAllBounds_RTL() local
416 float[] bounds = new float[12]; in testMeasureAllBounds_RTL_StyledText() local
431 float[] bounds = new float[12]; in testMeasureAllBounds_BiDi() local
446 float[] bounds = new float[14]; in testMeasureAllBounds_BiDi2() local
462 float[] bounds = new float[14]; in testMeasureAllBounds_BiDi3() local
481 float[] bounds = new float[12]; in testMeasureAllBounds_styled_BiDi() local
498 float[] bounds = new float[10]; in testMeasureAllBounds_Tab_LTR() local
515 float[] bounds = new float[10]; in testMeasureAllBounds_Tab_RTL() local
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/activityembedding/
H A DActivityEmbeddingAnimationSpec.java93 final Rect bounds = change.getEndAbsBounds(); in createChangeBoundsOpenAnimation() local
96 if (parentBounds.top == bounds.top && parentBounds.bottom == bounds.bottom) { in createChangeBoundsOpenAnimation()
99 startLeft = parentBounds.left == bounds.left ? -bounds.width() : bounds.width(); in createChangeBoundsOpenAnimation()
102 startTop = parentBounds.top == bounds.top ? -bounds.height() : bounds.height(); in createChangeBoundsOpenAnimation()
111 animation.initialize(bounds.width(), bounds.height(), bounds.width(), bounds.height()); in createChangeBoundsOpenAnimation()
121 final Rect bounds = change.getStartAbsBounds(); in createChangeBoundsCloseAnimation() local
124 if (parentBounds.top == bounds.top && parentBounds.bottom == bounds.bottom) { in createChangeBoundsCloseAnimation()
127 endLeft = parentBounds.left == bounds.left ? -bounds.width() : bounds.width(); in createChangeBoundsCloseAnimation()
130 endTop = parentBounds.top == bounds.top ? -bounds.height() : bounds.height(); in createChangeBoundsCloseAnimation()
139 animation.initialize(bounds.width(), bounds.height(), bounds.width(), bounds.height()); in createChangeBoundsCloseAnimation()
/aosp14/frameworks/base/libs/hwui/canvas/
H A DCanvasFrontend.cpp36 clip().bounds = mInitialBounds; in resetState()
57 bool rect = matrix.mapRect(&devBounds, bounds) && fillsBounds; in apply()
58 if (!this->bounds.intersect(aa ? devBounds.roundOut() : devBounds.round())) { in apply()
59 this->bounds.setEmpty(); in apply()
74 SkRect bounds = path.getBounds(); in internalClipPath() local
79 clip().apply(op, transform(), bounds, /*aa=*/true, /*fillsBounds=*/false); in internalClipPath()
110 SkIRect bounds = clip().bounds; in getClipBounds() local
114 if (bounds.isEmpty() || !transform().invert(&inverse)) { in getClipBounds()
118 return inverse.mapRect(SkRect::Make(bounds)); in getClipBounds()
122 const SkRect& bounds) const { in quickReject()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/embedding/
H A DTaskFragmentAnimationSpec.java90 final Rect bounds = target.screenSpaceBounds; in createChangeBoundsOpenAnimation() local
93 if (parentBounds.top == bounds.top && parentBounds.bottom == bounds.bottom) { in createChangeBoundsOpenAnimation()
96 startLeft = parentBounds.left == bounds.left ? -bounds.width() : bounds.width(); in createChangeBoundsOpenAnimation()
99 startTop = parentBounds.top == bounds.top ? -bounds.height() : bounds.height(); in createChangeBoundsOpenAnimation()
108 animation.initialize(bounds.width(), bounds.height(), bounds.width(), bounds.height()); in createChangeBoundsOpenAnimation()
118 final Rect bounds = target.startBounds; in createChangeBoundsCloseAnimation() local
121 if (parentBounds.top == bounds.top && parentBounds.bottom == bounds.bottom) { in createChangeBoundsCloseAnimation()
124 endLeft = parentBounds.left == bounds.left ? -bounds.width() : bounds.width(); in createChangeBoundsCloseAnimation()
127 endTop = parentBounds.top == bounds.top ? -bounds.height() : bounds.height(); in createChangeBoundsCloseAnimation()
136 animation.initialize(bounds.width(), bounds.height(), bounds.width(), bounds.height()); in createChangeBoundsCloseAnimation()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
H A DStatusBarContentInsetsProviderTest.kt82 var bounds = calculateInsetsForRotationWithRotatedResources( regex
113 bounds = calculateInsetsForRotationWithRotatedResources(
185 bounds = calculateInsetsForRotationWithRotatedResources(
206 bounds = calculateInsetsForRotationWithRotatedResources(
226 bounds = calculateInsetsForRotationWithRotatedResources(
286 bounds = calculateInsetsForRotationWithRotatedResources(
305 bounds = calculateInsetsForRotationWithRotatedResources(
324 bounds = calculateInsetsForRotationWithRotatedResources(
375 bounds = calculateInsetsForRotationWithRotatedResources(
393 bounds = calculateInsetsForRotationWithRotatedResources(
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DConfigurationContainer.java282 return bounds == other in equivalentBounds()
283 || (bounds != null && (bounds.equals(other) || (bounds.isEmpty() && other == null))) in equivalentBounds()
310 Rect bounds = getBounds(); in getPosition() local
311 out.set(bounds.left, bounds.top); in getPosition()
364 public int setBounds(Rect bounds) { in setBounds() argument
396 int diffRequestedOverrideMaxBounds(Rect bounds) { in diffRequestedOverrideMaxBounds() argument
405 if (bounds == null || existingBounds.left != bounds.left in diffRequestedOverrideMaxBounds()
410 if (bounds == null || existingBounds.width() != bounds.width() in diffRequestedOverrideMaxBounds()
418 int diffRequestedOverrideBounds(Rect bounds) { in diffRequestedOverrideBounds() argument
427 if (bounds == null || existingBounds.left != bounds.left in diffRequestedOverrideBounds()
[all …]
H A DSurfaceAnimationRunner.java381 final Rect edgeBounds = new Rect(bounds.left, bounds.top, bounds.left + 1, in edgeExtendWindow()
382 bounds.bottom); in edgeExtendWindow()
386 final int yPos = bounds.top; in edgeExtendWindow()
392 final Rect edgeBounds = new Rect(bounds.left, bounds.top, targetSurfaceWidth, in edgeExtendWindow()
393 bounds.top + 1); in edgeExtendWindow()
396 final int xPos = bounds.left; in edgeExtendWindow()
403 final Rect edgeBounds = new Rect(bounds.right - 1, bounds.top, bounds.right, in edgeExtendWindow()
404 bounds.bottom); in edgeExtendWindow()
408 final int yPos = bounds.top; in edgeExtendWindow()
414 final Rect edgeBounds = new Rect(bounds.left, bounds.bottom - 1, in edgeExtendWindow()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/utils/
H A DCommonAssertions.kt275 (dividerRegion.bounds.left + dividerRegion.bounds.right) / 2,
276 displayBounds.bounds.bottom
280 (dividerRegion.bounds.left + dividerRegion.bounds.right) / 2,
292 (dividerRegion.bounds.top + dividerRegion.bounds.bottom) / 2
297 (dividerRegion.bounds.top + dividerRegion.bounds.bottom) / 2,
426 displayBounds.bounds.bottom
432 displayBounds.bounds.right,
444 displayBounds.bounds.right,
445 displayBounds.bounds.bottom
451 displayBounds.bounds.right,
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/
H A DTvPipKeepClearAlgorithm.kt57 val bounds: Rect,
349 if (screenBounds.bottom - bounds.bottom <= bounds.top - screenBounds.top) {
362 if (screenBounds.bottom - bounds.bottom >= bounds.top - screenBounds.top) {
378 if (screenBounds.right - bounds.right <= bounds.left - screenBounds.left) {
391 if (screenBounds.right - bounds.right >= bounds.left - screenBounds.left) {
410 } ?: bounds
434 fun setMovementBounds(bounds: Rect) {
435 if (movementBounds == bounds) {
439 movementBounds.set(bounds)
754 return Size(bounds.width(), bounds.height())
[all …]
/aosp14/frameworks/base/libs/hwui/tests/common/scenes/
H A DSaveLayer2Animation.cpp38 SkIRect bounds = SkIRect::MakeWH(width, height); in createContent() local
40 int smallRectHeight = (bounds.height() / regions); in createContent()
42 int top = bounds.fTop; in createContent()
51 canvas.saveLayer(bounds.fLeft, top, bounds.fRight, top + padding, &mBluePaint); in createContent()
55 TestUtils::drawUtf8ToCanvas(&canvas, offscreen.c_str(), mBluePaint, bounds.fLeft, in createContent()
59 canvas.drawRect(bounds.fLeft, top + padding, bounds.fRight, in createContent()
62 TestUtils::drawUtf8ToCanvas(&canvas, onscreen.c_str(), mGreenPaint, bounds.fLeft, in createContent()
/aosp14/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/animation/scene/transformation/
H A DPunchHole.kt43 private val bounds: ElementKey,
53 val bounds = layoutImpl.elements[bounds] regex
55 bounds == null ||
56 bounds.lastSize == Element.SizeUnspecified ||
57 bounds.lastOffset == Offset.Unspecified
67 val offset = bounds.lastOffset - element.lastOffset
68 translate(offset.x, offset.y) { drawHole(bounds) }
74 private fun DrawScope.drawHole(bounds: Element) {
83 bounds.lastSize.toSize(),
/aosp14/frameworks/base/core/java/android/view/animation/
H A DTransformation.java130 Rect bounds = t.getClipRect(); in compose() local
132 setClipRect(mClipRect.left + bounds.left, mClipRect.top + bounds.top, in compose()
133 mClipRect.right + bounds.right, mClipRect.bottom + bounds.bottom); in compose()
135 setClipRect(bounds); in compose()
150 Rect bounds = t.getClipRect(); in postCompose() local
152 setClipRect(mClipRect.left + bounds.left, mClipRect.top + bounds.top, in postCompose()
153 mClipRect.right + bounds.right, mClipRect.bottom + bounds.bottom); in postCompose()
155 setClipRect(bounds); in postCompose()
/aosp14/frameworks/base/core/java/android/transition/
H A DExplode.java85 Rect bounds = (Rect) endValues.values.get(PROPNAME_SCREEN_BOUNDS); in onAppear() local
88 calculateOut(sceneRoot, bounds, mTempLoc); in onAppear()
92 return TranslationAnimationCreator.createAnimation(view, endValues, bounds.left, bounds.top, in onAppear()
102 Rect bounds = (Rect) startValues.values.get(PROPNAME_SCREEN_BOUNDS); in onDisappear() local
103 int viewPosX = bounds.left; in onDisappear()
104 int viewPosY = bounds.top; in onDisappear()
113 endX += interruptedPosition[0] - bounds.left; in onDisappear()
114 endY += interruptedPosition[1] - bounds.top; in onDisappear()
117 calculateOut(sceneRoot, bounds, mTempLoc); in onDisappear()
143 int centerX = bounds.centerX(); in calculateOut()
[all …]
/aosp14/frameworks/base/tests/UiBench/src/com/android/test/uibench/
H A DSaveLayerInterleaveActivity.java59 Rect bounds = getBounds(); in onCreate()
61 int smallRectHeight = (bounds.height()/regions); in onCreate()
63 int top = bounds.top; in onCreate()
71 canvas.saveLayer(bounds.left, top, bounds.right, top + padding, in onCreate()
74 canvas.drawText("offscreen line "+ i, bounds.left, top + padding, in onCreate()
78 Rect partX = new Rect(bounds.left, top + padding, in onCreate()
79 bounds.right,top + smallRectHeight - padding); in onCreate()
81 canvas.drawText("onscreen line "+ i, bounds.left, in onCreate()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DHardwareBgDrawable.java80 Rect bounds = getBounds(); in draw() local
81 int top = bounds.top + mPoint; in draw()
82 if (top > bounds.bottom) top = bounds.bottom; in draw()
84 mLayers[0].setBounds(bounds.left, bounds.top, bounds.right, top); in draw()
86 mLayers[1].setBounds(bounds.left, top, bounds.right, bounds.bottom); in draw()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
H A DRoundedCornerProgressDrawable.kt50 override fun onBoundsChange(bounds: Rect) {
51 super.onBoundsChange(bounds)
56 val db = drawable?.bounds!!
58 val width = bounds.height() + (bounds.width() - bounds.height()) * level / MAX_LEVEL
59 drawable?.setBounds(bounds.left, db.top, bounds.left + width, db.bottom)
H A DBrightnessProgressDrawable.kt53 override fun onBoundsChange(bounds: Rect) {
54 super.onBoundsChange(bounds)
59 val db = drawable?.bounds!!
62 val thumbOffset = bounds.height() / 2
63 val width = bounds.width() * level / MAX_LEVEL + thumbOffset
67 bounds.left,
69 width.coerceAtMost(bounds.width()).coerceAtLeast(bounds.height()),
/aosp14/frameworks/base/graphics/java/android/graphics/drawable/
H A DRippleComponent.java40 public RippleComponent(RippleDrawable owner, Rect bounds) { in RippleComponent() argument
42 mBounds = bounds; in RippleComponent()
65 private static float getTargetRadius(Rect bounds) { in getTargetRadius() argument
66 final float halfWidth = bounds.width() / 2.0f; in getTargetRadius()
67 final float halfHeight = bounds.height() / 2.0f; in getTargetRadius()
78 public void getBounds(Rect bounds) { in getBounds() argument
80 bounds.set(-r, -r, r, r); in getBounds()
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DConfigurationContainerTests.java347 final Rect bounds = new Rect(0, 0, 10, 10); in testSetMaxBoundsByHierarchy() local
351 root.setBounds(bounds); in testSetMaxBoundsByHierarchy()
353 assertEquals(bounds, root.getBounds()); in testSetMaxBoundsByHierarchy()
355 assertEquals(bounds, child.getBounds()); in testSetMaxBoundsByHierarchy()
358 assertEquals(bounds, root.getMaxBounds()); in testSetMaxBoundsByHierarchy()
371 root.setBounds(bounds); in testSetBoundsNotOverrideMaxBounds()
373 assertEquals(bounds, root.getBounds()); in testSetBoundsNotOverrideMaxBounds()
375 assertEquals(bounds, child.getBounds()); in testSetBoundsNotOverrideMaxBounds()
396 assertEquals(bounds, root.getBounds()); in testOnRequestedOverrideConfigurationChangedOverrideMaxBounds()
398 assertEquals(bounds, child.getBounds()); in testOnRequestedOverrideConfigurationChangedOverrideMaxBounds()
[all …]
/aosp14/frameworks/base/libs/hwui/pipeline/skia/
H A DSkiaDisplayList.cpp69 static bool intersects(const SkISize screenSize, const Matrix4& mat, const SkRect& bounds) { in intersects() argument
70 Vector3 points[] = { Vector3 {bounds.fLeft, bounds.fTop, 0}, in intersects()
71 Vector3 {bounds.fRight, bounds.fTop, 0}, in intersects()
72 Vector3 {bounds.fRight, bounds.fBottom, 0}, in intersects()
73 Vector3 {bounds.fLeft, bounds.fBottom, 0}}; in intersects()
163 const SkRect& bounds = vectorDrawable->properties().getBounds(); in prepareListAndChildren() local
164 if (intersects(info.screenSize, totalMatrix, bounds)) { in prepareListAndChildren()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/common/ui/drawable/
H A DCircularDrawable.kt33 override fun onBoundsChange(bounds: Rect) {
34 super.onBoundsChange(bounds)
48 bounds.centerX().toFloat(),
49 bounds.centerY().toFloat(),
50 min(bounds.width(), bounds.height()) / 2f,
/aosp14/frameworks/base/core/java/android/view/inputmethod/
H A DEditorBoundsInfo.java91 EditorBoundsInfo bounds; in equals() local
93 bounds = (EditorBoundsInfo) obj; in equals()
97 return Objects.equals(bounds.mEditorBounds, mEditorBounds) in equals()
98 && Objects.equals(bounds.mHandwritingBounds, mHandwritingBounds); in equals()
142 public EditorBoundsInfo.Builder setEditorBounds(@Nullable RectF bounds) { in setEditorBounds() argument
143 mEditorBounds = bounds; in setEditorBounds()
153 public EditorBoundsInfo.Builder setHandwritingBounds(@Nullable RectF bounds) { in setHandwritingBounds() argument
154 mHandwritingBounds = bounds; in setHandwritingBounds()
/aosp14/frameworks/base/core/java/android/view/
H A DWindowMetrics.java64 public WindowMetrics(@NonNull Rect bounds, @NonNull WindowInsets windowInsets) { in WindowMetrics() argument
65 this(bounds, windowInsets, 1.0f); in WindowMetrics()
80 public WindowMetrics(@NonNull Rect bounds, @NonNull WindowInsets windowInsets, float density) { in WindowMetrics() argument
81 mBounds = bounds; in WindowMetrics()
94 public WindowMetrics(@NonNull Rect bounds, @NonNull Supplier<WindowInsets> windowInsetsSupplier, in WindowMetrics() argument
96 mBounds = bounds; in WindowMetrics()

12345678910>>...18