952 lines
37 KiB
Java
952 lines
37 KiB
Java
package o;
|
|
|
|
import android.content.Context;
|
|
import android.content.res.TypedArray;
|
|
import android.content.res.XmlResourceParser;
|
|
import android.util.SparseArray;
|
|
import android.util.SparseIntArray;
|
|
import android.util.TypedValue;
|
|
import android.util.Xml;
|
|
import android.view.MotionEvent;
|
|
import android.view.View;
|
|
import android.view.animation.AccelerateDecelerateInterpolator;
|
|
import android.view.animation.AccelerateInterpolator;
|
|
import android.view.animation.AnimationUtils;
|
|
import android.view.animation.AnticipateInterpolator;
|
|
import android.view.animation.BounceInterpolator;
|
|
import android.view.animation.DecelerateInterpolator;
|
|
import android.view.animation.Interpolator;
|
|
import android.view.animation.OvershootInterpolator;
|
|
import androidx.constraintlayout.motion.widget.MotionLayout;
|
|
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
|
import com.kofax.mobile.sdk._internal.impl.extraction.rtti.RttiJsonExactionHelper;
|
|
import com.prolificinteractive.materialcalendarview.TitleChanger;
|
|
import java.io.IOException;
|
|
import java.util.ArrayList;
|
|
import java.util.HashMap;
|
|
import java.util.Iterator;
|
|
import o.C3345avm;
|
|
import org.simpleframework.xml.strategy.Name;
|
|
import org.xmlpull.v1.XmlPullParser;
|
|
import org.xmlpull.v1.XmlPullParserException;
|
|
|
|
/* renamed from: o.rXU, reason: case insensitive filesystem */
|
|
/* loaded from: classes.dex */
|
|
public class C16822rXU {
|
|
public int a;
|
|
public boolean c;
|
|
public HBt d;
|
|
public C15442gqk i;
|
|
public final Trr j;
|
|
private HBt l;
|
|
private MotionEvent n;
|
|
private int q;
|
|
private final MotionLayout r;
|
|
private float s;
|
|
private float t;
|
|
private MotionLayout.RVV u;
|
|
private boolean m = false;
|
|
public ArrayList<HBt> h = new ArrayList<>();
|
|
private ArrayList<HBt> f = new ArrayList<>();
|
|
public SparseArray<yqQ> b = new SparseArray<>();
|
|
private HashMap<String, Integer> k = new HashMap<>();
|
|
public SparseIntArray e = new SparseIntArray();
|
|
private boolean g = false;
|
|
|
|
/* renamed from: o, reason: collision with root package name */
|
|
private boolean f9257o = false;
|
|
private boolean p = false;
|
|
|
|
public final void c(MotionLayout motionLayout, int i) {
|
|
Iterator<HBt> it = this.h.iterator();
|
|
while (it.hasNext()) {
|
|
HBt next = it.next();
|
|
if (next.n.size() > 0) {
|
|
Iterator<HBt.IeS> it2 = next.n.iterator();
|
|
while (it2.hasNext()) {
|
|
it2.next().d(motionLayout);
|
|
}
|
|
}
|
|
}
|
|
Iterator<HBt> it3 = this.f.iterator();
|
|
while (it3.hasNext()) {
|
|
HBt next2 = it3.next();
|
|
if (next2.n.size() > 0) {
|
|
Iterator<HBt.IeS> it4 = next2.n.iterator();
|
|
while (it4.hasNext()) {
|
|
it4.next().d(motionLayout);
|
|
}
|
|
}
|
|
}
|
|
Iterator<HBt> it5 = this.h.iterator();
|
|
while (it5.hasNext()) {
|
|
HBt next3 = it5.next();
|
|
if (next3.n.size() > 0) {
|
|
Iterator<HBt.IeS> it6 = next3.n.iterator();
|
|
while (it6.hasNext()) {
|
|
it6.next().c(motionLayout, i, next3);
|
|
}
|
|
}
|
|
}
|
|
Iterator<HBt> it7 = this.f.iterator();
|
|
while (it7.hasNext()) {
|
|
HBt next4 = it7.next();
|
|
if (next4.n.size() > 0) {
|
|
Iterator<HBt.IeS> it8 = next4.n.iterator();
|
|
while (it8.hasNext()) {
|
|
it8.next().c(motionLayout, i, next4);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/* renamed from: o.rXU$HBt */
|
|
/* loaded from: classes.dex */
|
|
public static class HBt {
|
|
public int a;
|
|
int b;
|
|
public int c;
|
|
int d;
|
|
public int e;
|
|
boolean f;
|
|
public boolean g;
|
|
public int h;
|
|
public int i;
|
|
String j;
|
|
public int k;
|
|
final C16822rXU l;
|
|
public int m;
|
|
ArrayList<IeS> n;
|
|
|
|
/* renamed from: o, reason: collision with root package name */
|
|
ArrayList<liJ> f9258o;
|
|
public Bmx p;
|
|
public float q;
|
|
public int t;
|
|
|
|
/* renamed from: o.rXU$HBt$IeS */
|
|
/* loaded from: classes.dex */
|
|
public static class IeS implements View.OnClickListener {
|
|
private final HBt b;
|
|
private int d;
|
|
private int e;
|
|
|
|
public IeS(Context context, HBt hBt, XmlPullParser xmlPullParser) {
|
|
this.e = -1;
|
|
this.d = 17;
|
|
this.b = hBt;
|
|
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(Xml.asAttributeSet(xmlPullParser), C3345avm.IeS.OnClick);
|
|
int indexCount = obtainStyledAttributes.getIndexCount();
|
|
for (int i = 0; i < indexCount; i++) {
|
|
int index = obtainStyledAttributes.getIndex(i);
|
|
if (index == C3345avm.IeS.OnClick_targetId) {
|
|
this.e = obtainStyledAttributes.getResourceId(index, this.e);
|
|
} else if (index == C3345avm.IeS.OnClick_clickAction) {
|
|
this.d = obtainStyledAttributes.getInt(index, this.d);
|
|
}
|
|
}
|
|
obtainStyledAttributes.recycle();
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARN: Type inference failed for: r8v2, types: [android.view.View] */
|
|
public final void c(MotionLayout motionLayout, int i, HBt hBt) {
|
|
int i2 = this.e;
|
|
MotionLayout motionLayout2 = motionLayout;
|
|
if (i2 != -1) {
|
|
motionLayout2 = motionLayout.findViewById(i2);
|
|
}
|
|
if (motionLayout2 == null) {
|
|
return;
|
|
}
|
|
int i3 = hBt.e;
|
|
int i4 = hBt.c;
|
|
if (i3 == -1) {
|
|
motionLayout2.setOnClickListener(this);
|
|
return;
|
|
}
|
|
int i5 = this.d;
|
|
int i6 = i5 & 1;
|
|
boolean z = false;
|
|
boolean z2 = i6 != 0 && i == i3;
|
|
boolean z3 = (i5 & 256) != 0 && i == i3;
|
|
boolean z4 = i6 != 0 && i == i3;
|
|
boolean z5 = (i5 & 16) != 0 && i == i4;
|
|
if ((i5 & 4096) != 0 && i == i4) {
|
|
z = true;
|
|
}
|
|
if ((z2 | z3 | z4 | z5) || z) {
|
|
motionLayout2.setOnClickListener(this);
|
|
}
|
|
}
|
|
|
|
public final void d(MotionLayout motionLayout) {
|
|
View findViewById;
|
|
int i = this.e;
|
|
if (i == -1 || (findViewById = motionLayout.findViewById(i)) == null) {
|
|
return;
|
|
}
|
|
findViewById.setOnClickListener(null);
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:35:0x0088 */
|
|
@Override // android.view.View.OnClickListener
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void onClick(android.view.View r10) {
|
|
/*
|
|
Method dump skipped, instructions count: 227
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: o.C16822rXU.HBt.IeS.onClick(android.view.View):void");
|
|
}
|
|
}
|
|
|
|
HBt(C16822rXU c16822rXU, HBt hBt) {
|
|
this.i = -1;
|
|
this.f = false;
|
|
this.c = -1;
|
|
this.e = -1;
|
|
this.b = 0;
|
|
this.j = null;
|
|
this.d = -1;
|
|
this.h = TitleChanger.DEFAULT_ANIMATION_DELAY;
|
|
this.q = BitmapDescriptorFactory.HUE_RED;
|
|
this.f9258o = new ArrayList<>();
|
|
this.p = null;
|
|
this.n = new ArrayList<>();
|
|
this.a = 0;
|
|
this.g = false;
|
|
this.k = -1;
|
|
this.m = 0;
|
|
this.t = 0;
|
|
this.l = c16822rXU;
|
|
this.h = c16822rXU.a;
|
|
if (hBt != null) {
|
|
this.k = hBt.k;
|
|
this.b = hBt.b;
|
|
this.j = hBt.j;
|
|
this.d = hBt.d;
|
|
this.h = hBt.h;
|
|
this.f9258o = hBt.f9258o;
|
|
this.q = hBt.q;
|
|
this.m = hBt.m;
|
|
}
|
|
}
|
|
|
|
public HBt(C16822rXU c16822rXU, int i, int i2) {
|
|
this.i = -1;
|
|
this.f = false;
|
|
this.c = -1;
|
|
this.e = -1;
|
|
this.b = 0;
|
|
this.j = null;
|
|
this.d = -1;
|
|
this.h = TitleChanger.DEFAULT_ANIMATION_DELAY;
|
|
this.q = BitmapDescriptorFactory.HUE_RED;
|
|
this.f9258o = new ArrayList<>();
|
|
this.p = null;
|
|
this.n = new ArrayList<>();
|
|
this.a = 0;
|
|
this.g = false;
|
|
this.k = -1;
|
|
this.m = 0;
|
|
this.t = 0;
|
|
this.i = -1;
|
|
this.l = c16822rXU;
|
|
this.e = i;
|
|
this.c = i2;
|
|
this.h = c16822rXU.a;
|
|
this.m = c16822rXU.q;
|
|
}
|
|
|
|
HBt(C16822rXU c16822rXU, Context context, XmlPullParser xmlPullParser) {
|
|
this.i = -1;
|
|
this.f = false;
|
|
this.c = -1;
|
|
this.e = -1;
|
|
this.b = 0;
|
|
this.j = null;
|
|
this.d = -1;
|
|
this.h = TitleChanger.DEFAULT_ANIMATION_DELAY;
|
|
this.q = BitmapDescriptorFactory.HUE_RED;
|
|
this.f9258o = new ArrayList<>();
|
|
this.p = null;
|
|
this.n = new ArrayList<>();
|
|
this.a = 0;
|
|
this.g = false;
|
|
this.k = -1;
|
|
this.m = 0;
|
|
this.t = 0;
|
|
this.h = c16822rXU.a;
|
|
this.m = c16822rXU.q;
|
|
this.l = c16822rXU;
|
|
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(Xml.asAttributeSet(xmlPullParser), C3345avm.IeS.Transition);
|
|
int indexCount = obtainStyledAttributes.getIndexCount();
|
|
for (int i = 0; i < indexCount; i++) {
|
|
int index = obtainStyledAttributes.getIndex(i);
|
|
if (index == C3345avm.IeS.Transition_constraintSetEnd) {
|
|
this.c = obtainStyledAttributes.getResourceId(index, -1);
|
|
String resourceTypeName = context.getResources().getResourceTypeName(this.c);
|
|
if ("layout".equals(resourceTypeName)) {
|
|
yqQ yqq = new yqQ();
|
|
yqq.e(context, this.c);
|
|
c16822rXU.b.append(this.c, yqq);
|
|
} else if ("xml".equals(resourceTypeName)) {
|
|
this.c = c16822rXU.e(context, this.c);
|
|
}
|
|
} else if (index == C3345avm.IeS.Transition_constraintSetStart) {
|
|
this.e = obtainStyledAttributes.getResourceId(index, this.e);
|
|
String resourceTypeName2 = context.getResources().getResourceTypeName(this.e);
|
|
if ("layout".equals(resourceTypeName2)) {
|
|
yqQ yqq2 = new yqQ();
|
|
yqq2.e(context, this.e);
|
|
c16822rXU.b.append(this.e, yqq2);
|
|
} else if ("xml".equals(resourceTypeName2)) {
|
|
this.e = c16822rXU.e(context, this.e);
|
|
}
|
|
} else if (index == C3345avm.IeS.Transition_motionInterpolator) {
|
|
TypedValue peekValue = obtainStyledAttributes.peekValue(index);
|
|
if (peekValue.type == 1) {
|
|
int resourceId = obtainStyledAttributes.getResourceId(index, -1);
|
|
this.d = resourceId;
|
|
if (resourceId != -1) {
|
|
this.b = -2;
|
|
}
|
|
} else if (peekValue.type == 3) {
|
|
String string = obtainStyledAttributes.getString(index);
|
|
this.j = string;
|
|
if (string != null) {
|
|
if (string.indexOf("/") > 0) {
|
|
this.d = obtainStyledAttributes.getResourceId(index, -1);
|
|
this.b = -2;
|
|
} else {
|
|
this.b = -1;
|
|
}
|
|
}
|
|
} else {
|
|
this.b = obtainStyledAttributes.getInteger(index, this.b);
|
|
}
|
|
} else if (index == C3345avm.IeS.Transition_duration) {
|
|
int i2 = obtainStyledAttributes.getInt(index, this.h);
|
|
this.h = i2;
|
|
if (i2 < 8) {
|
|
this.h = 8;
|
|
}
|
|
} else if (index == C3345avm.IeS.Transition_staggered) {
|
|
this.q = obtainStyledAttributes.getFloat(index, this.q);
|
|
} else if (index == C3345avm.IeS.Transition_autoTransition) {
|
|
this.a = obtainStyledAttributes.getInteger(index, this.a);
|
|
} else if (index == C3345avm.IeS.Transition_android_id) {
|
|
this.i = obtainStyledAttributes.getResourceId(index, this.i);
|
|
} else if (index == C3345avm.IeS.Transition_transitionDisable) {
|
|
this.g = obtainStyledAttributes.getBoolean(index, this.g);
|
|
} else if (index == C3345avm.IeS.Transition_pathMotionArc) {
|
|
this.k = obtainStyledAttributes.getInteger(index, -1);
|
|
} else if (index == C3345avm.IeS.Transition_layoutDuringTransition) {
|
|
this.m = obtainStyledAttributes.getInteger(index, 0);
|
|
} else if (index == C3345avm.IeS.Transition_transitionFlags) {
|
|
this.t = obtainStyledAttributes.getInteger(index, 0);
|
|
}
|
|
}
|
|
if (this.e == -1) {
|
|
this.f = true;
|
|
}
|
|
obtainStyledAttributes.recycle();
|
|
}
|
|
}
|
|
|
|
public C16822rXU(Context context, MotionLayout motionLayout, int i) {
|
|
this.i = null;
|
|
this.d = null;
|
|
this.l = null;
|
|
this.a = TitleChanger.DEFAULT_ANIMATION_DELAY;
|
|
this.q = 0;
|
|
this.r = motionLayout;
|
|
this.j = new Trr(motionLayout);
|
|
XmlResourceParser xml = context.getResources().getXml(i);
|
|
try {
|
|
HBt hBt = null;
|
|
for (int eventType = xml.getEventType(); eventType != 1; eventType = xml.next()) {
|
|
if (eventType != 0) {
|
|
char c = 2;
|
|
if (eventType == 2) {
|
|
String name = xml.getName();
|
|
switch (name.hashCode()) {
|
|
case -1349929691:
|
|
if (name.equals("ConstraintSet")) {
|
|
c = 5;
|
|
break;
|
|
}
|
|
break;
|
|
case -1239391468:
|
|
if (name.equals("KeyFrameSet")) {
|
|
c = '\b';
|
|
break;
|
|
}
|
|
break;
|
|
case -687739768:
|
|
if (name.equals("Include")) {
|
|
c = 7;
|
|
break;
|
|
}
|
|
break;
|
|
case 61998586:
|
|
if (name.equals("ViewTransition")) {
|
|
c = '\t';
|
|
break;
|
|
}
|
|
break;
|
|
case 269306229:
|
|
if (name.equals("Transition")) {
|
|
c = 1;
|
|
break;
|
|
}
|
|
break;
|
|
case 312750793:
|
|
if (name.equals("OnClick")) {
|
|
c = 3;
|
|
break;
|
|
}
|
|
break;
|
|
case 327855227:
|
|
if (name.equals("OnSwipe")) {
|
|
break;
|
|
}
|
|
break;
|
|
case 793277014:
|
|
if (name.equals("MotionScene")) {
|
|
c = 0;
|
|
break;
|
|
}
|
|
break;
|
|
case 1382829617:
|
|
if (name.equals("StateSet")) {
|
|
c = 4;
|
|
break;
|
|
}
|
|
break;
|
|
case 1942574248:
|
|
if (name.equals("include")) {
|
|
c = 6;
|
|
break;
|
|
}
|
|
break;
|
|
}
|
|
c = 65535;
|
|
switch (c) {
|
|
case 0:
|
|
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(Xml.asAttributeSet(xml), C3345avm.IeS.MotionScene);
|
|
int indexCount = obtainStyledAttributes.getIndexCount();
|
|
for (int i2 = 0; i2 < indexCount; i2++) {
|
|
int index = obtainStyledAttributes.getIndex(i2);
|
|
if (index == C3345avm.IeS.MotionScene_defaultDuration) {
|
|
int i3 = obtainStyledAttributes.getInt(index, this.a);
|
|
this.a = i3;
|
|
if (i3 < 8) {
|
|
this.a = 8;
|
|
}
|
|
} else if (index == C3345avm.IeS.MotionScene_layoutDuringTransition) {
|
|
this.q = obtainStyledAttributes.getInteger(index, 0);
|
|
}
|
|
}
|
|
obtainStyledAttributes.recycle();
|
|
break;
|
|
case 1:
|
|
ArrayList<HBt> arrayList = this.h;
|
|
hBt = new HBt(this, context, xml);
|
|
arrayList.add(hBt);
|
|
if (this.d == null && !hBt.f) {
|
|
this.d = hBt;
|
|
if (hBt.p != null) {
|
|
this.d.p.a(this.c);
|
|
}
|
|
}
|
|
if (hBt.f) {
|
|
if (hBt.c == -1) {
|
|
this.l = hBt;
|
|
} else {
|
|
this.f.add(hBt);
|
|
}
|
|
this.h.remove(hBt);
|
|
break;
|
|
} else {
|
|
break;
|
|
}
|
|
break;
|
|
case 2:
|
|
if (hBt == null) {
|
|
context.getResources().getResourceEntryName(i);
|
|
xml.getLineNumber();
|
|
}
|
|
if (hBt != null) {
|
|
hBt.p = new Bmx(context, this.r, xml);
|
|
break;
|
|
} else {
|
|
break;
|
|
}
|
|
case 3:
|
|
if (hBt != null) {
|
|
hBt.n.add(new HBt.IeS(context, hBt, xml));
|
|
break;
|
|
} else {
|
|
break;
|
|
}
|
|
case 4:
|
|
this.i = new C15442gqk(context, xml);
|
|
break;
|
|
case 5:
|
|
d(context, xml);
|
|
break;
|
|
case 6:
|
|
case 7:
|
|
TypedArray obtainStyledAttributes2 = context.obtainStyledAttributes(Xml.asAttributeSet(xml), C3345avm.IeS.include);
|
|
int indexCount2 = obtainStyledAttributes2.getIndexCount();
|
|
for (int i4 = 0; i4 < indexCount2; i4++) {
|
|
int index2 = obtainStyledAttributes2.getIndex(i4);
|
|
if (index2 == C3345avm.IeS.include_constraintSet) {
|
|
e(context, obtainStyledAttributes2.getResourceId(index2, -1));
|
|
}
|
|
}
|
|
obtainStyledAttributes2.recycle();
|
|
break;
|
|
case '\b':
|
|
liJ lij = new liJ(context, xml);
|
|
if (hBt != null) {
|
|
hBt.f9258o.add(lij);
|
|
break;
|
|
} else {
|
|
break;
|
|
}
|
|
case '\t':
|
|
MQE mqe = new MQE(context, xml);
|
|
Trr trr = this.j;
|
|
trr.c.add(mqe);
|
|
trr.e = null;
|
|
if (mqe.e == 4) {
|
|
trr.c(mqe, true);
|
|
break;
|
|
} else if (mqe.e == 5) {
|
|
trr.c(mqe, false);
|
|
break;
|
|
} else {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
xml.getName();
|
|
}
|
|
}
|
|
} catch (IOException | XmlPullParserException unused) {
|
|
}
|
|
this.b.put(C3345avm.RVV.motion_base, new yqQ());
|
|
this.k.put("motion_base", Integer.valueOf(C3345avm.RVV.motion_base));
|
|
}
|
|
|
|
private int d(Context context, String str) {
|
|
int identifier = str.contains("/") ? context.getResources().getIdentifier(str.substring(str.indexOf(47) + 1), Name.MARK, context.getPackageName()) : -1;
|
|
return (identifier != -1 || str == null || str.length() <= 1) ? identifier : Integer.parseInt(str.substring(1));
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public int e(Context context, int i) {
|
|
XmlResourceParser xml = context.getResources().getXml(i);
|
|
try {
|
|
for (int eventType = xml.getEventType(); eventType != 1; eventType = xml.next()) {
|
|
String name = xml.getName();
|
|
if (2 == eventType && "ConstraintSet".equals(name)) {
|
|
return d(context, xml);
|
|
}
|
|
}
|
|
return -1;
|
|
} catch (IOException | XmlPullParserException unused) {
|
|
return -1;
|
|
}
|
|
}
|
|
|
|
private int d(Context context, XmlPullParser xmlPullParser) {
|
|
char c;
|
|
char c2;
|
|
yqQ yqq = new yqQ();
|
|
yqq.e = false;
|
|
int attributeCount = xmlPullParser.getAttributeCount();
|
|
int i = -1;
|
|
int i2 = -1;
|
|
for (int i3 = 0; i3 < attributeCount; i3++) {
|
|
String attributeName = xmlPullParser.getAttributeName(i3);
|
|
String attributeValue = xmlPullParser.getAttributeValue(i3);
|
|
attributeName.hashCode();
|
|
int hashCode = attributeName.hashCode();
|
|
if (hashCode == -1496482599) {
|
|
if (attributeName.equals("deriveConstraintsFrom")) {
|
|
c = 0;
|
|
}
|
|
c = 65535;
|
|
} else if (hashCode != -1153153640) {
|
|
if (hashCode == 3355 && attributeName.equals(Name.MARK)) {
|
|
c = 2;
|
|
}
|
|
c = 65535;
|
|
} else {
|
|
if (attributeName.equals("constraintRotate")) {
|
|
c = 1;
|
|
}
|
|
c = 65535;
|
|
}
|
|
if (c == 0) {
|
|
i2 = d(context, attributeValue);
|
|
} else if (c == 1) {
|
|
try {
|
|
yqq.d = Integer.parseInt(attributeValue);
|
|
} catch (NumberFormatException unused) {
|
|
attributeValue.hashCode();
|
|
switch (attributeValue.hashCode()) {
|
|
case -768416914:
|
|
if (attributeValue.equals("x_left")) {
|
|
c2 = 0;
|
|
break;
|
|
}
|
|
break;
|
|
case 3317767:
|
|
if (attributeValue.equals(RttiJsonExactionHelper.LEFT)) {
|
|
c2 = 1;
|
|
break;
|
|
}
|
|
break;
|
|
case 3387192:
|
|
if (attributeValue.equals("none")) {
|
|
c2 = 2;
|
|
break;
|
|
}
|
|
break;
|
|
case 108511772:
|
|
if (attributeValue.equals("right")) {
|
|
c2 = 3;
|
|
break;
|
|
}
|
|
break;
|
|
case 1954540437:
|
|
if (attributeValue.equals("x_right")) {
|
|
c2 = 4;
|
|
break;
|
|
}
|
|
break;
|
|
}
|
|
c2 = 65535;
|
|
if (c2 == 0) {
|
|
yqq.d = 4;
|
|
} else if (c2 == 1) {
|
|
yqq.d = 2;
|
|
} else if (c2 == 2) {
|
|
yqq.d = 0;
|
|
} else if (c2 == 3) {
|
|
yqq.d = 1;
|
|
} else if (c2 == 4) {
|
|
yqq.d = 3;
|
|
}
|
|
}
|
|
} else if (c == 2) {
|
|
i = d(context, attributeValue);
|
|
HashMap<String, Integer> hashMap = this.k;
|
|
if (attributeValue == null) {
|
|
attributeValue = "";
|
|
} else {
|
|
int indexOf = attributeValue.indexOf(47);
|
|
if (indexOf >= 0) {
|
|
attributeValue = attributeValue.substring(indexOf + 1);
|
|
}
|
|
}
|
|
hashMap.put(attributeValue, Integer.valueOf(i));
|
|
yqq.c = C6805ccO.e(context, i);
|
|
}
|
|
}
|
|
if (i != -1) {
|
|
int i4 = this.r.c;
|
|
yqq.b(context, xmlPullParser);
|
|
if (i2 != -1) {
|
|
this.e.put(i, i2);
|
|
}
|
|
this.b.put(i, yqq);
|
|
}
|
|
return i;
|
|
}
|
|
|
|
public final yqQ e(int i) {
|
|
int a;
|
|
C15442gqk c15442gqk = this.i;
|
|
if (c15442gqk != null && (a = c15442gqk.a(i)) != -1) {
|
|
i = a;
|
|
}
|
|
if (this.b.get(i) == null) {
|
|
C6805ccO.e(this.r.getContext(), i);
|
|
SparseArray<yqQ> sparseArray = this.b;
|
|
return sparseArray.get(sparseArray.keyAt(0));
|
|
}
|
|
return this.b.get(i);
|
|
}
|
|
|
|
public final boolean c() {
|
|
Iterator<HBt> it = this.h.iterator();
|
|
while (it.hasNext()) {
|
|
if (it.next().p != null) {
|
|
return true;
|
|
}
|
|
}
|
|
HBt hBt = this.d;
|
|
return (hBt == null || hBt.p == null) ? false : true;
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:161:0x0495 */
|
|
/* JADX WARN: Removed duplicated region for block: B:164:0x04d6 */
|
|
/* JADX WARN: Removed duplicated region for block: B:197:0x04e3 */
|
|
/* JADX WARN: Removed duplicated region for block: B:198:0x04ba */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void kY_(android.view.MotionEvent r30, int r31, androidx.constraintlayout.motion.widget.MotionLayout r32) {
|
|
/*
|
|
Method dump skipped, instructions count: 1967
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: o.C16822rXU.kY_(android.view.MotionEvent, int, androidx.constraintlayout.motion.widget.MotionLayout):void");
|
|
}
|
|
|
|
public final void e(int i, MotionLayout motionLayout) {
|
|
yqQ yqq = this.b.get(i);
|
|
yqq.b = yqq.c;
|
|
int i2 = this.e.get(i);
|
|
if (i2 > 0) {
|
|
e(i2, motionLayout);
|
|
yqQ yqq2 = this.b.get(i2);
|
|
if (yqq2 == null) {
|
|
C6805ccO.e(this.r.getContext(), i2);
|
|
return;
|
|
}
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append(yqq.b);
|
|
sb.append("/");
|
|
sb.append(yqq2.b);
|
|
yqq.b = sb.toString();
|
|
yqq.e(yqq2);
|
|
} else {
|
|
StringBuilder sb2 = new StringBuilder();
|
|
sb2.append(yqq.b);
|
|
sb2.append(" layout");
|
|
yqq.b = sb2.toString();
|
|
yqq.b(motionLayout);
|
|
}
|
|
yqq.a(yqq);
|
|
}
|
|
|
|
public final boolean a(MotionLayout motionLayout, int i) {
|
|
HBt hBt;
|
|
if (this.u != null) {
|
|
return false;
|
|
}
|
|
Iterator<HBt> it = this.h.iterator();
|
|
while (it.hasNext()) {
|
|
HBt next = it.next();
|
|
if (next.a != 0 && ((hBt = this.d) != next || (hBt.t & 2) == 0)) {
|
|
if (i == next.e && (next.a == 4 || next.a == 2)) {
|
|
motionLayout.c(MotionLayout.saX.FINISHED);
|
|
motionLayout.d(next);
|
|
if (next.a != 4) {
|
|
motionLayout.setProgress(1.0f);
|
|
motionLayout.b(true);
|
|
motionLayout.c(MotionLayout.saX.SETUP);
|
|
motionLayout.c(MotionLayout.saX.MOVING);
|
|
motionLayout.c(MotionLayout.saX.FINISHED);
|
|
motionLayout.e();
|
|
} else {
|
|
motionLayout.e(1.0f);
|
|
motionLayout.n = null;
|
|
motionLayout.c(MotionLayout.saX.SETUP);
|
|
motionLayout.c(MotionLayout.saX.MOVING);
|
|
}
|
|
return true;
|
|
}
|
|
if (i == next.c && (next.a == 3 || next.a == 1)) {
|
|
motionLayout.c(MotionLayout.saX.FINISHED);
|
|
motionLayout.d(next);
|
|
if (next.a != 3) {
|
|
motionLayout.setProgress(BitmapDescriptorFactory.HUE_RED);
|
|
motionLayout.b(true);
|
|
motionLayout.c(MotionLayout.saX.SETUP);
|
|
motionLayout.c(MotionLayout.saX.MOVING);
|
|
motionLayout.c(MotionLayout.saX.FINISHED);
|
|
motionLayout.e();
|
|
} else {
|
|
motionLayout.e(BitmapDescriptorFactory.HUE_RED);
|
|
motionLayout.c(MotionLayout.saX.SETUP);
|
|
motionLayout.c(MotionLayout.saX.MOVING);
|
|
}
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public final Interpolator kX_() {
|
|
int i = this.d.b;
|
|
if (i == -2) {
|
|
return AnimationUtils.loadInterpolator(this.r.getContext(), this.d.d);
|
|
}
|
|
if (i == -1) {
|
|
return new Interpolator(Yrp.a(this.d.j)) { // from class: o.rXU.2
|
|
final Yrp c;
|
|
|
|
{
|
|
this.c = r1;
|
|
}
|
|
|
|
@Override // android.animation.TimeInterpolator
|
|
public final float getInterpolation(float f) {
|
|
return (float) this.c.e(f);
|
|
}
|
|
};
|
|
}
|
|
if (i == 0) {
|
|
return new AccelerateDecelerateInterpolator();
|
|
}
|
|
if (i == 1) {
|
|
return new AccelerateInterpolator();
|
|
}
|
|
if (i == 2) {
|
|
return new DecelerateInterpolator();
|
|
}
|
|
if (i == 4) {
|
|
return new BounceInterpolator();
|
|
}
|
|
if (i == 5) {
|
|
return new OvershootInterpolator();
|
|
}
|
|
if (i != 6) {
|
|
return null;
|
|
}
|
|
return new AnticipateInterpolator();
|
|
}
|
|
|
|
public final void e(C15870jKt c15870jKt) {
|
|
HBt hBt = this.d;
|
|
if (hBt != null) {
|
|
Iterator<liJ> it = hBt.f9258o.iterator();
|
|
while (it.hasNext()) {
|
|
it.next().d(c15870jKt);
|
|
}
|
|
} else {
|
|
HBt hBt2 = this.l;
|
|
if (hBt2 != null) {
|
|
Iterator<liJ> it2 = hBt2.f9258o.iterator();
|
|
while (it2.hasNext()) {
|
|
it2.next().d(c15870jKt);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:7:0x0012, code lost:
|
|
|
|
if (r2 != (-1)) goto L12;
|
|
*/
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void c(int r7, int r8) {
|
|
/*
|
|
r6 = this;
|
|
o.gqk r0 = r6.i
|
|
r1 = -1
|
|
if (r0 == 0) goto L15
|
|
int r0 = r0.a(r7)
|
|
if (r0 != r1) goto Lc
|
|
r0 = r7
|
|
Lc:
|
|
o.gqk r2 = r6.i
|
|
int r2 = r2.a(r8)
|
|
if (r2 == r1) goto L16
|
|
goto L17
|
|
L15:
|
|
r0 = r7
|
|
L16:
|
|
r2 = r8
|
|
L17:
|
|
o.rXU$HBt r3 = r6.d
|
|
if (r3 == 0) goto L26
|
|
int r3 = r3.c
|
|
if (r3 != r8) goto L26
|
|
o.rXU$HBt r3 = r6.d
|
|
int r3 = r3.e
|
|
if (r3 != r7) goto L26
|
|
return
|
|
L26:
|
|
java.util.ArrayList<o.rXU$HBt> r3 = r6.h
|
|
java.util.Iterator r3 = r3.iterator()
|
|
L2c:
|
|
boolean r4 = r3.hasNext()
|
|
if (r4 == 0) goto L5a
|
|
java.lang.Object r4 = r3.next()
|
|
o.rXU$HBt r4 = (o.C16822rXU.HBt) r4
|
|
int r5 = r4.c
|
|
if (r5 != r2) goto L40
|
|
int r5 = r4.e
|
|
if (r5 == r0) goto L48
|
|
L40:
|
|
int r5 = r4.c
|
|
if (r5 != r8) goto L2c
|
|
int r5 = r4.e
|
|
if (r5 != r7) goto L2c
|
|
L48:
|
|
r6.d = r4
|
|
if (r4 == 0) goto L59
|
|
o.Bmx r7 = r4.p
|
|
if (r7 == 0) goto L59
|
|
o.rXU$HBt r7 = r6.d
|
|
o.Bmx r7 = r7.p
|
|
boolean r8 = r6.c
|
|
r7.a(r8)
|
|
L59:
|
|
return
|
|
L5a:
|
|
o.rXU$HBt r7 = r6.l
|
|
java.util.ArrayList<o.rXU$HBt> r3 = r6.f
|
|
java.util.Iterator r3 = r3.iterator()
|
|
L62:
|
|
boolean r4 = r3.hasNext()
|
|
if (r4 == 0) goto L74
|
|
java.lang.Object r4 = r3.next()
|
|
o.rXU$HBt r4 = (o.C16822rXU.HBt) r4
|
|
int r5 = r4.c
|
|
if (r5 != r8) goto L62
|
|
r7 = r4
|
|
goto L62
|
|
L74:
|
|
o.rXU$HBt r8 = new o.rXU$HBt
|
|
r8.<init>(r6, r7)
|
|
r8.e = r0
|
|
r8.c = r2
|
|
if (r0 == r1) goto L84
|
|
java.util.ArrayList<o.rXU$HBt> r7 = r6.h
|
|
r7.add(r8)
|
|
L84:
|
|
r6.d = r8
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: o.C16822rXU.c(int, int):void");
|
|
}
|
|
|
|
public final void d(boolean z) {
|
|
this.c = z;
|
|
HBt hBt = this.d;
|
|
if (hBt == null || hBt.p == null) {
|
|
return;
|
|
}
|
|
this.d.p.a(this.c);
|
|
}
|
|
}
|