导航菜单

页面标题

页面副标题

BetterTogether v3.0.0 - e0.java 源代码

正在查看: BetterTogether v3.0.0 应用的 e0.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package k5;

import android.content.Context;
import android.os.Handler;
import android.os.Looper;
import android.util.Log;
import android.view.Surface;
import h.e;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.CopyOnWriteArraySet;

public final class e0 extends h3.h {
    public final CopyOnWriteArraySet M;
    public final CopyOnWriteArraySet N;
    public final CopyOnWriteArraySet O;
    public final j6.d P;
    public final l5.c Q;
    public final m5.f R;
    public Surface S;
    public boolean T;
    public int U;
    public int V;
    public int W;
    public m5.c X;
    public float Y;
    public b6.a Z;

    public List f11320a0;

    public boolean f11321b0;

    public final a0[] f11322i;

    public final k f11323v;

    public final Handler f11324w;

    public final CopyOnWriteArraySet f11325x;

    public final CopyOnWriteArraySet f11326y;

    public e0(Context context, e eVar, i6.h hVar, e eVar2, j6.n nVar, nh.f fVar, Looper looper) {
        super(1);
        this.P = nVar;
        d0 d0Var = new d0(this);
        CopyOnWriteArraySet copyOnWriteArraySet = new CopyOnWriteArraySet();
        this.f11325x = copyOnWriteArraySet;
        CopyOnWriteArraySet copyOnWriteArraySet2 = new CopyOnWriteArraySet();
        this.f11326y = copyOnWriteArraySet2;
        new CopyOnWriteArraySet();
        CopyOnWriteArraySet copyOnWriteArraySet3 = new CopyOnWriteArraySet();
        this.M = copyOnWriteArraySet3;
        CopyOnWriteArraySet copyOnWriteArraySet4 = new CopyOnWriteArraySet();
        this.N = copyOnWriteArraySet4;
        CopyOnWriteArraySet copyOnWriteArraySet5 = new CopyOnWriteArraySet();
        this.O = copyOnWriteArraySet5;
        Handler handler = new Handler(looper);
        this.f11324w = handler;
        a0[] a0VarArr = {new l6.f((Context) eVar.f8264e, handler, d0Var), new m5.g0((Context) eVar.f8264e, handler, d0Var, (m5.r) eVar.f8265i), (o6.x) eVar.f8266v, new y5.b(d0Var, handler.getLooper(), new kh.a())};
        this.f11322i = a0VarArr;
        this.Y = 1.0f;
        this.W = 0;
        this.X = m5.c.f13387e;
        this.f11320a0 = Collections.emptyList();
        k kVar = new k(a0VarArr, hVar, eVar2, nVar, looper);
        this.f11323v = kVar;
        l5.c cVar = new l5.c(kVar);
        this.Q = cVar;
        G();
        CopyOnWriteArrayList copyOnWriteArrayList = kVar.M;
        copyOnWriteArrayList.addIfAbsent(new a(cVar));
        G();
        copyOnWriteArrayList.addIfAbsent(new a(d0Var));
        copyOnWriteArraySet4.add(cVar);
        copyOnWriteArraySet.add(cVar);
        copyOnWriteArraySet5.add(cVar);
        copyOnWriteArraySet2.add(cVar);
        copyOnWriteArraySet3.add(cVar);
        r8.c cVar2 = nVar.a;
        cVar2.getClass();
        cVar2.A(cVar);
        ((CopyOnWriteArrayList) cVar2.e).add(new k6.d(handler, cVar));
        this.R = new m5.f(context, d0Var);
    }

    public final void A() {
        String str;
        G();
        this.R.a(true);
        k kVar = this.f11323v;
        kVar.getClass();
        String hexString = Integer.toHexString(System.identityHashCode(kVar));
        String str2 = k6.t.e;
        HashSet hashSet = p.f11391a;
        synchronized (p.class) {
            str = p.f11392b;
        }
        StringBuilder sb2 = new StringBuilder(a0.g0.c(str, a0.g0.c(str2, a0.g0.c(hexString, 36))));
        sb2.append("Release ");
        sb2.append(hexString);
        sb2.append(" [ExoPlayerLib/2.10.1] [");
        sb2.append(str2);
        sb2.append("] [");
        sb2.append(str);
        sb2.append("]");
        Log.i("ExoPlayerImpl", sb2.toString());
        o oVar = kVar.f11361x;
        synchronized (oVar) {
            if (!oVar.f11374b0) {
                oVar.f11390y.b(7);
                boolean z4 = false;
                while (!oVar.f11374b0) {
                    try {
                        oVar.wait();
                    } catch (InterruptedException unused) {
                        z4 = true;
                    }
                }
                if (z4) {
                    Thread.currentThread().interrupt();
                }
            }
        }
        kVar.f11360w.removeCallbacksAndMessages(null);
        kVar.X = kVar.y(1, false, false);
        Surface surface = this.S;
        if (surface != null) {
            if (this.T) {
                surface.release();
            }
            this.S = null;
        }
        b6.a aVar = this.Z;
        if (aVar != null) {
            aVar.k(this.Q);
            this.Z = null;
        }
        this.P.a.A(this.Q);
        this.f11320a0 = Collections.emptyList();
    }

