Home
last modified time | relevance | path

Searched refs:mDstRect (Results 1 – 5 of 5) sorted by relevance

/frameworks/support/v4/donut/android/support/v4/graphics/drawable/
DRoundedBitmapDrawable.java54 final Rect mDstRect = new Rect(); // Gravity.apply() sets this field in RoundedBitmapDrawable
225 gravityCompatApply(mGravity, minDimen, minDimen, getBounds(), mDstRect); in updateDstRect()
229 final int minDrawDimen = Math.min(mDstRect.width(), mDstRect.height()); in updateDstRect()
230 final int insetX = Math.max(0, (mDstRect.width() - minDrawDimen) / 2); in updateDstRect()
231 final int insetY = Math.max(0, (mDstRect.height() - minDrawDimen) / 2); in updateDstRect()
232 mDstRect.inset(insetX, insetY); in updateDstRect()
235 gravityCompatApply(mGravity, mBitmapWidth, mBitmapHeight, getBounds(), mDstRect); in updateDstRect()
237 mDstRectF.set(mDstRect); in updateDstRect()
262 canvas.drawBitmap(bitmap, null, mDstRect, mPaint); in draw()
/frameworks/base/graphics/java/android/graphics/drawable/
DBitmapDrawable.java86 private final Rect mDstRect = new Rect(); // #updateDstRectAndInsetsIfDirty() sets this field in BitmapDrawable
541 canvas.translate(mDstRect.right - mDstRect.left, 0); in draw()
545 canvas.drawBitmap(bitmap, null, mDstRect, paint); in draw()
553 updateMirrorMatrix(mDstRect.right - mDstRect.left); in draw()
564 canvas.drawRect(mDstRect, paint); in draw()
582 bounds, mDstRect, layoutDirection); in updateDstRectAndInsetsIfDirty()
584 final int left = mDstRect.left - bounds.left; in updateDstRectAndInsetsIfDirty()
585 final int top = mDstRect.top - bounds.top; in updateDstRectAndInsetsIfDirty()
586 final int right = bounds.right - mDstRect.right; in updateDstRectAndInsetsIfDirty()
587 final int bottom = bounds.bottom - mDstRect.bottom; in updateDstRectAndInsetsIfDirty()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawable/
DCircleFramedDrawable.java48 private RectF mDstRect; field in CircleFramedDrawable
94 mDstRect = new RectF(0, 0, mSize, mSize); in CircleFramedDrawable()
102 mDstRect.set(pad, pad, mSize - pad, mSize - pad); in draw()
103 canvas.drawBitmap(mBitmap, mSrcRect, mDstRect, null); in draw()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DBitmapsRectActivity.java44 private final RectF mDstRect; field in BitmapsRectActivity.BitmapsView
60 mDstRect = new RectF(fourth, half - half / 2.0f, fourth + fourth, half + half / 2.0f); in BitmapsView()
70 canvas.drawBitmap(mBitmap1, mSrcRect, mDstRect, mBitmapPaint); in onDraw()
/frameworks/support/v4/api21/android/support/v4/graphics/drawable/
DRoundedBitmapDrawable21.java34 outline.setRoundRect(mDstRect, getCornerRadius()); in getOutline()