1058 lines
33 KiB
Java
1058 lines
33 KiB
Java
|
package o;
|
||
|
|
||
|
import android.animation.Animator;
|
||
|
import android.animation.AnimatorListenerAdapter;
|
||
|
import android.animation.TimeInterpolator;
|
||
|
import android.content.Context;
|
||
|
import android.content.res.TypedArray;
|
||
|
import android.content.res.XmlResourceParser;
|
||
|
import android.graphics.Path;
|
||
|
import android.util.AttributeSet;
|
||
|
import android.util.SparseArray;
|
||
|
import android.view.InflateException;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewGroup;
|
||
|
import android.view.animation.AnimationUtils;
|
||
|
import android.widget.ListView;
|
||
|
import androidx.core.view.ViewCompat;
|
||
|
import java.util.ArrayList;
|
||
|
import java.util.Iterator;
|
||
|
import java.util.StringTokenizer;
|
||
|
import org.simpleframework.xml.strategy.Name;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public abstract class VKj implements Cloneable {
|
||
|
private static final int[] g = {2, 1, 3, 4};
|
||
|
private static final Pbl l = new Pbl() { // from class: o.VKj.2
|
||
|
@Override // o.Pbl
|
||
|
public final Path Bg_(float f, float f2, float f3, float f4) {
|
||
|
Path path = new Path();
|
||
|
path.moveTo(f, f2);
|
||
|
path.lineTo(f3, f4);
|
||
|
return path;
|
||
|
}
|
||
|
};
|
||
|
private static ThreadLocal<nyh<Animator, HBt>> m = new ThreadLocal<>();
|
||
|
private C0611KpP A;
|
||
|
private long B;
|
||
|
private ArrayList<PaT> C;
|
||
|
private ViewGroup D;
|
||
|
private ArrayList<View> E;
|
||
|
private ArrayList<String> F;
|
||
|
private ArrayList<Integer> G;
|
||
|
private ArrayList<Integer> H;
|
||
|
private ArrayList<Class<?>> I;
|
||
|
private ArrayList<Class<?>> M;
|
||
|
ArrayList<Animator> a;
|
||
|
Bml b;
|
||
|
boolean c;
|
||
|
long d;
|
||
|
DAa e;
|
||
|
ArrayList<Integer> f;
|
||
|
ArrayList<String> h;
|
||
|
ArrayList<Class<?>> i;
|
||
|
ArrayList<View> j;
|
||
|
private ArrayList<Animator> k;
|
||
|
private C0611KpP n;
|
||
|
|
||
|
/* renamed from: o, reason: collision with root package name */
|
||
|
private ArrayList<PaT> f8411o;
|
||
|
private boolean p;
|
||
|
private ArrayList<Sts> q;
|
||
|
private TimeInterpolator r;
|
||
|
private int[] s;
|
||
|
private RVV t;
|
||
|
private int u;
|
||
|
private String v;
|
||
|
private boolean w;
|
||
|
private nyh<String, String> x;
|
||
|
private Pbl y;
|
||
|
private ArrayList<View> z;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public static abstract class RVV {
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public interface Sts {
|
||
|
void a();
|
||
|
|
||
|
void b();
|
||
|
|
||
|
void c();
|
||
|
|
||
|
void e();
|
||
|
|
||
|
void e(VKj vKj);
|
||
|
}
|
||
|
|
||
|
public Animator Ka_(ViewGroup viewGroup, PaT paT, PaT paT2) {
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
public String[] a() {
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
public abstract void b(PaT paT);
|
||
|
|
||
|
public abstract void d(PaT paT);
|
||
|
|
||
|
public VKj() {
|
||
|
this.v = getClass().getName();
|
||
|
this.B = -1L;
|
||
|
this.d = -1L;
|
||
|
this.r = null;
|
||
|
this.f = new ArrayList<>();
|
||
|
this.j = new ArrayList<>();
|
||
|
this.h = null;
|
||
|
this.i = null;
|
||
|
this.G = null;
|
||
|
this.E = null;
|
||
|
this.M = null;
|
||
|
this.F = null;
|
||
|
this.H = null;
|
||
|
this.z = null;
|
||
|
this.I = null;
|
||
|
this.A = new C0611KpP();
|
||
|
this.n = new C0611KpP();
|
||
|
this.b = null;
|
||
|
this.s = g;
|
||
|
this.D = null;
|
||
|
this.c = false;
|
||
|
this.a = new ArrayList<>();
|
||
|
this.u = 0;
|
||
|
this.w = false;
|
||
|
this.p = false;
|
||
|
this.q = null;
|
||
|
this.k = new ArrayList<>();
|
||
|
this.y = l;
|
||
|
}
|
||
|
|
||
|
public VKj(Context context, AttributeSet attributeSet) {
|
||
|
this.v = getClass().getName();
|
||
|
this.B = -1L;
|
||
|
this.d = -1L;
|
||
|
this.r = null;
|
||
|
this.f = new ArrayList<>();
|
||
|
this.j = new ArrayList<>();
|
||
|
this.h = null;
|
||
|
this.i = null;
|
||
|
this.G = null;
|
||
|
this.E = null;
|
||
|
this.M = null;
|
||
|
this.F = null;
|
||
|
this.H = null;
|
||
|
this.z = null;
|
||
|
this.I = null;
|
||
|
this.A = new C0611KpP();
|
||
|
this.n = new C0611KpP();
|
||
|
this.b = null;
|
||
|
this.s = g;
|
||
|
this.D = null;
|
||
|
this.c = false;
|
||
|
this.a = new ArrayList<>();
|
||
|
this.u = 0;
|
||
|
this.w = false;
|
||
|
this.p = false;
|
||
|
this.q = null;
|
||
|
this.k = new ArrayList<>();
|
||
|
this.y = l;
|
||
|
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, QXV.a);
|
||
|
XmlResourceParser xmlResourceParser = (XmlResourceParser) attributeSet;
|
||
|
long oy_ = C2447ael.oy_(obtainStyledAttributes, xmlResourceParser, "duration", 1, -1);
|
||
|
if (oy_ >= 0) {
|
||
|
c(oy_);
|
||
|
}
|
||
|
long oy_2 = C2447ael.oy_(obtainStyledAttributes, xmlResourceParser, "startDelay", 2, -1);
|
||
|
if (oy_2 > 0) {
|
||
|
d(oy_2);
|
||
|
}
|
||
|
int resourceId = xmlResourceParser.getAttributeValue("http://schemas.android.com/apk/res/android", "interpolator") != null ? obtainStyledAttributes.getResourceId(0, 0) : 0;
|
||
|
if (resourceId > 0) {
|
||
|
Bj_(AnimationUtils.loadInterpolator(context, resourceId));
|
||
|
}
|
||
|
String string = xmlResourceParser.getAttributeValue("http://schemas.android.com/apk/res/android", "matchOrder") != null ? obtainStyledAttributes.getString(3) : null;
|
||
|
if (string != null) {
|
||
|
StringTokenizer stringTokenizer = new StringTokenizer(string, ",");
|
||
|
int[] iArr = new int[stringTokenizer.countTokens()];
|
||
|
int i = 0;
|
||
|
while (stringTokenizer.hasMoreTokens()) {
|
||
|
String trim = stringTokenizer.nextToken().trim();
|
||
|
if (Name.MARK.equalsIgnoreCase(trim)) {
|
||
|
iArr[i] = 3;
|
||
|
} else if ("instance".equalsIgnoreCase(trim)) {
|
||
|
iArr[i] = 1;
|
||
|
} else if ("name".equalsIgnoreCase(trim)) {
|
||
|
iArr[i] = 2;
|
||
|
} else if ("itemId".equalsIgnoreCase(trim)) {
|
||
|
iArr[i] = 4;
|
||
|
} else if (trim.isEmpty()) {
|
||
|
int[] iArr2 = new int[iArr.length - 1];
|
||
|
System.arraycopy(iArr, 0, iArr2, 0, i);
|
||
|
i--;
|
||
|
iArr = iArr2;
|
||
|
} else {
|
||
|
StringBuilder sb = new StringBuilder("Unknown match type in matchOrder: '");
|
||
|
sb.append(trim);
|
||
|
sb.append("'");
|
||
|
throw new InflateException(sb.toString());
|
||
|
}
|
||
|
i++;
|
||
|
}
|
||
|
if (iArr.length != 0) {
|
||
|
for (int i2 = 0; i2 < iArr.length; i2++) {
|
||
|
int i3 = iArr[i2];
|
||
|
if (i3 <= 0 || i3 > 4) {
|
||
|
throw new IllegalArgumentException("matches contains invalid value");
|
||
|
}
|
||
|
for (int i4 = 0; i4 < i2; i4++) {
|
||
|
if (iArr[i4] == i3) {
|
||
|
throw new IllegalArgumentException("matches contains a duplicate value");
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
this.s = (int[]) iArr.clone();
|
||
|
} else {
|
||
|
this.s = g;
|
||
|
}
|
||
|
}
|
||
|
obtainStyledAttributes.recycle();
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: protected */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:49:0x00e2 */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:54:0x0112 A[SYNTHETIC] */
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
public void Bi_(android.view.ViewGroup r21, o.C0611KpP r22, o.C0611KpP r23, java.util.ArrayList<o.PaT> r24, java.util.ArrayList<o.PaT> r25) {
|
||
|
/*
|
||
|
Method dump skipped, instructions count: 323
|
||
|
To view this dump add '--comments-level debug' option
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: o.VKj.Bi_(android.view.ViewGroup, o.KpP, o.KpP, java.util.ArrayList, java.util.ArrayList):void");
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public final boolean b(View view) {
|
||
|
return (this.f.size() == 0 && this.j.size() == 0) || this.f.contains(Integer.valueOf(view.getId())) || this.j.contains(view);
|
||
|
}
|
||
|
|
||
|
private static nyh<Animator, HBt> l() {
|
||
|
nyh<Animator, HBt> nyhVar = m.get();
|
||
|
if (nyhVar != null) {
|
||
|
return nyhVar;
|
||
|
}
|
||
|
nyh<Animator, HBt> nyhVar2 = new nyh<>();
|
||
|
m.set(nyhVar2);
|
||
|
return nyhVar2;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: protected */
|
||
|
public void j() {
|
||
|
g();
|
||
|
nyh<Animator, HBt> l2 = l();
|
||
|
Iterator<Animator> it = this.k.iterator();
|
||
|
while (it.hasNext()) {
|
||
|
Animator next = it.next();
|
||
|
if (l2.containsKey(next)) {
|
||
|
g();
|
||
|
if (next != null) {
|
||
|
next.addListener(new AnimatorListenerAdapter(this, l2) { // from class: o.VKj.1
|
||
|
final nyh b;
|
||
|
final VKj c;
|
||
|
|
||
|
{
|
||
|
this.c = this;
|
||
|
this.b = l2;
|
||
|
}
|
||
|
|
||
|
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
|
||
|
public final void onAnimationStart(Animator animator) {
|
||
|
this.c.a.add(animator);
|
||
|
}
|
||
|
|
||
|
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
|
||
|
public final void onAnimationEnd(Animator animator) {
|
||
|
this.b.remove(animator);
|
||
|
this.c.a.remove(animator);
|
||
|
}
|
||
|
});
|
||
|
if (next != null) {
|
||
|
long j = this.d;
|
||
|
if (j >= 0) {
|
||
|
next.setDuration(j);
|
||
|
}
|
||
|
long j2 = this.B;
|
||
|
if (j2 >= 0) {
|
||
|
next.setStartDelay(j2 + next.getStartDelay());
|
||
|
}
|
||
|
TimeInterpolator timeInterpolator = this.r;
|
||
|
if (timeInterpolator != null) {
|
||
|
next.setInterpolator(timeInterpolator);
|
||
|
}
|
||
|
next.addListener(new AnimatorListenerAdapter(this) { // from class: o.VKj.4
|
||
|
final VKj e;
|
||
|
|
||
|
{
|
||
|
this.e = this;
|
||
|
}
|
||
|
|
||
|
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
|
||
|
public final void onAnimationEnd(Animator animator) {
|
||
|
this.e.e();
|
||
|
animator.removeListener(this);
|
||
|
}
|
||
|
});
|
||
|
next.start();
|
||
|
} else {
|
||
|
e();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
this.k.clear();
|
||
|
e();
|
||
|
}
|
||
|
|
||
|
public VKj d(View view) {
|
||
|
this.j.add(view);
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
public VKj a(View view) {
|
||
|
this.j.remove(view);
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public final void Ba_(ViewGroup viewGroup, boolean z) {
|
||
|
d(z);
|
||
|
if (this.f.size() > 0 || this.j.size() > 0) {
|
||
|
for (int i = 0; i < this.f.size(); i++) {
|
||
|
View findViewById = viewGroup.findViewById(this.f.get(i).intValue());
|
||
|
if (findViewById != null) {
|
||
|
PaT paT = new PaT(findViewById);
|
||
|
if (z) {
|
||
|
b(paT);
|
||
|
} else {
|
||
|
d(paT);
|
||
|
}
|
||
|
paT.e.add(this);
|
||
|
e(paT);
|
||
|
if (z) {
|
||
|
e(this.A, findViewById, paT);
|
||
|
} else {
|
||
|
e(this.n, findViewById, paT);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
for (int i2 = 0; i2 < this.j.size(); i2++) {
|
||
|
View view = this.j.get(i2);
|
||
|
PaT paT2 = new PaT(view);
|
||
|
if (z) {
|
||
|
b(paT2);
|
||
|
} else {
|
||
|
d(paT2);
|
||
|
}
|
||
|
paT2.e.add(this);
|
||
|
e(paT2);
|
||
|
if (z) {
|
||
|
e(this.A, view, paT2);
|
||
|
} else {
|
||
|
e(this.n, view, paT2);
|
||
|
}
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
e(viewGroup, z);
|
||
|
}
|
||
|
|
||
|
private static void e(C0611KpP c0611KpP, View view, PaT paT) {
|
||
|
c0611KpP.a.put(view, paT);
|
||
|
int id = view.getId();
|
||
|
if (id >= 0) {
|
||
|
if (c0611KpP.d.indexOfKey(id) >= 0) {
|
||
|
c0611KpP.d.put(id, null);
|
||
|
} else {
|
||
|
c0611KpP.d.put(id, view);
|
||
|
}
|
||
|
}
|
||
|
String u = ViewCompat.u(view);
|
||
|
if (u != null) {
|
||
|
if (c0611KpP.e.containsKey(u)) {
|
||
|
c0611KpP.e.put(u, null);
|
||
|
} else {
|
||
|
c0611KpP.e.put(u, view);
|
||
|
}
|
||
|
}
|
||
|
if (view.getParent() instanceof ListView) {
|
||
|
ListView listView = (ListView) view.getParent();
|
||
|
if (listView.getAdapter().hasStableIds()) {
|
||
|
long itemIdAtPosition = listView.getItemIdAtPosition(listView.getPositionForView(view));
|
||
|
C0667Ltg<View> c0667Ltg = c0611KpP.b;
|
||
|
if (c0667Ltg.b) {
|
||
|
c0667Ltg.c();
|
||
|
}
|
||
|
if (C6569cWs.e(c0667Ltg.e, c0667Ltg.a, itemIdAtPosition) < 0) {
|
||
|
ViewCompat.b(view, true);
|
||
|
c0611KpP.b.c(itemIdAtPosition, view);
|
||
|
return;
|
||
|
}
|
||
|
View c = c0611KpP.b.c(itemIdAtPosition);
|
||
|
if (c != null) {
|
||
|
ViewCompat.b(c, false);
|
||
|
c0611KpP.b.c(itemIdAtPosition, null);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public final void d(boolean z) {
|
||
|
if (z) {
|
||
|
this.A.a.clear();
|
||
|
this.A.d.clear();
|
||
|
this.A.b.b();
|
||
|
} else {
|
||
|
this.n.a.clear();
|
||
|
this.n.d.clear();
|
||
|
this.n.b.b();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private void e(View view, boolean z) {
|
||
|
if (view == null) {
|
||
|
return;
|
||
|
}
|
||
|
view.getId();
|
||
|
if (view.getParent() instanceof ViewGroup) {
|
||
|
PaT paT = new PaT(view);
|
||
|
if (z) {
|
||
|
b(paT);
|
||
|
} else {
|
||
|
d(paT);
|
||
|
}
|
||
|
paT.e.add(this);
|
||
|
e(paT);
|
||
|
if (z) {
|
||
|
e(this.A, view, paT);
|
||
|
} else {
|
||
|
e(this.n, view, paT);
|
||
|
}
|
||
|
}
|
||
|
if (view instanceof ViewGroup) {
|
||
|
ViewGroup viewGroup = (ViewGroup) view;
|
||
|
for (int i = 0; i < viewGroup.getChildCount(); i++) {
|
||
|
e(viewGroup.getChildAt(i), z);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public final PaT c(View view, boolean z) {
|
||
|
VKj vKj = this;
|
||
|
while (true) {
|
||
|
Bml bml = vKj.b;
|
||
|
if (bml == null) {
|
||
|
break;
|
||
|
}
|
||
|
vKj = bml;
|
||
|
}
|
||
|
return (z ? vKj.A : vKj.n).a.get(view);
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:20:0x002a, code lost:
|
||
|
|
||
|
if (r4 < 0) goto L31;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:21:0x002c, code lost:
|
||
|
|
||
|
if (r8 == false) goto L24;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:22:0x002e, code lost:
|
||
|
|
||
|
r7 = r0.f8411o;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:24:0x003a, code lost:
|
||
|
|
||
|
return r7.get(r4);
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:25:0x0031, code lost:
|
||
|
|
||
|
r7 = r0.C;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:26:?, code lost:
|
||
|
|
||
|
return null;
|
||
|
*/
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
public final o.PaT b(android.view.View r7, boolean r8) {
|
||
|
/*
|
||
|
r6 = this;
|
||
|
r0 = r6
|
||
|
L1:
|
||
|
o.Bml r1 = r0.b
|
||
|
if (r1 == 0) goto L7
|
||
|
r0 = r1
|
||
|
goto L1
|
||
|
L7:
|
||
|
if (r8 == 0) goto Lc
|
||
|
java.util.ArrayList<o.PaT> r1 = r0.C
|
||
|
goto Le
|
||
|
Lc:
|
||
|
java.util.ArrayList<o.PaT> r1 = r0.f8411o
|
||
|
Le:
|
||
|
r2 = 0
|
||
|
if (r1 != 0) goto L12
|
||
|
return r2
|
||
|
L12:
|
||
|
int r3 = r1.size()
|
||
|
r4 = 0
|
||
|
L17:
|
||
|
if (r4 >= r3) goto L29
|
||
|
java.lang.Object r5 = r1.get(r4)
|
||
|
o.PaT r5 = (o.PaT) r5
|
||
|
if (r5 != 0) goto L22
|
||
|
return r2
|
||
|
L22:
|
||
|
android.view.View r5 = r5.d
|
||
|
if (r5 == r7) goto L2a
|
||
|
int r4 = r4 + 1
|
||
|
goto L17
|
||
|
L29:
|
||
|
r4 = -1
|
||
|
L2a:
|
||
|
if (r4 < 0) goto L3a
|
||
|
if (r8 == 0) goto L31
|
||
|
java.util.ArrayList<o.PaT> r7 = r0.f8411o
|
||
|
goto L33
|
||
|
L31:
|
||
|
java.util.ArrayList<o.PaT> r7 = r0.C
|
||
|
L33:
|
||
|
java.lang.Object r7 = r7.get(r4)
|
||
|
r2 = r7
|
||
|
o.PaT r2 = (o.PaT) r2
|
||
|
L3a:
|
||
|
return r2
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: o.VKj.b(android.view.View, boolean):o.PaT");
|
||
|
}
|
||
|
|
||
|
public void e(View view) {
|
||
|
if (this.p) {
|
||
|
return;
|
||
|
}
|
||
|
nyh<Animator, HBt> l2 = l();
|
||
|
int size = l2.size();
|
||
|
InterfaceC16559pNf a = RHF.a(view);
|
||
|
while (true) {
|
||
|
size--;
|
||
|
if (size < 0) {
|
||
|
break;
|
||
|
}
|
||
|
int i = size << 1;
|
||
|
HBt hBt = (HBt) l2.e[i + 1];
|
||
|
if (hBt.c != null && a.equals(hBt.a)) {
|
||
|
((Animator) l2.e[i]).pause();
|
||
|
}
|
||
|
}
|
||
|
ArrayList<Sts> arrayList = this.q;
|
||
|
if (arrayList != null && arrayList.size() > 0) {
|
||
|
ArrayList arrayList2 = (ArrayList) this.q.clone();
|
||
|
int size2 = arrayList2.size();
|
||
|
for (int i2 = 0; i2 < size2; i2++) {
|
||
|
((Sts) arrayList2.get(i2)).a();
|
||
|
}
|
||
|
}
|
||
|
this.w = true;
|
||
|
}
|
||
|
|
||
|
public void c(View view) {
|
||
|
if (this.w) {
|
||
|
if (!this.p) {
|
||
|
nyh<Animator, HBt> l2 = l();
|
||
|
int size = l2.size();
|
||
|
InterfaceC16559pNf a = RHF.a(view);
|
||
|
while (true) {
|
||
|
size--;
|
||
|
if (size < 0) {
|
||
|
break;
|
||
|
}
|
||
|
int i = size << 1;
|
||
|
HBt hBt = (HBt) l2.e[i + 1];
|
||
|
if (hBt.c != null && a.equals(hBt.a)) {
|
||
|
((Animator) l2.e[i]).resume();
|
||
|
}
|
||
|
}
|
||
|
ArrayList<Sts> arrayList = this.q;
|
||
|
if (arrayList != null && arrayList.size() > 0) {
|
||
|
ArrayList arrayList2 = (ArrayList) this.q.clone();
|
||
|
int size2 = arrayList2.size();
|
||
|
for (int i2 = 0; i2 < size2; i2++) {
|
||
|
((Sts) arrayList2.get(i2)).c();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
this.w = false;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
/* JADX WARN: Multi-variable type inference failed */
|
||
|
public final void Be_(ViewGroup viewGroup) {
|
||
|
HBt hBt;
|
||
|
PaT paT;
|
||
|
View view;
|
||
|
View view2;
|
||
|
this.C = new ArrayList<>();
|
||
|
this.f8411o = new ArrayList<>();
|
||
|
C0611KpP c0611KpP = this.A;
|
||
|
C0611KpP c0611KpP2 = this.n;
|
||
|
nyh nyhVar = new nyh(c0611KpP.a);
|
||
|
nyh nyhVar2 = new nyh(c0611KpP2.a);
|
||
|
int i = 0;
|
||
|
while (true) {
|
||
|
int[] iArr = this.s;
|
||
|
if (i >= iArr.length) {
|
||
|
break;
|
||
|
}
|
||
|
int i2 = iArr[i];
|
||
|
if (i2 == 1) {
|
||
|
for (int size = nyhVar.size() - 1; size >= 0; size--) {
|
||
|
View view3 = (View) nyhVar.e[size << 1];
|
||
|
if (view3 != null && b(view3) && (paT = (PaT) nyhVar2.remove(view3)) != null && b(paT.d)) {
|
||
|
this.C.add((PaT) nyhVar.c(size));
|
||
|
this.f8411o.add(paT);
|
||
|
}
|
||
|
}
|
||
|
} else if (i2 == 2) {
|
||
|
nyh<String, View> nyhVar3 = c0611KpP.e;
|
||
|
nyh<String, View> nyhVar4 = c0611KpP2.e;
|
||
|
int size2 = nyhVar3.size();
|
||
|
for (int i3 = 0; i3 < size2; i3++) {
|
||
|
int i4 = i3 << 1;
|
||
|
View view4 = (View) nyhVar3.e[i4 + 1];
|
||
|
if (view4 != null && b(view4) && (view = nyhVar4.get(nyhVar3.e[i4])) != null && b(view)) {
|
||
|
PaT paT2 = (PaT) nyhVar.get(view4);
|
||
|
PaT paT3 = (PaT) nyhVar2.get(view);
|
||
|
if (paT2 != null && paT3 != null) {
|
||
|
this.C.add(paT2);
|
||
|
this.f8411o.add(paT3);
|
||
|
nyhVar.remove(view4);
|
||
|
nyhVar2.remove(view);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
} else if (i2 == 3) {
|
||
|
SparseArray<View> sparseArray = c0611KpP.d;
|
||
|
SparseArray<View> sparseArray2 = c0611KpP2.d;
|
||
|
int size3 = sparseArray.size();
|
||
|
for (int i5 = 0; i5 < size3; i5++) {
|
||
|
View valueAt = sparseArray.valueAt(i5);
|
||
|
if (valueAt != null && b(valueAt) && (view2 = sparseArray2.get(sparseArray.keyAt(i5))) != null && b(view2)) {
|
||
|
PaT paT4 = (PaT) nyhVar.get(valueAt);
|
||
|
PaT paT5 = (PaT) nyhVar2.get(view2);
|
||
|
if (paT4 != null && paT5 != null) {
|
||
|
this.C.add(paT4);
|
||
|
this.f8411o.add(paT5);
|
||
|
nyhVar.remove(valueAt);
|
||
|
nyhVar2.remove(view2);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
} else if (i2 == 4) {
|
||
|
C0667Ltg<View> c0667Ltg = c0611KpP.b;
|
||
|
C0667Ltg<View> c0667Ltg2 = c0611KpP2.b;
|
||
|
if (c0667Ltg.b) {
|
||
|
c0667Ltg.c();
|
||
|
}
|
||
|
int i6 = c0667Ltg.a;
|
||
|
for (int i7 = 0; i7 < i6; i7++) {
|
||
|
if (c0667Ltg.b) {
|
||
|
c0667Ltg.c();
|
||
|
}
|
||
|
View view5 = (View) c0667Ltg.c[i7];
|
||
|
if (view5 != null && b(view5)) {
|
||
|
if (c0667Ltg.b) {
|
||
|
c0667Ltg.c();
|
||
|
}
|
||
|
View c = c0667Ltg2.c(c0667Ltg.e[i7]);
|
||
|
if (c != null && b(c)) {
|
||
|
PaT paT6 = (PaT) nyhVar.get(view5);
|
||
|
PaT paT7 = (PaT) nyhVar2.get(c);
|
||
|
if (paT6 != null && paT7 != null) {
|
||
|
this.C.add(paT6);
|
||
|
this.f8411o.add(paT7);
|
||
|
nyhVar.remove(view5);
|
||
|
nyhVar2.remove(c);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
i++;
|
||
|
}
|
||
|
for (int i8 = 0; i8 < nyhVar.size(); i8++) {
|
||
|
PaT paT8 = (PaT) nyhVar.e[(i8 << 1) + 1];
|
||
|
if (b(paT8.d)) {
|
||
|
this.C.add(paT8);
|
||
|
this.f8411o.add(null);
|
||
|
}
|
||
|
}
|
||
|
for (int i9 = 0; i9 < nyhVar2.size(); i9++) {
|
||
|
PaT paT9 = (PaT) nyhVar2.e[(i9 << 1) + 1];
|
||
|
if (b(paT9.d)) {
|
||
|
this.f8411o.add(paT9);
|
||
|
this.C.add(null);
|
||
|
}
|
||
|
}
|
||
|
nyh<Animator, HBt> l2 = l();
|
||
|
int size4 = l2.size();
|
||
|
InterfaceC16559pNf a = RHF.a(viewGroup);
|
||
|
while (true) {
|
||
|
size4--;
|
||
|
if (size4 >= 0) {
|
||
|
Animator animator = (Animator) l2.e[size4 << 1];
|
||
|
if (animator != null && (hBt = l2.get(animator)) != null && hBt.c != null && a.equals(hBt.a)) {
|
||
|
PaT paT10 = hBt.e;
|
||
|
View view6 = hBt.c;
|
||
|
PaT c2 = c(view6, true);
|
||
|
PaT b = b(view6, true);
|
||
|
if (c2 == null && b == null) {
|
||
|
b = this.n.a.get(view6);
|
||
|
}
|
||
|
if (c2 != null || b != null) {
|
||
|
if (hBt.d.c(paT10, b)) {
|
||
|
if (animator.isRunning() || animator.isStarted()) {
|
||
|
animator.cancel();
|
||
|
} else {
|
||
|
l2.remove(animator);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
} else {
|
||
|
Bi_(viewGroup, this.A, this.n, this.C, this.f8411o);
|
||
|
j();
|
||
|
return;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public boolean c(PaT paT, PaT paT2) {
|
||
|
if (paT == null || paT2 == null) {
|
||
|
return false;
|
||
|
}
|
||
|
String[] a = a();
|
||
|
if (a != null) {
|
||
|
for (String str : a) {
|
||
|
if (!a(paT, paT2, str)) {
|
||
|
}
|
||
|
}
|
||
|
return false;
|
||
|
}
|
||
|
Iterator<String> it = paT.a.keySet().iterator();
|
||
|
while (it.hasNext()) {
|
||
|
if (a(paT, paT2, it.next())) {
|
||
|
}
|
||
|
}
|
||
|
return false;
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
private static boolean a(PaT paT, PaT paT2, String str) {
|
||
|
Object obj = paT.a.get(str);
|
||
|
Object obj2 = paT2.a.get(str);
|
||
|
if (obj == null && obj2 == null) {
|
||
|
return false;
|
||
|
}
|
||
|
if (obj == null || obj2 == null) {
|
||
|
return true;
|
||
|
}
|
||
|
return !obj.equals(obj2);
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: protected */
|
||
|
public final void g() {
|
||
|
if (this.u == 0) {
|
||
|
ArrayList<Sts> arrayList = this.q;
|
||
|
if (arrayList != null && arrayList.size() > 0) {
|
||
|
ArrayList arrayList2 = (ArrayList) this.q.clone();
|
||
|
int size = arrayList2.size();
|
||
|
for (int i = 0; i < size; i++) {
|
||
|
((Sts) arrayList2.get(i)).e();
|
||
|
}
|
||
|
}
|
||
|
this.p = false;
|
||
|
}
|
||
|
this.u++;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: protected */
|
||
|
public final void e() {
|
||
|
int i = this.u - 1;
|
||
|
this.u = i;
|
||
|
if (i != 0) {
|
||
|
return;
|
||
|
}
|
||
|
ArrayList<Sts> arrayList = this.q;
|
||
|
if (arrayList != null && arrayList.size() > 0) {
|
||
|
ArrayList arrayList2 = (ArrayList) this.q.clone();
|
||
|
int size = arrayList2.size();
|
||
|
for (int i2 = 0; i2 < size; i2++) {
|
||
|
((Sts) arrayList2.get(i2)).e(this);
|
||
|
}
|
||
|
}
|
||
|
int i3 = 0;
|
||
|
while (true) {
|
||
|
C0667Ltg<View> c0667Ltg = this.A.b;
|
||
|
if (c0667Ltg.b) {
|
||
|
c0667Ltg.c();
|
||
|
}
|
||
|
if (i3 >= c0667Ltg.a) {
|
||
|
break;
|
||
|
}
|
||
|
C0667Ltg<View> c0667Ltg2 = this.A.b;
|
||
|
if (c0667Ltg2.b) {
|
||
|
c0667Ltg2.c();
|
||
|
}
|
||
|
View view = (View) c0667Ltg2.c[i3];
|
||
|
if (view != null) {
|
||
|
ViewCompat.b(view, false);
|
||
|
}
|
||
|
i3++;
|
||
|
}
|
||
|
int i4 = 0;
|
||
|
while (true) {
|
||
|
C0667Ltg<View> c0667Ltg3 = this.n.b;
|
||
|
if (c0667Ltg3.b) {
|
||
|
c0667Ltg3.c();
|
||
|
}
|
||
|
if (i4 >= c0667Ltg3.a) {
|
||
|
this.p = true;
|
||
|
return;
|
||
|
}
|
||
|
C0667Ltg<View> c0667Ltg4 = this.n.b;
|
||
|
if (c0667Ltg4.b) {
|
||
|
c0667Ltg4.c();
|
||
|
}
|
||
|
View view2 = (View) c0667Ltg4.c[i4];
|
||
|
if (view2 != null) {
|
||
|
ViewCompat.b(view2, false);
|
||
|
}
|
||
|
i4++;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: protected */
|
||
|
public void c() {
|
||
|
for (int size = this.a.size() - 1; size >= 0; size--) {
|
||
|
this.a.get(size).cancel();
|
||
|
}
|
||
|
ArrayList<Sts> arrayList = this.q;
|
||
|
if (arrayList == null || arrayList.size() <= 0) {
|
||
|
return;
|
||
|
}
|
||
|
ArrayList arrayList2 = (ArrayList) this.q.clone();
|
||
|
int size2 = arrayList2.size();
|
||
|
for (int i = 0; i < size2; i++) {
|
||
|
((Sts) arrayList2.get(i)).b();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public VKj a(Sts sts) {
|
||
|
if (this.q == null) {
|
||
|
this.q = new ArrayList<>();
|
||
|
}
|
||
|
this.q.add(sts);
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
public VKj b(Sts sts) {
|
||
|
ArrayList<Sts> arrayList = this.q;
|
||
|
if (arrayList == null) {
|
||
|
return this;
|
||
|
}
|
||
|
arrayList.remove(sts);
|
||
|
if (this.q.size() == 0) {
|
||
|
this.q = null;
|
||
|
}
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public void e(PaT paT) {
|
||
|
String[] d;
|
||
|
if (this.e == null || paT.a.isEmpty() || (d = this.e.d()) == null) {
|
||
|
return;
|
||
|
}
|
||
|
for (int i = 0; i < d.length && paT.a.containsKey(d[i]); i++) {
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public String toString() {
|
||
|
return c("");
|
||
|
}
|
||
|
|
||
|
@Override //
|
||
|
/* renamed from: b, reason: merged with bridge method [inline-methods] */
|
||
|
public VKj clone() {
|
||
|
try {
|
||
|
VKj vKj = (VKj) super.clone();
|
||
|
vKj.k = new ArrayList<>();
|
||
|
vKj.A = new C0611KpP();
|
||
|
vKj.n = new C0611KpP();
|
||
|
vKj.C = null;
|
||
|
vKj.f8411o = null;
|
||
|
return vKj;
|
||
|
} catch (CloneNotSupportedException unused) {
|
||
|
return null;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public String c(String str) {
|
||
|
StringBuilder sb = new StringBuilder();
|
||
|
sb.append(str);
|
||
|
sb.append(getClass().getSimpleName());
|
||
|
sb.append("@");
|
||
|
sb.append(Integer.toHexString(hashCode()));
|
||
|
sb.append(": ");
|
||
|
String obj = sb.toString();
|
||
|
if (this.d != -1) {
|
||
|
StringBuilder sb2 = new StringBuilder();
|
||
|
sb2.append(obj);
|
||
|
sb2.append("dur(");
|
||
|
sb2.append(this.d);
|
||
|
sb2.append(") ");
|
||
|
obj = sb2.toString();
|
||
|
}
|
||
|
if (this.B != -1) {
|
||
|
StringBuilder sb3 = new StringBuilder();
|
||
|
sb3.append(obj);
|
||
|
sb3.append("dly(");
|
||
|
sb3.append(this.B);
|
||
|
sb3.append(") ");
|
||
|
obj = sb3.toString();
|
||
|
}
|
||
|
if (this.r != null) {
|
||
|
StringBuilder sb4 = new StringBuilder();
|
||
|
sb4.append(obj);
|
||
|
sb4.append("interp(");
|
||
|
sb4.append(this.r);
|
||
|
sb4.append(") ");
|
||
|
obj = sb4.toString();
|
||
|
}
|
||
|
if (this.f.size() <= 0 && this.j.size() <= 0) {
|
||
|
return obj;
|
||
|
}
|
||
|
StringBuilder sb5 = new StringBuilder();
|
||
|
sb5.append(obj);
|
||
|
sb5.append("tgts(");
|
||
|
String obj2 = sb5.toString();
|
||
|
if (this.f.size() > 0) {
|
||
|
for (int i = 0; i < this.f.size(); i++) {
|
||
|
if (i > 0) {
|
||
|
StringBuilder sb6 = new StringBuilder();
|
||
|
sb6.append(obj2);
|
||
|
sb6.append(", ");
|
||
|
obj2 = sb6.toString();
|
||
|
}
|
||
|
StringBuilder sb7 = new StringBuilder();
|
||
|
sb7.append(obj2);
|
||
|
sb7.append(this.f.get(i));
|
||
|
obj2 = sb7.toString();
|
||
|
}
|
||
|
}
|
||
|
if (this.j.size() > 0) {
|
||
|
for (int i2 = 0; i2 < this.j.size(); i2++) {
|
||
|
if (i2 > 0) {
|
||
|
StringBuilder sb8 = new StringBuilder();
|
||
|
sb8.append(obj2);
|
||
|
sb8.append(", ");
|
||
|
obj2 = sb8.toString();
|
||
|
}
|
||
|
StringBuilder sb9 = new StringBuilder();
|
||
|
sb9.append(obj2);
|
||
|
sb9.append(this.j.get(i2));
|
||
|
obj2 = sb9.toString();
|
||
|
}
|
||
|
}
|
||
|
StringBuilder sb10 = new StringBuilder();
|
||
|
sb10.append(obj2);
|
||
|
sb10.append(")");
|
||
|
return sb10.toString();
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
/* loaded from: classes.dex */
|
||
|
public static class HBt {
|
||
|
InterfaceC16559pNf a;
|
||
|
String b;
|
||
|
View c;
|
||
|
VKj d;
|
||
|
PaT e;
|
||
|
|
||
|
HBt(View view, String str, VKj vKj, InterfaceC16559pNf interfaceC16559pNf, PaT paT) {
|
||
|
this.c = view;
|
||
|
this.b = str;
|
||
|
this.e = paT;
|
||
|
this.a = interfaceC16559pNf;
|
||
|
this.d = vKj;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public VKj d(long j) {
|
||
|
this.B = j;
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
public void c(DAa dAa) {
|
||
|
this.e = dAa;
|
||
|
}
|
||
|
|
||
|
public void d(Pbl pbl) {
|
||
|
if (pbl == null) {
|
||
|
this.y = l;
|
||
|
} else {
|
||
|
this.y = pbl;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public VKj Bj_(TimeInterpolator timeInterpolator) {
|
||
|
this.r = timeInterpolator;
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
public void e(RVV rvv) {
|
||
|
this.t = rvv;
|
||
|
}
|
||
|
|
||
|
public VKj c(long j) {
|
||
|
this.d = j;
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
public final long h() {
|
||
|
return this.B;
|
||
|
}
|
||
|
|
||
|
public final Pbl i() {
|
||
|
return this.y;
|
||
|
}
|
||
|
|
||
|
public final TimeInterpolator Bd_() {
|
||
|
return this.r;
|
||
|
}
|
||
|
|
||
|
public final RVV d() {
|
||
|
return this.t;
|
||
|
}
|
||
|
}
|