Home
last modified time | relevance | path

Searched refs:mRect (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/graphics/java/android/graphics/drawable/shapes/
DRectShape.java31 private RectF mRect = new RectF(); field in RectShape
37 canvas.drawRect(mRect, paint); in draw()
49 mRect.set(0, 0, width, height); in onResize()
56 return mRect; in rect()
62 shape.mRect = new RectF(mRect); in clone()
/frameworks/base/graphics/java/android/graphics/
DOutline.java65 public final Rect mRect = new Rect(); field in Outline
92 mRect.setEmpty(); in setEmpty()
152 mRect.set(src.mRect); in set()
184 mRect.set(left, top, right, bottom); in setRoundRect()
209 outRect.set(mRect); in getRect()
242 mRect.setEmpty(); in setOval()
269 mRect.setEmpty(); in setConvexPath()
278 mRect.offset(dx, dy); in offset()
/frameworks/base/core/java/android/animation/
DRectEvaluator.java29 private Rect mRect; field in RectEvaluator
51 mRect = reuseRect; in RectEvaluator()
77 if (mRect == null) { in evaluate()
80 mRect.set(left, top, right, bottom); in evaluate()
81 return mRect; in evaluate()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DClipOutlineActivity.java63 private Rect mRect = new Rect(); field in ClipOutlineActivity.RegionView
74 mRect.set(0, 0, w, h); in RegionView()
75 mRect.offset((int) (mClipPosition * w), getHeight() / 4); in RegionView()
77 outline.setRoundRect(mRect, w / 2); in RegionView()
DShapesActivity.java41 private final RectF mRect; field in ShapesActivity.ShapesView
49 mRect = new RectF(0.0f, 0.0f, 160.0f, 90.0f); in ShapesView()
84 canvas.drawRoundRect(mRect, 6.0f, 6.0f, mNormalPaint); in onDraw()
87 canvas.drawRoundRect(mRect, 6.0f, 6.0f, mStrokePaint); in onDraw()
90 canvas.drawRoundRect(mRect, 6.0f, 6.0f, mFillPaint); in onDraw()
DMultiProducerActivity.java280 private Rect mRect; field in MultiProducerActivity.ColorPulse
287 mRect = new Rect(rect.left + BORDER_WIDTH / 2, rect.top + BORDER_WIDTH / 2, in ColorPulse()
313 if (mRect != null && !mRect.isEmpty()) { in draw()
317 canvas.drawRect(mRect, mPaint); in draw()
342 return mRect == null || mRect.isEmpty() ? PixelFormat.OPAQUE : PixelFormat.TRANSLUCENT; in getOpacity()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/
DRectFEvaluator.java26 private RectF mRect = new RectF(); field in RectFEvaluator
49 mRect.set(left, top, right, bottom); in evaluate()
50 return mRect; in evaluate()
/frameworks/support/design/lollipop/android/support/design/widget/
DCircularBorderDrawableLollipop.java28 copyBounds(mRect); in getOutline()
29 outline.setOval(mRect); in getOutline()
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
DHitRectBug.java42 private Rect mRect = new Rect(); field in HitRectBug.TestDrawingView
87 mImageView.getHitRect(mRect); in dispatchDraw()
88 canvas.drawRect(mRect, mPaint); in dispatchDraw()
/frameworks/support/design/base/android/support/design/widget/
DCircularBorderDrawable.java44 final Rect mRect = new Rect(); field in CircularBorderDrawable
98 copyBounds(mRect); in draw()
99 rectF.set(mRect); in draw()
182 final Rect rect = mRect; in createGradientShader()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DBitmapUploadActivity.java36 private final Rect mRect = new Rect(); field in BitmapUploadActivity.UploadView
71 mRect.set(0, 0, getWidth(), getHeight()); in onDraw()
72 canvas.drawBitmap(mBitmap, null, mRect, null); in onDraw()
/frameworks/rs/java/tests/HealingBrush/src/rs/example/android/com/healingbrush/
DFindRegion.java149 RectF mRect = calcBounds(xy); in getBoundingRect() local
150 int mWidth = (((int) (8 + mRect.width())) & ~3); // bounding rectangle that is a power of 8 in getBoundingRect()
151 int mHeight = (((int) (8 + mRect.height())) & ~3); in getBoundingRect()
152 int mPasteOffX = (int) mRect.left - 1; in getBoundingRect()
153 int mPasteOffY = (int) mRect.top - 1; in getBoundingRect()
/frameworks/base/graphics/java/android/graphics/drawable/
DGradientDrawable.java167 private final RectF mRect = new RectF(); field in GradientDrawable
700 canvas.saveLayer(mRect.left - rad, mRect.top - rad, in draw()
701 mRect.right + rad, mRect.bottom + rad, in draw()
740 Math.min(mRect.width(), mRect.height()) * 0.5f); in draw()
741 canvas.drawRoundRect(mRect, rad, rad, mFillPaint); in draw()
743 canvas.drawRoundRect(mRect, rad, rad, mStrokePaint); in draw()
748 canvas.drawRect(mRect, mFillPaint); in draw()
751 canvas.drawRect(mRect, mStrokePaint); in draw()
756 canvas.drawOval(mRect, mFillPaint); in draw()
758 canvas.drawOval(mRect, mStrokePaint); in draw()
[all …]
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
DCircularBitmapDrawable.java42 private final Rect mRect = new Rect(); field in CircularBitmapDrawable
107 mRect.set(0, 0, bitmap.getWidth(), bitmap.getHeight()); in onDrawPlaceholderOrProgress()
108 onDrawCircularBitmap(bitmap, canvas, mRect, bounds, alpha); in onDrawPlaceholderOrProgress()
DBasicBitmapDrawable.java68 private final Rect mRect = new Rect(); field in BasicBitmapDrawable
387 getDrawVerticalOffsetMultiplier(), mRect); in draw() local
395 mRect); in draw()
404 onDrawBitmap(canvas, mRect, rotatedBounds); in draw()
/frameworks/base/tools/layoutlib/bridge/src/android/view/
DViewGroup_Delegate.java55 if (outline.mPath != null || (outline.mRect != null && !outline.mRect.isEmpty())) { in drawChild()
67 if(outline.mMode == Outline.MODE_ROUND_RECT && outline.mRect != null) { in drawShadow()
/frameworks/base/core/java/android/view/
DRenderNode.java319 … return nSetOutlineRoundRect(mNativeRenderNode, outline.mRect.left, outline.mRect.top, in setOutline()
320 outline.mRect.right, outline.mRect.bottom, outline.mRadius, outline.mAlpha); in setOutline()
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEditTextView.java136 private final Rect mRect = new Rect(); field in RecipientEditTextView
353 mRect.setEmpty(); in calculateTextHeight()
356 paint.getTextBounds(textHeightSample, 0, textHeightSample.length(), mRect); in calculateTextHeight()
358 mRect.left = 0; in calculateTextHeight()
359 mRect.right = 0; in calculateTextHeight()
361 return mRect.height(); in calculateTextHeight()
614 getWindowVisibleDisplayFrame(mRect); in setAdapter()
615 setDropDownHeight(mRect.bottom - mCoords[1] - mDropdownAnchor.getHeight() - in setAdapter()
/frameworks/ex/common/java/com/android/ex/editstyledtext/
DEditStyledText.java2771 private Rect mRect; field in EditStyledText.ColorPaletteDrawable
2775 mRect = new Rect(mergin, mergin, width - mergin, height - mergin); in ColorPaletteDrawable()
2781 canvas.drawRect(mRect, getPaint()); in draw()