APK反编译源代码展示 - 南明离火平台提供

应用版本信息
应用名称:Նվագարկիչ
版本号:9.9.9
包名称:com.iptv.player

MD5 校验值:d7f913ab91d7343430e85d5ce2e5aff0

反编译源代码说明

b0.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。


package j1;

import android.content.Context;
import android.graphics.SurfaceTexture;
import android.os.Handler;
import android.os.Looper;
import android.util.Log;
import android.view.Surface;
import android.view.SurfaceHolder;
import android.view.TextureView;
import androidx.media2.exoplayer.external.Format;
import androidx.media2.exoplayer.external.metadata.Metadata;
import androidx.media2.exoplayer.external.source.TrackGroupArray;
import androidx.media2.exoplayer.external.trackselection.DefaultTrackSelector;
import androidx.media2.player.i0;
import androidx.media2.player.o0;
import j1.a;
import j1.c0;
import j1.w;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.concurrent.CopyOnWriteArraySet;
import k1.b;
import k2.m;
import l1.e;

public class b0 extends j1.a {

    public final y[] f32956b;

    public final j f32957c;

    public final Handler f32958d;

    public final c f32959e;

    public final CopyOnWriteArraySet<m2.g> f32960f;

    public final CopyOnWriteArraySet<l1.f> f32961g;

    public final CopyOnWriteArraySet<y1.d> f32962h;

    public final CopyOnWriteArraySet<m2.j> f32963i;

    public final CopyOnWriteArraySet<l1.n> f32964j;

    public final k2.d f32965k;

    public final k1.a f32966l;

    public final l1.e f32967m;

    public Surface f32968n;

    public boolean f32969o;

    public int f32970p;

    public int f32971q;

    public int f32972r;

    public l1.c f32973s;

    public float f32974t;

    public b2.r f32975u;

    public List<Object> f32976v;

    public boolean f32977w;

    public boolean f32978x;

    public static final class b {

        public final Context f32979a;

        public final o0 f32980b;

        public l2.a f32981c;

        public j2.c f32982d;

        public d f32983e;

        public k2.d f32984f;

        public k1.a f32985g;

        public Looper f32986h;

        public boolean f32987i;

        public b(Context context, o0 o0Var) {
            k2.m mVar;
            DefaultTrackSelector defaultTrackSelector = new DefaultTrackSelector(context);
            d dVar = new d();
            Map<String, int[]> map = k2.m.f33711n;
            synchronized (k2.m.class) {
                if (k2.m.f33716s == null) {
                    m.a aVar = new m.a(context);
                    k2.m.f33716s = new k2.m(aVar.f33730a, aVar.f33731b, aVar.f33732c, aVar.f33733d, aVar.f33734e);
                }
                mVar = k2.m.f33716s;
            }
            Looper myLooper = Looper.myLooper();
            myLooper = myLooper == null ? Looper.getMainLooper() : myLooper;
            l2.a aVar2 = l2.a.f35299a;
            k1.a aVar3 = new k1.a(aVar2);
            this.f32979a = context;
            this.f32980b = o0Var;
            this.f32982d = defaultTrackSelector;
            this.f32983e = dVar;
            this.f32984f = mVar;
            this.f32986h = myLooper;
            this.f32985g = aVar3;
            this.f32981c = aVar2;
        }
    }

    public final class c implements m2.j, l1.n, y1.d, SurfaceHolder.Callback, TextureView.SurfaceTextureListener, e.c, w.b {
        public c(a aVar) {
        }

        @Override
        public void B(v vVar) {
        }

        @Override
        public void C(TrackGroupArray trackGroupArray, androidx.media2.exoplayer.external.trackselection.d dVar) {
        }

        @Override
        public void D(Format format) {
            Objects.requireNonNull(b0.this);
            Iterator<l1.n> it = b0.this.f32964j.iterator();
            while (it.hasNext()) {
                it.next().D(format);
            }
        }

        @Override
        public void F(int i10, long j10, long j11) {
            Iterator<l1.n> it = b0.this.f32964j.iterator();
            while (it.hasNext()) {
                it.next().F(i10, j10, j11);
            }
        }

        @Override
        public void G(Format format) {
            Objects.requireNonNull(b0.this);
            Iterator<m2.j> it = b0.this.f32963i.iterator();
            while (it.hasNext()) {
                it.next().G(format);
            }
        }

        @Override
        public void I(m1.b bVar) {
            Objects.requireNonNull(b0.this);
            Iterator<m2.j> it = b0.this.f32963i.iterator();
            while (it.hasNext()) {
                it.next().I(bVar);
            }
        }

        @Override
        public void a() {
        }

        public void b(int i10) {
            b0 b0Var = b0.this;
            b0Var.t(b0Var.e(), i10);
        }

