- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
94 lines
2.3 KiB
Java
94 lines
2.3 KiB
Java
package com.applovin.impl;
|
|
|
|
import com.applovin.impl.dp;
|
|
import com.applovin.impl.f9;
|
|
import com.mbridge.msdk.playercommon.exoplayer2.C;
|
|
import com.mbridge.msdk.playercommon.exoplayer2.util.MimeTypes;
|
|
import java.util.Collections;
|
|
import java.util.List;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class m7 implements q7 {
|
|
private final List a;
|
|
private final qo[] b;
|
|
private boolean c;
|
|
private int d;
|
|
private int e;
|
|
private long f = C.TIME_UNSET;
|
|
|
|
@Override // com.applovin.impl.q7
|
|
public void a() {
|
|
this.c = false;
|
|
this.f = C.TIME_UNSET;
|
|
}
|
|
|
|
@Override // com.applovin.impl.q7
|
|
public void a(long j, int i) {
|
|
if ((i & 4) == 0) {
|
|
return;
|
|
}
|
|
this.c = true;
|
|
if (j != C.TIME_UNSET) {
|
|
this.f = j;
|
|
}
|
|
this.e = 0;
|
|
this.d = 2;
|
|
}
|
|
|
|
public m7(List list) {
|
|
this.a = list;
|
|
this.b = new qo[list.size()];
|
|
}
|
|
|
|
@Override // com.applovin.impl.q7
|
|
public void b() {
|
|
if (this.c) {
|
|
if (this.f != C.TIME_UNSET) {
|
|
for (qo qoVar : this.b) {
|
|
qoVar.a(this.f, 1, this.e, 0, null);
|
|
}
|
|
}
|
|
this.c = false;
|
|
}
|
|
}
|
|
|
|
private boolean a(bh bhVar, int i) {
|
|
if (bhVar.a() == 0) {
|
|
return false;
|
|
}
|
|
if (bhVar.w() != i) {
|
|
this.c = false;
|
|
}
|
|
this.d--;
|
|
return this.c;
|
|
}
|
|
|
|
@Override // com.applovin.impl.q7
|
|
public void a(bh bhVar) {
|
|
if (this.c) {
|
|
if (this.d != 2 || a(bhVar, 32)) {
|
|
if (this.d != 1 || a(bhVar, 0)) {
|
|
int d = bhVar.d();
|
|
int a = bhVar.a();
|
|
for (qo qoVar : this.b) {
|
|
bhVar.f(d);
|
|
qoVar.a(bhVar, a);
|
|
}
|
|
this.e += a;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // com.applovin.impl.q7
|
|
public void a(m8 m8Var, dp.d dVar) {
|
|
for (int i = 0; i < this.b.length; i++) {
|
|
dp.a aVar = (dp.a) this.a.get(i);
|
|
dVar.a();
|
|
qo a = m8Var.a(dVar.c(), 3);
|
|
a.a(new f9.b().c(dVar.b()).f(MimeTypes.APPLICATION_DVBSUBS).a(Collections.singletonList(aVar.c)).e(aVar.a).a());
|
|
this.b[i] = a;
|
|
}
|
|
}
|
|
}
|