Files
rr3-apk/decompiled-community/sources/com/applovin/impl/fo.java
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- Added realracing3-community.apk (71.57 MB)
- Removed 32-bit support (armeabi-v7a)
- Only includes arm64-v8a libraries
- Decompiled source code included
- Added README-community.md with analysis
2026-02-18 15:48:36 -08:00

631 lines
18 KiB
Java

package com.applovin.impl;
import android.net.Uri;
import android.os.Bundle;
import android.os.IBinder;
import android.util.Pair;
import com.applovin.impl.eb;
import com.applovin.impl.fo;
import com.applovin.impl.o2;
import com.applovin.impl.td;
import com.applovin.impl.u;
import com.mbridge.msdk.playercommon.exoplayer2.C;
/* loaded from: classes.dex */
public abstract class fo implements o2 {
public static final fo a = new a();
public static final o2.a b = new o2.a() { // from class: com.applovin.impl.fo$$ExternalSyntheticLambda0
@Override // com.applovin.impl.o2.a
public final o2 a(Bundle bundle) {
fo a2;
a2 = fo.a(bundle);
return a2;
}
};
public class a extends fo {
@Override // com.applovin.impl.fo
public int a() {
return 0;
}
@Override // com.applovin.impl.fo
public int a(Object obj) {
return -1;
}
@Override // com.applovin.impl.fo
public int b() {
return 0;
}
@Override // com.applovin.impl.fo
public Object b(int i) {
throw new IndexOutOfBoundsException();
}
@Override // com.applovin.impl.fo
public d a(int i, d dVar, long j) {
throw new IndexOutOfBoundsException();
}
@Override // com.applovin.impl.fo
public b a(int i, b bVar, boolean z) {
throw new IndexOutOfBoundsException();
}
}
public abstract int a();
public abstract int a(Object obj);
public abstract b a(int i, b bVar, boolean z);
public abstract d a(int i, d dVar, long j);
public abstract int b();
public abstract Object b(int i);
public static final class d implements o2 {
public static final Object s = new Object();
private static final Object t = new Object();
private static final td u = new td.c().b("com.applovin.exoplayer2.Timeline").a(Uri.EMPTY).a();
public static final o2.a v = new o2.a() { // from class: com.applovin.impl.fo$d$$ExternalSyntheticLambda0
@Override // com.applovin.impl.o2.a
public final o2 a(Bundle bundle) {
fo.d a;
a = fo.d.a(bundle);
return a;
}
};
public Object b;
public Object d;
public long f;
public long g;
public long h;
public boolean i;
public boolean j;
public boolean k;
public td.f l;
public boolean m;
public long n;
public long o;
public int p;
public int q;
public long r;
public Object a = s;
public td c = u;
public long c() {
return this.n;
}
public long b() {
return t2.b(this.n);
}
public long d() {
return t2.b(this.o);
}
public boolean e() {
b1.b(this.k == (this.l != null));
return this.l != null;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || !d.class.equals(obj.getClass())) {
return false;
}
d dVar = (d) obj;
return xp.a(this.a, dVar.a) && xp.a(this.c, dVar.c) && xp.a(this.d, dVar.d) && xp.a(this.l, dVar.l) && this.f == dVar.f && this.g == dVar.g && this.h == dVar.h && this.i == dVar.i && this.j == dVar.j && this.m == dVar.m && this.n == dVar.n && this.o == dVar.o && this.p == dVar.p && this.q == dVar.q && this.r == dVar.r;
}
public int hashCode() {
int hashCode = (((this.a.hashCode() + 217) * 31) + this.c.hashCode()) * 31;
Object obj = this.d;
int hashCode2 = (hashCode + (obj == null ? 0 : obj.hashCode())) * 31;
td.f fVar = this.l;
int hashCode3 = fVar != null ? fVar.hashCode() : 0;
long j = this.f;
int i = (((hashCode2 + hashCode3) * 31) + ((int) (j ^ (j >>> 32)))) * 31;
long j2 = this.g;
int i2 = (i + ((int) (j2 ^ (j2 >>> 32)))) * 31;
long j3 = this.h;
int i3 = (((((((i2 + ((int) (j3 ^ (j3 >>> 32)))) * 31) + (this.i ? 1 : 0)) * 31) + (this.j ? 1 : 0)) * 31) + (this.m ? 1 : 0)) * 31;
long j4 = this.n;
int i4 = (i3 + ((int) (j4 ^ (j4 >>> 32)))) * 31;
long j5 = this.o;
int i5 = (((((i4 + ((int) (j5 ^ (j5 >>> 32)))) * 31) + this.p) * 31) + this.q) * 31;
long j6 = this.r;
return i5 + ((int) (j6 ^ (j6 >>> 32)));
}
/* JADX INFO: Access modifiers changed from: private */
public static d a(Bundle bundle) {
Bundle bundle2 = bundle.getBundle(a(1));
td tdVar = bundle2 != null ? (td) td.h.a(bundle2) : null;
long j = bundle.getLong(a(2), C.TIME_UNSET);
long j2 = bundle.getLong(a(3), C.TIME_UNSET);
long j3 = bundle.getLong(a(4), C.TIME_UNSET);
boolean z = bundle.getBoolean(a(5), false);
boolean z2 = bundle.getBoolean(a(6), false);
Bundle bundle3 = bundle.getBundle(a(7));
td.f fVar = bundle3 != null ? (td.f) td.f.h.a(bundle3) : null;
boolean z3 = bundle.getBoolean(a(8), false);
long j4 = bundle.getLong(a(9), 0L);
long j5 = bundle.getLong(a(10), C.TIME_UNSET);
int i = bundle.getInt(a(11), 0);
int i2 = bundle.getInt(a(12), 0);
long j6 = bundle.getLong(a(13), 0L);
d dVar = new d();
dVar.a(t, tdVar, null, j, j2, j3, z, z2, fVar, j4, j5, i, i2, j6);
dVar.m = z3;
return dVar;
}
public long a() {
return xp.a(this.h);
}
private static String a(int i) {
return Integer.toString(i, 36);
}
public d a(Object obj, td tdVar, Object obj2, long j, long j2, long j3, boolean z, boolean z2, td.f fVar, long j4, long j5, int i, int i2, long j6) {
td.g gVar;
this.a = obj;
this.c = tdVar != null ? tdVar : u;
this.b = (tdVar == null || (gVar = tdVar.b) == null) ? null : gVar.g;
this.d = obj2;
this.f = j;
this.g = j2;
this.h = j3;
this.i = z;
this.j = z2;
this.k = fVar != null;
this.l = fVar;
this.n = j4;
this.o = j5;
this.p = i;
this.q = i2;
this.r = j6;
this.m = false;
return this;
}
}
public static final class b implements o2 {
public static final o2.a i = new o2.a() { // from class: com.applovin.impl.fo$b$$ExternalSyntheticLambda0
@Override // com.applovin.impl.o2.a
public final o2 a(Bundle bundle) {
fo.b a;
a = fo.b.a(bundle);
return a;
}
};
public Object a;
public Object b;
public int c;
public long d;
public long f;
public boolean g;
private u h = u.h;
public b a(Object obj, Object obj2, int i2, long j, long j2, u uVar, boolean z) {
this.a = obj;
this.b = obj2;
this.c = i2;
this.d = j;
this.f = j2;
this.h = uVar;
this.g = z;
return this;
}
public long c() {
return this.d;
}
public long e() {
return this.f;
}
public int f() {
return this.h.f;
}
public int d(int i2) {
return this.h.a(i2).a();
}
public int b(long j) {
return this.h.b(j, this.d);
}
public long c(int i2) {
return this.h.a(i2).g;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || !b.class.equals(obj.getClass())) {
return false;
}
b bVar = (b) obj;
return xp.a(this.a, bVar.a) && xp.a(this.b, bVar.b) && this.c == bVar.c && this.d == bVar.d && this.f == bVar.f && this.g == bVar.g && xp.a(this.h, bVar.h);
}
public int hashCode() {
Object obj = this.a;
int hashCode = ((obj == null ? 0 : obj.hashCode()) + 217) * 31;
Object obj2 = this.b;
int hashCode2 = (((hashCode + (obj2 != null ? obj2.hashCode() : 0)) * 31) + this.c) * 31;
long j = this.d;
int i2 = (hashCode2 + ((int) (j ^ (j >>> 32)))) * 31;
long j2 = this.f;
return ((((i2 + ((int) (j2 ^ (j2 >>> 32)))) * 31) + (this.g ? 1 : 0)) * 31) + this.h.hashCode();
}
private static String g(int i2) {
return Integer.toString(i2, 36);
}
public long d() {
return t2.b(this.f);
}
public boolean e(int i2) {
return !this.h.a(i2).b();
}
/* JADX INFO: Access modifiers changed from: private */
public static b a(Bundle bundle) {
u uVar;
int i2 = bundle.getInt(g(0), 0);
long j = bundle.getLong(g(1), C.TIME_UNSET);
long j2 = bundle.getLong(g(2), 0L);
boolean z = bundle.getBoolean(g(3));
Bundle bundle2 = bundle.getBundle(g(4));
if (bundle2 != null) {
uVar = (u) u.j.a(bundle2);
} else {
uVar = u.h;
}
u uVar2 = uVar;
b bVar = new b();
bVar.a(null, null, i2, j, j2, uVar2, z);
return bVar;
}
public long b(int i2) {
return this.h.a(i2).a;
}
public boolean f(int i2) {
return this.h.a(i2).h;
}
public int a(int i2) {
return this.h.a(i2).b;
}
public long b() {
return this.h.c;
}
public int b(int i2, int i3) {
return this.h.a(i2).a(i3);
}
public long a(int i2, int i3) {
u.a a = this.h.a(i2);
return a.b != -1 ? a.f[i3] : C.TIME_UNSET;
}
public int a() {
return this.h.b;
}
public int a(long j) {
return this.h.a(j, this.d);
}
public b a(Object obj, Object obj2, int i2, long j, long j2) {
return a(obj, obj2, i2, j, j2, u.h, false);
}
}
public final boolean c() {
return b() == 0;
}
public int b(boolean z) {
if (c()) {
return -1;
}
return b() - 1;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof fo)) {
return false;
}
fo foVar = (fo) obj;
if (foVar.b() != b() || foVar.a() != a()) {
return false;
}
d dVar = new d();
b bVar = new b();
d dVar2 = new d();
b bVar2 = new b();
for (int i = 0; i < b(); i++) {
if (!a(i, dVar).equals(foVar.a(i, dVar2))) {
return false;
}
}
for (int i2 = 0; i2 < a(); i2++) {
if (!a(i2, bVar, true).equals(foVar.a(i2, bVar2, true))) {
return false;
}
}
return true;
}
public int hashCode() {
d dVar = new d();
b bVar = new b();
int b2 = b() + 217;
for (int i = 0; i < b(); i++) {
b2 = (b2 * 31) + a(i, dVar).hashCode();
}
int a2 = (b2 * 31) + a();
for (int i2 = 0; i2 < a(); i2++) {
a2 = (a2 * 31) + a(i2, bVar, true).hashCode();
}
return a2;
}
/* JADX INFO: Access modifiers changed from: private */
public static fo a(Bundle bundle) {
eb a2 = a(d.v, n2.a(bundle, c(0)));
eb a3 = a(b.i, n2.a(bundle, c(1)));
int[] intArray = bundle.getIntArray(c(2));
if (intArray == null) {
intArray = a(a2.size());
}
return new c(a2, a3, intArray);
}
public static final class c extends fo {
private final eb c;
private final eb d;
private final int[] f;
private final int[] g;
public c(eb ebVar, eb ebVar2, int[] iArr) {
b1.a(ebVar.size() == iArr.length);
this.c = ebVar;
this.d = ebVar2;
this.f = iArr;
this.g = new int[iArr.length];
for (int i = 0; i < iArr.length; i++) {
this.g[iArr[i]] = i;
}
}
@Override // com.applovin.impl.fo
public int b(boolean z) {
if (c()) {
return -1;
}
if (z) {
return this.f[b() - 1];
}
return b() - 1;
}
@Override // com.applovin.impl.fo
public int a(boolean z) {
if (c()) {
return -1;
}
if (z) {
return this.f[0];
}
return 0;
}
@Override // com.applovin.impl.fo
public int a(int i, int i2, boolean z) {
if (i2 == 1) {
return i;
}
if (i != b(z)) {
return z ? this.f[this.g[i] + 1] : i + 1;
}
if (i2 == 2) {
return a(z);
}
return -1;
}
@Override // com.applovin.impl.fo
public int b(int i, int i2, boolean z) {
if (i2 == 1) {
return i;
}
if (i != a(z)) {
return z ? this.f[this.g[i] - 1] : i - 1;
}
if (i2 == 2) {
return b(z);
}
return -1;
}
@Override // com.applovin.impl.fo
public int b() {
return this.c.size();
}
@Override // com.applovin.impl.fo
public Object b(int i) {
throw new UnsupportedOperationException();
}
@Override // com.applovin.impl.fo
public b a(int i, b bVar, boolean z) {
b bVar2 = (b) this.d.get(i);
bVar.a(bVar2.a, bVar2.b, bVar2.c, bVar2.d, bVar2.f, bVar2.h, bVar2.g);
return bVar;
}
@Override // com.applovin.impl.fo
public int a() {
return this.d.size();
}
@Override // com.applovin.impl.fo
public d a(int i, d dVar, long j) {
d dVar2 = (d) this.c.get(i);
dVar.a(dVar2.a, dVar2.c, dVar2.d, dVar2.f, dVar2.g, dVar2.h, dVar2.i, dVar2.j, dVar2.l, dVar2.n, dVar2.o, dVar2.p, dVar2.q, dVar2.r);
dVar.m = dVar2.m;
return dVar;
}
@Override // com.applovin.impl.fo
public int a(Object obj) {
throw new UnsupportedOperationException();
}
}
public int b(int i, int i2, boolean z) {
if (i2 == 0) {
if (i == a(z)) {
return -1;
}
return i - 1;
}
if (i2 == 1) {
return i;
}
if (i2 == 2) {
return i == a(z) ? b(z) : i - 1;
}
throw new IllegalStateException();
}
private static String c(int i) {
return Integer.toString(i, 36);
}
private static eb a(o2.a aVar, IBinder iBinder) {
if (iBinder == null) {
return eb.h();
}
eb.a aVar2 = new eb.a();
eb a2 = m2.a(iBinder);
for (int i = 0; i < a2.size(); i++) {
aVar2.b(aVar.a((Bundle) a2.get(i)));
}
return aVar2.a();
}
public final boolean b(int i, b bVar, d dVar, int i2, boolean z) {
return a(i, bVar, dVar, i2, z) == -1;
}
private static int[] a(int i) {
int[] iArr = new int[i];
for (int i2 = 0; i2 < i; i2++) {
iArr[i2] = i2;
}
return iArr;
}
public int a(boolean z) {
return c() ? -1 : 0;
}
public final int a(int i, b bVar, d dVar, int i2, boolean z) {
int i3 = a(i, bVar).c;
if (a(i3, dVar).q != i) {
return i + 1;
}
int a2 = a(i3, i2, z);
if (a2 == -1) {
return -1;
}
return a(a2, dVar).p;
}
public int a(int i, int i2, boolean z) {
if (i2 == 0) {
if (i == b(z)) {
return -1;
}
return i + 1;
}
if (i2 == 1) {
return i;
}
if (i2 == 2) {
return i == b(z) ? a(z) : i + 1;
}
throw new IllegalStateException();
}
public final b a(int i, b bVar) {
return a(i, bVar, false);
}
public b a(Object obj, b bVar) {
return a(a(obj), bVar, true);
}
public final Pair a(d dVar, b bVar, int i, long j) {
return (Pair) b1.a(a(dVar, bVar, i, j, 0L));
}
public final Pair a(d dVar, b bVar, int i, long j, long j2) {
b1.a(i, 0, b());
a(i, dVar, j2);
if (j == C.TIME_UNSET) {
j = dVar.c();
if (j == C.TIME_UNSET) {
return null;
}
}
int i2 = dVar.p;
a(i2, bVar);
while (i2 < dVar.q && bVar.f != j) {
int i3 = i2 + 1;
if (a(i3, bVar).f > j) {
break;
}
i2 = i3;
}
a(i2, bVar, true);
long j3 = j - bVar.f;
long j4 = bVar.d;
if (j4 != C.TIME_UNSET) {
j3 = Math.min(j3, j4 - 1);
}
return Pair.create(b1.a(bVar.b), Long.valueOf(Math.max(0L, j3)));
}
public final d a(int i, d dVar) {
return a(i, dVar, 0L);
}
}