- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
158 lines
3.5 KiB
Java
158 lines
3.5 KiB
Java
package com.applovin.impl;
|
|
|
|
import com.applovin.impl.be;
|
|
import com.applovin.impl.wd;
|
|
import com.mbridge.msdk.playercommon.exoplayer2.C;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class wc implements wd, wd.a {
|
|
public final be.a a;
|
|
private final long b;
|
|
private final n0 c;
|
|
private be d;
|
|
private wd f;
|
|
private wd.a g;
|
|
private long h = C.TIME_UNSET;
|
|
|
|
private long d(long j) {
|
|
long j2 = this.h;
|
|
return j2 != C.TIME_UNSET ? j2 : j;
|
|
}
|
|
|
|
public long c() {
|
|
return this.h;
|
|
}
|
|
|
|
public long d() {
|
|
return this.b;
|
|
}
|
|
|
|
public void e(long j) {
|
|
this.h = j;
|
|
}
|
|
|
|
public wc(be.a aVar, n0 n0Var, long j) {
|
|
this.a = aVar;
|
|
this.c = n0Var;
|
|
this.b = j;
|
|
}
|
|
|
|
public void a(be.a aVar) {
|
|
long d = d(this.b);
|
|
wd a = ((be) b1.a(this.d)).a(aVar, this.c, d);
|
|
this.f = a;
|
|
if (this.g != null) {
|
|
a.a(this, d);
|
|
}
|
|
}
|
|
|
|
public void i() {
|
|
if (this.f != null) {
|
|
((be) b1.a(this.d)).a(this.f);
|
|
}
|
|
}
|
|
|
|
@Override // com.applovin.impl.wd
|
|
public void f() {
|
|
wd wdVar = this.f;
|
|
if (wdVar != null) {
|
|
wdVar.f();
|
|
return;
|
|
}
|
|
be beVar = this.d;
|
|
if (beVar != null) {
|
|
beVar.b();
|
|
}
|
|
}
|
|
|
|
@Override // com.applovin.impl.wd
|
|
public long h() {
|
|
return ((wd) xp.a(this.f)).h();
|
|
}
|
|
|
|
@Override // com.applovin.impl.wd
|
|
public long e() {
|
|
return ((wd) xp.a(this.f)).e();
|
|
}
|
|
|
|
@Override // com.applovin.impl.wd
|
|
public long g() {
|
|
return ((wd) xp.a(this.f)).g();
|
|
}
|
|
|
|
@Override // com.applovin.impl.wd
|
|
public boolean b(long j) {
|
|
wd wdVar = this.f;
|
|
return wdVar != null && wdVar.b(j);
|
|
}
|
|
|
|
@Override // com.applovin.impl.wd
|
|
public void a(long j, boolean z) {
|
|
((wd) xp.a(this.f)).a(j, z);
|
|
}
|
|
|
|
@Override // com.applovin.impl.wd
|
|
public void c(long j) {
|
|
((wd) xp.a(this.f)).c(j);
|
|
}
|
|
|
|
@Override // com.applovin.impl.wd
|
|
public po b() {
|
|
return ((wd) xp.a(this.f)).b();
|
|
}
|
|
|
|
@Override // com.applovin.impl.wd
|
|
public long a(long j, jj jjVar) {
|
|
return ((wd) xp.a(this.f)).a(j, jjVar);
|
|
}
|
|
|
|
@Override // com.applovin.impl.pj.a
|
|
/* renamed from: b, reason: merged with bridge method [inline-methods] */
|
|
public void a(wd wdVar) {
|
|
((wd.a) xp.a(this.g)).a((pj) this);
|
|
}
|
|
|
|
@Override // com.applovin.impl.wd
|
|
public boolean a() {
|
|
wd wdVar = this.f;
|
|
return wdVar != null && wdVar.a();
|
|
}
|
|
|
|
@Override // com.applovin.impl.wd.a
|
|
public void a(wd wdVar) {
|
|
((wd.a) xp.a(this.g)).a((wd) this);
|
|
}
|
|
|
|
@Override // com.applovin.impl.wd
|
|
public void a(wd.a aVar, long j) {
|
|
this.g = aVar;
|
|
wd wdVar = this.f;
|
|
if (wdVar != null) {
|
|
wdVar.a(this, d(this.b));
|
|
}
|
|
}
|
|
|
|
@Override // com.applovin.impl.wd
|
|
public long a(long j) {
|
|
return ((wd) xp.a(this.f)).a(j);
|
|
}
|
|
|
|
@Override // com.applovin.impl.wd
|
|
public long a(h8[] h8VarArr, boolean[] zArr, cj[] cjVarArr, boolean[] zArr2, long j) {
|
|
long j2;
|
|
long j3 = this.h;
|
|
if (j3 == C.TIME_UNSET || j != this.b) {
|
|
j2 = j;
|
|
} else {
|
|
this.h = C.TIME_UNSET;
|
|
j2 = j3;
|
|
}
|
|
return ((wd) xp.a(this.f)).a(h8VarArr, zArr, cjVarArr, zArr2, j2);
|
|
}
|
|
|
|
public void a(be beVar) {
|
|
b1.b(this.d == null);
|
|
this.d = beVar;
|
|
}
|
|
}
|