package o; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.animation.ValueAnimator; import android.graphics.PointF; import android.view.animation.DecelerateInterpolator; import android.widget.OverScroller; import com.github.barteksc.pdfviewer.PDFView; /* renamed from: o.aJz, reason: case insensitive filesystem */ /* loaded from: classes.dex */ public final class C1641aJz { private ValueAnimator a; public OverScroller b; public boolean c = false; boolean d = false; public PDFView e; public C1641aJz(PDFView pDFView) { this.e = pDFView; this.b = new OverScroller(pDFView.getContext()); } public final void e(float f, float f2) { ValueAnimator valueAnimator = this.a; if (valueAnimator != null) { valueAnimator.cancel(); this.a = null; } this.c = false; this.b.forceFinished(true); this.a = ValueAnimator.ofFloat(f, f2); RVV rvv = new RVV(this); this.a.setInterpolator(new DecelerateInterpolator()); this.a.addUpdateListener(rvv); this.a.addListener(rvv); this.a.setDuration(400L); this.a.start(); } public final void a(float f, float f2) { ValueAnimator valueAnimator = this.a; if (valueAnimator != null) { valueAnimator.cancel(); this.a = null; } this.c = false; this.b.forceFinished(true); this.a = ValueAnimator.ofFloat(f, f2); LWm lWm = new LWm(this); this.a.setInterpolator(new DecelerateInterpolator()); this.a.addUpdateListener(lWm); this.a.addListener(lWm); this.a.setDuration(400L); this.a.start(); } public final void e(float f, float f2, float f3, float f4) { ValueAnimator valueAnimator = this.a; if (valueAnimator != null) { valueAnimator.cancel(); this.a = null; } this.c = false; this.b.forceFinished(true); ValueAnimator ofFloat = ValueAnimator.ofFloat(f3, f4); this.a = ofFloat; ofFloat.setInterpolator(new DecelerateInterpolator()); Sts sts = new Sts(this, f, f2); this.a.addUpdateListener(sts); this.a.addListener(sts); this.a.setDuration(400L); this.a.start(); } public final void e(int i, int i2, int i3, int i4, int i5, int i6, int i7, int i8) { ValueAnimator valueAnimator = this.a; if (valueAnimator != null) { valueAnimator.cancel(); this.a = null; } this.c = false; this.b.forceFinished(true); this.c = true; this.b.fling(i, i2, i3, i4, i5, i6, i7, i8); } public final void a() { ValueAnimator valueAnimator = this.a; if (valueAnimator != null) { valueAnimator.cancel(); this.a = null; } this.c = false; this.b.forceFinished(true); } /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.aJz$RVV */ /* loaded from: classes.dex */ public class RVV extends AnimatorListenerAdapter implements ValueAnimator.AnimatorUpdateListener { private C1641aJz c; RVV(C1641aJz c1641aJz) { this.c = c1641aJz; } @Override // android.animation.ValueAnimator.AnimatorUpdateListener public final void onAnimationUpdate(ValueAnimator valueAnimator) { this.c.e.e(((Float) valueAnimator.getAnimatedValue()).floatValue(), this.c.e.i, true); this.c.e.d(); } @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener public final void onAnimationCancel(Animator animator) { this.c.e.c(); this.c.d = false; uFI ufi = this.c.e.D; } @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener public final void onAnimationEnd(Animator animator) { this.c.e.c(); this.c.d = false; uFI ufi = this.c.e.D; } } /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.aJz$LWm */ /* loaded from: classes.dex */ public class LWm extends AnimatorListenerAdapter implements ValueAnimator.AnimatorUpdateListener { private C1641aJz c; LWm(C1641aJz c1641aJz) { this.c = c1641aJz; } @Override // android.animation.ValueAnimator.AnimatorUpdateListener public final void onAnimationUpdate(ValueAnimator valueAnimator) { this.c.e.e(this.c.e.j, ((Float) valueAnimator.getAnimatedValue()).floatValue(), true); this.c.e.d(); } @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener public final void onAnimationCancel(Animator animator) { this.c.e.c(); this.c.d = false; uFI ufi = this.c.e.D; } @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener public final void onAnimationEnd(Animator animator) { this.c.e.c(); this.c.d = false; uFI ufi = this.c.e.D; } } /* renamed from: o.aJz$Sts */ /* loaded from: classes.dex */ class Sts implements ValueAnimator.AnimatorUpdateListener, Animator.AnimatorListener { private C1641aJz b; private final float d; private final float e; @Override // android.animation.Animator.AnimatorListener public final void onAnimationRepeat(Animator animator) { } @Override // android.animation.Animator.AnimatorListener public final void onAnimationStart(Animator animator) { } public Sts(C1641aJz c1641aJz, float f, float f2) { this.b = c1641aJz; this.e = f; this.d = f2; } @Override // android.animation.ValueAnimator.AnimatorUpdateListener public final void onAnimationUpdate(ValueAnimator valueAnimator) { this.b.e.Gr_(((Float) valueAnimator.getAnimatedValue()).floatValue(), new PointF(this.e, this.d)); } @Override // android.animation.Animator.AnimatorListener public final void onAnimationCancel(Animator animator) { this.b.e.c(); uFI ufi = this.b.e.D; } @Override // android.animation.Animator.AnimatorListener public final void onAnimationEnd(Animator animator) { this.b.e.c(); this.b.e.e(); uFI ufi = this.b.e.D; } } }