    public final void B(int i10, long j10) {
        G();
        l5.c cVar = this.Q;
        l5.b bVar = cVar.f12814v;
        if (!bVar.f12804a) {
            cVar.K();
            bVar.f12804a = true;
            Iterator it = cVar.f12811d.iterator();
            if (it.hasNext()) {
                g0.b.t(it.next());
                throw null;
            }
        }
        this.f11323v.D(i10, j10);
    }

    public final void C() {
        float f10;
        float f11 = this.Y;
        m5.f fVar = this.R;
        switch (fVar.f13427a) {
            case 0:
                f10 = fVar.f13431e;
                break;
            default:
                f10 = fVar.f13431e;
                break;
        }
        float f12 = f10 * f11;
        for (a0 a0Var : this.f11322i) {
            if (((c) a0Var).f11302d == 1) {
                z w4 = this.f11323v.w(a0Var);
                g3.g.n(!w4.f11452f);
                w4.f11449c = 2;
                Float valueOf = Float.valueOf(f12);
                g3.g.n(true ^ w4.f11452f);
                w4.f11450d = valueOf;
                w4.b();
            }
        }
    }

    public final void D(boolean r4) {
        throw new UnsupportedOperationException("Method not decompiled: k5.e0.D(boolean):void");
    }

    public final void E(Surface surface, boolean z4) {
        ArrayList arrayList = new ArrayList();
        for (a0 a0Var : this.f11322i) {
            if (((c) a0Var).f11302d == 2) {
                z w4 = this.f11323v.w(a0Var);
                g3.g.n(!w4.f11452f);
                w4.f11449c = 1;
                g3.g.n(true ^ w4.f11452f);
                w4.f11450d = surface;
                w4.b();
                arrayList.add(w4);
            }
        }
        Surface surface2 = this.S;
        if (surface2 != null && surface2 != surface) {
            try {
                Iterator it = arrayList.iterator();
                while (it.hasNext()) {
                    z zVar = (z) it.next();
                    synchronized (zVar) {
                        g3.g.n(zVar.f11452f);
                        g3.g.n(zVar.f11451e.getLooper().getThread() != Thread.currentThread());
                        while (!zVar.f11453g) {
                            zVar.wait();
                        }
                    }
                }
            } catch (InterruptedException unused) {
                Thread.currentThread().interrupt();
            }
            if (this.T) {
                this.S.release();
            }
        }
        this.S = surface;
        this.T = z4;
    }

    public final void F(int i10, boolean z4) {
        boolean z10 = z4 && i10 != -1;
        boolean z11 = i10 != 1;
        k kVar = this.f11323v;
        kVar.getClass();
        ?? r52 = (!z10 || z11) ? 0 : 1;
        if (kVar.Q != r52) {
            kVar.Q = r52;
            kVar.f11361x.f11390y.f11509a.obtainMessage(1, r52, 0).sendToTarget();
        }
        if (kVar.P != z10) {
            kVar.P = z10;
            kVar.C(new c3.f(z10, kVar.X.f11434f));
        }
    }

    public final void G() {
        if (Looper.myLooper() != this.f11323v.f11360w.getLooper()) {
            Log.w("SimpleExoPlayer", "Player is accessed on the wrong thread. See https://exoplayer.dev/troubleshooting.html#what-do-player-is-accessed-on-the-wrong-thread-warnings-mean", this.f11321b0 ? null : new IllegalStateException());
            this.f11321b0 = true;
        }
    }

    @Override
    public final long h() {
        G();
        return this.f11323v.h();
    }

    @Override
    public final int i() {
        G();
        return this.f11323v.i();
    }

    @Override
    public final int j() {
        G();
        return this.f11323v.j();
    }

    @Override
    public final long k() {
        G();
        return this.f11323v.k();
    }

    @Override
    public final i0 l() {
        G();
        return this.f11323v.X.f11429a;
    }

    @Override
    public final int m() {
        G();
        return this.f11323v.m();
    }

    @Override
    public final long o() {
        G();
        return this.f11323v.o();
    }

    public final i6.n w() {
        G();
        return this.f11323v.X.f11437i.f8939c;
    }

    public final boolean x() {
        G();
        return this.f11323v.P;
    }

    public final int y() {
        G();
        return this.f11323v.X.f11434f;
    }

    public final void z(int i10, int i11) {
        if (i10 == this.U && i11 == this.V) {
            return;
        }
        this.U = i10;
        this.V = i11;
        Iterator it = this.f11325x.iterator();
        while (it.hasNext()) {
            l5.c cVar = (l5.c) it.next();
            cVar.L();
            Iterator it2 = cVar.f12811d.iterator();
            if (it2.hasNext()) {
                g0.b.t(it2.next());
                throw null;
            }
        }
    }
}