package ῲ.㑃.K;

import android.os.Looper;
import android.util.AndroidRuntimeException;
import android.view.View;
import java.util.ArrayList;
import ῲ.ᨨ.ᨨ.C1729;
import ῲ.㑃.K.AbstractC2212;
import ῲ.㑃.K.C2231;

/* renamed from: ῲ.㑃.K.ῲ  reason: contains not printable characters */
/* compiled from: DynamicAnimation */
public abstract class AbstractC2212<T extends AbstractC2212<T>> implements C2231.AbstractC2233 {

    /* renamed from: Ԕ  reason: contains not printable characters */
    public static final AbstractC2225 f7685 = new C2226("scaleY");

    /* renamed from: ؿ  reason: contains not printable characters */
    public static final AbstractC2225 f7686 = new C2223("rotationX");

    /* renamed from: ᓣ  reason: contains not printable characters */
    public static final AbstractC2225 f7687 = new C2230("rotationY");

    /* renamed from: 㗗  reason: contains not printable characters */
    public static final AbstractC2225 f7688 = new C2218("rotation");

    /* renamed from: 㗽  reason: contains not printable characters */
    public static final AbstractC2225 f7689 = new C2213("alpha");

    /* renamed from: 䁗  reason: contains not printable characters */
    public static final AbstractC2225 f7690 = new C2219("scaleX");

    /* renamed from: ʬ  reason: contains not printable characters */
    public boolean f7691 = false;

    /* renamed from: ඓ  reason: contains not printable characters */
    public final AbstractC2209 f7692;

    /* renamed from: ᕣ  reason: contains not printable characters */
    public final ArrayList<AbstractC2215> f7693 = new ArrayList<>();

    /* renamed from: ᨨ  reason: contains not printable characters */
    public long f7694 = 0;

    /* renamed from: ῲ  reason: contains not printable characters */
    public float f7695 = Float.MAX_VALUE;

    /* renamed from: ⁱ  reason: contains not printable characters */
    public float f7696 = Float.MAX_VALUE;

    /* renamed from: K  reason: contains not printable characters */
    public float f7697 = 0.0f;

    /* renamed from: 㑃  reason: contains not printable characters */
    public final ArrayList<AbstractC2217> f7698 = new ArrayList<>();

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

    /* renamed from: 㴹  reason: contains not printable characters */
    public boolean f7700 = false;

    /* renamed from: 㸾  reason: contains not printable characters */
    public final Object f7701;

    /* renamed from: 㿎  reason: contains not printable characters */
    public float f7702 = (-this.f7696);

    /* renamed from: ῲ.㑃.K.ῲ$ʬ  reason: contains not printable characters */
    /* compiled from: DynamicAnimation */
    public static class C2213 extends AbstractC2225 {
        public C2213(String str) {
            super(str, null);
        }

        /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
        @Override // ῲ.㑃.K.AbstractC2209
        public float getValue(View view) {
            return view.getAlpha();
        }

