package ඓ.ᕣ.K.K.ᨨ;

import android.animation.ValueAnimator;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.RectF;
import ඓ.ᕣ.K.K.AbstractC0747;
import ඓ.ᕣ.K.K.ඓ.AbstractC0740;

/* renamed from: ඓ.ᕣ.K.K.ᨨ.K  reason: contains not printable characters */
/* compiled from: ChartRectBuilder */
public class C0743 extends AbstractC0740 {

    /* renamed from: Ԕ  reason: contains not printable characters */
    public float f3770;

    /* renamed from: ᕣ  reason: contains not printable characters */
    public volatile int f3771 = 0;

    /* renamed from: 㑃  reason: contains not printable characters */
    public volatile float f3772 = 0.0f;

    /* renamed from: 㗗  reason: contains not printable characters */
    public RectF f3773;

    /* renamed from: 㳳  reason: contains not printable characters */
    public volatile long f3774 = 500;

    /* renamed from: 䁗  reason: contains not printable characters */
    public Paint f3775;

    @Override // ඓ.ᕣ.K.K.ඓ.AbstractC0740
    /* renamed from: ඓ  reason: contains not printable characters */
    public int m2177() {
        return 6;
    }

    @Override // ඓ.ᕣ.K.K.ඓ.AbstractC0740
    /* renamed from: K  reason: contains not printable characters */
    public void m2180(Context context, Paint paint) {
        this.f3775 = paint;
        this.f3775.setStyle(Paint.Style.FILL_AND_STROKE);
        this.f3770 = this.f3803;
        this.f3773 = new RectF();
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: 㸾  reason: contains not printable characters */
    public void m2182() {
        this.f3771 = 0;
        this.f3772 = 0.0f;
    }

    @Override // ඓ.ᕣ.K.K.ඓ.AbstractC0740
    /* renamed from: K  reason: contains not printable characters */
    public void m2179(ValueAnimator valueAnimator, float f, int i) {
        this.f3771 = i;
        this.f3772 = f;
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: K  reason: contains not printable characters */
    public void m2181(Canvas canvas) {
        float f = (this.f3770 * 2.0f) / 5.0f;
        float f2 = f * 0.5f;
        float r3 = m2199() - this.f3770;
        float r4 = m2198() + this.f3770;
        this.f3773.setEmpty();
        int i = 0;
        while (i < 5 && i <= this.f3771) {
            float abs = (0.5f - Math.abs(this.f3772 - 0.5f)) * f;
            int i2 = i % 3;
            if (i == this.f3771) {
                this.f3773.set((((float) i) * f) + r3, r4 - ((((float) (i2 + 1)) * f) * this.f3772), ((((float) (i + 1)) * f) + r3) - f2, r4);
            } else {
                this.f3773.set((((float) i) * f) + r3, (r4 - (((float) (i2 + 1)) * f)) - abs, ((((float) (i + 1)) * f) + r3) - f2, r4);
            }
            canvas.drawRect(this.f3773, this.f3775);
            i++;
        }
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: K  reason: contains not printable characters */
    public void m2178(ValueAnimator valueAnimator) {
        this.f3774 = AbstractC0747.m2197(((double) m2201()) * 0.4d);
        valueAnimator.setDuration(this.f3774);
    }
}
