Home
last modified time | relevance | path

Searched refs:radii (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/graphics/java/android/graphics/drawable/
DPaintDrawable.java45 float[] radii = null; in setCornerRadius() local
47 radii = new float[8]; in setCornerRadius()
49 radii[i] = radius; in setCornerRadius()
52 setCornerRadii(radii); in setCornerRadius()
61 public void setCornerRadii(float[] radii) { in setCornerRadii() argument
62 if (radii == null) { in setCornerRadii()
67 setShape(new RoundRectShape(radii, null, null)); in setCornerRadii()
DGradientDrawable.java248 public void setCornerRadii(@Nullable float[] radii) { in setCornerRadii() argument
249 mGradientState.setCornerRadii(radii); in setCornerRadii()
2329 public void setCornerRadii(float[] radii) { in setCornerRadii() argument
2330 mRadiusArray = radii; in setCornerRadii()
2331 if (radii == null) { in setCornerRadii()
/frameworks/base/graphics/java/android/graphics/
DPath.java658 public void addRoundRect(@NonNull RectF rect, @NonNull float[] radii, @NonNull Direction dir) { in addRoundRect() argument
662 addRoundRect(rect.left, rect.top, rect.right, rect.bottom, radii, dir); in addRoundRect()
674 @NonNull float[] radii, @NonNull Direction dir) { in addRoundRect() argument
675 if (radii.length < 8) { in addRoundRect()
679 nAddRoundRect(mNativePath, left, top, right, bottom, radii, dir.nativeInt); in addRoundRect()
854 float right, float bottom, float[] radii, int dir); in nAddRoundRect() argument
/frameworks/layoutlib/bridge/src/android/graphics/
DPath_Delegate.java396 float bottom, float[] radii, int dir) { in nAddRoundRect() argument
403 float[] cornerDimensions = new float[radii.length]; in nAddRoundRect()
404 for (int i = 0; i < radii.length; i++) { in nAddRoundRect()
405 cornerDimensions[i] = 2 * radii[i]; in nAddRoundRect()