Searched refs:mDstRect (Results 1 – 4 of 4) sorted by relevance
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/ |
D | RoundedBitmapDrawable.java | 54 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/ |
D | BitmapDrawable.java | 85 private final Rect mDstRect = new Rect(); // #updateDstRectAndInsetsIfDirty() sets this field in BitmapDrawable 540 canvas.translate(mDstRect.right - mDstRect.left, 0); in draw() 544 canvas.drawBitmap(bitmap, null, mDstRect, paint); in draw() 552 updateMirrorMatrix(mDstRect.right - mDstRect.left); in draw() 563 canvas.drawRect(mDstRect, paint); in draw() 581 bounds, mDstRect, layoutDirection); in updateDstRectAndInsetsIfDirty() 583 final int left = mDstRect.left - bounds.left; in updateDstRectAndInsetsIfDirty() 584 final int top = mDstRect.top - bounds.top; in updateDstRectAndInsetsIfDirty() 585 final int right = bounds.right - mDstRect.right; in updateDstRectAndInsetsIfDirty() 586 final int bottom = bounds.bottom - mDstRect.bottom; in updateDstRectAndInsetsIfDirty() [all …]
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | BitmapsRectActivity.java | 44 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/ |
D | RoundedBitmapDrawable21.java | 34 outline.setRoundRect(mDstRect, getCornerRadius()); in getOutline()
|