        @Override
        public void c(int i10) {
            b0 b0Var = b0.this;
            if (b0Var.f32972r == i10) {
                return;
            }
            b0Var.f32972r = i10;
            Iterator<l1.f> it = b0Var.f32961g.iterator();
            while (it.hasNext()) {
                l1.f next = it.next();
                if (!b0.this.f32964j.contains(next)) {
                    next.c(i10);
                }
            }
            Iterator<l1.n> it2 = b0.this.f32964j.iterator();
            while (it2.hasNext()) {
                it2.next().c(i10);
            }
        }

        @Override
        public void d(boolean z10) {
            Objects.requireNonNull(b0.this);
        }

        @Override
        public void e(int i10) {
        }

        @Override
        public void f(String str, long j10, long j11) {
            Iterator<m2.j> it = b0.this.f32963i.iterator();
            while (it.hasNext()) {
                it.next().f(str, j10, j11);
            }
        }

        @Override
        public void h(String str, long j10, long j11) {
            Iterator<l1.n> it = b0.this.f32964j.iterator();
            while (it.hasNext()) {
                it.next().h(str, j10, j11);
            }
        }

        @Override
        public void i(int i10, int i11, int i12, float f10) {
            Iterator<m2.g> it = b0.this.f32960f.iterator();
            while (it.hasNext()) {
                m2.g next = it.next();
                if (!b0.this.f32963i.contains(next)) {
                    next.i(i10, i11, i12, f10);
                }
            }
            Iterator<m2.j> it2 = b0.this.f32963i.iterator();
            while (it2.hasNext()) {
                it2.next().i(i10, i11, i12, f10);
            }
        }

        @Override
        public void j(int i10, long j10) {
            Iterator<m2.j> it = b0.this.f32963i.iterator();
            while (it.hasNext()) {
                it.next().j(i10, j10);
            }
        }

        @Override
        public void k(m1.b bVar) {
            Objects.requireNonNull(b0.this);
            Iterator<l1.n> it = b0.this.f32964j.iterator();
            while (it.hasNext()) {
                it.next().k(bVar);
            }
        }

        @Override
        public void l(boolean z10, int i10) {
        }

        @Override
        public void m(f fVar) {
        }

        @Override
        public void onSurfaceTextureAvailable(SurfaceTexture surfaceTexture, int i10, int i11) {
            b0.this.s(new Surface(surfaceTexture), true);
            b0.this.m(i10, i11);
        }

        @Override
        public boolean onSurfaceTextureDestroyed(SurfaceTexture surfaceTexture) {
            b0.this.s(null, true);
            b0.this.m(0, 0);
            return true;
        }

        @Override
        public void onSurfaceTextureSizeChanged(SurfaceTexture surfaceTexture, int i10, int i11) {
            b0.this.m(i10, i11);
        }

        @Override
        public void onSurfaceTextureUpdated(SurfaceTexture surfaceTexture) {
        }

        @Override
        public void p(m1.b bVar) {
            Iterator<l1.n> it = b0.this.f32964j.iterator();
            while (it.hasNext()) {
                it.next().p(bVar);
            }
            Objects.requireNonNull(b0.this);
            Objects.requireNonNull(b0.this);
            b0.this.f32972r = 0;
        }

        @Override
        public void q(c0 c0Var, int i10) {
            if (c0Var.o() == 1) {
                Object obj = c0Var.m(0, new c0.c()).f33002b;
            }
        }

        @Override
        public void surfaceChanged(SurfaceHolder surfaceHolder, int i10, int i11, int i12) {
            b0.this.m(i11, i12);
        }

        @Override
        public void surfaceCreated(SurfaceHolder surfaceHolder) {
            b0.this.s(surfaceHolder.getSurface(), false);
        }

        @Override
        public void surfaceDestroyed(SurfaceHolder surfaceHolder) {
            b0.this.s(null, false);
            b0.this.m(0, 0);
        }

        @Override
        public void v(Surface surface) {
            b0 b0Var = b0.this;
            if (b0Var.f32968n == surface) {
                Iterator<m2.g> it = b0Var.f32960f.iterator();
                while (it.hasNext()) {
                    it.next().b();
                }
            }
            Iterator<m2.j> it2 = b0.this.f32963i.iterator();
            while (it2.hasNext()) {
                it2.next().v(surface);
            }
        }

        @Override
        public void x(m1.b bVar) {
            Iterator<m2.j> it = b0.this.f32963i.iterator();
            while (it.hasNext()) {
                it.next().x(bVar);
            }
            Objects.requireNonNull(b0.this);
            Objects.requireNonNull(b0.this);
        }

        @Override
        public void y(Metadata metadata) {
            Iterator<y1.d> it = b0.this.f32962h.iterator();
            while (it.hasNext()) {
                it.next().y(metadata);
            }
        }
    }

