MD5 校验值:61e58c10a11e4adec8760ee3854e996a
J.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。
package I1; import K1.C0068b; import K1.C0069c; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.os.Handler; import android.os.Looper; import android.provider.Settings; import android.util.Log; import android.view.Surface; import com.google.android.gms.internal.ads.C1582x3; import d2.AbstractC1726a; import f0.AbstractC1761a; import java.util.ArrayList; import java.util.Collections; import java.util.Iterator; import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.CopyOnWriteArraySet; import q1.C2171E; import x2.InterfaceC2406c; public final class J extends A.s { public int f907A; public C0068b f908B; public final float f909C; public AbstractC1726a f910D; public boolean f911E; public boolean f912F; public final AbstractC0007f[] f913f; public final q f914j; public final Handler f915k; public final CopyOnWriteArraySet f916l; public final CopyOnWriteArraySet f917m; public final CopyOnWriteArraySet f918n; public final CopyOnWriteArraySet f919o; public final CopyOnWriteArraySet f920p; public final CopyOnWriteArraySet f921q; public final InterfaceC2406c f922r; public final J1.c f923s; public final com.bumptech.glide.manager.p f924t; public final C0004c f925u; public final Q3.e f926v; public Surface f927w; public boolean f928x; public int f929y; public int f930z; public J(Context context, C0011j c0011j, v2.i iVar, C0009h c0009h, x2.m mVar, J1.c cVar, Looper looper) { super(1); int i5; CopyOnWriteArraySet copyOnWriteArraySet; C0069c c0069c; boolean z6; Iterator it; this.f922r = mVar; this.f923s = cVar; I i6 = new I(this); CopyOnWriteArraySet copyOnWriteArraySet2 = new CopyOnWriteArraySet(); this.f916l = copyOnWriteArraySet2; CopyOnWriteArraySet copyOnWriteArraySet3 = new CopyOnWriteArraySet(); this.f917m = copyOnWriteArraySet3; this.f918n = new CopyOnWriteArraySet(); CopyOnWriteArraySet copyOnWriteArraySet4 = new CopyOnWriteArraySet(); this.f919o = copyOnWriteArraySet4; CopyOnWriteArraySet copyOnWriteArraySet5 = new CopyOnWriteArraySet(); this.f920p = copyOnWriteArraySet5; CopyOnWriteArraySet copyOnWriteArraySet6 = new CopyOnWriteArraySet(); this.f921q = copyOnWriteArraySet6; Handler handler = new Handler(looper); this.f915k = handler; ArrayList arrayList = new ArrayList(); Context context2 = c0011j.e; arrayList.add(new A2.j(context2, null, handler, i6)); K1.f[] fVarArr = new K1.f[0]; C0069c c0069c2 = C0069c.f1443c; Intent registerReceiver = context2.registerReceiver(null, new IntentFilter("android.media.action.HDMI_AUDIO_PLUG")); if (z2.q.f19694a >= 17 && "Amazon".equals(z2.q.f19696c)) { i5 = 0; if (Settings.Global.getInt(context2.getContentResolver(), "external_surround_sound_enabled", 0) == 1) { c0069c = C0069c.d; copyOnWriteArraySet = copyOnWriteArraySet4; arrayList.add(new K1.x(context2, null, handler, i6, new K1.v(c0069c, fVarArr))); arrayList.add(new m2.k(i6, handler.getLooper())); arrayList.add(new Y1.h(i6, handler.getLooper())); arrayList.add(new B2.a()); AbstractC0007f[] abstractC0007fArr = (AbstractC0007f[]) arrayList.toArray(new AbstractC0007f[0]); this.f913f = abstractC0007fArr; this.f909C = 1.0f; this.f907A = 0; this.f908B = C0068b.d; Collections.emptyList(); q qVar = new q(abstractC0007fArr, iVar, c0009h, mVar, looper); this.f914j = qVar; if (cVar.f1332j == null && !((ArrayList) cVar.f1331f.e).isEmpty()) { z6 = false; } else { z6 = true; } z2.b.f(z6); cVar.f1332j = qVar; y(cVar); y(i6); copyOnWriteArraySet5.add(cVar); copyOnWriteArraySet2.add(cVar); copyOnWriteArraySet6.add(cVar); copyOnWriteArraySet3.add(cVar); copyOnWriteArraySet.add(cVar); C2171E c2171e = mVar.f19427c; c2171e.getClass(); CopyOnWriteArrayList copyOnWriteArrayList = (CopyOnWriteArrayList) c2171e.f17984b; it = copyOnWriteArrayList.iterator(); while (it.hasNext()) { z2.e eVar = (z2.e) it.next(); if (eVar.f19659b == cVar) { eVar.f19660c = true; copyOnWriteArrayList.remove(eVar); } } copyOnWriteArrayList.add(new z2.e(handler, cVar)); this.f924t = new com.bumptech.glide.manager.p(context, handler, i6); this.f925u = new C0004c(context, handler, i6); ?? obj = new Object(); this.f926v = obj; } } else { i5 = 0; } if (registerReceiver == null || registerReceiver.getIntExtra("android.media.extra.AUDIO_PLUG_STATE", i5) == 0) { copyOnWriteArraySet = copyOnWriteArraySet4; c0069c = C0069c.f1443c; } else { copyOnWriteArraySet = copyOnWriteArraySet4; c0069c = new C0069c(registerReceiver.getIntExtra("android.media.extra.MAX_CHANNEL_COUNT", 8), registerReceiver.getIntArrayExtra("android.media.extra.ENCODINGS")); } arrayList.add(new K1.x(context2, null, handler, i6, new K1.v(c0069c, fVarArr))); arrayList.add(new m2.k(i6, handler.getLooper())); arrayList.add(new Y1.h(i6, handler.getLooper())); arrayList.add(new B2.a()); AbstractC0007f[] abstractC0007fArr2 = (AbstractC0007f[]) arrayList.toArray(new AbstractC0007f[0]); this.f913f = abstractC0007fArr2; this.f909C = 1.0f; this.f907A = 0; this.f908B = C0068b.d; Collections.emptyList(); q qVar2 = new q(abstractC0007fArr2, iVar, c0009h, mVar, looper); this.f914j = qVar2; if (cVar.f1332j == null) { } z6 = true; z2.b.f(z6); cVar.f1332j = qVar2; y(cVar); y(i6); copyOnWriteArraySet5.add(cVar); copyOnWriteArraySet2.add(cVar); copyOnWriteArraySet6.add(cVar); copyOnWriteArraySet3.add(cVar); copyOnWriteArraySet.add(cVar); C2171E c2171e2 = mVar.f19427c; c2171e2.getClass(); CopyOnWriteArrayList copyOnWriteArrayList2 = (CopyOnWriteArrayList) c2171e2.f17984b; it = copyOnWriteArrayList2.iterator(); while (it.hasNext()) { } copyOnWriteArrayList2.add(new z2.e(handler, cVar)); this.f924t = new com.bumptech.glide.manager.p(context, handler, i6); this.f925u = new C0004c(context, handler, i6); ?? obj2 = new Object(); this.f926v = obj2; } public static void w(J j5, Surface surface, boolean z6) { boolean z7; j5.getClass(); ArrayList arrayList = new ArrayList(); for (AbstractC0007f abstractC0007f : j5.f913f) { if (abstractC0007f.f955b == 2) { F w6 = j5.f914j.w(abstractC0007f); z2.b.f(!w6.f899f); w6.f898c = 1; z2.b.f(true ^ w6.f899f); w6.d = surface; w6.b(); arrayList.add(w6); } } Surface surface2 = j5.f927w; if (surface2 != null && surface2 != surface) { try { Iterator it = arrayList.iterator(); while (it.hasNext()) { F f7 = (F) it.next(); synchronized (f7) { z2.b.f(f7.f899f); if (f7.e.getLooper().getThread() != Thread.currentThread()) { z7 = true; } else { z7 = false; } z2.b.f(z7); while (!f7.f900g) { f7.wait(); } } } } catch (InterruptedException unused) { Thread.currentThread().interrupt(); } if (j5.f928x) { j5.f927w.release(); } } j5.f927w = surface; j5.f928x = z6; } public static void x(J j5, int i5, int i6) { if (i5 != j5.f929y || i6 != j5.f930z) { j5.f929y = i5; j5.f930z = i6; Iterator it = j5.f916l.iterator(); while (it.hasNext()) { J1.c cVar = (J1.c) it.next(); cVar.J(); Iterator it2 = cVar.f1330b.iterator(); if (it2.hasNext()) { AbstractC1761a.r(it2.next()); throw null; } } } } public final long A() { G(); return this.f914j.x(); } public final void B(AbstractC1726a abstractC1726a) { boolean z6; int i5; G(); AbstractC1726a abstractC1726a2 = this.f910D; J1.c cVar = this.f923s; if (abstractC1726a2 != null) { abstractC1726a2.o(cVar); cVar.getClass(); Iterator it = new ArrayList((ArrayList) cVar.f1331f.e).iterator(); while (it.hasNext()) { J1.a aVar = (J1.a) it.next(); cVar.C(aVar.f1322c, aVar.f1320a); } } this.f910D = abstractC1726a; Handler handler = this.f915k; C1582x3 c1582x3 = abstractC1726a.f14784f; c1582x3.getClass(); if (handler != null && cVar != null) { z6 = true; } else { z6 = false; } z2.b.d(z6); ((CopyOnWriteArrayList) c1582x3.d).add(new d2.q(handler, cVar)); boolean m4 = m(); C0004c c0004c = this.f925u; if (m4) { i5 = c0004c.b(); } else { c0004c.getClass(); i5 = -1; } F(i5, m()); q qVar = this.f914j; C y6 = qVar.y(true, true, true, 2); qVar.f1018t = true; qVar.f1017s++; ((Handler) qVar.f1010l.f1051m.e).obtainMessage(0, 1, 1, abstractC1726a).sendToTarget(); qVar.D(y6, false, 4, 1, false); } public final void C(long j5, int i5) { G(); J1.c cVar = this.f923s; J1.b bVar = cVar.f1331f; if (!bVar.f1323b) { cVar.H(); bVar.f1323b = true; Iterator it = cVar.f1330b.iterator(); if (it.hasNext()) { AbstractC1761a.r(it.next()); throw null; } } this.f914j.B(j5, i5); } public final void D(C0068b c0068b) { int i5; G(); if (!this.f912F) { int i6 = 1; if (!z2.q.a(this.f908B, c0068b)) { this.f908B = c0068b; for (AbstractC0007f abstractC0007f : this.f913f) { if (abstractC0007f.f955b == 1) { F w6 = this.f914j.w(abstractC0007f); z2.b.f(!w6.f899f); w6.f898c = 3; z2.b.f(!w6.f899f); w6.d = c0068b; w6.b(); } } Iterator it = this.f917m.iterator(); while (it.hasNext()) { J1.c cVar = (J1.c) it.next(); cVar.J(); Iterator it2 = cVar.f1330b.iterator(); if (it2.hasNext()) { AbstractC1761a.r(it2.next()); throw null; } } } boolean m4 = m(); int n6 = n(); C0004c c0004c = this.f925u; if (!z2.q.a(c0004c.d, null)) { c0004c.d = null; c0004c.f951f = 0; if (m4 && (n6 == 2 || n6 == 3)) { i5 = c0004c.b(); F(i5, m()); } } int i7 = -1; if (n6 == 1) { if (!m4) { i6 = -1; } i5 = i6; } else { if (m4) { i7 = c0004c.b(); } i5 = i7; } F(i5, m()); } } public final void E(boolean z6) { G(); int n6 = n(); int i5 = -1; C0004c c0004c = this.f925u; if (!z6) { c0004c.a(false); } else if (n6 == 1) { c0004c.getClass(); if (z6) { i5 = 1; } } else { i5 = c0004c.b(); } F(i5, z6); } public final void F(int i5, boolean z6) { final boolean z7; final int i6; int i7; int i8; final boolean z8; final boolean z9; final boolean z10; if (z6 && i5 != -1) { z7 = true; } else { z7 = false; } if (z7 && i5 != 1) { i6 = 1; } else { i6 = 0; } q qVar = this.f914j; boolean r5 = qVar.r(); if (qVar.f1015q && qVar.f1016r == 0) { i7 = 1; } else { i7 = 0; } if (z7 && i6 == 0) { i8 = 1; } else { i8 = 0; } if (i7 != i8) { ((Handler) qVar.f1010l.f1051m.e).obtainMessage(1, i8, 0).sendToTarget(); } if (qVar.f1015q != z7) { z8 = true; } else { z8 = false; } if (qVar.f1016r != i6) { z9 = true; } else { z9 = false; } qVar.f1015q = z7; qVar.f1016r = i6; final boolean r6 = qVar.r(); if (r5 != r6) { z10 = true; } else { z10 = false; } if (z8 || z9 || z10) { final int i9 = qVar.f1022x.e; qVar.A(new A2.q(new CopyOnWriteArrayList(qVar.f1012n), new InterfaceC0006e(z8, z7, i9, z9, i6, z10, r6) { public final boolean f988b; public final boolean e; public final int f989f; public final boolean f990j; public final boolean f991k; { this.f991k = z10; } @Override public final void a(E e) { if (this.f988b) { e.v(this.f989f, this.e); } if (this.f990j) { e.I(); } if (this.f991k) { e.M(); } } }, 3)); } } public final void G() { IllegalStateException illegalStateException; if (Looper.myLooper() != this.f914j.f1009k.getLooper()) { if (this.f911E) { illegalStateException = null; } else { illegalStateException = new IllegalStateException(); } Log.w("SimpleExoPlayer", "Player is accessed on the wrong thread. See https://exoplayer.dev/issues/player-accessed-on-wrong-thread", illegalStateException); this.f911E = true; } } @Override public final long d() { G(); return this.f914j.d(); } @Override public final int e() { G(); return this.f914j.e(); } @Override public final int h() { G(); return this.f914j.h(); } @Override public final long i() { G(); return this.f914j.i(); } @Override public final N k() { G(); return this.f914j.f1022x.f882a; } @Override public final int l() { G(); return this.f914j.l(); } @Override public final boolean m() { G(); return this.f914j.f1015q; } @Override public final int n() { G(); return this.f914j.f1022x.e; } @Override public final int o() { G(); return this.f914j.f1016r; } @Override public final long q() { G(); return this.f914j.q(); } public final void y(E e) { G(); this.f914j.f1012n.addIfAbsent(new C0005d(e)); } public final long z() { G(); q qVar = this.f914j; if (qVar.z()) { C c7 = qVar.f1022x; if (c7.f889j.equals(c7.f883b)) { return AbstractC0008g.b(qVar.f1022x.f890k); } return qVar.x(); } if (qVar.C()) { return qVar.f1006A; } C c8 = qVar.f1022x; if (c8.f889j.d != c8.f883b.d) { return AbstractC0008g.b(c8.f882a.i(qVar.l(), (M) qVar.e, 0L).f941h); } long j5 = c8.f890k; if (qVar.f1022x.f889j.a()) { C c9 = qVar.f1022x; L d = c9.f882a.d(c9.f889j.f14804a, qVar.f1013o); long j6 = d.f934f.f15023b[qVar.f1022x.f889j.f14805b]; if (j6 == Long.MIN_VALUE) { j5 = d.d; } else { j5 = j6; } } d2.l lVar = qVar.f1022x.f889j; long b7 = AbstractC0008g.b(j5); N n6 = qVar.f1022x.f882a; Object obj = lVar.f14804a; L l6 = qVar.f1013o; n6.d(obj, l6); return AbstractC0008g.b(l6.e) + b7; } }