what-the-bank/sources/o/iyE.java

171 lines
4.9 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.animation.Animator;
import android.animation.AnimatorSet;
import android.animation.ValueAnimator;
import android.view.animation.AccelerateDecelerateInterpolator;
import java.util.Iterator;
import o.NPh;
/* loaded from: classes3.dex */
public class iyE extends XKS<AnimatorSet> {
int a;
int e;
int f;
int g;
boolean h;
private iED i;
int j;
public iyE(NPh.RVV rvv) {
super(rvv);
this.i = new iED();
}
@Override // o.XKS
/* renamed from: d, reason: merged with bridge method [inline-methods] */
public iyE b(long j) {
super.b(j);
return this;
}
public 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 = i - i3;
this.f = i4;
this.g = i + i3;
this.i.c = i4;
this.i.b = this.g;
HBt e = e(z);
long j = this.d / 2;
((AnimatorSet) this.c).playSequentially(PX_(e.d, e.b, j, false, this.i), PX_(e.e, e.a, j, true, this.i));
}
return this;
}
@Override // o.XKS
/* renamed from: d, reason: merged with bridge method [inline-methods] */
public iyE a(float f) {
if (this.c == 0) {
return this;
}
long j = f * ((float) this.d);
Iterator<Animator> it = ((AnimatorSet) this.c).getChildAnimations().iterator();
while (it.hasNext()) {
ValueAnimator valueAnimator = (ValueAnimator) it.next();
long duration = valueAnimator.getDuration();
if (j <= duration) {
duration = j;
}
valueAnimator.setCurrentPlayTime(duration);
j -= duration;
}
return this;
}
/* JADX INFO: Access modifiers changed from: package-private */
public final ValueAnimator PX_(int i, int i2, long j, boolean z, iED ied) {
ValueAnimator ofInt = ValueAnimator.ofInt(i, i2);
ofInt.setInterpolator(new AccelerateDecelerateInterpolator());
ofInt.setDuration(j);
ofInt.addUpdateListener(new ValueAnimator.AnimatorUpdateListener(this, ied, z) { // from class: o.iyE.5
private boolean b;
private iyE c;
private iED d;
{
this.c = this;
this.d = ied;
this.b = z;
}
@Override // android.animation.ValueAnimator.AnimatorUpdateListener
public final void onAnimationUpdate(ValueAnimator valueAnimator) {
iyE.PV_(this.c, this.d, valueAnimator, this.b);
}
});
return ofInt;
}
/* JADX INFO: Access modifiers changed from: package-private */
public final HBt e(boolean z) {
int i;
int i2;
int i3;
int i4;
if (z) {
int i5 = this.e;
int i6 = this.j;
i = i5 + i6;
int i7 = this.a;
i2 = i7 + i6;
i3 = i5 - i6;
i4 = i7 - i6;
} else {
int i8 = this.e;
int i9 = this.j;
i = i8 - i9;
int i10 = this.a;
i2 = i10 - i9;
i3 = i8 + i9;
i4 = i10 + i9;
}
return new HBt(this, i, i2, i3, i4);
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes3.dex */
public class HBt {
final int a;
final int b;
private iyE c;
final int d;
final int e;
HBt(iyE iye, int i, int i2, int i3, int i4) {
this.c = iye;
this.d = i;
this.b = i2;
this.e = i3;
this.a = i4;
}
}
static /* synthetic */ void PV_(iyE iye, iED ied, ValueAnimator valueAnimator, boolean z) {
int intValue = ((Integer) valueAnimator.getAnimatedValue()).intValue();
if (iye.h) {
if (z) {
ied.c = intValue;
}
ied.b = intValue;
} else {
if (!z) {
ied.c = intValue;
}
ied.b = intValue;
}
if (iye.b != null) {
iye.b.b(ied);
}
}
@Override // o.XKS
public final /* synthetic */ AnimatorSet PW_() {
AnimatorSet animatorSet = new AnimatorSet();
animatorSet.setInterpolator(new AccelerateDecelerateInterpolator());
return animatorSet;
}
/* JADX INFO: Access modifiers changed from: package-private */
public final boolean b(int i, int i2, int i3, boolean z) {
return (this.e == i && this.a == i2 && this.j == i3 && this.h == z) ? false : true;
}
}