Searched refs:bounds (Results 76 - 100 of 295) sorted by relevance

1234567891011>>

/frameworks/base/libs/hwui/
H A DBakedOpRenderer.cpp248 Rect bounds = tr.getBounds(); local
250 // If rectToRect, can simply map bounds before storing verts
251 transform.mapRect(bounds);
252 bounds.doIntersect(clip->rect);
253 if (bounds.isEmpty()) {
258 rectangleVertices.push_back(Vertex{bounds.left, bounds.top});
259 rectangleVertices.push_back(Vertex{bounds.right, bounds.top});
260 rectangleVertices.push_back(Vertex{bounds
[all...]
H A DClipArea.cpp54 TransformedRectangle::TransformedRectangle(const Rect& bounds, const Matrix4& transform) argument
55 : mBounds(bounds), mTransform(transform) {}
100 void RectangleList::set(const Rect& bounds, const Matrix4& transform) { argument
102 mTransformedRectangles[0] = TransformedRectangle(bounds, transform);
105 bool RectangleList::intersectWith(const Rect& bounds, const Matrix4& transform) { argument
106 TransformedRectangle newRectangle(bounds, transform);
130 Rect bounds; local
134 bounds = tr.transformedBounds();
136 bounds.doIntersect(tr.transformedBounds());
139 return bounds;
142 pathFromTransformedRectangle(const Rect& bounds, const Matrix4& transform) argument
[all...]
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
H A Dfind_region.rs144 float4 bounds = gCalcBounds(pointsXY);
146 int4 roiBounds = padRegionRect_ss(bounds);
172 noZone.xy -= convert_int2(bounds.zw - bounds.xy);
173 noZone.zw += convert_int2(bounds.zw - bounds.xy);
/frameworks/support/graphics/drawable/static/src/main/java/androidx/vectordrawable/graphics/drawable/
H A DVectorDrawableCommon.java61 protected void onBoundsChange(Rect bounds) { argument
63 mDelegateDrawable.setBounds(bounds);
66 super.onBoundsChange(bounds);
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/graphics/
H A DFitWidthBitmapDrawableTest.java55 Rect bounds = new Rect(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
56 drawable.setBounds(bounds);
61 Rect expectedBounds = bounds;
/frameworks/base/core/java/android/widget/
H A DFastScroller.java576 final Rect bounds = mTempBounds;
577 measurePreview(mPrimaryText, bounds);
578 applyLayout(mPrimaryText, bounds);
579 measurePreview(mSecondaryText, bounds);
580 applyLayout(mSecondaryText, bounds);
584 bounds.left -= mPreviewImage.getPaddingLeft();
585 bounds.top -= mPreviewImage.getPaddingTop();
586 bounds.right += mPreviewImage.getPaddingRight();
587 bounds.bottom += mPreviewImage.getPaddingBottom();
588 applyLayout(mPreviewImage, bounds);
601 applyLayout(View view, Rect bounds) argument
1674 animateBounds(View v, Rect bounds) argument
[all...]
H A DTabWidget.java388 final Rect bounds = mBounds;
389 bounds.left = selectedChild.getLeft();
390 bounds.right = selectedChild.getRight();
393 leftStrip.setBounds(Math.min(0, bounds.left - leftStrip.getIntrinsicWidth()),
394 myHeight - leftStrip.getIntrinsicHeight(), bounds.left, myHeight);
397 rightStrip.setBounds(bounds.right, myHeight - rightStrip.getIntrinsicHeight(),
398 Math.max(getWidth(), bounds.right + rightStrip.getIntrinsicWidth()),
/frameworks/base/graphics/java/android/graphics/drawable/
H A DRippleDrawable.java88 * may extend outside of the Drawable bounds.
113 /** Current ripple effect bounds, used to constrain ripple effects. */
116 /** Current drawing bounds, used to compute dirty region. */
119 /** Current dirty bounds, union of current and previous drawing bounds. */
162 /** Whether bounds are being overridden. */
294 protected void onBoundsChange(Rect bounds) { argument
295 super.onBoundsChange(bounds);
298 mHotspotBounds.set(bounds);
350 // bounds the
[all...]
H A DRippleBackground.java46 public RippleBackground(RippleDrawable owner, Rect bounds, boolean isBounded) { argument
47 super(owner, bounds);
/frameworks/support/leanback/src/main/java/androidx/leanback/graphics/
H A DFitWidthBitmapDrawable.java35 * Any region outside the bounds will be clipped during {@link #draw(Canvas)} call. Top
153 Rect bounds = getBounds();
156 mDest.right = bounds.width();
159 float scale = (float) bounds.width() / source.width();
162 canvas.clipRect(bounds);
/frameworks/support/wear/src/androidTest/java/androidx/wear/widget/util/
H A DArcSwipe.java72 public ArcSwipe(Gesture gesture, RectF bounds) { argument
73 Preconditions.checkArgument(bounds.height() == bounds.width());
75 mBounds = bounds;
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
H A DExtendedBitmapDrawable.java109 Rect bounds = mOpts.placeholder.getBounds();
110 if (bounds.width() != 0) {
111 placeholderWidth = bounds.width();
115 if (bounds.height() != 0) {
116 placeholderHeight = bounds.height();
272 final Rect bounds = getBounds();
273 if (bounds.isEmpty()) {
320 protected void onBoundsChange(Rect bounds) { argument
321 super.onBoundsChange(bounds);
322 if (mPlaceholder != null) mPlaceholder.setBounds(bounds);
[all...]
/frameworks/base/core/java/android/gesture/
H A DGesture.java235 final RectF bounds = new RectF();
236 path.computeBounds(bounds, true);
238 final float sx = (width - 2 * inset) / bounds.width();
239 final float sy = (height - 2 * inset) / bounds.height();
243 path.offset(-bounds.left + (width - bounds.width() * scale) / 2.0f,
244 -bounds.top + (height - bounds.height() * scale) / 2.0f);
/frameworks/base/libs/hwui/pipeline/skia/
H A DSkiaDisplayList.h131 void attachRecorder(SkLiteRecorder* recorder, const SkIRect& bounds) { argument
132 recorder->reset(&mDisplayList, bounds);
/frameworks/base/libs/hwui/tests/unit/
H A DBakedOpDispatcherTests.cpp136 Rect bounds(10, 15, 20, 25);
141 RoundRectOp roundRectOp(bounds, Matrix4::identity(), nullptr, &paint, 0, 270);
146 PointsOp antiAliasedPointsOp(bounds, Matrix4::identity(), nullptr, &aaPaint, points, 4);
149 PointsOp pointsOp(bounds, Matrix4::identity(), nullptr, &paint, points, 4);
153 LinesOp antiAliasedLinesOp(bounds, Matrix4::identity(), nullptr, &aaPaint, points, 4);
156 LinesOp linesOp(bounds, Matrix4::identity(), nullptr, &paint, points, 4);
215 LayerUpdateQueue layerUpdateQueue; // Note: enqueue damage post-sync, so bounds are valid
278 Rect bounds(10, 15, 20, 25);
282 PathOp op(bounds, Matrix4::identity(), nullptr, &paint, &path);
/frameworks/native/services/surfaceflinger/
H A DTransform.h85 Rect transform(const Rect& bounds,
87 FloatRect transform(const FloatRect& bounds) const;
/frameworks/support/cardview/src/main/java/androidx/cardview/widget/
H A DRoundRectDrawableWithShadow.java136 protected void onBoundsChange(Rect bounds) { argument
137 super.onBoundsChange(bounds);
330 private void buildComponents(Rect bounds) { argument
335 mCardBounds.set(bounds.left + mRawMaxShadowSize, bounds.top + verticalOffset,
336 bounds.right - mRawMaxShadowSize, bounds.bottom - verticalOffset);
386 void drawRoundRect(Canvas canvas, RectF bounds, float cornerRadius, Paint paint); argument
/frameworks/support/compat/src/main/java/androidx/core/graphics/drawable/
H A DRoundedBitmapDrawableFactory.java61 Rect bounds, Rect outRect) {
63 bounds, outRect, ViewCompat.LAYOUT_DIRECTION_LTR);
60 gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight, Rect bounds, Rect outRect) argument
/frameworks/base/core/java/android/view/autofill/
H A DIAutoFillManager.aidl42 in Rect bounds, in AutofillValue value, int userId, boolean hasCallback, int flags,
46 void updateSession(int sessionId, in AutofillId id, in Rect bounds,
49 in AutofillId autoFillId, in Rect bounds, in AutofillValue value, int userId,
/frameworks/base/services/core/java/com/android/server/am/
H A DTaskRecord.java303 // Last non-fullscreen bounds the task was launched in or resized to.
434 final Rect bounds = updateOverrideConfigurationFromLaunchBounds();
436 getStack().getWindowContainerController(), userId, bounds,
458 // Reset current bounds for task whose bounds shouldn't be persisted so it uses
487 public void requestResize(Rect bounds, int resizeMode) { argument
488 mService.resizeTask(taskId, bounds, resizeMode);
491 boolean resize(Rect bounds, int resizeMode, boolean preserveWindow, boolean deferResume) { argument
500 // If this is a forced resize, let it go through even if the bounds is not changing,
503 if (equivalentOverrideBounds(bounds)
564 getWindowContainerBounds(Rect bounds) argument
1532 canResizeToBounds(Rect bounds) argument
1670 adjustForMinimalTaskDimensions(Rect bounds) argument
1718 computeNewOverrideConfigurationForBounds(Rect bounds, Rect insetBounds) argument
1738 updateOverrideConfiguration(Rect bounds) argument
1750 updateOverrideConfiguration(Rect bounds, @Nullable Rect insetBounds) argument
1812 computeOverrideConfiguration(Configuration config, Rect bounds, Rect insetBounds, boolean overrideWidth, boolean overrideHeight) argument
[all...]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawable/
H A DUserIconDrawable.java237 * intrinsic size for layout. It is independent of the bounds.
361 protected void onBoundsChange(Rect bounds) { argument
362 if (bounds.isEmpty() || (mUserIcon == null && mUserDrawable == null)) {
367 float newDisplayRadius = Math.min(bounds.width(), bounds.height()) * 0.5f;
378 mDisplayRadius = Math.min(bounds.width(), bounds.height()) * 0.5f;
380 RectF dstRect = new RectF(bounds.exactCenterX() - iconRadius,
381 bounds.exactCenterY() - iconRadius,
382 bounds
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
H A DPipTouchHandler.java83 // The current movement bounds
86 // The reference inset bounds, used to determine the dismiss fraction
88 // The reference bounds used to calculate the normal/expanded target bounds
96 // us to send stale bounds
234 // Always synchronize the motion helper bounds once PiP animations finish
263 // Re-calculate the expanded bounds
284 // Defer the update of the current movement bounds until after the user finishes
323 // Update the movement bounds after doing the calculations based on the old movement bounds
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DSubtitleView.java55 /** Temporary rectangle used for computing line bounds. */
307 final RectF bounds = mLineBounds;
317 bounds.left = layout.getLineLeft(i) -innerPaddingX;
318 bounds.right = layout.getLineRight(i) + innerPaddingX;
319 bounds.top = previousBottom;
320 bounds.bottom = layout.getLineBottom(i);
321 previousBottom = bounds.bottom;
323 c.drawRoundRect(bounds, cornerRadius, cornerRadius, paint);
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DFakeShadowDrawable.java109 protected void onBoundsChange(Rect bounds) { argument
110 super.onBoundsChange(bounds);
269 private void buildComponents(Rect bounds) { argument
274 mCardBounds.set(bounds.left + mMaxShadowSize, bounds.top + verticalOffset,
275 bounds.right - mMaxShadowSize, bounds.bottom - verticalOffset);
/frameworks/ex/framesequence/src/android/support/rastermill/
H A DFrameSequenceDrawable.java294 * <p> The masking circle will be the largest circle contained in the Drawable's bounds.
408 final Rect bounds = getBounds();
411 final float scaleX = 1.0f * bounds.width() / bitmapWidth;
412 final float scaleY = 1.0f * bounds.height() / bitmapHeight;
415 // scale and translate to account for bounds, so we can operate in intrinsic
417 canvas.translate(bounds.left, bounds.top);
420 final float unscaledCircleDiameter = Math.min(bounds.width(), bounds.height());

Completed in 774 milliseconds

1234567891011>>