112 lines
3.8 KiB
Java
112 lines
3.8 KiB
Java
|
package o;
|
||
|
|
||
|
import android.animation.AnimatorSet;
|
||
|
import android.animation.ValueAnimator;
|
||
|
import android.view.animation.AccelerateDecelerateInterpolator;
|
||
|
import o.NPh;
|
||
|
import o.iyE;
|
||
|
|
||
|
/* renamed from: o.pPL, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes3.dex */
|
||
|
public final class C16564pPL extends iyE {
|
||
|
private C15696hnx i;
|
||
|
|
||
|
static /* synthetic */ void PT_(C16564pPL c16564pPL, ValueAnimator valueAnimator) {
|
||
|
c16564pPL.i.a = ((Integer) valueAnimator.getAnimatedValue()).intValue();
|
||
|
if (c16564pPL.b != null) {
|
||
|
c16564pPL.b.b(c16564pPL.i);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public C16564pPL(NPh.RVV rvv) {
|
||
|
super(rvv);
|
||
|
this.i = new C15696hnx();
|
||
|
}
|
||
|
|
||
|
@Override // o.iyE
|
||
|
public final iyE a(int i, int i2, int i3, boolean z) {
|
||
|
if (b(i, i2, i3, z)) {
|
||
|
AnimatorSet animatorSet = new AnimatorSet();
|
||
|
animatorSet.setInterpolator(new AccelerateDecelerateInterpolator());
|
||
|
this.c = animatorSet;
|
||
|
this.e = i;
|
||
|
this.a = i2;
|
||
|
this.j = i3;
|
||
|
this.h = z;
|
||
|
int i4 = i3 << 1;
|
||
|
this.f = i - i3;
|
||
|
this.g = i + i3;
|
||
|
this.i.c = this.f;
|
||
|
this.i.b = this.g;
|
||
|
this.i.a = i4;
|
||
|
iyE.HBt e = e(z);
|
||
|
long j = (long) (this.d * 0.8d);
|
||
|
long j2 = (long) (this.d * 0.5d);
|
||
|
ValueAnimator PX_ = PX_(e.d, e.b, j, false, this.i);
|
||
|
ValueAnimator PX_2 = PX_(e.e, e.a, j, true, this.i);
|
||
|
PX_2.setStartDelay((long) (this.d * 0.2d));
|
||
|
ValueAnimator PU_ = PU_(i4, i3, j2);
|
||
|
ValueAnimator PU_2 = PU_(i3, i4, j2);
|
||
|
PU_2.setStartDelay((long) (this.d * 0.5d));
|
||
|
((AnimatorSet) this.c).playTogether(PX_, PX_2, PU_, PU_2);
|
||
|
}
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
private ValueAnimator PU_(int i, int i2, long j) {
|
||
|
ValueAnimator ofInt = ValueAnimator.ofInt(i, i2);
|
||
|
ofInt.setInterpolator(new AccelerateDecelerateInterpolator());
|
||
|
ofInt.setDuration(j);
|
||
|
ofInt.addUpdateListener(new ValueAnimator.AnimatorUpdateListener(this) { // from class: o.pPL.3
|
||
|
private C16564pPL b;
|
||
|
|
||
|
{
|
||
|
this.b = this;
|
||
|
}
|
||
|
|
||
|
@Override // android.animation.ValueAnimator.AnimatorUpdateListener
|
||
|
public final void onAnimationUpdate(ValueAnimator valueAnimator) {
|
||
|
C16564pPL.PT_(this.b, valueAnimator);
|
||
|
}
|
||
|
});
|
||
|
return ofInt;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: private */
|
||
|
@Override // o.iyE
|
||
|
/* renamed from: c, reason: merged with bridge method [inline-methods] */
|
||
|
public C16564pPL a(float f) {
|
||
|
if (this.c != 0) {
|
||
|
long j = f * ((float) this.d);
|
||
|
int size = ((AnimatorSet) this.c).getChildAnimations().size();
|
||
|
for (int i = 0; i < size; i++) {
|
||
|
ValueAnimator valueAnimator = (ValueAnimator) ((AnimatorSet) this.c).getChildAnimations().get(i);
|
||
|
long startDelay = j - valueAnimator.getStartDelay();
|
||
|
long duration = valueAnimator.getDuration();
|
||
|
if (startDelay > duration) {
|
||
|
startDelay = duration;
|
||
|
} else if (startDelay < 0) {
|
||
|
startDelay = 0;
|
||
|
}
|
||
|
if ((i != size - 1 || startDelay > 0) && valueAnimator.getValues() != null && valueAnimator.getValues().length > 0) {
|
||
|
valueAnimator.setCurrentPlayTime(startDelay);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
@Override // o.iyE, o.XKS
|
||
|
public final /* synthetic */ XKS b(long j) {
|
||
|
super.b(j);
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
@Override // o.iyE
|
||
|
/* renamed from: d */
|
||
|
public final /* bridge */ /* synthetic */ iyE b(long j) {
|
||
|
super.b(j);
|
||
|
return this;
|
||
|
}
|
||
|
}
|