        /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, float] */
        @Override // ῲ.㑃.K.AbstractC2209
        public void setValue(View view, float f) {
            view.setAlpha(f);
        }
    }

    /* renamed from: ῲ.㑃.K.ῲ$Ԕ  reason: contains not printable characters */
    /* compiled from: DynamicAnimation */
    public static class C2214 extends AbstractC2225 {
        public C2214(String str) {
            super(str, null);
        }

        /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
        @Override // ῲ.㑃.K.AbstractC2209
        public float getValue(View view) {
            return view.getX();
        }

        /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, float] */
        @Override // ῲ.㑃.K.AbstractC2209
        public void setValue(View view, float f) {
            view.setX(f);
        }
    }

    /* renamed from: ῲ.㑃.K.ῲ$ؿ  reason: contains not printable characters */
    /* compiled from: DynamicAnimation */
    public interface AbstractC2215 {
        /* renamed from: K  reason: contains not printable characters */
        void m5852(AbstractC2212 v, boolean z, float f, float f2);
    }

    /* renamed from: ῲ.㑃.K.ῲ$ඓ  reason: contains not printable characters */
    /* compiled from: DynamicAnimation */
    public static class C2216 extends AbstractC2225 {
        public C2216(String str) {
            super(str, null);
        }

        /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
        @Override // ῲ.㑃.K.AbstractC2209
        public float getValue(View view) {
            return (float) view.getScrollY();
        }

        /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, float] */
        @Override // ῲ.㑃.K.AbstractC2209
        public void setValue(View view, float f) {
            view.setScrollY((int) f);
        }
    }

    /* renamed from: ῲ.㑃.K.ῲ$ᓣ  reason: contains not printable characters */
    /* compiled from: DynamicAnimation */
    public interface AbstractC2217 {
        /* renamed from: K  reason: contains not printable characters */
        void m5853(AbstractC2212 v, float f, float f2);
    }

    /* renamed from: ῲ.㑃.K.ῲ$ᕣ  reason: contains not printable characters */
    /* compiled from: DynamicAnimation */
    public static class C2218 extends AbstractC2225 {
        public C2218(String str) {
            super(str, null);
        }

        /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
        @Override // ῲ.㑃.K.AbstractC2209
        public float getValue(View view) {
            return view.getRotation();
        }

        /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, float] */
        @Override // ῲ.㑃.K.AbstractC2209
        public void setValue(View view, float f) {
            view.setRotation(f);
        }
    }

    /* renamed from: ῲ.㑃.K.ῲ$ᨨ  reason: contains not printable characters */
    /* compiled from: DynamicAnimation */
    public static class C2219 extends AbstractC2225 {
        public C2219(String str) {
            super(str, null);
        }

        /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
        @Override // ῲ.㑃.K.AbstractC2209
        public float getValue(View view) {
            return view.getScaleX();
        }

        /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, float] */
        @Override // ῲ.㑃.K.AbstractC2209
        public void setValue(View view, float f) {
            view.setScaleX(f);
        }
    }

    /* renamed from: ῲ.㑃.K.ῲ$ῲ  reason: contains not printable characters */
    /* compiled from: DynamicAnimation */
    public static class C2220 extends AbstractC2225 {
        public C2220(String str) {
            super(str, null);
        }

        /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
        @Override // ῲ.㑃.K.AbstractC2209
        public float getValue(View view) {
            return C1729.m4501(view);
        }

        /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, float] */
        @Override // ῲ.㑃.K.AbstractC2209
        public void setValue(View view, float f) {
            C1729.m4506(view, f);
        }
    }

    /* renamed from: ῲ.㑃.K.ῲ$ⁱ  reason: contains not printable characters */
    /* compiled from: DynamicAnimation */
    public static class C2221 extends AbstractC2225 {
        public C2221(String str) {
            super(str, null);
        }

        /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
        @Override // ῲ.㑃.K.AbstractC2209
        public float getValue(View view) {
            return view.getTranslationY();
        }

        /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, float] */
        @Override // ῲ.㑃.K.AbstractC2209
        public void setValue(View view, float f) {
            view.setTranslationY(f);
        }
    }

    /* renamed from: ῲ.㑃.K.ῲ$K  reason: contains not printable characters */
    /* compiled from: DynamicAnimation */
    public static class C2222 extends AbstractC2225 {
        public C2222(String str) {
            super(str, null);
        }

        /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
        @Override // ῲ.㑃.K.AbstractC2209
        public float getValue(View view) {
            return view.getY();
        }

        /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, float] */
        @Override // ῲ.㑃.K.AbstractC2209
        public void setValue(View view, float f) {
            view.setY(f);
        }
    }

    /* renamed from: ῲ.㑃.K.ῲ$㑃  reason: contains not printable characters */
    /* compiled from: DynamicAnimation */
    public static class C2223 extends AbstractC2225 {
        public C2223(String str) {
            super(str, null);
        }

        /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
        @Override // ῲ.㑃.K.AbstractC2209
        public float getValue(View view) {
            return view.getRotationX();
        }

        /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, float] */
        @Override // ῲ.㑃.K.AbstractC2209
        public void setValue(View view, float f) {
            view.setRotationX(f);
        }
    }

    /* renamed from: ῲ.㑃.K.ῲ$㗗  reason: contains not printable characters */
    /* compiled from: DynamicAnimation */
    public static class C2224 {

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

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

    /* renamed from: ῲ.㑃.K.ῲ$㗽  reason: contains not printable characters */
    /* compiled from: DynamicAnimation */
    public static abstract class AbstractC2225 extends AbstractC2209<View> {
        public /* synthetic */ AbstractC2225(String str, C2227 r2) {
            super(str);
        }
    }

    /* renamed from: ῲ.㑃.K.ῲ$㳳  reason: contains not printable characters */
    /* compiled from: DynamicAnimation */
    public static class C2226 extends AbstractC2225 {
        public C2226(String str) {
            super(str, null);
        }

        /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
        @Override // ῲ.㑃.K.AbstractC2209
        public float getValue(View view) {
            return view.getScaleY();
        }

        /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, float] */
        @Override // ῲ.㑃.K.AbstractC2209
        public void setValue(View view, float f) {
            view.setScaleY(f);
        }
    }

    /* renamed from: ῲ.㑃.K.ῲ$㴹  reason: contains not printable characters */
    /* compiled from: DynamicAnimation */
    public static class C2227 extends AbstractC2225 {
        public C2227(String str) {
            super(str, null);
        }

        /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
        @Override // ῲ.㑃.K.AbstractC2209
        public float getValue(View view) {
            return view.getTranslationX();
        }

        /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, float] */
        @Override // ῲ.㑃.K.AbstractC2209
        public void setValue(View view, float f) {
            view.setTranslationX(f);
        }
    }

    /* renamed from: ῲ.㑃.K.ῲ$㸾  reason: contains not printable characters */
    /* compiled from: DynamicAnimation */
    public static class C2228 extends AbstractC2225 {
        public C2228(String str) {
            super(str, null);
        }

        /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
        @Override // ῲ.㑃.K.AbstractC2209
        public float getValue(View view) {
            return (float) view.getScrollX();
        }

        /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, float] */
        @Override // ῲ.㑃.K.AbstractC2209
        public void setValue(View view, float f) {
            view.setScrollX((int) f);
        }
    }

    /* renamed from: ῲ.㑃.K.ῲ$㿎  reason: contains not printable characters */
    /* compiled from: DynamicAnimation */
    public static class C2229 extends AbstractC2225 {
        public C2229(String str) {
            super(str, null);
        }

        /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
        @Override // ῲ.㑃.K.AbstractC2209
        public float getValue(View view) {
            return C1729.m4504(view);
        }

        /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, float] */
        @Override // ῲ.㑃.K.AbstractC2209
        public void setValue(View view, float f) {
            C1729.m4439(view, f);
        }
    }

    /* renamed from: ῲ.㑃.K.ῲ$䁗  reason: contains not printable characters */
    /* compiled from: DynamicAnimation */
    public static class C2230 extends AbstractC2225 {
        public C2230(String str) {
            super(str, null);
        }

        /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
        @Override // ῲ.㑃.K.AbstractC2209
        public float getValue(View view) {
            return view.getRotationY();
        }

        /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, float] */
        @Override // ῲ.㑃.K.AbstractC2209
        public void setValue(View view, float f) {
            view.setRotationY(f);
        }
    }

    static {
        new C2227("translationX");
        new C2221("translationY");
        new C2229("translationZ");
        new C2214("x");
        new C2222("y");
        new C2220("z");
        new C2228("scrollX");
        new C2216("scrollY");
    }

    public <K> AbstractC2212(K k, AbstractC2209<K> r4) {
        this.f7701 = k;
        this.f7692 = r4;
        AbstractC2209 r3 = this.f7692;
        if (r3 == f7688 || r3 == f7686 || r3 == f7687) {
            this.f7699 = 0.1f;
        } else if (r3 == f7689) {
            this.f7699 = 0.00390625f;
        } else if (r3 == f7690 || r3 == f7685) {
            this.f7699 = 0.00390625f;
        } else {
            this.f7699 = 1.0f;
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public static <T> void m5843(ArrayList<T> arrayList) {
        for (int size = arrayList.size() - 1; size >= 0; size--) {
            if (arrayList.get(size) == null) {
                arrayList.remove(size);
            }
        }
    }

    public void removeEndListener(AbstractC2215 r3) {
        ArrayList<AbstractC2215> arrayList = this.f7693;
        int indexOf = arrayList.indexOf(r3);
        if (indexOf >= 0) {
            arrayList.set(indexOf, null);
        }
    }

    public void removeUpdateListener(AbstractC2217 r3) {
        ArrayList<AbstractC2217> arrayList = this.f7698;
        int indexOf = arrayList.indexOf(r3);
        if (indexOf >= 0) {
            arrayList.set(indexOf, null);
        }
    }

    /* renamed from: ʬ  reason: contains not printable characters */
    public boolean m5844() {
        return this.f7700;
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public T m5846(float f) {
        this.f7695 = f;
        this.f7691 = true;
        return this;
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public abstract boolean m5847(long j);

    /* renamed from: ῲ  reason: contains not printable characters */
    public float m5845() {
        return this.f7699 * 0.75f;
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m5848() {
        if (Looper.myLooper() != Looper.getMainLooper()) {
            throw new AndroidRuntimeException("Animations may only be canceled on the main thread");
        } else if (this.f7700) {
            m5850(true);
        }
    }

    @Override // ῲ.㑃.K.C2231.AbstractC2233
    /* renamed from: K  reason: contains not printable characters */
    public boolean m5851(long j) {
        long j2 = this.f7694;
        if (j2 == 0) {
            this.f7694 = j;
            m5849(this.f7695);
            return false;
        }
        this.f7694 = j;
        boolean r7 = m5847(j - j2);
        this.f7695 = Math.min(this.f7695, this.f7696);
        this.f7695 = Math.max(this.f7695, this.f7702);
        m5849(this.f7695);
        if (r7) {
            m5850(false);
        }
        return r7;
    }

    /* renamed from: K  reason: contains not printable characters */
    public final void m5850(boolean z) {
        this.f7700 = false;
        C2231 r1 = C2231.m5854();
        r1.f7709.remove(this);
        int indexOf = r1.f7708.indexOf(this);
        if (indexOf >= 0) {
            r1.f7708.set(indexOf, null);
            r1.f7710 = true;
        }
        this.f7694 = 0;
        this.f7691 = false;
        for (int i = 0; i < this.f7693.size(); i++) {
            if (this.f7693.get(i) != null) {
                this.f7693.get(i).m5852(this, z, this.f7695, this.f7697);
            }
        }
        m5843(this.f7693);
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m5849(float f) {
        this.f7692.setValue(this.f7701, f);
        for (int i = 0; i < this.f7698.size(); i++) {
            if (this.f7698.get(i) != null) {
                this.f7698.get(i).m5853(this, this.f7695, this.f7697);
            }
        }
        m5843(this.f7698);
    }
}
