@Test public void circle() { region.set(16, 16, 48, 48); BadgeShape.circle(0.5f, Gravity.CENTER).onDraw(canvas, region, paint); canvas.assertDrawn(TestCanvas.Shape.OVAL, region); }
public static BadgeShape circle(@FloatRange(from = 0, to = 1) float scale, int gravity) { return oval(scale, 1, gravity); }
BadgeShape { public static BadgeShape circle(@FloatRange(from = 0, to = 1) float scale, int gravity) { return oval(scale, 1, gravity); } }
BadgeShape { public static BadgeShape circle(@FloatRange(from = 0, to = 1) float scale, int gravity) { return oval(scale, 1, gravity); } protected  BadgeShape(@FloatRange(from = 0, to = 1) float scale, float aspectRatio, int gravity); }
BadgeShape { public static BadgeShape circle(@FloatRange(from = 0, to = 1) float scale, int gravity) { return oval(scale, 1, gravity); } protected  BadgeShape(@FloatRange(from = 0, to = 1) float scale, float aspectRatio, int gravity); Rect draw(@NonNull Canvas canvas, @NonNull Rect bounds, @NonNull Paint paint, int layoutDirection); static BadgeShape circle(@FloatRange(from = 0, to = 1) float scale, int gravity); static BadgeShape oval(@FloatRange(from = 0, to = 1) float scale, float aspectRatio, int gravity); static BadgeShape rect(@FloatRange(from = 0, to = 1) float scale, float aspectRatio, int gravity); static BadgeShape rect(@FloatRange(from = 0, to = 1) float scale, float aspectRatio, int gravity,
                                  @FloatRange(from = 0, to = 1) final float radiusFactor); static BadgeShape square(@FloatRange(from = 0, to = 1) float scale, int gravity); static BadgeShape square(@FloatRange(from = 0, to = 1) float scale, int gravity,
                                    @FloatRange(from = 0, to = 1) float radiusFactor); }
BadgeShape { public static BadgeShape circle(@FloatRange(from = 0, to = 1) float scale, int gravity) { return oval(scale, 1, gravity); } protected  BadgeShape(@FloatRange(from = 0, to = 1) float scale, float aspectRatio, int gravity); Rect draw(@NonNull Canvas canvas, @NonNull Rect bounds, @NonNull Paint paint, int layoutDirection); static BadgeShape circle(@FloatRange(from = 0, to = 1) float scale, int gravity); static BadgeShape oval(@FloatRange(from = 0, to = 1) float scale, float aspectRatio, int gravity); static BadgeShape rect(@FloatRange(from = 0, to = 1) float scale, float aspectRatio, int gravity); static BadgeShape rect(@FloatRange(from = 0, to = 1) float scale, float aspectRatio, int gravity,
                                  @FloatRange(from = 0, to = 1) final float radiusFactor); static BadgeShape square(@FloatRange(from = 0, to = 1) float scale, int gravity); static BadgeShape square(@FloatRange(from = 0, to = 1) float scale, int gravity,
                                    @FloatRange(from = 0, to = 1) float radiusFactor);  }