- 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
126 lines
2.6 KiB
Java
126 lines
2.6 KiB
Java
package com.applovin.impl;
|
|
|
|
/* loaded from: classes.dex */
|
|
final class h6 implements gd {
|
|
private final bl a;
|
|
private final a b;
|
|
private qi c;
|
|
private gd d;
|
|
private boolean f = true;
|
|
private boolean g;
|
|
|
|
public interface a {
|
|
void a(ph phVar);
|
|
}
|
|
|
|
public void a(qi qiVar) {
|
|
if (qiVar == this.c) {
|
|
this.d = null;
|
|
this.c = null;
|
|
this.f = true;
|
|
}
|
|
}
|
|
|
|
public h6(a aVar, l3 l3Var) {
|
|
this.b = aVar;
|
|
this.a = new bl(l3Var);
|
|
}
|
|
|
|
public void c() {
|
|
this.g = false;
|
|
this.a.c();
|
|
}
|
|
|
|
public void b(qi qiVar) {
|
|
gd gdVar;
|
|
gd l = qiVar.l();
|
|
if (l == null || l == (gdVar = this.d)) {
|
|
return;
|
|
}
|
|
if (gdVar == null) {
|
|
this.d = l;
|
|
this.c = qiVar;
|
|
l.a(this.a.a());
|
|
return;
|
|
}
|
|
throw a8.a(new IllegalStateException("Multiple renderer media clocks enabled."));
|
|
}
|
|
|
|
@Override // com.applovin.impl.gd
|
|
public long p() {
|
|
if (this.f) {
|
|
return this.a.p();
|
|
}
|
|
return ((gd) b1.a(this.d)).p();
|
|
}
|
|
|
|
@Override // com.applovin.impl.gd
|
|
public ph a() {
|
|
gd gdVar = this.d;
|
|
if (gdVar != null) {
|
|
return gdVar.a();
|
|
}
|
|
return this.a.a();
|
|
}
|
|
|
|
public void b() {
|
|
this.g = true;
|
|
this.a.b();
|
|
}
|
|
|
|
private void c(boolean z) {
|
|
if (a(z)) {
|
|
this.f = true;
|
|
if (this.g) {
|
|
this.a.b();
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
gd gdVar = (gd) b1.a(this.d);
|
|
long p = gdVar.p();
|
|
if (this.f) {
|
|
if (p < this.a.p()) {
|
|
this.a.c();
|
|
return;
|
|
} else {
|
|
this.f = false;
|
|
if (this.g) {
|
|
this.a.b();
|
|
}
|
|
}
|
|
}
|
|
this.a.a(p);
|
|
ph a2 = gdVar.a();
|
|
if (a2.equals(this.a.a())) {
|
|
return;
|
|
}
|
|
this.a.a(a2);
|
|
this.b.a(a2);
|
|
}
|
|
|
|
public long b(boolean z) {
|
|
c(z);
|
|
return p();
|
|
}
|
|
|
|
public void a(long j) {
|
|
this.a.a(j);
|
|
}
|
|
|
|
@Override // com.applovin.impl.gd
|
|
public void a(ph phVar) {
|
|
gd gdVar = this.d;
|
|
if (gdVar != null) {
|
|
gdVar.a(phVar);
|
|
phVar = this.d.a();
|
|
}
|
|
this.a.a(phVar);
|
|
}
|
|
|
|
private boolean a(boolean z) {
|
|
qi qiVar = this.c;
|
|
return qiVar == null || qiVar.c() || (!this.c.d() && (z || this.c.j()));
|
|
}
|
|
}
|