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

362 lines
9.6 KiB
Java

package o;
import android.animation.TimeInterpolator;
import android.content.Context;
import android.content.res.TypedArray;
import android.content.res.XmlResourceParser;
import android.util.AndroidRuntimeException;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import java.util.ArrayList;
import java.util.Iterator;
import o.VKj;
/* loaded from: classes.dex */
public class Bml extends VKj {
int g;
private boolean k;
boolean l;
ArrayList<VKj> n;
/* renamed from: o, reason: collision with root package name */
private int f8110o;
@Override // o.VKj
public final /* synthetic */ VKj a(View view) {
for (int i = 0; i < this.n.size(); i++) {
this.n.get(i).a(view);
}
return (Bml) super.a(view);
}
@Override // o.VKj
public /* synthetic */ Object clone() throws CloneNotSupportedException {
return clone();
}
@Override // o.VKj
public final /* synthetic */ VKj d(View view) {
for (int i = 0; i < this.n.size(); i++) {
this.n.get(i).d(view);
}
return (Bml) super.d(view);
}
public Bml() {
this.n = new ArrayList<>();
this.k = true;
this.l = false;
this.f8110o = 0;
}
public Bml(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
this.n = new ArrayList<>();
this.k = true;
this.l = false;
this.f8110o = 0;
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, QXV.c);
b(C2447ael.oy_(obtainStyledAttributes, (XmlResourceParser) attributeSet, "transitionOrdering", 0, 0));
obtainStyledAttributes.recycle();
}
public final Bml b(int i) {
if (i == 0) {
this.k = true;
} else {
if (i != 1) {
throw new AndroidRuntimeException("Invalid parameter for TransitionSet ordering: ".concat(String.valueOf(i)));
}
this.k = false;
}
return this;
}
public final Bml d(VKj vKj) {
this.n.add(vKj);
vKj.b = this;
if (this.d >= 0) {
vKj.c(this.d);
}
if ((this.f8110o & 1) != 0) {
vKj.Bj_(Bd_());
}
if ((this.f8110o & 2) != 0) {
vKj.c(this.e);
}
if ((this.f8110o & 4) != 0) {
vKj.d(i());
}
if ((this.f8110o & 8) != 0) {
vKj.e(d());
}
return this;
}
@Override // o.VKj
/* renamed from: e, reason: merged with bridge method [inline-methods] */
public final Bml c(long j) {
ArrayList<VKj> arrayList;
super.c(j);
if (this.d >= 0 && (arrayList = this.n) != null) {
int size = arrayList.size();
for (int i = 0; i < size; i++) {
this.n.get(i).c(j);
}
}
return this;
}
@Override // o.VKj
/* renamed from: Bk_, reason: merged with bridge method [inline-methods] */
public final Bml Bj_(TimeInterpolator timeInterpolator) {
this.f8110o |= 1;
ArrayList<VKj> arrayList = this.n;
if (arrayList != null) {
int size = arrayList.size();
for (int i = 0; i < size; i++) {
this.n.get(i).Bj_(timeInterpolator);
}
}
return (Bml) super.Bj_(timeInterpolator);
}
@Override // o.VKj
public final void d(Pbl pbl) {
super.d(pbl);
this.f8110o |= 4;
if (this.n != null) {
for (int i = 0; i < this.n.size(); i++) {
this.n.get(i).d(pbl);
}
}
}
/* loaded from: classes.dex */
static class RVV extends C17599yDT {
private Bml d;
RVV(Bml bml) {
this.d = bml;
}
@Override // o.C17599yDT, o.VKj.Sts
public final void e() {
if (this.d.l) {
return;
}
this.d.g();
this.d.l = true;
}
@Override // o.C17599yDT, o.VKj.Sts
public final void e(VKj vKj) {
Bml bml = this.d;
bml.g--;
if (this.d.g == 0) {
this.d.l = false;
this.d.e();
}
vKj.b(this);
}
}
/* JADX INFO: Access modifiers changed from: protected */
@Override // o.VKj
public final void Bi_(ViewGroup viewGroup, C0611KpP c0611KpP, C0611KpP c0611KpP2, ArrayList<PaT> arrayList, ArrayList<PaT> arrayList2) {
long h = h();
int size = this.n.size();
for (int i = 0; i < size; i++) {
VKj vKj = this.n.get(i);
if (h > 0 && (this.k || i == 0)) {
long h2 = vKj.h();
if (h2 > 0) {
vKj.d(h2 + h);
} else {
vKj.d(h);
}
}
vKj.Bi_(viewGroup, c0611KpP, c0611KpP2, arrayList, arrayList2);
}
}
/* JADX INFO: Access modifiers changed from: protected */
@Override // o.VKj
public final void j() {
if (this.n.isEmpty()) {
g();
e();
return;
}
RVV rvv = new RVV(this);
Iterator<VKj> it = this.n.iterator();
while (it.hasNext()) {
it.next().a(rvv);
}
this.g = this.n.size();
if (!this.k) {
for (int i = 1; i < this.n.size(); i++) {
this.n.get(i - 1).a(new C17599yDT(this, this.n.get(i)) { // from class: o.Bml.4
final Bml a;
final VKj b;
{
this.a = this;
this.b = r2;
}
@Override // o.C17599yDT, o.VKj.Sts
public final void e(VKj vKj) {
this.b.j();
vKj.b(this);
}
});
}
VKj vKj = this.n.get(0);
if (vKj != null) {
vKj.j();
return;
}
return;
}
Iterator<VKj> it2 = this.n.iterator();
while (it2.hasNext()) {
it2.next().j();
}
}
@Override // o.VKj
public final void b(PaT paT) {
if (b(paT.d)) {
Iterator<VKj> it = this.n.iterator();
while (it.hasNext()) {
VKj next = it.next();
if (next.b(paT.d)) {
next.b(paT);
paT.e.add(next);
}
}
}
}
@Override // o.VKj
public final void d(PaT paT) {
if (b(paT.d)) {
Iterator<VKj> it = this.n.iterator();
while (it.hasNext()) {
VKj next = it.next();
if (next.b(paT.d)) {
next.d(paT);
paT.e.add(next);
}
}
}
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // o.VKj
public final void e(PaT paT) {
super.e(paT);
int size = this.n.size();
for (int i = 0; i < size; i++) {
this.n.get(i).e(paT);
}
}
@Override // o.VKj
public final void e(View view) {
super.e(view);
int size = this.n.size();
for (int i = 0; i < size; i++) {
this.n.get(i).e(view);
}
}
@Override // o.VKj
public final void c(View view) {
super.c(view);
int size = this.n.size();
for (int i = 0; i < size; i++) {
this.n.get(i).c(view);
}
}
/* JADX INFO: Access modifiers changed from: protected */
@Override // o.VKj
public final void c() {
super.c();
int size = this.n.size();
for (int i = 0; i < size; i++) {
this.n.get(i).c();
}
}
@Override // o.VKj
public final void c(DAa dAa) {
super.c(dAa);
this.f8110o |= 2;
int size = this.n.size();
for (int i = 0; i < size; i++) {
this.n.get(i).c(dAa);
}
}
@Override // o.VKj
public final void e(VKj.RVV rvv) {
super.e(rvv);
this.f8110o |= 8;
int size = this.n.size();
for (int i = 0; i < size; i++) {
this.n.get(i).e(rvv);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // o.VKj
public final String c(String str) {
String c = super.c(str);
for (int i = 0; i < this.n.size(); i++) {
StringBuilder sb = new StringBuilder();
sb.append(c);
sb.append("\n");
VKj vKj = this.n.get(i);
StringBuilder sb2 = new StringBuilder();
sb2.append(str);
sb2.append(" ");
sb.append(vKj.c(sb2.toString()));
c = sb.toString();
}
return c;
}
@Override // o.VKj
/* renamed from: b */
public final VKj clone() {
Bml bml = (Bml) super.clone();
bml.n = new ArrayList<>();
int size = this.n.size();
for (int i = 0; i < size; i++) {
VKj clone = this.n.get(i).clone();
bml.n.add(clone);
clone.b = bml;
}
return bml;
}
@Override // o.VKj
public final /* bridge */ /* synthetic */ VKj a(VKj.Sts sts) {
return (Bml) super.a(sts);
}
@Override // o.VKj
public final /* bridge */ /* synthetic */ VKj b(VKj.Sts sts) {
return (Bml) super.b(sts);
}
@Override // o.VKj
public final /* bridge */ /* synthetic */ VKj d(long j) {
return (Bml) super.d(j);
}
}