Add decompiled APK source code (JADX)

- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-02-18 14:52:23 -08:00
parent cc210a65ea
commit f9d20bb3fc
26991 changed files with 2541449 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
package com.fyber.inneractive.sdk.player.exoplayer2.source;
import com.fyber.inneractive.sdk.player.controller.w;
import com.fyber.inneractive.sdk.player.exoplayer2.source.f;
import com.fyber.inneractive.sdk.util.IAlog;
/* loaded from: classes2.dex */
public final class a implements Runnable {
public final /* synthetic */ Object a;
public final /* synthetic */ long b;
public final /* synthetic */ long c;
public final /* synthetic */ f.a d;
public a(f.a aVar, com.fyber.inneractive.sdk.player.exoplayer2.upstream.i iVar, int i, int i2, com.fyber.inneractive.sdk.player.exoplayer2.j jVar, int i3, Object obj, long j, long j2, long j3) {
this.d = aVar;
this.a = obj;
this.b = j;
this.c = j2;
}
@Override // java.lang.Runnable
public final void run() {
f fVar = this.d.b;
com.fyber.inneractive.sdk.player.exoplayer2.b.a(this.b);
f.a aVar = this.d;
long j = this.c;
aVar.getClass();
com.fyber.inneractive.sdk.player.exoplayer2.b.a(j);
IAlog.a("%s AdaptiveMediaSourceEventListener onLoadStarted called.", ((w) fVar).f());
}
}

View File

@@ -0,0 +1,31 @@
package com.fyber.inneractive.sdk.player.exoplayer2.source;
import com.fyber.inneractive.sdk.player.controller.w;
import com.fyber.inneractive.sdk.player.exoplayer2.source.f;
import com.fyber.inneractive.sdk.util.IAlog;
/* loaded from: classes2.dex */
public final class b implements Runnable {
public final /* synthetic */ Object a;
public final /* synthetic */ long b;
public final /* synthetic */ long c;
public final /* synthetic */ f.a d;
public b(f.a aVar, com.fyber.inneractive.sdk.player.exoplayer2.upstream.i iVar, int i, int i2, com.fyber.inneractive.sdk.player.exoplayer2.j jVar, int i3, Object obj, long j, long j2, long j3, long j4, long j5) {
this.d = aVar;
this.a = obj;
this.b = j;
this.c = j2;
}
@Override // java.lang.Runnable
public final void run() {
f fVar = this.d.b;
com.fyber.inneractive.sdk.player.exoplayer2.b.a(this.b);
f.a aVar = this.d;
long j = this.c;
aVar.getClass();
com.fyber.inneractive.sdk.player.exoplayer2.b.a(j);
IAlog.a("%s AdaptiveMediaSourceEventListener onLoadCompleted called.", ((w) fVar).f());
}
}

View File

@@ -0,0 +1,31 @@
package com.fyber.inneractive.sdk.player.exoplayer2.source;
import com.fyber.inneractive.sdk.player.controller.w;
import com.fyber.inneractive.sdk.player.exoplayer2.source.f;
import com.fyber.inneractive.sdk.util.IAlog;
/* loaded from: classes2.dex */
public final class c implements Runnable {
public final /* synthetic */ Object a;
public final /* synthetic */ long b;
public final /* synthetic */ long c;
public final /* synthetic */ f.a d;
public c(f.a aVar, com.fyber.inneractive.sdk.player.exoplayer2.upstream.i iVar, int i, int i2, com.fyber.inneractive.sdk.player.exoplayer2.j jVar, int i3, Object obj, long j, long j2, long j3, long j4, long j5) {
this.d = aVar;
this.a = obj;
this.b = j;
this.c = j2;
}
@Override // java.lang.Runnable
public final void run() {
f fVar = this.d.b;
com.fyber.inneractive.sdk.player.exoplayer2.b.a(this.b);
f.a aVar = this.d;
long j = this.c;
aVar.getClass();
com.fyber.inneractive.sdk.player.exoplayer2.b.a(j);
IAlog.a("%s AdaptiveMediaSourceEventListener onLoadCanceled called.", ((w) fVar).f());
}
}

View File

@@ -0,0 +1,31 @@
package com.fyber.inneractive.sdk.player.exoplayer2.source.chunk;
import com.fyber.inneractive.sdk.player.exoplayer2.j;
import com.fyber.inneractive.sdk.player.exoplayer2.upstream.f;
import com.fyber.inneractive.sdk.player.exoplayer2.upstream.i;
import com.fyber.inneractive.sdk.player.exoplayer2.upstream.v;
/* loaded from: classes2.dex */
public abstract class a implements v.c {
public final i a;
public final int b;
public final j c;
public final int d;
public final Object e;
public final long f;
public final long g;
public final f h;
public a(int i, int i2, long j, long j2, j jVar, f fVar, i iVar, Object obj) {
this.h = (f) com.fyber.inneractive.sdk.player.exoplayer2.util.a.a(fVar);
this.a = (i) com.fyber.inneractive.sdk.player.exoplayer2.util.a.a(iVar);
this.b = i;
this.c = jVar;
this.d = i2;
this.e = obj;
this.f = j;
this.g = j2;
}
public abstract long c();
}

View File

@@ -0,0 +1,31 @@
package com.fyber.inneractive.sdk.player.exoplayer2.source.chunk;
import android.util.Log;
import com.fyber.inneractive.sdk.bidder.h;
import com.fyber.inneractive.sdk.player.exoplayer2.trackselection.e;
import com.fyber.inneractive.sdk.player.exoplayer2.upstream.t;
/* loaded from: classes2.dex */
public final class b {
public static boolean a(e eVar, int i, Exception exc) {
if (!(exc instanceof t)) {
return false;
}
int i2 = ((t) exc).a;
if (i2 != 404 && i2 != 410) {
return false;
}
boolean c = eVar.c(i);
int i3 = ((t) exc).a;
if (c) {
StringBuilder a = h.a("Blacklisted: duration=60000, responseCode=", i3, ", format=");
a.append(eVar.a(i));
Log.w("ChunkedTrackBlacklist", a.toString());
} else {
StringBuilder a2 = h.a("Blacklisting failed (cannot blacklist last enabled track): responseCode=", i3, ", format=");
a2.append(eVar.a(i));
Log.w("ChunkedTrackBlacklist", a2.toString());
}
return c;
}
}

