Home
last modified time | relevance | path

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

/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/base/graphics/java/android/graphics/drawable/
DBitmapDrawable.java89 private final Rect mDstRect = new Rect(); // #updateDstRectAndInsetsIfDirty() sets this field in BitmapDrawable
544 canvas.translate(mDstRect.right - mDstRect.left, 0); in draw()
548 canvas.drawBitmap(bitmap, null, mDstRect, paint); in draw()
555 canvas.drawRect(mDstRect, paint); in draw()
586 final int dx = mDstRect.right - mDstRect.left; in updateShaderMatrix()
618 bounds, mDstRect, layoutDirection); in updateDstRectAndInsetsIfDirty()
620 final int left = mDstRect.left - bounds.left; in updateDstRectAndInsetsIfDirty()
621 final int top = mDstRect.top - bounds.top; in updateDstRectAndInsetsIfDirty()
622 final int right = bounds.right - mDstRect.right; in updateDstRectAndInsetsIfDirty()
623 final int bottom = bounds.bottom - mDstRect.bottom; in updateDstRectAndInsetsIfDirty()
[all …]