Home
last modified time | relevance | path

Searched refs:cornerRadius (Results 1 – 9 of 9) sorted by relevance

/frameworks/support/v7/cardview/jellybean-mr1/android/support/v7/widget/
DCardViewJellybeanMr1.java29 public void drawRoundRect(Canvas canvas, RectF bounds, float cornerRadius, in initStatic()
31 canvas.drawRoundRect(bounds, cornerRadius, cornerRadius, paint); in initStatic()
/frameworks/support/v7/cardview/eclair-mr1/android/support/v7/widget/
DCardViewEclairMr1.java39 public void drawRoundRect(Canvas canvas, RectF bounds, float cornerRadius, in initStatic()
41 final float twoRadius = cornerRadius * 2; in initStatic()
44 if (cornerRadius >= 1f) { in initStatic()
46 float roundedCornerRadius = cornerRadius + .5f; in initStatic()
73 canvas.drawRect(bounds.left, bounds.top + cornerRadius, in initStatic()
74 bounds.right, bounds.bottom - cornerRadius , paint); in initStatic()
DRoundRectDrawableWithShadow.java181 static float calculateVerticalPadding(float maxShadowSize, float cornerRadius, in calculateVerticalPadding() argument
184 return (float) (maxShadowSize * SHADOW_MULTIPLIER + (1 - COS_45) * cornerRadius); in calculateVerticalPadding()
190 static float calculateHorizontalPadding(float maxShadowSize, float cornerRadius, in calculateHorizontalPadding() argument
193 return (float) (maxShadowSize + (1 - COS_45) * cornerRadius); in calculateHorizontalPadding()
390 void drawRoundRect(Canvas canvas, RectF bounds, float cornerRadius, Paint paint); in drawRoundRect() argument
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/
DRoundedBitmapDrawable.java322 public void setCornerRadius(float cornerRadius) { in setCornerRadius() argument
323 if (mCornerRadius == cornerRadius) return; in setCornerRadius()
326 if (isGreaterThanZero(cornerRadius)) { in setCornerRadius()
332 mCornerRadius = cornerRadius; in setCornerRadius()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DFakeShadowDrawable.java144 static float calculateVerticalPadding(float maxShadowSize, float cornerRadius, in calculateVerticalPadding() argument
147 return (float) (maxShadowSize * SHADOW_MULTIPLIER + (1 - COS_45) * cornerRadius); in calculateVerticalPadding()
153 static float calculateHorizontalPadding(float maxShadowSize, float cornerRadius, in calculateHorizontalPadding() argument
156 return (float) (maxShadowSize + (1 - COS_45) * cornerRadius); in calculateHorizontalPadding()
DAnimateableViewBounds.java45 public AnimateableViewBounds(View source, int cornerRadius) { in AnimateableViewBounds() argument
47 mCornerRadius = cornerRadius; in AnimateableViewBounds()
DRecentsView.java143 float cornerRadius = context.getResources().getDimensionPixelSize( in RecentsView() local
158 outline.setRoundRect(0, 0, view.getWidth(), view.getHeight(), cornerRadius); in RecentsView()
/frameworks/support/design/base/android/support/design/widget/
DShadowDrawableWrapper.java156 public static float calculateVerticalPadding(float maxShadowSize, float cornerRadius, in calculateVerticalPadding() argument
159 return (float) (maxShadowSize * SHADOW_MULTIPLIER + (1 - COS_45) * cornerRadius); in calculateVerticalPadding()
165 public static float calculateHorizontalPadding(float maxShadowSize, float cornerRadius, in calculateHorizontalPadding() argument
168 return (float) (maxShadowSize + (1 - COS_45) * cornerRadius); in calculateHorizontalPadding()
/frameworks/base/core/java/com/android/internal/widget/
DSubtitleView.java307 final float cornerRadius = mCornerRadius; in onDraw() local
320 c.drawRoundRect(bounds, cornerRadius, cornerRadius, paint); in onDraw()