View File

@@ -0,0 +1,67 @@
package com.fyber.inneractive.sdk.player.exoplayer2.source.chunk;
import com.fyber.inneractive.sdk.player.exoplayer2.extractor.hls.c;
import com.fyber.inneractive.sdk.player.exoplayer2.j;
import com.fyber.inneractive.sdk.player.exoplayer2.upstream.f;
import com.fyber.inneractive.sdk.player.exoplayer2.upstream.i;
import com.fyber.inneractive.sdk.player.exoplayer2.util.s;
import com.mbridge.msdk.playercommon.exoplayer2.C;
import java.io.IOException;
import java.util.Arrays;
/* loaded from: classes2.dex */
public abstract class c extends a {
public byte[] i;
public int j;
public volatile boolean k;
public c(f fVar, i iVar, j jVar, int i, Object obj, byte[] bArr) {
super(3, i, C.TIME_UNSET, C.TIME_UNSET, jVar, fVar, iVar, obj);
this.i = bArr;
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.upstream.v.c
public final boolean a() {
return this.k;
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.upstream.v.c
public final void b() {
this.k = true;
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.source.chunk.a
public final long c() {
return this.j;
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.upstream.v.c
public final void load() throws IOException, InterruptedException {
try {
this.h.a(this.a);
this.j = 0;
while (!this.k) {
byte[] bArr = this.i;
if (bArr == null) {
this.i = new byte[16384];
} else if (bArr.length < this.j + 16384) {
this.i = Arrays.copyOf(bArr, bArr.length + 16384);
}
int read = this.h.read(this.i, this.j, 16384);
if (read != -1) {
this.j += read;
}
if (read == -1) {
break;
}
}
if (!this.k) {
((c.a) this).m = Arrays.copyOf(this.i, this.j);
}
s.a(this.h);
} catch (Throwable th) {
s.a(this.h);
throw th;
}
}
}

View File

@@ -0,0 +1,16 @@
package com.fyber.inneractive.sdk.player.exoplayer2.source.chunk;
import com.fyber.inneractive.sdk.player.exoplayer2.j;
import com.fyber.inneractive.sdk.player.exoplayer2.upstream.f;
import com.fyber.inneractive.sdk.player.exoplayer2.upstream.i;
/* loaded from: classes2.dex */
public abstract class d extends a {
public final int i;
public d(int i, int i2, long j, long j2, j jVar, f fVar, i iVar, Object obj) {
super(1, i, j, j2, jVar, fVar, iVar, obj);
com.fyber.inneractive.sdk.player.exoplayer2.util.a.a(jVar);
this.i = i2;
}
}

View File

@@ -0,0 +1,34 @@
package com.fyber.inneractive.sdk.player.exoplayer2.source;
import com.fyber.inneractive.sdk.player.controller.w;
import com.fyber.inneractive.sdk.player.exoplayer2.source.f;
import com.fyber.inneractive.sdk.util.IAlog;
import java.io.IOException;
/* loaded from: classes2.dex */
public final class d implements Runnable {
public final /* synthetic */ Object a;
public final /* synthetic */ long b;
public final /* synthetic */ long c;
public final /* synthetic */ IOException d;
public final /* synthetic */ f.a e;
public d(f.a aVar, com.fyber.inneractive.sdk.player.exoplayer2.upstream.i iVar, int i, int i2, com.fyber.inneractive.sdk.player.exoplayer2.j jVar, int i3, Object obj, long j, long j2, long j3, long j4, long j5, IOException iOException, boolean z) {
this.e = aVar;
this.a = obj;
this.b = j;
this.c = j2;
this.d = iOException;
}
@Override // java.lang.Runnable
public final void run() {
f fVar = this.e.b;
com.fyber.inneractive.sdk.player.exoplayer2.b.a(this.b);
f.a aVar = this.e;
long j = this.c;
aVar.getClass();
com.fyber.inneractive.sdk.player.exoplayer2.b.a(j);
IAlog.a("%s AdaptiveMediaSourceEventListener onLoadError called. with exception %s", ((w) fVar).f(), this.d);
}
}

View File

@@ -0,0 +1,25 @@
package com.fyber.inneractive.sdk.player.exoplayer2.source;
import com.fyber.inneractive.sdk.player.controller.w;
import com.fyber.inneractive.sdk.player.exoplayer2.source.f;
import com.fyber.inneractive.sdk.util.IAlog;
/* loaded from: classes2.dex */
public final class e implements Runnable {
public final /* synthetic */ Object a;
public final /* synthetic */ long b;
public final /* synthetic */ f.a c;
public e(f.a aVar, int i, com.fyber.inneractive.sdk.player.exoplayer2.j jVar, int i2, Object obj, long j) {
this.c = aVar;
this.a = obj;
this.b = j;
}
@Override // java.lang.Runnable
public final void run() {
f fVar = this.c.b;
com.fyber.inneractive.sdk.player.exoplayer2.b.a(this.b);
IAlog.a("%s AdaptiveMediaSourceEventListener onDownstreamFormatChanged called.", ((w) fVar).f());
}
}

View File

@@ -0,0 +1,22 @@
package com.fyber.inneractive.sdk.player.exoplayer2.source;
import android.os.Handler;
import com.fyber.inneractive.sdk.player.controller.w;
/* loaded from: classes2.dex */
public interface f {
public static final class a {
public final Handler a;
public final f b;
public a(Handler handler, w wVar) {
this(handler, wVar, 0);
}
public a(Handler handler, w wVar, int i) {
this.a = wVar != null ? (Handler) com.fyber.inneractive.sdk.player.exoplayer2.util.a.a(handler) : null;
this.b = wVar;
}
}
}

View File

@@ -0,0 +1,7 @@
package com.fyber.inneractive.sdk.player.exoplayer2.source;
import java.io.IOException;
/* loaded from: classes2.dex */
public final class g extends IOException {
}

View File

@@ -0,0 +1,45 @@
package com.fyber.inneractive.sdk.player.exoplayer2.source;
/* loaded from: classes2.dex */
public final class h implements r {
public final r[] a;
public h(r[] rVarArr) {
this.a = rVarArr;
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.source.r
public final long a() {
long j = Long.MAX_VALUE;
for (r rVar : this.a) {
long a = rVar.a();
if (a != Long.MIN_VALUE) {
j = Math.min(j, a);
}
}
if (j == Long.MAX_VALUE) {
return Long.MIN_VALUE;
}
return j;
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.source.r
public final boolean a(long j) {
boolean z;
boolean z2 = false;
do {
long a = a();
if (a == Long.MIN_VALUE) {
break;
}
z = false;
for (r rVar : this.a) {
if (rVar.a() == a) {
z |= rVar.a(j);
}
}
z2 |= z;
} while (z);
return z2;
}
}

View File

@@ -0,0 +1,52 @@
package com.fyber.inneractive.sdk.player.exoplayer2.source;
/* loaded from: classes2.dex */
public final class i implements Runnable {
public final /* synthetic */ m a;
public i(m mVar) {
this.a = mVar;
}
@Override // java.lang.Runnable
public final void run() {
m mVar = this.a;
if (mVar.G || mVar.s || mVar.q == null || !mVar.r) {
return;
}
int size = mVar.o.size();
for (int i = 0; i < size; i++) {
if (mVar.o.valueAt(i).e() == null) {
return;
}
}
com.fyber.inneractive.sdk.player.exoplayer2.util.d dVar = mVar.k;
synchronized (dVar) {
dVar.a = false;
}
t[] tVarArr = new t[size];
mVar.z = new boolean[size];
mVar.y = new boolean[size];
mVar.x = mVar.q.c();
int i2 = 0;
while (true) {
boolean z = true;
if (i2 >= size) {
mVar.w = new u(tVarArr);
mVar.s = true;
mVar.f.a(new s(mVar.q.b(), mVar.x), null);
((com.fyber.inneractive.sdk.player.exoplayer2.h) mVar.p).f.obtainMessage(8, mVar).sendToTarget();
return;
}
com.fyber.inneractive.sdk.player.exoplayer2.j e = mVar.o.valueAt(i2).e();
tVarArr[i2] = new t(e);
String str = e.f;
if (!com.fyber.inneractive.sdk.player.exoplayer2.util.h.d(str) && !com.fyber.inneractive.sdk.player.exoplayer2.util.h.c(str)) {
z = false;
}
mVar.z[i2] = z;
mVar.A = z | mVar.A;
i2++;
}
}
}

View File

@@ -0,0 +1,21 @@
package com.fyber.inneractive.sdk.player.exoplayer2.source;
/* loaded from: classes2.dex */
public final class j implements Runnable {
public final /* synthetic */ m a;
public j(m mVar) {
this.a = mVar;
}
@Override // java.lang.Runnable
public final void run() {
m mVar = this.a;
if (mVar.G) {
return;
}
com.fyber.inneractive.sdk.player.exoplayer2.h hVar = (com.fyber.inneractive.sdk.player.exoplayer2.h) mVar.p;
hVar.getClass();
hVar.f.obtainMessage(9, mVar).sendToTarget();
}
}

View File

@@ -0,0 +1,28 @@
package com.fyber.inneractive.sdk.player.exoplayer2.source;
import com.fyber.inneractive.sdk.player.exoplayer2.source.m;
/* loaded from: classes2.dex */
public final class k implements Runnable {
public final /* synthetic */ m.b a;
public final /* synthetic */ m b;
public k(m mVar, m.b bVar) {
this.b = mVar;
this.a = bVar;
}
@Override // java.lang.Runnable
public final void run() {
m.b bVar = this.a;
com.fyber.inneractive.sdk.player.exoplayer2.extractor.f fVar = bVar.c;
if (fVar != null) {
fVar.a();
bVar.c = null;
}
int size = this.b.o.size();
for (int i = 0; i < size; i++) {
this.b.o.valueAt(i).b();
}
}
}

View File

@@ -0,0 +1,27 @@
package com.fyber.inneractive.sdk.player.exoplayer2.source;
import com.fyber.inneractive.sdk.player.cache.j;
import com.fyber.inneractive.sdk.player.controller.w;
import com.fyber.inneractive.sdk.player.exoplayer2.source.n;
import java.io.IOException;
/* loaded from: classes2.dex */
public final class l implements Runnable {
public final /* synthetic */ IOException a;
public final /* synthetic */ m b;
public l(m mVar, IOException iOException) {
this.b = mVar;
this.a = iOException;
}
@Override // java.lang.Runnable
public final void run() {
n.a aVar = this.b.e;
IOException iOException = this.a;
com.fyber.inneractive.sdk.player.controller.d dVar = ((w) aVar).a.get();
if (dVar != null && (iOException.getCause() instanceof j.e) && dVar.A) {
dVar.a(dVar.D, dVar.C);
}
}
}

View File

@@ -0,0 +1,653 @@
package com.fyber.inneractive.sdk.player.exoplayer2.source;
import android.net.Uri;
import android.os.Handler;
import android.os.Looper;
import android.os.SystemClock;
import android.support.v4.media.session.PlaybackStateCompat;
import android.util.SparseArray;
import androidx.work.WorkRequest;
import com.fyber.inneractive.sdk.player.exoplayer2.extractor.d;
import com.fyber.inneractive.sdk.player.exoplayer2.source.n;
import com.fyber.inneractive.sdk.player.exoplayer2.source.o;
import com.fyber.inneractive.sdk.player.exoplayer2.source.p;
import com.fyber.inneractive.sdk.player.exoplayer2.upstream.v;
import com.fyber.inneractive.sdk.player.exoplayer2.upstream.v.b;
import com.mbridge.msdk.playercommon.exoplayer2.C;
import java.io.EOFException;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.UnknownHostException;
/* loaded from: classes2.dex */
public final class m implements o, com.fyber.inneractive.sdk.player.exoplayer2.extractor.g, v.a<a>, d.c {
public boolean A;
public long C;
public int E;
public boolean F;
public boolean G;
public final Uri a;
public final com.fyber.inneractive.sdk.player.exoplayer2.upstream.f b;
public final int c;
public final Handler d;
public final n.a e;
public final p.a f;
public final com.fyber.inneractive.sdk.player.exoplayer2.upstream.b g;
public final String h;
public final b j;
public o.a p;
public com.fyber.inneractive.sdk.player.exoplayer2.extractor.l q;
public boolean r;
public boolean s;
public boolean t;
public boolean u;
public int v;
public u w;
public long x;
public boolean[] y;
public boolean[] z;
public final com.fyber.inneractive.sdk.player.exoplayer2.upstream.v i = new com.fyber.inneractive.sdk.player.exoplayer2.upstream.v("Loader:ExtractorMediaPeriod");
public final com.fyber.inneractive.sdk.player.exoplayer2.util.d k = new com.fyber.inneractive.sdk.player.exoplayer2.util.d();
public final i l = new i(this);
public final j m = new j(this);
public final Handler n = new Handler();
public long D = C.TIME_UNSET;
public final SparseArray<com.fyber.inneractive.sdk.player.exoplayer2.extractor.d> o = new SparseArray<>();
public long B = -1;
public final class c implements q {
public final int a;
public c(int i) {
this.a = i;
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.source.q
public final void a() throws IOException {
m.this.i.b();
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.source.q
public final boolean isReady() {
boolean z;
m mVar = m.this;
int i = this.a;
if (mVar.F) {
return true;
}
if (mVar.D == C.TIME_UNSET) {
d.b bVar = mVar.o.valueAt(i).c;
synchronized (bVar) {
z = bVar.i == 0;
}
if (!z) {
return true;
}
}
return false;
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.source.q
public final int a(com.fyber.inneractive.sdk.player.exoplayer2.k kVar, com.fyber.inneractive.sdk.player.exoplayer2.decoder.b bVar, boolean z) {
m mVar = m.this;
int i = this.a;
if (mVar.u || mVar.D != C.TIME_UNSET) {
return -3;
}
return mVar.o.valueAt(i).a(kVar, bVar, z, mVar.F, mVar.C);
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.source.q
public final void a(long j) {
long max;
m mVar = m.this;
com.fyber.inneractive.sdk.player.exoplayer2.extractor.d valueAt = mVar.o.valueAt(this.a);
if (mVar.F) {
d.b bVar = valueAt.c;
synchronized (bVar) {
max = Math.max(bVar.m, bVar.n);
}
if (j > max) {
valueAt.f();
return;
}
}
valueAt.a(true, j);
}
}
public m(Uri uri, com.fyber.inneractive.sdk.player.exoplayer2.upstream.f fVar, com.fyber.inneractive.sdk.player.exoplayer2.extractor.f[] fVarArr, int i, Handler handler, n.a aVar, p.a aVar2, com.fyber.inneractive.sdk.player.exoplayer2.upstream.j jVar, String str) {
this.a = uri;
this.b = fVar;
this.c = i;
this.d = handler;
this.e = aVar;
this.f = aVar2;
this.g = jVar;
this.h = str;
this.j = new b(fVarArr, this);
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.upstream.v.a
public final void a(a aVar, long j, long j2, boolean z) {
a aVar2 = aVar;
if (this.B == -1) {
this.B = aVar2.i;
}
if (z || this.v <= 0) {
return;
}
int size = this.o.size();
for (int i = 0; i < size; i++) {
this.o.valueAt(i).a(this.y[i]);
}
com.fyber.inneractive.sdk.player.exoplayer2.h hVar = (com.fyber.inneractive.sdk.player.exoplayer2.h) this.p;
hVar.getClass();
hVar.f.obtainMessage(9, this).sendToTarget();
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.source.o
public final long b(long j) {
if (!this.q.b()) {
j = 0;
}
this.C = j;
int size = this.o.size();
boolean z = !(this.D != C.TIME_UNSET);
for (int i = 0; z && i < size; i++) {
if (this.y[i]) {
z = this.o.valueAt(i).a(false, j);
}
}
if (!z) {
this.D = j;
this.F = false;
if (this.i.a()) {
v.b<? extends v.c> bVar = this.i.b;
bVar.h = false;
bVar.e = null;
if (bVar.hasMessages(0)) {
bVar.removeMessages(0);
bVar.sendEmptyMessage(1);
} else {
bVar.a.b();
if (bVar.g != null) {
bVar.g.interrupt();
}
}
} else {
for (int i2 = 0; i2 < size; i2++) {
this.o.valueAt(i2).a(this.y[i2]);
}
}
}
this.u = false;
return j;
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.source.o
public final long c() {
if (!this.u) {
return C.TIME_UNSET;
}
this.u = false;
return this.C;
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.source.o
public final u d() {
return this.w;
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.source.o
public final void f() throws IOException {
this.i.b();
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.extractor.d.c
public final void g() {
this.n.post(this.l);
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.source.o
public final void h() {
}
public final void i() {
com.fyber.inneractive.sdk.player.exoplayer2.extractor.l lVar;
a aVar = new a(this.a, this.b, this.j, this.k);
if (this.s) {
com.fyber.inneractive.sdk.player.exoplayer2.util.a.b(this.D != C.TIME_UNSET);
long j = this.x;
if (j != C.TIME_UNSET && this.D >= j) {
this.F = true;
this.D = C.TIME_UNSET;
return;
}
long a2 = this.q.a(this.D);
long j2 = this.D;
aVar.e.a = a2;
aVar.h = j2;
aVar.g = true;
this.D = C.TIME_UNSET;
}
int size = this.o.size();
int i = 0;
for (int i2 = 0; i2 < size; i2++) {
d.b bVar = this.o.valueAt(i2).c;
i += bVar.j + bVar.i;
}
this.E = i;
int i3 = this.c;
if (i3 == -1) {
i3 = (this.s && this.B == -1 && ((lVar = this.q) == null || lVar.c() == C.TIME_UNSET)) ? 6 : 3;
}
int i4 = i3;
com.fyber.inneractive.sdk.player.exoplayer2.upstream.v vVar = this.i;
vVar.getClass();
Looper myLooper = Looper.myLooper();
com.fyber.inneractive.sdk.player.exoplayer2.util.a.b(myLooper != null);
v.b<? extends v.c> bVar2 = vVar.new b<>(myLooper, aVar, this, i4, SystemClock.elapsedRealtime());
com.fyber.inneractive.sdk.player.exoplayer2.util.a.b(vVar.b == null);
vVar.b = bVar2;
bVar2.e = null;
vVar.a.execute(bVar2);
}
public final class a implements v.c {
public final Uri a;
public final com.fyber.inneractive.sdk.player.exoplayer2.upstream.f b;
public final b c;
public final com.fyber.inneractive.sdk.player.exoplayer2.util.d d;
public volatile boolean f;
public long h;
public final com.fyber.inneractive.sdk.player.exoplayer2.extractor.k e = new com.fyber.inneractive.sdk.player.exoplayer2.extractor.k();
public boolean g = true;
public long i = -1;
public a(Uri uri, com.fyber.inneractive.sdk.player.exoplayer2.upstream.f fVar, b bVar, com.fyber.inneractive.sdk.player.exoplayer2.util.d dVar) {
this.a = (Uri) com.fyber.inneractive.sdk.player.exoplayer2.util.a.a(uri);
this.b = (com.fyber.inneractive.sdk.player.exoplayer2.upstream.f) com.fyber.inneractive.sdk.player.exoplayer2.util.a.a(fVar);
this.c = (b) com.fyber.inneractive.sdk.player.exoplayer2.util.a.a(bVar);
this.d = dVar;
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.upstream.v.c
public final boolean a() {
return this.f;
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.upstream.v.c
public final void b() {
this.f = true;
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.upstream.v.c
public final void load() throws IOException, InterruptedException {
com.fyber.inneractive.sdk.player.exoplayer2.extractor.b bVar;
long j;
com.fyber.inneractive.sdk.player.exoplayer2.upstream.f fVar;
int i = 0;
while (i == 0 && !this.f) {
try {
j = this.e.a;
long a = this.b.a(new com.fyber.inneractive.sdk.player.exoplayer2.upstream.i(this.a, j, j, -1L, m.this.h, 0, 0));
this.i = a;
if (a != -1) {
this.i = a + j;
}
fVar = this.b;
bVar = new com.fyber.inneractive.sdk.player.exoplayer2.extractor.b(fVar, j, this.i);
} catch (Throwable th) {
th = th;
bVar = null;
}
try {
b bVar2 = this.c;
fVar.a();
com.fyber.inneractive.sdk.player.exoplayer2.extractor.f a2 = bVar2.a(bVar);
if (this.g) {
a2.a(j, this.h);
this.g = false;
}
long j2 = j;
while (i == 0 && !this.f) {
com.fyber.inneractive.sdk.player.exoplayer2.util.d dVar = this.d;
synchronized (dVar) {
while (!dVar.a) {
dVar.wait();
}
}
i = a2.a(bVar, this.e);
long j3 = bVar.c;
if (j3 > PlaybackStateCompat.ACTION_SET_CAPTIONING_ENABLED + j2) {
this.d.a();
m mVar = m.this;
mVar.n.post(mVar.m);
j2 = j3;
}
}
if (i == 1) {
i = 0;
} else {
this.e.a = bVar.c;
}
com.fyber.inneractive.sdk.player.exoplayer2.util.s.a(this.b);
} catch (Throwable th2) {
th = th2;
if (i != 1 && bVar != null) {
this.e.a = bVar.c;
}
com.fyber.inneractive.sdk.player.exoplayer2.util.s.a(this.b);
throw th;
}
}
}
}
public static final class b {
public final com.fyber.inneractive.sdk.player.exoplayer2.extractor.f[] a;
public final com.fyber.inneractive.sdk.player.exoplayer2.extractor.g b;
public com.fyber.inneractive.sdk.player.exoplayer2.extractor.f c;
public b(com.fyber.inneractive.sdk.player.exoplayer2.extractor.f[] fVarArr, com.fyber.inneractive.sdk.player.exoplayer2.extractor.g gVar) {
this.a = fVarArr;
this.b = gVar;
}
public final com.fyber.inneractive.sdk.player.exoplayer2.extractor.f a(com.fyber.inneractive.sdk.player.exoplayer2.extractor.b bVar) throws IOException, InterruptedException {
com.fyber.inneractive.sdk.player.exoplayer2.extractor.f fVar = this.c;
if (fVar != null) {
return fVar;
}
com.fyber.inneractive.sdk.player.exoplayer2.extractor.f[] fVarArr = this.a;
int length = fVarArr.length;
int i = 0;
while (true) {
if (i >= length) {
break;
}
com.fyber.inneractive.sdk.player.exoplayer2.extractor.f fVar2 = fVarArr[i];
try {
} catch (EOFException unused) {
} catch (Throwable th) {
bVar.e = 0;
throw th;
}
if (fVar2.a(bVar)) {
this.c = fVar2;
bVar.e = 0;
break;
}
continue;
bVar.e = 0;
i++;
}
com.fyber.inneractive.sdk.player.exoplayer2.extractor.f fVar3 = this.c;
if (fVar3 == null) {
StringBuilder sb = new StringBuilder("None of the available extractors (");
com.fyber.inneractive.sdk.player.exoplayer2.extractor.f[] fVarArr2 = this.a;
int i2 = com.fyber.inneractive.sdk.player.exoplayer2.util.s.a;
StringBuilder sb2 = new StringBuilder();
for (int i3 = 0; i3 < fVarArr2.length; i3++) {
sb2.append(fVarArr2[i3].getClass().getSimpleName());
if (i3 < fVarArr2.length - 1) {
sb2.append(", ");
}
}
sb.append(sb2.toString());
sb.append(") could read the stream.");
throw new v(sb.toString());
}
fVar3.a(this.b);
return this.c;
}
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.source.o
public final long e() {
long j;
long max;
if (this.F) {
return Long.MIN_VALUE;
}
long j2 = this.D;
if (j2 != C.TIME_UNSET) {
return j2;
}
int i = 0;
if (this.A) {
int size = this.o.size();
j = Long.MAX_VALUE;
while (i < size) {
if (this.z[i]) {
j = Math.min(j, this.o.valueAt(i).d());
}
i++;
}
} else {
int size2 = this.o.size();
j = Long.MIN_VALUE;
while (i < size2) {
d.b bVar = this.o.valueAt(i).c;
synchronized (bVar) {
max = Math.max(bVar.m, bVar.n);
}
j = Math.max(j, max);
i++;
}
}
return j == Long.MIN_VALUE ? this.C : j;
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.upstream.v.a
public final void a(a aVar, long j, long j2) {
long max;
a aVar2 = aVar;
if (this.B == -1) {
this.B = aVar2.i;
}
this.F = true;
if (this.x == C.TIME_UNSET) {
int size = this.o.size();
long j3 = Long.MIN_VALUE;
for (int i = 0; i < size; i++) {
d.b bVar = this.o.valueAt(i).c;
synchronized (bVar) {
max = Math.max(bVar.m, bVar.n);
}
j3 = Math.max(j3, max);
}
this.x = j3 == Long.MIN_VALUE ? 0L : WorkRequest.MIN_BACKOFF_MILLIS + j3;
this.f.a(new s(this.q.b(), this.x), null);
}
com.fyber.inneractive.sdk.player.exoplayer2.h hVar = (com.fyber.inneractive.sdk.player.exoplayer2.h) this.p;
hVar.getClass();
hVar.f.obtainMessage(9, this).sendToTarget();
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.extractor.g
public final void b() {
this.r = true;
this.n.post(this.l);
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.upstream.v.a
public final int a(a aVar, long j, long j2, IOException iOException) {
com.fyber.inneractive.sdk.player.exoplayer2.extractor.l lVar;
a aVar2 = aVar;
if (this.B == -1) {
this.B = aVar2.i;
}
Handler handler = this.d;
if (handler != null && this.e != null) {
handler.post(new l(this, iOException));
}
if ((iOException instanceof v) || (iOException instanceof com.fyber.inneractive.sdk.player.exoplayer2.upstream.t) || ((iOException instanceof com.fyber.inneractive.sdk.player.exoplayer2.upstream.s) && iOException.getCause() != null && ((iOException.getCause() instanceof MalformedURLException) || (iOException.getCause() instanceof UnknownHostException)))) {
return 3;
}
int size = this.o.size();
int i = 0;
for (int i2 = 0; i2 < size; i2++) {
d.b bVar = this.o.valueAt(i2).c;
i += bVar.j + bVar.i;
}
int i3 = i > this.E ? 1 : 0;
if (this.B == -1 && ((lVar = this.q) == null || lVar.c() == C.TIME_UNSET)) {
this.C = 0L;
this.u = this.s;
int size2 = this.o.size();
for (int i4 = 0; i4 < size2; i4++) {
this.o.valueAt(i4).a(!this.s || this.y[i4]);
}
aVar2.e.a = 0L;
aVar2.h = 0L;
aVar2.g = true;
}
int size3 = this.o.size();
int i5 = 0;
for (int i6 = 0; i6 < size3; i6++) {
d.b bVar2 = this.o.valueAt(i6).c;
i5 += bVar2.j + bVar2.i;
}
this.E = i5;
return i3;
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.source.o
public final void a(o.a aVar) {
this.p = aVar;
com.fyber.inneractive.sdk.player.exoplayer2.util.d dVar = this.k;
synchronized (dVar) {
if (!dVar.a) {
dVar.a = true;
dVar.notifyAll();
}
}
i();
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.source.o
public final long a(com.fyber.inneractive.sdk.player.exoplayer2.trackselection.e[] eVarArr, boolean[] zArr, q[] qVarArr, boolean[] zArr2, long j) {
com.fyber.inneractive.sdk.player.exoplayer2.trackselection.e eVar;
com.fyber.inneractive.sdk.player.exoplayer2.util.a.b(this.s);
for (int i = 0; i < eVarArr.length; i++) {
q qVar = qVarArr[i];
if (qVar != null && (eVarArr[i] == null || !zArr[i])) {
int i2 = ((c) qVar).a;
com.fyber.inneractive.sdk.player.exoplayer2.util.a.b(this.y[i2]);
this.v--;
this.y[i2] = false;
this.o.valueAt(i2).b();
qVarArr[i] = null;
}
}
boolean z = false;
for (int i3 = 0; i3 < eVarArr.length; i3++) {
if (qVarArr[i3] == null && (eVar = eVarArr[i3]) != null) {
com.fyber.inneractive.sdk.player.exoplayer2.util.a.b(eVar.length() == 1);
com.fyber.inneractive.sdk.player.exoplayer2.util.a.b(eVar.b(0) == 0);
u uVar = this.w;
t c2 = eVar.c();
int i4 = 0;
while (true) {
if (i4 >= uVar.a) {
i4 = -1;
break;
}
if (uVar.b[i4] == c2) {
break;
}
i4++;
}
com.fyber.inneractive.sdk.player.exoplayer2.util.a.b(!this.y[i4]);
this.v++;
this.y[i4] = true;
qVarArr[i3] = new c(i4);
zArr2[i3] = true;
z = true;
}
}
if (!this.t) {
int size = this.o.size();
for (int i5 = 0; i5 < size; i5++) {
if (!this.y[i5]) {
this.o.valueAt(i5).b();
}
}
}
if (this.v == 0) {
this.u = false;
if (this.i.a()) {
v.b<? extends v.c> bVar = this.i.b;
bVar.h = false;
bVar.e = null;
if (bVar.hasMessages(0)) {
bVar.removeMessages(0);
bVar.sendEmptyMessage(1);
} else {
bVar.a.b();
if (bVar.g != null) {
bVar.g.interrupt();
}
}
}
} else if (!this.t ? j != 0 : z) {
j = b(j);
for (int i6 = 0; i6 < qVarArr.length; i6++) {
if (qVarArr[i6] != null) {
zArr2[i6] = true;
}
}
}
this.t = true;
return j;
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.source.o, com.fyber.inneractive.sdk.player.exoplayer2.source.r
public final boolean a(long j) {
boolean z = false;
if (this.F || (this.s && this.v == 0)) {
return false;
}
com.fyber.inneractive.sdk.player.exoplayer2.util.d dVar = this.k;
synchronized (dVar) {
if (!dVar.a) {
dVar.a = true;
dVar.notifyAll();
z = true;
}
}
if (this.i.a()) {
return z;
}
i();
return true;
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.source.o, com.fyber.inneractive.sdk.player.exoplayer2.source.r
public final long a() {
if (this.v == 0) {
return Long.MIN_VALUE;
}
return e();
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.extractor.g
public final com.fyber.inneractive.sdk.player.exoplayer2.extractor.d a(int i, int i2) {
com.fyber.inneractive.sdk.player.exoplayer2.extractor.d dVar = this.o.get(i);
if (dVar != null) {
return dVar;
}
com.fyber.inneractive.sdk.player.exoplayer2.extractor.d dVar2 = new com.fyber.inneractive.sdk.player.exoplayer2.extractor.d(this.g);
dVar2.n = this;
this.o.put(i, dVar2);
return dVar2;
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.extractor.g
public final void a(com.fyber.inneractive.sdk.player.exoplayer2.extractor.l lVar) {
this.q = lVar;
this.n.post(this.l);
}
}

View File

@@ -0,0 +1,96 @@
package com.fyber.inneractive.sdk.player.exoplayer2.source;
import android.net.Uri;
import android.os.Handler;
import android.os.SystemClock;
import com.fyber.inneractive.sdk.player.controller.w;
import com.fyber.inneractive.sdk.player.exoplayer2.q;
import com.fyber.inneractive.sdk.player.exoplayer2.source.m;
import com.fyber.inneractive.sdk.player.exoplayer2.source.p;
import com.fyber.inneractive.sdk.player.exoplayer2.upstream.f;
import com.fyber.inneractive.sdk.player.exoplayer2.upstream.v;
import com.mbridge.msdk.playercommon.exoplayer2.C;
import java.io.IOException;
/* loaded from: classes2.dex */
public final class n implements p, p.a {
public final Uri a;
public final f.a b;
public final com.fyber.inneractive.sdk.player.exoplayer2.extractor.h c;
public final int d;
public final Handler e;
public final a f;
public final q.b g = new q.b();
public p.a h;
public boolean i;
public interface a {
}
public n(Uri uri, f.a aVar, com.fyber.inneractive.sdk.player.exoplayer2.extractor.c cVar, int i, Handler handler, w wVar) {
this.a = uri;
this.b = aVar;
this.c = cVar;
this.d = i;
this.e = handler;
this.f = wVar;
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.source.p
public final void a() throws IOException {
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.source.p
public final void b() {
this.h = null;
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.source.p
public final void a(p.a aVar) {
this.h = aVar;
aVar.a(new s(false, C.TIME_UNSET), null);
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.source.p
public final o a(int i, com.fyber.inneractive.sdk.player.exoplayer2.upstream.j jVar, long j) {
com.fyber.inneractive.sdk.player.exoplayer2.util.a.a(i == 0);
return new m(this.a, this.b.a(), this.c.a(), this.d, this.e, this.f, this, jVar, null);
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.source.p
public final void a(o oVar) {
m mVar = (m) oVar;
m.b bVar = mVar.j;
com.fyber.inneractive.sdk.player.exoplayer2.upstream.v vVar = mVar.i;
k kVar = new k(mVar, bVar);
v.b<? extends v.c> bVar2 = vVar.b;
if (bVar2 != null) {
bVar2.h = true;
bVar2.e = null;
if (bVar2.hasMessages(0)) {
bVar2.removeMessages(0);
} else {
bVar2.a.b();
if (bVar2.g != null) {
bVar2.g.interrupt();
}
}
com.fyber.inneractive.sdk.player.exoplayer2.upstream.v.this.b = null;
long elapsedRealtime = SystemClock.elapsedRealtime();
bVar2.b.a((v.a<? extends v.c>) bVar2.a, elapsedRealtime, elapsedRealtime - bVar2.d, true);
}
vVar.a.execute(kVar);
vVar.a.shutdown();
mVar.n.removeCallbacksAndMessages(null);
mVar.G = true;
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.source.p.a
public final void a(s sVar, com.fyber.inneractive.sdk.player.exoplayer2.extractor.hls.e eVar) {
boolean z = sVar.a(0, this.g, false).d != C.TIME_UNSET;
if (!this.i || z) {
this.i = z;
this.h.a(sVar, null);
}
}
}

View File

@@ -0,0 +1,32 @@
package com.fyber.inneractive.sdk.player.exoplayer2.source;
import java.io.IOException;
/* loaded from: classes2.dex */
public interface o extends r {
public interface a {
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.source.r
long a();
long a(com.fyber.inneractive.sdk.player.exoplayer2.trackselection.e[] eVarArr, boolean[] zArr, q[] qVarArr, boolean[] zArr2, long j);
void a(a aVar);
@Override // com.fyber.inneractive.sdk.player.exoplayer2.source.r
boolean a(long j);
long b(long j);
long c();
u d();
long e();
void f() throws IOException;
void h();
}

View File

@@ -0,0 +1,21 @@
package com.fyber.inneractive.sdk.player.exoplayer2.source;
import java.io.IOException;
/* loaded from: classes2.dex */
public interface p {
public interface a {
void a(s sVar, com.fyber.inneractive.sdk.player.exoplayer2.extractor.hls.e eVar);
}
o a(int i, com.fyber.inneractive.sdk.player.exoplayer2.upstream.j jVar, long j);
void a() throws IOException;
void a(o oVar);
void a(a aVar);
void b();
}

View File

@@ -0,0 +1,14 @@
package com.fyber.inneractive.sdk.player.exoplayer2.source;
import java.io.IOException;
/* loaded from: classes2.dex */
public interface q {
int a(com.fyber.inneractive.sdk.player.exoplayer2.k kVar, com.fyber.inneractive.sdk.player.exoplayer2.decoder.b bVar, boolean z);
void a() throws IOException;
void a(long j);
boolean isReady();
}

View File

@@ -0,0 +1,8 @@
package com.fyber.inneractive.sdk.player.exoplayer2.source;
/* loaded from: classes2.dex */
public interface r {
long a();
boolean a(long j);
}

View File

@@ -0,0 +1,82 @@
package com.fyber.inneractive.sdk.player.exoplayer2.source;
import com.fyber.inneractive.sdk.player.exoplayer2.q;
import com.mbridge.msdk.playercommon.exoplayer2.C;
/* loaded from: classes2.dex */
public final class s extends com.fyber.inneractive.sdk.player.exoplayer2.q {
public static final Object g = new Object();
public final long b;
public final long c;
public final long d;
public final long e;
public final boolean f;
public s(boolean z, long j) {
this(j, j, 0L, 0L, z, false);
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.q
public final int a() {
return 1;
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.q
public final int b() {
return 1;
}
public s(long j, long j2, long j3, long j4, boolean z, boolean z2) {
this.b = j;
this.c = j2;
this.d = j3;
this.e = j4;
this.f = z2;
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.q
public final q.c a(int i, q.c cVar, long j) {
if (i >= 0 && i < 1) {
long j2 = this.e;
boolean z = this.f;
if (z) {
j2 += j;
if (j2 > this.c) {
j2 = C.TIME_UNSET;
}
}
long j3 = this.c;
long j4 = this.d;
cVar.a = null;
cVar.b = z;
cVar.e = j2;
cVar.f = j3;
cVar.c = 0;
cVar.d = 0;
cVar.g = j4;
return cVar;
}
throw new IndexOutOfBoundsException();
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.q
public final q.b a(int i, q.b bVar, boolean z) {
if (i >= 0 && i < 1) {
Object obj = z ? g : null;
long j = this.b;
long j2 = -this.d;
bVar.a = obj;
bVar.b = obj;
bVar.c = 0;
bVar.d = j;
bVar.e = j2;
return bVar;
}
throw new IndexOutOfBoundsException();
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.q
public final int a(Object obj) {
return g.equals(obj) ? 0 : -1;
}
}

View File

@@ -0,0 +1,53 @@
package com.fyber.inneractive.sdk.player.exoplayer2.source;
import com.ironsource.mediationsdk.logger.IronSourceError;
import java.util.Arrays;
/* loaded from: classes2.dex */
public final class t {
public final int a;
public final com.fyber.inneractive.sdk.player.exoplayer2.j[] b;
public int c;
public t(com.fyber.inneractive.sdk.player.exoplayer2.j... jVarArr) {
com.fyber.inneractive.sdk.player.exoplayer2.util.a.b(jVarArr.length > 0);
this.b = jVarArr;
this.a = jVarArr.length;
}
public final com.fyber.inneractive.sdk.player.exoplayer2.j a(int i) {
return this.b[i];
}
public final boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || t.class != obj.getClass()) {
return false;
}
t tVar = (t) obj;
return this.a == tVar.a && Arrays.equals(this.b, tVar.b);
}
public final int a(com.fyber.inneractive.sdk.player.exoplayer2.j jVar) {
int i = 0;
while (true) {
com.fyber.inneractive.sdk.player.exoplayer2.j[] jVarArr = this.b;
if (i >= jVarArr.length) {
return -1;
}
if (jVar == jVarArr[i]) {
return i;
}
i++;
}
}
public final int hashCode() {
if (this.c == 0) {
this.c = Arrays.hashCode(this.b) + IronSourceError.ERROR_NON_EXISTENT_INSTANCE;
}
return this.c;
}
}

View File

@@ -0,0 +1,34 @@
package com.fyber.inneractive.sdk.player.exoplayer2.source;
import java.util.Arrays;
/* loaded from: classes2.dex */
public final class u {
public static final u d = new u(new t[0]);
public final int a;
public final t[] b;
public int c;
public u(t... tVarArr) {
this.b = tVarArr;
this.a = tVarArr.length;
}
public final boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || u.class != obj.getClass()) {
return false;
}
u uVar = (u) obj;
return this.a == uVar.a && Arrays.equals(this.b, uVar.b);
}
public final int hashCode() {
if (this.c == 0) {
this.c = Arrays.hashCode(this.b);
}
return this.c;
}
}

View File

@@ -0,0 +1,8 @@
package com.fyber.inneractive.sdk.player.exoplayer2.source;
/* loaded from: classes2.dex */
public final class v extends com.fyber.inneractive.sdk.player.exoplayer2.m {
public v(String str) {
super(str);
}
}