    public b0(Context context, o0 o0Var, j2.c cVar, d dVar, k2.d dVar2, k1.a aVar, l2.a aVar2, Looper looper) {
        androidx.media2.exoplayer.external.drm.c<n1.d> cVar2 = androidx.media2.exoplayer.external.drm.c.f10907a;
        this.f32965k = dVar2;
        this.f32966l = aVar;
        c cVar3 = new c(null);
        this.f32959e = cVar3;
        CopyOnWriteArraySet<m2.g> copyOnWriteArraySet = new CopyOnWriteArraySet<>();
        this.f32960f = copyOnWriteArraySet;
        CopyOnWriteArraySet<l1.f> copyOnWriteArraySet2 = new CopyOnWriteArraySet<>();
        this.f32961g = copyOnWriteArraySet2;
        new CopyOnWriteArraySet();
        CopyOnWriteArraySet<y1.d> copyOnWriteArraySet3 = new CopyOnWriteArraySet<>();
        this.f32962h = copyOnWriteArraySet3;
        CopyOnWriteArraySet<m2.j> copyOnWriteArraySet4 = new CopyOnWriteArraySet<>();
        this.f32963i = copyOnWriteArraySet4;
        CopyOnWriteArraySet<l1.n> copyOnWriteArraySet5 = new CopyOnWriteArraySet<>();
        this.f32964j = copyOnWriteArraySet5;
        Handler handler = new Handler(looper);
        this.f32958d = handler;
        Objects.requireNonNull(o0Var);
        Context context2 = o0Var.f11394a;
        x1.c cVar4 = x1.c.f44204a;
        y[] yVarArr = {new m2.d(context2, cVar4, 5000L, cVar2, false, handler, cVar3, 50), new l1.z(o0Var.f11394a, cVar4, cVar2, false, handler, cVar3, o0Var.f11395b), o0Var.f11396c, new androidx.media2.exoplayer.external.metadata.a(cVar3, handler.getLooper(), new i0())};
        this.f32956b = yVarArr;
        this.f32974t = 1.0f;
        this.f32972r = 0;
        this.f32973s = l1.c.f35116e;
        this.f32976v = Collections.emptyList();
        j jVar = new j(yVarArr, cVar, dVar, dVar2, aVar2, looper);
        this.f32957c = jVar;
        e.e.e(aVar.f33634e == null || aVar.f33633d.f33638a.isEmpty());
        aVar.f33634e = jVar;
        u();
        jVar.f33045h.addIfAbsent(new a.C0178a(aVar));
        b(cVar3);
        copyOnWriteArraySet4.add(aVar);
        copyOnWriteArraySet.add(aVar);
        copyOnWriteArraySet5.add(aVar);
        copyOnWriteArraySet2.add(aVar);
        copyOnWriteArraySet3.add(aVar);
        dVar2.g(handler, aVar);
        if (cVar2 instanceof androidx.media2.exoplayer.external.drm.a) {
            Objects.requireNonNull((androidx.media2.exoplayer.external.drm.a) cVar2);
            throw null;
        }
        this.f32967m = new l1.e(context, cVar3);
    }

    @Override
    public int a() {
        u();
        return this.f32957c.a();
    }

    public void b(w.b bVar) {
        u();
        this.f32957c.f33045h.addIfAbsent(new a.C0178a(bVar));
    }

    public long c() {
        u();
        return this.f32957c.c();
    }

    public long d() {
        u();
        return this.f32957c.d();
    }

    public boolean e() {
        u();
        return this.f32957c.f33048k;
    }

    public int f() {
        u();
        return this.f32957c.f33056s.f33159e;
    }

    @Override
    public long g() {
        u();
        return j1.c.b(this.f32957c.f33056s.f33166l);
    }

    @Override
    public int h() {
        u();
        j jVar = this.f32957c;
        if (jVar.m()) {
            return jVar.f33056s.f33156b.f13115c;
        }
        return -1;
    }

    @Override
    public long i() {
        u();
        return this.f32957c.i();
    }

    @Override
    public int j() {
        u();
        j jVar = this.f32957c;
        if (jVar.m()) {
            return jVar.f33056s.f33156b.f13114b;
        }
        return -1;
    }

    @Override
    public c0 k() {
        u();
        return this.f32957c.f33056s.f33155a;
    }

    @Override
    public long l() {
        u();
        return this.f32957c.l();
    }

    public final void m(int i10, int i11) {
        if (i10 == this.f32970p && i11 == this.f32971q) {
            return;
        }
        this.f32970p = i10;
        this.f32971q = i11;
        Iterator<m2.g> it = this.f32960f.iterator();
        while (it.hasNext()) {
            it.next().r(i10, i11);
        }
    }

