double x = rad * Math.cos(radians);
double y = rad * Math.sin(radians);
return new PointF(origin.x + (float) x, origin.y + (float) y);
}
public void setDonutSize(float size, DonutMode mode) {
<BUG>switch(mode) {
</BUG>
case PERCENT:
<BUG>if(size < 0 || size > 1) {
</BUG>
throw new IllegalArgumentException(

double x = rad * Math.cos(radians);
double y = rad * Math.sin(radians);
return new PointF(origin.x + (float) x, origin.y + (float) y);
}
public void setDonutSize(float size, DonutMode mode) {
switch (mode) {
case PERCENT:
if (size < 0 || size > 1) {
throw new IllegalArgumentException(
