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

224 lines
6.1 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import org.bouncycastle.asn1.cmp.PKIFailureInfo;
/* renamed from: o.Yni, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C1230Yni {
public int c;
public boolean d;
public C1230Yni f;
public EsB h;
public final C17026tNn i;
public final HBt j;
public HashSet<C1230Yni> e = null;
public int b = 0;
int a = PKIFailureInfo.systemUnavail;
/* renamed from: o.Yni$HBt */
/* loaded from: classes.dex */
public enum HBt {
NONE,
LEFT,
TOP,
RIGHT,
BOTTOM,
BASELINE,
CENTER,
CENTER_X,
CENTER_Y
}
public final void c(int i, ArrayList<fGR> arrayList, fGR fgr) {
HashSet<C1230Yni> hashSet = this.e;
if (hashSet != null) {
Iterator<C1230Yni> it = hashSet.iterator();
while (it.hasNext()) {
tAF.d(it.next().i, i, arrayList, fgr);
}
}
}
public final boolean d() {
HashSet<C1230Yni> hashSet = this.e;
if (hashSet == null) {
return false;
}
Iterator<C1230Yni> it = hashSet.iterator();
while (it.hasNext()) {
if (it.next().b().f != null) {
return true;
}
}
return false;
}
public C1230Yni(C17026tNn c17026tNn, HBt hBt) {
this.i = c17026tNn;
this.j = hBt;
}
public final void a() {
HashSet<C1230Yni> hashSet;
C1230Yni c1230Yni = this.f;
if (c1230Yni != null && (hashSet = c1230Yni.e) != null) {
hashSet.remove(this);
if (this.f.e.size() == 0) {
this.f.e = null;
}
}
this.e = null;
this.f = null;
this.b = 0;
this.a = PKIFailureInfo.systemUnavail;
this.d = false;
this.c = 0;
}
public final boolean b(C1230Yni c1230Yni, int i, int i2, boolean z) {
if (c1230Yni == null) {
a();
return true;
}
if (!z && !e(c1230Yni)) {
return false;
}
this.f = c1230Yni;
if (c1230Yni.e == null) {
c1230Yni.e = new HashSet<>();
}
HashSet<C1230Yni> hashSet = this.f.e;
if (hashSet != null) {
hashSet.add(this);
}
this.b = i;
this.a = i2;
return true;
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.Yni$1, reason: invalid class name */
/* loaded from: classes.dex */
public static /* synthetic */ class AnonymousClass1 {
static final int[] d;
static {
int[] iArr = new int[HBt.values().length];
d = iArr;
try {
iArr[HBt.CENTER.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
d[HBt.LEFT.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
d[HBt.RIGHT.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
try {
d[HBt.TOP.ordinal()] = 4;
} catch (NoSuchFieldError unused4) {
}
try {
d[HBt.BOTTOM.ordinal()] = 5;
} catch (NoSuchFieldError unused5) {
}
try {
d[HBt.BASELINE.ordinal()] = 6;
} catch (NoSuchFieldError unused6) {
}
try {
d[HBt.CENTER_X.ordinal()] = 7;
} catch (NoSuchFieldError unused7) {
}
try {
d[HBt.CENTER_Y.ordinal()] = 8;
} catch (NoSuchFieldError unused8) {
}
try {
d[HBt.NONE.ordinal()] = 9;
} catch (NoSuchFieldError unused9) {
}
}
}
public final String toString() {
StringBuilder sb = new StringBuilder();
sb.append(this.i.r);
sb.append(":");
sb.append(this.j.toString());
return sb.toString();
}
public final C1230Yni b() {
switch (AnonymousClass1.d[this.j.ordinal()]) {
case 1:
case 6:
case 7:
case 8:
case 9:
return null;
case 2:
return this.i.X;
case 3:
return this.i.D;
case 4:
return this.i.n;
case 5:
return this.i.V;
default:
throw new AssertionError(this.j.name());
}
}
public final int e() {
C1230Yni c1230Yni;
if (this.i.Z == 8) {
return 0;
}
return (this.a == Integer.MIN_VALUE || (c1230Yni = this.f) == null || c1230Yni.i.Z != 8) ? this.b : this.a;
}
public final boolean e(C1230Yni c1230Yni) {
if (c1230Yni == null) {
return false;
}
HBt hBt = c1230Yni.j;
HBt hBt2 = this.j;
if (hBt == hBt2) {
return hBt2 != HBt.BASELINE || (c1230Yni.i.d && this.i.d);
}
switch (AnonymousClass1.d[this.j.ordinal()]) {
case 1:
return (hBt == HBt.BASELINE || hBt == HBt.CENTER_X || hBt == HBt.CENTER_Y) ? false : true;
case 2:
case 3:
boolean z = hBt == HBt.LEFT || hBt == HBt.RIGHT;
if (c1230Yni.i instanceof WAE) {
return z || hBt == HBt.CENTER_X;
}
return z;
case 4:
case 5:
boolean z2 = hBt == HBt.TOP || hBt == HBt.BOTTOM;
if (c1230Yni.i instanceof WAE) {
return z2 || hBt == HBt.CENTER_Y;
}
return z2;
case 6:
return (hBt == HBt.LEFT || hBt == HBt.RIGHT) ? false : true;
case 7:
case 8:
case 9:
return false;
default:
throw new AssertionError(this.j.name());
}
}
}