317 lines
10 KiB
Java
317 lines
10 KiB
Java
|
package o;
|
||
|
|
||
|
import android.graphics.Rect;
|
||
|
import android.view.View;
|
||
|
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||
|
import com.kofax.mobile.sdk._internal.impl.extraction.rtti.RttiJsonExactionHelper;
|
||
|
import java.util.HashMap;
|
||
|
import java.util.LinkedHashMap;
|
||
|
import o.Prc;
|
||
|
import o.YpW;
|
||
|
import o.yqQ;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class TqO implements Comparable<TqO> {
|
||
|
int s;
|
||
|
private Yrp w;
|
||
|
private float y;
|
||
|
float b = 1.0f;
|
||
|
int j = 0;
|
||
|
private boolean q = false;
|
||
|
float c = BitmapDescriptorFactory.HUE_RED;
|
||
|
float f = BitmapDescriptorFactory.HUE_RED;
|
||
|
float g = BitmapDescriptorFactory.HUE_RED;
|
||
|
public float i = BitmapDescriptorFactory.HUE_RED;
|
||
|
float m = 1.0f;
|
||
|
float n = 1.0f;
|
||
|
float d = Float.NaN;
|
||
|
float e = Float.NaN;
|
||
|
float l = BitmapDescriptorFactory.HUE_RED;
|
||
|
float k = BitmapDescriptorFactory.HUE_RED;
|
||
|
|
||
|
/* renamed from: o, reason: collision with root package name */
|
||
|
float f8381o = BitmapDescriptorFactory.HUE_RED;
|
||
|
private int t = 0;
|
||
|
float a = Float.NaN;
|
||
|
float h = Float.NaN;
|
||
|
private int r = -1;
|
||
|
private LinkedHashMap<String, Prc> p = new LinkedHashMap<>();
|
||
|
private int u = 0;
|
||
|
private double[] v = new double[18];
|
||
|
private double[] x = new double[18];
|
||
|
|
||
|
@Override // java.lang.Comparable
|
||
|
public final /* synthetic */ int compareTo(TqO tqO) {
|
||
|
return Float.compare(BitmapDescriptorFactory.HUE_RED, tqO.y);
|
||
|
}
|
||
|
|
||
|
static {
|
||
|
new String[]{"position", "x", "y", RttiJsonExactionHelper.WIDTH, RttiJsonExactionHelper.HEIGHT, "pathRotate"};
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static boolean c(float f, float f2) {
|
||
|
return (Float.isNaN(f) || Float.isNaN(f2)) ? Float.isNaN(f) != Float.isNaN(f2) : Math.abs(f - f2) > 1.0E-6f;
|
||
|
}
|
||
|
|
||
|
public final void d(View view) {
|
||
|
this.s = view.getVisibility();
|
||
|
this.b = view.getVisibility() != 0 ? BitmapDescriptorFactory.HUE_RED : view.getAlpha();
|
||
|
this.q = false;
|
||
|
this.c = view.getElevation();
|
||
|
this.f = view.getRotation();
|
||
|
this.g = view.getRotationX();
|
||
|
this.i = view.getRotationY();
|
||
|
this.m = view.getScaleX();
|
||
|
this.n = view.getScaleY();
|
||
|
this.d = view.getPivotX();
|
||
|
this.e = view.getPivotY();
|
||
|
this.l = view.getTranslationX();
|
||
|
this.k = view.getTranslationY();
|
||
|
this.f8381o = view.getTranslationZ();
|
||
|
}
|
||
|
|
||
|
public final void c(HashMap<String, YpW> hashMap, int i) {
|
||
|
char c;
|
||
|
for (String str : hashMap.keySet()) {
|
||
|
YpW ypW = hashMap.get(str);
|
||
|
str.hashCode();
|
||
|
switch (str.hashCode()) {
|
||
|
case -1249320806:
|
||
|
if (str.equals("rotationX")) {
|
||
|
c = 0;
|
||
|
break;
|
||
|
}
|
||
|
break;
|
||
|
case -1249320805:
|
||
|
if (str.equals("rotationY")) {
|
||
|
c = 1;
|
||
|
break;
|
||
|
}
|
||
|
break;
|
||
|
case -1225497657:
|
||
|
if (str.equals("translationX")) {
|
||
|
c = 2;
|
||
|
break;
|
||
|
}
|
||
|
break;
|
||
|
case -1225497656:
|
||
|
if (str.equals("translationY")) {
|
||
|
c = 3;
|
||
|
break;
|
||
|
}
|
||
|
break;
|
||
|
case -1225497655:
|
||
|
if (str.equals("translationZ")) {
|
||
|
c = 4;
|
||
|
break;
|
||
|
}
|
||
|
break;
|
||
|
case -1001078227:
|
||
|
if (str.equals("progress")) {
|
||
|
c = 5;
|
||
|
break;
|
||
|
}
|
||
|
break;
|
||
|
case -908189618:
|
||
|
if (str.equals("scaleX")) {
|
||
|
c = 6;
|
||
|
break;
|
||
|
}
|
||
|
break;
|
||
|
case -908189617:
|
||
|
if (str.equals("scaleY")) {
|
||
|
c = 7;
|
||
|
break;
|
||
|
}
|
||
|
break;
|
||
|
case -760884510:
|
||
|
if (str.equals("transformPivotX")) {
|
||
|
c = '\b';
|
||
|
break;
|
||
|
}
|
||
|
break;
|
||
|
case -760884509:
|
||
|
if (str.equals("transformPivotY")) {
|
||
|
c = '\t';
|
||
|
break;
|
||
|
}
|
||
|
break;
|
||
|
case -40300674:
|
||
|
if (str.equals("rotation")) {
|
||
|
c = '\n';
|
||
|
break;
|
||
|
}
|
||
|
break;
|
||
|
case -4379043:
|
||
|
if (str.equals("elevation")) {
|
||
|
c = 11;
|
||
|
break;
|
||
|
}
|
||
|
break;
|
||
|
case 37232917:
|
||
|
if (str.equals("transitionPathRotate")) {
|
||
|
c = '\f';
|
||
|
break;
|
||
|
}
|
||
|
break;
|
||
|
case 92909918:
|
||
|
if (str.equals("alpha")) {
|
||
|
c = '\r';
|
||
|
break;
|
||
|
}
|
||
|
break;
|
||
|
}
|
||
|
c = 65535;
|
||
|
float f = BitmapDescriptorFactory.HUE_RED;
|
||
|
switch (c) {
|
||
|
case 0:
|
||
|
if (!Float.isNaN(this.g)) {
|
||
|
f = this.g;
|
||
|
}
|
||
|
ypW.c(i, f);
|
||
|
break;
|
||
|
case 1:
|
||
|
if (!Float.isNaN(this.i)) {
|
||
|
f = this.i;
|
||
|
}
|
||
|
ypW.c(i, f);
|
||
|
break;
|
||
|
case 2:
|
||
|
if (!Float.isNaN(this.l)) {
|
||
|
f = this.l;
|
||
|
}
|
||
|
ypW.c(i, f);
|
||
|
break;
|
||
|
case 3:
|
||
|
if (!Float.isNaN(this.k)) {
|
||
|
f = this.k;
|
||
|
}
|
||
|
ypW.c(i, f);
|
||
|
break;
|
||
|
case 4:
|
||
|
if (!Float.isNaN(this.f8381o)) {
|
||
|
f = this.f8381o;
|
||
|
}
|
||
|
ypW.c(i, f);
|
||
|
break;
|
||
|
case 5:
|
||
|
if (!Float.isNaN(this.h)) {
|
||
|
f = this.h;
|
||
|
}
|
||
|
ypW.c(i, f);
|
||
|
break;
|
||
|
case 6:
|
||
|
ypW.c(i, Float.isNaN(this.m) ? 1.0f : this.m);
|
||
|
break;
|
||
|
case 7:
|
||
|
ypW.c(i, Float.isNaN(this.n) ? 1.0f : this.n);
|
||
|
break;
|
||
|
case '\b':
|
||
|
if (!Float.isNaN(this.d)) {
|
||
|
f = this.d;
|
||
|
}
|
||
|
ypW.c(i, f);
|
||
|
break;
|
||
|
case '\t':
|
||
|
if (!Float.isNaN(this.e)) {
|
||
|
f = this.e;
|
||
|
}
|
||
|
ypW.c(i, f);
|
||
|
break;
|
||
|
case '\n':
|
||
|
if (!Float.isNaN(this.f)) {
|
||
|
f = this.f;
|
||
|
}
|
||
|
ypW.c(i, f);
|
||
|
break;
|
||
|
case 11:
|
||
|
if (!Float.isNaN(this.c)) {
|
||
|
f = this.c;
|
||
|
}
|
||
|
ypW.c(i, f);
|
||
|
break;
|
||
|
case '\f':
|
||
|
if (!Float.isNaN(this.a)) {
|
||
|
f = this.a;
|
||
|
}
|
||
|
ypW.c(i, f);
|
||
|
break;
|
||
|
case '\r':
|
||
|
ypW.c(i, Float.isNaN(this.b) ? 1.0f : this.b);
|
||
|
break;
|
||
|
default:
|
||
|
if (str.startsWith("CUSTOM")) {
|
||
|
String str2 = str.split(",")[1];
|
||
|
if (this.p.containsKey(str2)) {
|
||
|
Prc prc = this.p.get(str2);
|
||
|
if (!(ypW instanceof YpW.RVV)) {
|
||
|
prc.c();
|
||
|
break;
|
||
|
} else {
|
||
|
((YpW.RVV) ypW).a.append(i, prc);
|
||
|
break;
|
||
|
}
|
||
|
} else {
|
||
|
break;
|
||
|
}
|
||
|
} else {
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public final void kE_(Rect rect, yqQ yqq, int i, int i2) {
|
||
|
int i3 = rect.left;
|
||
|
int i4 = rect.top;
|
||
|
rect.width();
|
||
|
rect.height();
|
||
|
yqQ.Sts b = yqq.b(i2);
|
||
|
this.j = b.g.c;
|
||
|
this.s = b.g.a;
|
||
|
this.b = (b.g.a == 0 || this.j != 0) ? b.g.b : BitmapDescriptorFactory.HUE_RED;
|
||
|
this.q = b.h.b;
|
||
|
this.c = b.h.a;
|
||
|
this.f = b.h.c;
|
||
|
this.g = b.h.d;
|
||
|
this.i = b.h.g;
|
||
|
this.m = b.h.i;
|
||
|
this.n = b.h.j;
|
||
|
this.d = b.h.h;
|
||
|
this.e = b.h.k;
|
||
|
this.l = b.h.f9324o;
|
||
|
this.k = b.h.l;
|
||
|
this.f8381o = b.h.n;
|
||
|
this.w = Yrp.a(b.f.n);
|
||
|
this.a = b.f.j;
|
||
|
this.t = b.f.d;
|
||
|
this.r = b.f.e;
|
||
|
this.h = b.g.e;
|
||
|
for (String str : b.e.keySet()) {
|
||
|
Prc prc = b.e.get(str);
|
||
|
int i5 = Prc.AnonymousClass1.a[prc.g.ordinal()];
|
||
|
if (i5 != 1 && i5 != 2 && i5 != 3) {
|
||
|
this.p.put(str, prc);
|
||
|
}
|
||
|
}
|
||
|
if (i != 1) {
|
||
|
if (i != 2) {
|
||
|
if (i != 3) {
|
||
|
if (i != 4) {
|
||
|
return;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
float f = this.f + 90.0f;
|
||
|
this.f = f;
|
||
|
if (f > 180.0f) {
|
||
|
this.f = f - 360.0f;
|
||
|
return;
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
this.f -= 90.0f;
|
||
|
}
|
||
|
}
|