- 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
132 lines
3.0 KiB
Java
132 lines
3.0 KiB
Java
package com.applovin.impl;
|
|
|
|
import android.os.Handler;
|
|
import android.os.Looper;
|
|
import com.applovin.impl.a7;
|
|
import com.applovin.impl.be;
|
|
import com.applovin.impl.ce;
|
|
import java.util.ArrayList;
|
|
import java.util.HashSet;
|
|
import java.util.Iterator;
|
|
|
|
/* loaded from: classes.dex */
|
|
public abstract class c2 implements be {
|
|
private final ArrayList a = new ArrayList(1);
|
|
private final HashSet b = new HashSet(1);
|
|
private final ce.a c = new ce.a();
|
|
private final a7.a d = new a7.a();
|
|
private Looper e;
|
|
private fo f;
|
|
|
|
public abstract void a(xo xoVar);
|
|
|
|
public void e() {
|
|
}
|
|
|
|
public void f() {
|
|
}
|
|
|
|
public abstract void h();
|
|
|
|
public final ce.a b(be.a aVar) {
|
|
return this.c.a(0, aVar, 0L);
|
|
}
|
|
|
|
public final boolean g() {
|
|
return !this.b.isEmpty();
|
|
}
|
|
|
|
@Override // com.applovin.impl.be
|
|
public final void a(Handler handler, a7 a7Var) {
|
|
b1.a(handler);
|
|
b1.a(a7Var);
|
|
this.d.a(handler, a7Var);
|
|
}
|
|
|
|
@Override // com.applovin.impl.be
|
|
public final void c(be.b bVar) {
|
|
this.a.remove(bVar);
|
|
if (this.a.isEmpty()) {
|
|
this.e = null;
|
|
this.f = null;
|
|
this.b.clear();
|
|
h();
|
|
return;
|
|
}
|
|
a(bVar);
|
|
}
|
|
|
|
@Override // com.applovin.impl.be
|
|
public final void b(be.b bVar) {
|
|
b1.a(this.e);
|
|
boolean isEmpty = this.b.isEmpty();
|
|
this.b.add(bVar);
|
|
if (isEmpty) {
|
|
f();
|
|
}
|
|
}
|
|
|
|
@Override // com.applovin.impl.be
|
|
public final void a(Handler handler, ce ceVar) {
|
|
b1.a(handler);
|
|
b1.a(ceVar);
|
|
this.c.a(handler, ceVar);
|
|
}
|
|
|
|
public final a7.a a(int i, be.a aVar) {
|
|
return this.d.a(i, aVar);
|
|
}
|
|
|
|
public final a7.a a(be.a aVar) {
|
|
return this.d.a(0, aVar);
|
|
}
|
|
|
|
public final ce.a a(int i, be.a aVar, long j) {
|
|
return this.c.a(i, aVar, j);
|
|
}
|
|
|
|
@Override // com.applovin.impl.be
|
|
public final void a(be.b bVar) {
|
|
boolean z = !this.b.isEmpty();
|
|
this.b.remove(bVar);
|
|
if (z && this.b.isEmpty()) {
|
|
e();
|
|
}
|
|
}
|
|
|
|
@Override // com.applovin.impl.be
|
|
public final void a(be.b bVar, xo xoVar) {
|
|
Looper myLooper = Looper.myLooper();
|
|
Looper looper = this.e;
|
|
b1.a(looper == null || looper == myLooper);
|
|
fo foVar = this.f;
|
|
this.a.add(bVar);
|
|
if (this.e == null) {
|
|
this.e = myLooper;
|
|
this.b.add(bVar);
|
|
a(xoVar);
|
|
} else if (foVar != null) {
|
|
b(bVar);
|
|
bVar.a(this, foVar);
|
|
}
|
|
}
|
|
|
|
public final void a(fo foVar) {
|
|
this.f = foVar;
|
|
Iterator it = this.a.iterator();
|
|
while (it.hasNext()) {
|
|
((be.b) it.next()).a(this, foVar);
|
|
}
|
|
}
|
|
|
|
@Override // com.applovin.impl.be
|
|
public final void a(a7 a7Var) {
|
|
this.d.e(a7Var);
|
|
}
|
|
|
|
@Override // com.applovin.impl.be
|
|
public final void a(ce ceVar) {
|
|
this.c.a(ceVar);
|
|
}
|
|
}
|