Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DFakeShadowDrawable.java54 final RectF mCardBounds; field in FakeShadowDrawable
98 mCardBounds = new RectF(); in FakeShadowDrawable()
190 final boolean drawHorizontalEdges = mCardBounds.width() - 2 * inset > 0; in drawShadow()
191 final boolean drawVerticalEdges = mCardBounds.height() - 2 * inset > 0; in drawShadow()
194 canvas.translate(mCardBounds.left + inset, mCardBounds.top + inset); in drawShadow()
198 mCardBounds.width() - 2 * inset, -mCornerRadius, in drawShadow()
204 canvas.translate(mCardBounds.right - inset, mCardBounds.bottom - inset); in drawShadow()
209 mCardBounds.width() - 2 * inset, -mCornerRadius + mShadowSize, in drawShadow()
215 canvas.translate(mCardBounds.left + inset, mCardBounds.bottom - inset); in drawShadow()
220 mCardBounds.height() - 2 * inset, -mCornerRadius, mEdgeShadowPaint); in drawShadow()
[all …]
/frameworks/support/cardview/src/main/java/androidx/cardview/widget/
DRoundRectDrawableWithShadow.java61 private final RectF mCardBounds; field in RoundRectDrawableWithShadow
101 mCardBounds = new RectF(); in RoundRectDrawableWithShadow()
245 sRoundRectHelper.drawRoundRect(canvas, mCardBounds, mCornerRadius, mPaint); in draw()
251 final boolean drawHorizontalEdges = mCardBounds.width() - 2 * inset > 0; in drawShadow()
252 final boolean drawVerticalEdges = mCardBounds.height() - 2 * inset > 0; in drawShadow()
255 canvas.translate(mCardBounds.left + inset, mCardBounds.top + inset); in drawShadow()
259 mCardBounds.width() - 2 * inset, -mCornerRadius, in drawShadow()
265 canvas.translate(mCardBounds.right - inset, mCardBounds.bottom - inset); in drawShadow()
270 mCardBounds.width() - 2 * inset, -mCornerRadius + mShadowSize, in drawShadow()
276 canvas.translate(mCardBounds.left + inset, mCardBounds.bottom - inset); in drawShadow()
[all …]