package ඓ.ᕣ.K.K;

import android.animation.Animator;
import android.animation.ValueAnimator;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.drawable.Drawable;
import android.view.animation.LinearInterpolator;

/* renamed from: ඓ.ᕣ.K.K.K  reason: contains not printable characters */
/* compiled from: ZLoadingBuilder */
public abstract class AbstractC0747 implements ValueAnimator.AnimatorUpdateListener, Animator.AnimatorListener {

    /* renamed from: ⁱ  reason: contains not printable characters */
    public static float f3799 = 56.0f;

    /* renamed from: ʬ  reason: contains not printable characters */
    public float f3800;

    /* renamed from: ඓ  reason: contains not printable characters */
    public ValueAnimator f3801;

    /* renamed from: ῲ  reason: contains not printable characters */
    public float f3802;

    /* renamed from: K  reason: contains not printable characters */
    public float f3803;

    /* renamed from: 㴹  reason: contains not printable characters */
    public double f3804 = 1.0d;

    /* renamed from: 㸾  reason: contains not printable characters */
    public Drawable.Callback f3805;

    public void onAnimationCancel(Animator animator) {
    }

    public void onAnimationEnd(Animator animator) {
    }

    public void onAnimationRepeat(Animator animator) {
    }

    public void onAnimationStart(Animator animator) {
    }

    public final void onAnimationUpdate(ValueAnimator valueAnimator) {
        m2205(valueAnimator, ((Float) valueAnimator.getAnimatedValue()).floatValue());
        Drawable.Callback callback = this.f3805;
        if (callback != null) {
            callback.invalidateDrawable(null);
        }
    }

    /* renamed from: ʬ  reason: contains not printable characters */
    public final float m2198() {
        return this.f3800 * 0.5f;
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public final float m2199() {
        return this.f3802 * 0.5f;
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public abstract void m2200(Context context);

    /* renamed from: K  reason: contains not printable characters */
    public abstract void m2203(int i);

    /* renamed from: K  reason: contains not printable characters */
    public abstract void m2204(ValueAnimator valueAnimator);

    /* renamed from: K  reason: contains not printable characters */
    public abstract void m2205(ValueAnimator valueAnimator, float f);

    /* renamed from: K  reason: contains not printable characters */
    public void m2206(Context context) {
        this.f3803 = ((f3799 * 0.5f) - 12.0f) * context.getResources().getDisplayMetrics().density;
        this.f3802 = f3799 * context.getResources().getDisplayMetrics().density;
        this.f3800 = f3799 * context.getResources().getDisplayMetrics().density;
        this.f3801 = ValueAnimator.ofFloat(0.0f, 1.0f);
        this.f3801.setRepeatCount(-1);
        this.f3801.setDuration(m2201());
        this.f3801.setStartDelay(333);
        this.f3801.setInterpolator(new LinearInterpolator());
    }

    /* renamed from: K  reason: contains not printable characters */
    public abstract void m2207(Canvas canvas);

    /* renamed from: K  reason: contains not printable characters */
    public abstract void m2208(ColorFilter colorFilter);

    /* renamed from: 㸾  reason: contains not printable characters */
    public abstract void m2209();

    /* renamed from: ῲ  reason: contains not printable characters */
    public static long m2197(double d) {
        return (long) Math.ceil(d);
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m2202(double d) {
        if (d <= 0.0d) {
            this.f3804 = 1.0d;
        } else {
            this.f3804 = d;
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public long m2201() {
        return m2197(this.f3804 * 1333.0d);
    }
}