    public void n() {
        String str;
        u();
        this.f32967m.a(true);
        j jVar = this.f32957c;
        Objects.requireNonNull(jVar);
        String hexString = Integer.toHexString(System.identityHashCode(jVar));
        String str2 = l2.v.f35380e;
        HashSet<String> hashSet = m.f33116a;
        synchronized (m.class) {
            str = m.f33117b;
        }
        StringBuilder a10 = y.g.a(y.f.a(str, y.f.a(str2, y.f.a(hexString, 36))), "Release ", hexString, " [", "ExoPlayerLib/2.10.4");
        i.d.a(a10, "] [", str2, "] [", str);
        a10.append("]");
        Log.i("ExoPlayerImpl", a10.toString());
        l lVar = jVar.f33043f;
        synchronized (lVar) {
            if (!lVar.f33099w) {
                lVar.f33083g.Y(7);
                boolean z10 = false;
                while (!lVar.f33099w) {
                    try {
                        lVar.wait();
                    } catch (InterruptedException unused) {
                        z10 = true;
                    }
                }
                if (z10) {
                    Thread.currentThread().interrupt();
                }
            }
        }
        jVar.f33042e.removeCallbacksAndMessages(null);
        jVar.f33056s = jVar.e(false, false, false, 1);
        Surface surface = this.f32968n;
        if (surface != null) {
            if (this.f32969o) {
                surface.release();
            }
            this.f32968n = null;
        }
        b2.r rVar = this.f32975u;
        if (rVar != null) {
            rVar.i(this.f32966l);
            this.f32975u = null;
        }
        if (this.f32978x) {
            Objects.requireNonNull(null);
            throw null;
        }
        this.f32965k.f(this.f32966l);
        this.f32976v = Collections.emptyList();
    }

    public final void o() {
    }

    public void p(int i10, long j10) {
        u();
        k1.a aVar = this.f32966l;
        if (!aVar.f33633d.f33645h) {
            b.a O = aVar.O();
            aVar.f33633d.f33645h = true;
            Iterator<k1.b> it = aVar.f33630a.iterator();
            while (it.hasNext()) {
                it.next().v(O);
            }
        }
        this.f32957c.q(i10, j10);
    }

    public final void q() {
        float f10 = this.f32974t * this.f32967m.f35167g;
        for (y yVar : this.f32956b) {
            if (yVar.u() == 1) {
                x b10 = this.f32957c.b(yVar);
                b10.e(2);
                b10.d(Float.valueOf(f10));
                b10.c();
            }
        }
    }

    public void r(boolean z10) {
        u();
        l1.e eVar = this.f32967m;
        int f10 = f();
        Objects.requireNonNull(eVar);
        int i10 = -1;
        if (!z10) {
            eVar.a(false);
        } else if (f10 != 1) {
            i10 = eVar.b();
        } else if (z10) {
            i10 = 1;
        }
        t(z10, i10);
    }

    public final void s(Surface surface, boolean z10) {
        ArrayList arrayList = new ArrayList();
        for (y yVar : this.f32956b) {
            if (yVar.u() == 2) {
                x b10 = this.f32957c.b(yVar);
                b10.e(1);
                e.e.e(true ^ b10.f33180h);
                b10.f33177e = surface;
                b10.c();
                arrayList.add(b10);
            }
        }
        Surface surface2 = this.f32968n;
        if (surface2 != null && surface2 != surface) {
            try {
                Iterator it = arrayList.iterator();
                while (it.hasNext()) {
                    x xVar = (x) it.next();
                    synchronized (xVar) {
                        e.e.e(xVar.f33180h);
                        e.e.e(xVar.f33178f.getLooper().getThread() != Thread.currentThread());
                        while (!xVar.f33182j) {
                            xVar.wait();
                        }
                    }
                }
            } catch (InterruptedException unused) {
                Thread.currentThread().interrupt();
            }
            if (this.f32969o) {
                this.f32968n.release();
            }
        }
        this.f32968n = surface;
        this.f32969o = z10;
    }

    public final void t(boolean z10, int i10) {
        j jVar = this.f32957c;
        boolean z11 = z10 && i10 != -1;
        ?? r62 = (!z11 || (i10 != 1)) ? 0 : 1;
        if (jVar.f33049l != r62) {
            jVar.f33049l = r62;
            ((Handler) jVar.f33043f.f33083g.f30550b).obtainMessage(1, r62, 0).sendToTarget();
        }
        if (jVar.f33048k != z11) {
            jVar.f33048k = z11;
            jVar.n(new g(z11, jVar.f33056s.f33159e, 0));
        }
    }

    public final void u() {
        if (Looper.myLooper() != this.f32957c.f33042e.getLooper()) {
            Log.w("SimpleExoPlayer", "Player is accessed on the wrong thread. See https://exoplayer.dev/issues/player-accessed-on-wrong-thread", this.f32977w ? null : new IllegalStateException());
            this.f32977w = true;
        }
    }
}