- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
153 lines
3.2 KiB
Java
153 lines
3.2 KiB
Java
package com.applovin.impl;
|
|
|
|
import com.applovin.impl.fo;
|
|
import com.applovin.impl.qh;
|
|
import com.mbridge.msdk.playercommon.exoplayer2.C;
|
|
|
|
/* loaded from: classes.dex */
|
|
public abstract class d2 implements qh {
|
|
protected final fo.d a = new fo.d();
|
|
|
|
@Override // com.applovin.impl.qh
|
|
public final boolean b(int i) {
|
|
return i().a(i);
|
|
}
|
|
|
|
@Override // com.applovin.impl.qh
|
|
public final boolean isPlaying() {
|
|
return o() == 3 && l() && j() == 0;
|
|
}
|
|
|
|
public final void O() {
|
|
c(t());
|
|
}
|
|
|
|
public final void c(int i) {
|
|
a(i, C.TIME_UNSET);
|
|
}
|
|
|
|
@Override // com.applovin.impl.qh
|
|
public final void a(long j) {
|
|
a(t(), j);
|
|
}
|
|
|
|
public qh.b a(qh.b bVar) {
|
|
return new qh.b.a().a(bVar).a(3, !d()).a(4, y() && !d()).a(5, L() && !d()).a(6, !n().c() && (L() || !N() || y()) && !d()).a(7, K() && !d()).a(8, !n().c() && (K() || (N() && M())) && !d()).a(9, !d()).a(10, y() && !d()).a(11, y() && !d()).a();
|
|
}
|
|
|
|
@Override // com.applovin.impl.qh
|
|
public final void B() {
|
|
b(-F());
|
|
}
|
|
|
|
@Override // com.applovin.impl.qh
|
|
public final void w() {
|
|
b(e());
|
|
}
|
|
|
|
public final boolean L() {
|
|
return I() != -1;
|
|
}
|
|
|
|
public final void Q() {
|
|
int I = I();
|
|
if (I != -1) {
|
|
c(I);
|
|
}
|
|
}
|
|
|
|
@Override // com.applovin.impl.qh
|
|
public final void D() {
|
|
if (n().c() || d()) {
|
|
return;
|
|
}
|
|
boolean L = L();
|
|
if (N() && !y()) {
|
|
if (L) {
|
|
Q();
|
|
}
|
|
} else if (L && getCurrentPosition() <= q()) {
|
|
Q();
|
|
} else {
|
|
a(0L);
|
|
}
|
|
}
|
|
|
|
public final boolean K() {
|
|
return H() != -1;
|
|
}
|
|
|
|
public final void P() {
|
|
int H = H();
|
|
if (H != -1) {
|
|
c(H);
|
|
}
|
|
}
|
|
|
|
@Override // com.applovin.impl.qh
|
|
public final void u() {
|
|
if (n().c() || d()) {
|
|
return;
|
|
}
|
|
if (K()) {
|
|
P();
|
|
} else if (N() && M()) {
|
|
O();
|
|
}
|
|
}
|
|
|
|
public final int H() {
|
|
fo n = n();
|
|
if (n.c()) {
|
|
return -1;
|
|
}
|
|
return n.a(t(), J(), r());
|
|
}
|
|
|
|
public final int I() {
|
|
fo n = n();
|
|
if (n.c()) {
|
|
return -1;
|
|
}
|
|
return n.b(t(), J(), r());
|
|
}
|
|
|
|
public final boolean M() {
|
|
fo n = n();
|
|
return !n.c() && n.a(t(), this.a).j;
|
|
}
|
|
|
|
public final boolean N() {
|
|
fo n = n();
|
|
return !n.c() && n.a(t(), this.a).e();
|
|
}
|
|
|
|
@Override // com.applovin.impl.qh
|
|
public final boolean y() {
|
|
fo n = n();
|
|
return !n.c() && n.a(t(), this.a).i;
|
|
}
|
|
|
|
public final long G() {
|
|
fo n = n();
|
|
return n.c() ? C.TIME_UNSET : n.a(t(), this.a).d();
|
|
}
|
|
|
|
private int J() {
|
|
int m = m();
|
|
if (m == 1) {
|
|
return 0;
|
|
}
|
|
return m;
|
|
}
|
|
|
|
private void b(long j) {
|
|
long currentPosition = getCurrentPosition() + j;
|
|
long duration = getDuration();
|
|
if (duration != C.TIME_UNSET) {
|
|
currentPosition = Math.min(currentPosition, duration);
|
|
}
|
|
a(Math.max(currentPosition, 0L));
|
|
}
|
|
}
|