- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
208 lines
5.5 KiB
Java
208 lines
5.5 KiB
Java
package com.applovin.impl;
|
|
|
|
import android.os.Handler;
|
|
import com.applovin.impl.a7;
|
|
import com.applovin.impl.be;
|
|
import com.applovin.impl.ce;
|
|
import java.io.IOException;
|
|
import java.util.HashMap;
|
|
|
|
/* loaded from: classes.dex */
|
|
public abstract class b4 extends c2 {
|
|
private final HashMap g = new HashMap();
|
|
private Handler h;
|
|
private xo i;
|
|
|
|
public int a(Object obj, int i) {
|
|
return i;
|
|
}
|
|
|
|
public long a(Object obj, long j) {
|
|
return j;
|
|
}
|
|
|
|
public abstract be.a a(Object obj, be.a aVar);
|
|
|
|
/* renamed from: b, reason: merged with bridge method [inline-methods] */
|
|
public abstract void a(Object obj, be beVar, fo foVar);
|
|
|
|
@Override // com.applovin.impl.c2
|
|
public void f() {
|
|
for (b bVar : this.g.values()) {
|
|
bVar.a.b(bVar.b);
|
|
}
|
|
}
|
|
|
|
@Override // com.applovin.impl.c2
|
|
public void e() {
|
|
for (b bVar : this.g.values()) {
|
|
bVar.a.a(bVar.b);
|
|
}
|
|
}
|
|
|
|
@Override // com.applovin.impl.c2
|
|
public void h() {
|
|
for (b bVar : this.g.values()) {
|
|
bVar.a.c(bVar.b);
|
|
bVar.a.a((ce) bVar.c);
|
|
bVar.a.a((a7) bVar.c);
|
|
}
|
|
this.g.clear();
|
|
}
|
|
|
|
public static final class b {
|
|
public final be a;
|
|
public final be.b b;
|
|
public final a c;
|
|
|
|
public b(be beVar, be.b bVar, a aVar) {
|
|
this.a = beVar;
|
|
this.b = bVar;
|
|
this.c = aVar;
|
|
}
|
|
}
|
|
|
|
public final class a implements ce, a7 {
|
|
private final Object a;
|
|
private ce.a b;
|
|
private a7.a c;
|
|
|
|
public a(Object obj) {
|
|
this.b = b4.this.b((be.a) null);
|
|
this.c = b4.this.a((be.a) null);
|
|
this.a = obj;
|
|
}
|
|
|
|
@Override // com.applovin.impl.a7
|
|
public void d(int i, be.a aVar) {
|
|
if (f(i, aVar)) {
|
|
this.c.a();
|
|
}
|
|
}
|
|
|
|
@Override // com.applovin.impl.a7
|
|
public void c(int i, be.a aVar) {
|
|
if (f(i, aVar)) {
|
|
this.c.c();
|
|
}
|
|
}
|
|
|
|
@Override // com.applovin.impl.a7
|
|
public void b(int i, be.a aVar) {
|
|
if (f(i, aVar)) {
|
|
this.c.d();
|
|
}
|
|
}
|
|
|
|
private boolean f(int i, be.a aVar) {
|
|
be.a aVar2;
|
|
if (aVar != null) {
|
|
aVar2 = b4.this.a(this.a, aVar);
|
|
if (aVar2 == null) {
|
|
return false;
|
|
}
|
|
} else {
|
|
aVar2 = null;
|
|
}
|
|
int a = b4.this.a(this.a, i);
|
|
ce.a aVar3 = this.b;
|
|
if (aVar3.a != a || !xp.a(aVar3.b, aVar2)) {
|
|
this.b = b4.this.a(a, aVar2, 0L);
|
|
}
|
|
a7.a aVar4 = this.c;
|
|
if (aVar4.a == a && xp.a(aVar4.b, aVar2)) {
|
|
return true;
|
|
}
|
|
this.c = b4.this.a(a, aVar2);
|
|
return true;
|
|
}
|
|
|
|
private ud a(ud udVar) {
|
|
long a = b4.this.a(this.a, udVar.f);
|
|
long a2 = b4.this.a(this.a, udVar.g);
|
|
return (a == udVar.f && a2 == udVar.g) ? udVar : new ud(udVar.a, udVar.b, udVar.c, udVar.d, udVar.e, a, a2);
|
|
}
|
|
|
|
@Override // com.applovin.impl.ce
|
|
public void c(int i, be.a aVar, nc ncVar, ud udVar) {
|
|
if (f(i, aVar)) {
|
|
this.b.b(ncVar, a(udVar));
|
|
}
|
|
}
|
|
|
|
@Override // com.applovin.impl.ce
|
|
public void b(int i, be.a aVar, nc ncVar, ud udVar) {
|
|
if (f(i, aVar)) {
|
|
this.b.c(ncVar, a(udVar));
|
|
}
|
|
}
|
|
|
|
@Override // com.applovin.impl.ce
|
|
public void a(int i, be.a aVar, ud udVar) {
|
|
if (f(i, aVar)) {
|
|
this.b.a(a(udVar));
|
|
}
|
|
}
|
|
|
|
@Override // com.applovin.impl.a7
|
|
public void a(int i, be.a aVar) {
|
|
if (f(i, aVar)) {
|
|
this.c.b();
|
|
}
|
|
}
|
|
|
|
@Override // com.applovin.impl.a7
|
|
public void a(int i, be.a aVar, int i2) {
|
|
if (f(i, aVar)) {
|
|
this.c.a(i2);
|
|
}
|
|
}
|
|
|
|
@Override // com.applovin.impl.a7
|
|
public void a(int i, be.a aVar, Exception exc) {
|
|
if (f(i, aVar)) {
|
|
this.c.a(exc);
|
|
}
|
|
}
|
|
|
|
@Override // com.applovin.impl.ce
|
|
public void a(int i, be.a aVar, nc ncVar, ud udVar) {
|
|
if (f(i, aVar)) {
|
|
this.b.a(ncVar, a(udVar));
|
|
}
|
|
}
|
|
|
|
@Override // com.applovin.impl.ce
|
|
public void a(int i, be.a aVar, nc ncVar, ud udVar, IOException iOException, boolean z) {
|
|
if (f(i, aVar)) {
|
|
this.b.a(ncVar, a(udVar), iOException, z);
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void a(final Object obj, be beVar) {
|
|
b1.a(!this.g.containsKey(obj));
|
|
be.b bVar = new be.b() { // from class: com.applovin.impl.b4$$ExternalSyntheticLambda0
|
|
@Override // com.applovin.impl.be.b
|
|
public final void a(be beVar2, fo foVar) {
|
|
b4.this.a(obj, beVar2, foVar);
|
|
}
|
|
};
|
|
a aVar = new a(obj);
|
|
this.g.put(obj, new b(beVar, bVar, aVar));
|
|
beVar.a((Handler) b1.a(this.h), (ce) aVar);
|
|
beVar.a((Handler) b1.a(this.h), (a7) aVar);
|
|
beVar.a(bVar, this.i);
|
|
if (g()) {
|
|
return;
|
|
}
|
|
beVar.a(bVar);
|
|
}
|
|
|
|
@Override // com.applovin.impl.c2
|
|
public void a(xo xoVar) {
|
|
this.i = xoVar;
|
|
this.h = xp.a();
|
|
}
|
|
}
|