292 lines
9.8 KiB
Java
292 lines
9.8 KiB
Java
|
package o;
|
||
|
|
||
|
import android.util.SparseArray;
|
||
|
import android.view.View;
|
||
|
import androidx.constraintlayout.motion.widget.MotionLayout;
|
||
|
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||
|
import java.lang.reflect.Array;
|
||
|
import java.lang.reflect.InvocationTargetException;
|
||
|
import java.lang.reflect.Method;
|
||
|
import java.util.Arrays;
|
||
|
import java.util.HashMap;
|
||
|
import o.Prc;
|
||
|
|
||
|
/* renamed from: o.rSx, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes.dex */
|
||
|
public abstract class AbstractC16812rSx extends YNF {
|
||
|
public abstract boolean e(View view, float f, long j, ZhI zhI);
|
||
|
|
||
|
public final float a(float f, long j, View view, ZhI zhI) {
|
||
|
this.a.a(f, this.d);
|
||
|
boolean z = true;
|
||
|
float f2 = this.d[1];
|
||
|
if (f2 == BitmapDescriptorFactory.HUE_RED) {
|
||
|
this.c = false;
|
||
|
return this.d[2];
|
||
|
}
|
||
|
if (Float.isNaN(this.b)) {
|
||
|
this.b = zhI.a(view, this.j);
|
||
|
if (Float.isNaN(this.b)) {
|
||
|
this.b = BitmapDescriptorFactory.HUE_RED;
|
||
|
}
|
||
|
}
|
||
|
this.b = (float) ((this.b + (((j - this.e) * 1.0E-9d) * f2)) % 1.0d);
|
||
|
String str = this.j;
|
||
|
float f3 = this.b;
|
||
|
if (!zhI.c.containsKey(view)) {
|
||
|
HashMap<String, float[]> hashMap = new HashMap<>();
|
||
|
hashMap.put(str, new float[]{f3});
|
||
|
zhI.c.put(view, hashMap);
|
||
|
} else {
|
||
|
HashMap<String, float[]> hashMap2 = zhI.c.get(view);
|
||
|
if (hashMap2 == null) {
|
||
|
hashMap2 = new HashMap<>();
|
||
|
}
|
||
|
if (!hashMap2.containsKey(str)) {
|
||
|
hashMap2.put(str, new float[]{f3});
|
||
|
zhI.c.put(view, hashMap2);
|
||
|
} else {
|
||
|
float[] fArr = hashMap2.get(str);
|
||
|
if (fArr == null) {
|
||
|
fArr = new float[0];
|
||
|
}
|
||
|
if (fArr.length <= 0) {
|
||
|
fArr = Arrays.copyOf(fArr, 1);
|
||
|
}
|
||
|
fArr[0] = f3;
|
||
|
hashMap2.put(str, fArr);
|
||
|
}
|
||
|
}
|
||
|
this.e = j;
|
||
|
float f4 = this.d[0];
|
||
|
float b = b(this.b);
|
||
|
float f5 = this.d[2];
|
||
|
if (f4 == BitmapDescriptorFactory.HUE_RED && f2 == BitmapDescriptorFactory.HUE_RED) {
|
||
|
z = false;
|
||
|
}
|
||
|
this.c = z;
|
||
|
return (b * f4) + f5;
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.rSx$Sts */
|
||
|
/* loaded from: classes.dex */
|
||
|
public static class Sts extends AbstractC16812rSx {
|
||
|
@Override // o.AbstractC16812rSx
|
||
|
public final boolean e(View view, float f, long j, ZhI zhI) {
|
||
|
view.setElevation(a(f, j, view, zhI));
|
||
|
return this.c;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.rSx$HBt */
|
||
|
/* loaded from: classes.dex */
|
||
|
public static class HBt extends AbstractC16812rSx {
|
||
|
@Override // o.AbstractC16812rSx
|
||
|
public final boolean e(View view, float f, long j, ZhI zhI) {
|
||
|
view.setAlpha(a(f, j, view, zhI));
|
||
|
return this.c;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.rSx$jbe */
|
||
|
/* loaded from: classes.dex */
|
||
|
public static class jbe extends AbstractC16812rSx {
|
||
|
@Override // o.AbstractC16812rSx
|
||
|
public final boolean e(View view, float f, long j, ZhI zhI) {
|
||
|
view.setRotation(a(f, j, view, zhI));
|
||
|
return this.c;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.rSx$ZqN */
|
||
|
/* loaded from: classes.dex */
|
||
|
public static class ZqN extends AbstractC16812rSx {
|
||
|
@Override // o.AbstractC16812rSx
|
||
|
public final boolean e(View view, float f, long j, ZhI zhI) {
|
||
|
view.setRotationX(a(f, j, view, zhI));
|
||
|
return this.c;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.rSx$ojQ */
|
||
|
/* loaded from: classes.dex */
|
||
|
public static class ojQ extends AbstractC16812rSx {
|
||
|
@Override // o.AbstractC16812rSx
|
||
|
public final boolean e(View view, float f, long j, ZhI zhI) {
|
||
|
view.setRotationY(a(f, j, view, zhI));
|
||
|
return this.c;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.rSx$IeS */
|
||
|
/* loaded from: classes.dex */
|
||
|
public static class IeS extends AbstractC16812rSx {
|
||
|
@Override // o.AbstractC16812rSx
|
||
|
public final boolean e(View view, float f, long j, ZhI zhI) {
|
||
|
return this.c;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.rSx$tOB */
|
||
|
/* loaded from: classes.dex */
|
||
|
public static class tOB extends AbstractC16812rSx {
|
||
|
@Override // o.AbstractC16812rSx
|
||
|
public final boolean e(View view, float f, long j, ZhI zhI) {
|
||
|
view.setScaleX(a(f, j, view, zhI));
|
||
|
return this.c;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.rSx$saX */
|
||
|
/* loaded from: classes.dex */
|
||
|
public static class saX extends AbstractC16812rSx {
|
||
|
@Override // o.AbstractC16812rSx
|
||
|
public final boolean e(View view, float f, long j, ZhI zhI) {
|
||
|
view.setScaleY(a(f, j, view, zhI));
|
||
|
return this.c;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.rSx$dAO */
|
||
|
/* loaded from: classes.dex */
|
||
|
public static class dAO extends AbstractC16812rSx {
|
||
|
@Override // o.AbstractC16812rSx
|
||
|
public final boolean e(View view, float f, long j, ZhI zhI) {
|
||
|
view.setTranslationX(a(f, j, view, zhI));
|
||
|
return this.c;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.rSx$ZnX */
|
||
|
/* loaded from: classes.dex */
|
||
|
public static class ZnX extends AbstractC16812rSx {
|
||
|
@Override // o.AbstractC16812rSx
|
||
|
public final boolean e(View view, float f, long j, ZhI zhI) {
|
||
|
view.setTranslationY(a(f, j, view, zhI));
|
||
|
return this.c;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.rSx$NHB */
|
||
|
/* loaded from: classes.dex */
|
||
|
public static class NHB extends AbstractC16812rSx {
|
||
|
@Override // o.AbstractC16812rSx
|
||
|
public final boolean e(View view, float f, long j, ZhI zhI) {
|
||
|
view.setTranslationZ(a(f, j, view, zhI));
|
||
|
return this.c;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.rSx$LWm */
|
||
|
/* loaded from: classes.dex */
|
||
|
public static class LWm extends AbstractC16812rSx {
|
||
|
public SparseArray<Prc> f;
|
||
|
public SparseArray<float[]> h = new SparseArray<>();
|
||
|
private String i;
|
||
|
private float[] l;
|
||
|
private float[] n;
|
||
|
|
||
|
public LWm(String str, SparseArray<Prc> sparseArray) {
|
||
|
this.i = str.split(",")[1];
|
||
|
this.f = sparseArray;
|
||
|
}
|
||
|
|
||
|
@Override // o.YNF
|
||
|
public final void b(int i) {
|
||
|
int size = this.f.size();
|
||
|
int i2 = Prc.AnonymousClass1.a[this.f.valueAt(0).g.ordinal()];
|
||
|
int i3 = 4;
|
||
|
if (i2 != 4 && i2 != 5) {
|
||
|
i3 = 1;
|
||
|
}
|
||
|
double[] dArr = new double[size];
|
||
|
int i4 = i3 + 2;
|
||
|
this.l = new float[i4];
|
||
|
this.n = new float[i3];
|
||
|
double[][] dArr2 = (double[][]) Array.newInstance((Class<?>) Double.TYPE, size, i4);
|
||
|
for (int i5 = 0; i5 < size; i5++) {
|
||
|
int keyAt = this.f.keyAt(i5);
|
||
|
Prc valueAt = this.f.valueAt(i5);
|
||
|
float[] valueAt2 = this.h.valueAt(i5);
|
||
|
dArr[i5] = keyAt * 0.01d;
|
||
|
valueAt.e(this.l);
|
||
|
int i6 = 0;
|
||
|
while (true) {
|
||
|
if (i6 < this.l.length) {
|
||
|
dArr2[i5][i6] = r8[i6];
|
||
|
i6++;
|
||
|
}
|
||
|
}
|
||
|
double[] dArr3 = dArr2[i5];
|
||
|
dArr3[i3] = valueAt2[0];
|
||
|
dArr3[i3 + 1] = valueAt2[1];
|
||
|
}
|
||
|
this.a = ktU.b(i, dArr, dArr2);
|
||
|
}
|
||
|
|
||
|
@Override // o.YNF
|
||
|
public final void b(int i, float f, float f2, int i2, float f3) {
|
||
|
throw new RuntimeException("don't call for custom attribute call setPoint(pos, ConstraintAttribute,...)");
|
||
|
}
|
||
|
|
||
|
@Override // o.AbstractC16812rSx
|
||
|
public final boolean e(View view, float f, long j, ZhI zhI) {
|
||
|
this.a.a(f, this.l);
|
||
|
float[] fArr = this.l;
|
||
|
float f2 = fArr[fArr.length - 2];
|
||
|
float f3 = fArr[fArr.length - 1];
|
||
|
long j2 = this.e;
|
||
|
if (Float.isNaN(this.b)) {
|
||
|
this.b = zhI.a(view, this.i);
|
||
|
if (Float.isNaN(this.b)) {
|
||
|
this.b = BitmapDescriptorFactory.HUE_RED;
|
||
|
}
|
||
|
}
|
||
|
this.b = (float) ((this.b + (((j - j2) * 1.0E-9d) * f2)) % 1.0d);
|
||
|
this.e = j;
|
||
|
float b = b(this.b);
|
||
|
this.c = false;
|
||
|
for (int i = 0; i < this.n.length; i++) {
|
||
|
this.c |= ((double) this.l[i]) != 0.0d;
|
||
|
this.n[i] = (this.l[i] * b) + f3;
|
||
|
}
|
||
|
Gsu.d(this.f.valueAt(0), view, this.n);
|
||
|
if (f2 != BitmapDescriptorFactory.HUE_RED) {
|
||
|
this.c = true;
|
||
|
}
|
||
|
return this.c;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.rSx$RVV */
|
||
|
/* loaded from: classes.dex */
|
||
|
public static class RVV extends AbstractC16812rSx {
|
||
|
private boolean f = false;
|
||
|
|
||
|
@Override // o.AbstractC16812rSx
|
||
|
public final boolean e(View view, float f, long j, ZhI zhI) {
|
||
|
Method method;
|
||
|
if (view instanceof MotionLayout) {
|
||
|
((MotionLayout) view).setProgress(a(f, j, view, zhI));
|
||
|
} else {
|
||
|
if (this.f) {
|
||
|
return false;
|
||
|
}
|
||
|
try {
|
||
|
method = view.getClass().getMethod("setProgress", Float.TYPE);
|
||
|
} catch (NoSuchMethodException unused) {
|
||
|
this.f = true;
|
||
|
method = null;
|
||
|
}
|
||
|
if (method != null) {
|
||
|
try {
|
||
|
method.invoke(view, Float.valueOf(a(f, j, view, zhI)));
|
||
|
} catch (IllegalAccessException | InvocationTargetException unused2) {
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
return this.c;
|
||
|
}
|
||
|
}
|
||
|
}
|