package o; import android.animation.IntEvaluator; import android.animation.PropertyValuesHolder; import android.animation.ValueAnimator; import android.view.animation.AccelerateDecelerateInterpolator; import o.NPh; /* loaded from: classes3.dex */ public final class SuD extends C17642yaU { private xVa f; private int h; private int i; @Override // o.C17642yaU, o.XKS public final /* synthetic */ ValueAnimator PW_() { return PW_(); } public SuD(NPh.RVV rvv) { super(rvv); this.f = new xVa(); } @Override // o.C17642yaU /* renamed from: PM_ */ public final ValueAnimator PW_() { ValueAnimator valueAnimator = new ValueAnimator(); valueAnimator.setDuration(350L); valueAnimator.setInterpolator(new AccelerateDecelerateInterpolator()); valueAnimator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener(this) { // from class: o.SuD.2 private SuD c; { this.c = this; } @Override // android.animation.ValueAnimator.AnimatorUpdateListener public final void onAnimationUpdate(ValueAnimator valueAnimator2) { SuD.PF_(this.c, valueAnimator2); } }); return valueAnimator; } public final SuD e(int i, int i2, int i3, int i4) { if (this.c != 0 && (this.a != i || this.e != i2 || this.h != i3 || this.i != i4)) { this.a = i; this.e = i2; this.h = i3; this.i = i4; ((ValueAnimator) this.c).setValues(PB_(false), PB_(true), PG_(false), PG_(true), PH_(false), PH_(true)); } return this; } private PropertyValuesHolder PG_(boolean z) { int i; int i2; String str; if (z) { i2 = this.h; i = i2 / 2; str = "ANIMATION_RADIUS_REVERSE"; } else { i = this.h; i2 = i / 2; str = "ANIMATION_RADIUS"; } PropertyValuesHolder ofInt = PropertyValuesHolder.ofInt(str, i, i2); ofInt.setEvaluator(new IntEvaluator()); return ofInt; } private PropertyValuesHolder PH_(boolean z) { int i; String str; int i2 = 0; if (z) { str = "ANIMATION_STROKE_REVERSE"; i2 = this.h; i = 0; } else { i = this.h; str = "ANIMATION_STROKE"; } PropertyValuesHolder ofInt = PropertyValuesHolder.ofInt(str, i2, i); ofInt.setEvaluator(new IntEvaluator()); return ofInt; } static /* synthetic */ void PF_(SuD suD, ValueAnimator valueAnimator) { int intValue = ((Integer) valueAnimator.getAnimatedValue("ANIMATION_COLOR")).intValue(); int intValue2 = ((Integer) valueAnimator.getAnimatedValue("ANIMATION_COLOR_REVERSE")).intValue(); int intValue3 = ((Integer) valueAnimator.getAnimatedValue("ANIMATION_RADIUS")).intValue(); int intValue4 = ((Integer) valueAnimator.getAnimatedValue("ANIMATION_RADIUS_REVERSE")).intValue(); int intValue5 = ((Integer) valueAnimator.getAnimatedValue("ANIMATION_STROKE")).intValue(); int intValue6 = ((Integer) valueAnimator.getAnimatedValue("ANIMATION_STROKE_REVERSE")).intValue(); suD.f.e = intValue; suD.f.b = intValue2; suD.f.c = intValue3; suD.f.d = intValue4; suD.f.a = intValue5; suD.f.f = intValue6; if (suD.b != null) { suD.b.b(suD.f); } } }