package ඓ.ᕣ.K.K.㴹;

import android.animation.Animator;
import android.animation.ValueAnimator;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.PathMeasure;
import android.graphics.RectF;
import com.google.android.material.progressindicator.BaseProgressIndicator;
import ඓ.ᕣ.K.K.AbstractC0747;

/* renamed from: ඓ.ᕣ.K.K.㴹.ඓ  reason: contains not printable characters */
/* compiled from: SnakeCircleBuilder */
public class C0752 extends AbstractC0747 {

    /* renamed from: Ԕ  reason: contains not printable characters */
    public int f3832 = BaseProgressIndicator.MAX_ALPHA;

    /* renamed from: ؿ  reason: contains not printable characters */
    public float f3833;

    /* renamed from: ݜ  reason: contains not printable characters */
    public Path f3834;

    /* renamed from: ᓣ  reason: contains not printable characters */
    public Path f3835;

    /* renamed from: ᕣ  reason: contains not printable characters */
    public float f3836;

    /* renamed from: ᨨ  reason: contains not printable characters */
    public Paint f3837;

    /* renamed from: 㑃  reason: contains not printable characters */
    public RectF f3838;

    /* renamed from: 㗗  reason: contains not printable characters */
    public float f3839;

    /* renamed from: 㗽  reason: contains not printable characters */
    public PathMeasure f3840;

    /* renamed from: 㳳  reason: contains not printable characters */
    public float f3841;

    /* renamed from: 㿎  reason: contains not printable characters */
    public int f3842 = 0;

    /* renamed from: 䁗  reason: contains not printable characters */
    public RectF f3843;

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    public void onAnimationRepeat(Animator animator) {
        int i = this.f3842 + 1;
        this.f3842 = i;
        if (i > 1) {
            this.f3842 = 0;
        }
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: ῲ  reason: contains not printable characters */
    public void m2236(Context context) {
        this.f3841 = this.f3803 * 1.0f;
        this.f3836 = this.f3841 * 0.7f;
        this.f3837 = new Paint(1);
        this.f3837.setStyle(Paint.Style.STROKE);
        this.f3837.setStrokeWidth(this.f3836 * 0.4f);
        this.f3837.setColor(-1);
        this.f3837.setDither(true);
        this.f3837.setFilterBitmap(true);
        this.f3837.setStrokeCap(Paint.Cap.ROUND);
        this.f3837.setStrokeJoin(Paint.Join.ROUND);
        this.f3839 = 0.0f;
        this.f3838 = new RectF();
        this.f3838.set(m2199() - this.f3841, m2198() - this.f3841, m2199() + this.f3841, m2198() + this.f3841);
        this.f3843 = new RectF();
        this.f3843.set(m2199() - this.f3836, m2198() - this.f3836, m2199() + this.f3836, m2198() + this.f3836);
        this.f3834 = new Path();
        this.f3840 = new PathMeasure();
        this.f3835 = new Path();
        float f = this.f3841 * 0.3f;
        float f2 = 0.5f * f;
        this.f3835.moveTo(m2199() - (this.f3841 * 0.8f), m2198());
        this.f3835.lineTo(m2199() - f, m2198());
        this.f3835.lineTo(m2199() - f2, m2198() + f2);
        this.f3835.lineTo(m2199() + f2, m2198() - f2);
        this.f3835.lineTo(m2199() + f, m2198());
        this.f3835.lineTo((this.f3841 * 0.8f) + m2199(), m2198());
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: K  reason: contains not printable characters */
    public void m2238(ValueAnimator valueAnimator) {
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: K  reason: contains not printable characters */
    public void m2240(Canvas canvas) {
        canvas.save();
        this.f3837.setStrokeWidth(this.f3841 * 0.05f);
        this.f3837.setAlpha((int) (((float) this.f3832) * 0.6f));
        canvas.drawCircle(m2199(), m2198(), this.f3841, this.f3837);
        canvas.drawCircle(m2199(), m2198(), this.f3836, this.f3837);
        canvas.restore();
        canvas.save();
        this.f3837.setStrokeWidth(this.f3841 * 0.1f);
        this.f3837.setAlpha(this.f3832);
        canvas.rotate(this.f3839, m2199(), m2198());
        canvas.drawArc(this.f3838, 0.0f, 120.0f, false, this.f3837);
        canvas.drawArc(this.f3838, 180.0f, 120.0f, false, this.f3837);
        canvas.restore();
        canvas.save();
        this.f3837.setAlpha((int) (((float) this.f3832) * 0.6f));
        canvas.drawPath(this.f3834, this.f3837);
        canvas.restore();
        canvas.save();
        this.f3837.setStrokeWidth(this.f3841 * 0.1f);
        this.f3837.setAlpha(this.f3832);
        canvas.rotate(this.f3833, m2199(), m2198());
        canvas.drawArc(this.f3843, 60.0f, 60.0f, false, this.f3837);
        canvas.drawArc(this.f3843, 180.0f, 180.0f, false, this.f3837);
        canvas.restore();
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: 㸾  reason: contains not printable characters */
    public void m2242() {
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: K  reason: contains not printable characters */
    public void m2237(int i) {
        this.f3832 = i;
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: K  reason: contains not printable characters */
    public void m2239(ValueAnimator valueAnimator, float f) {
        this.f3839 = f * 360.0f;
        this.f3833 = (1.0f - f) * 360.0f;
        int i = this.f3842;
        if (i == 0) {
            this.f3834.reset();
            this.f3834.lineTo(0.0f, 0.0f);
            this.f3840.setPath(this.f3835, false);
            this.f3840.getSegment(0.0f, this.f3840.getLength() * f, this.f3834, true);
        } else if (i == 1) {
            this.f3834.reset();
            this.f3834.lineTo(0.0f, 0.0f);
            this.f3840.setPath(this.f3835, false);
            float length = this.f3840.getLength();
            this.f3840.getSegment(this.f3840.getLength() * f, length, this.f3834, true);
        }
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: K  reason: contains not printable characters */
    public void m2241(ColorFilter colorFilter) {
        this.f3837.setColorFilter(colorFilter);
    }
}
