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 android.view.animation.DecelerateInterpolator;
import ඓ.ᕣ.K.K.AbstractC0747;

/* renamed from: ඓ.ᕣ.K.K.㿎.ῲ  reason: contains not printable characters */
/* compiled from: SearchPathBuilder */
public class C0762 extends AbstractC0747 {

    /* renamed from: Ԕ  reason: contains not printable characters */
    public Path f3896;

    /* renamed from: ᕣ  reason: contains not printable characters */
    public Path f3897;

    /* renamed from: ᨨ  reason: contains not printable characters */
    public float f3898;

    /* renamed from: 㑃  reason: contains not printable characters */
    public Path f3899;

    /* renamed from: 㳳  reason: contains not printable characters */
    public Paint f3900;

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

    /* renamed from: 䁗  reason: contains not printable characters */
    public PathMeasure f3902;

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

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: ῲ  reason: contains not printable characters */
    public void m2293(Context context) {
        this.f3898 = this.f3803;
        this.f3900 = new Paint(1);
        this.f3900.setStyle(Paint.Style.STROKE);
        this.f3900.setStrokeWidth(15.0f);
        this.f3900.setColor(-16777216);
        this.f3900.setDither(true);
        this.f3900.setFilterBitmap(true);
        this.f3900.setStrokeCap(Paint.Cap.ROUND);
        this.f3900.setStrokeJoin(Paint.Join.ROUND);
        this.f3896 = new Path();
        this.f3902 = new PathMeasure();
        float f = this.f3898 * 0.4f;
        this.f3897 = new Path();
        this.f3897.addArc(new RectF(m2199() - this.f3898, m2198() - this.f3898, m2199() + this.f3898, m2198() + this.f3898), 45.0f, 359.9f);
        this.f3902.setPath(this.f3897, false);
        float[] fArr = new float[2];
        this.f3902.getPosTan(0.0f, fArr, null);
        this.f3899 = new Path();
        this.f3899.addArc(new RectF(m2199() - f, m2198() - f, m2199() + f, m2198() + f), 45.0f, 359.9f);
        this.f3899.lineTo(fArr[0], fArr[1]);
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: K  reason: contains not printable characters */
    public void m2297(Canvas canvas) {
        canvas.drawPath(this.f3896, this.f3900);
    }

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

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

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

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: K  reason: contains not printable characters */
    public void m2296(ValueAnimator valueAnimator, float f) {
        int i = this.f3901;
        if (i == 0 || i == 1) {
            this.f3896.reset();
            this.f3896.lineTo(0.0f, 0.0f);
            this.f3902.setPath(this.f3897, false);
            float length = this.f3902.getLength() * f;
            this.f3902.getSegment((float) (((double) length) - ((0.5d - Math.abs(((double) f) - 0.5d)) * 200.0d)), length, this.f3896, true);
        } else if (i == 2) {
            this.f3896.reset();
            this.f3896.lineTo(0.0f, 0.0f);
            this.f3902.setPath(this.f3897, false);
            this.f3902.getSegment(0.0f, this.f3902.getLength() * f, this.f3896, true);
        } else if (i == 3) {
            this.f3902.setPath(this.f3899, false);
            float length2 = this.f3902.getLength();
            this.f3902.getSegment((1.0f - f) * length2, length2, this.f3896, true);
        }
    }

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