正在查看: JetMelo v1.0 应用的 PlaybackService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: JetMelo v1.0 应用的 PlaybackService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.rcmiku.music.playback;
import A0.C0050q1;
import A0.RunnableC0039n;
import C1.AbstractC0187f;
import C1.J;
import C1.K;
import C1.m0;
import C1.n0;
import E4.u;
import F1.AbstractC0340a;
import F1.AbstractC0341b;
import F1.C;
import F1.w;
import H1.q;
import J1.B;
import J1.C0365c;
import J1.C0375m;
import J1.C0381t;
import J1.C0385x;
import J1.I;
import J1.a0;
import K1.d;
import O1.C0625p;
import O5.l;
import P.C0642d;
import P.C0649g0;
import P.T;
import Q1.c;
import Q1.h;
import S1.k;
import T4.j;
import T4.o;
import T4.v;
import Z4.f;
import android.app.PendingIntent;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.Surface;
import com.rcmiku.music.MainActivity;
import e5.AbstractC1040A;
import e5.AbstractC1048I;
import i3.AbstractC1301G;
import i3.C1299E;
import i3.Z;
import j2.C1395d;
import j5.m;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.ExecutionException;
import l5.C1481e;
import m3.z;
import o4.C1735a;
import p3.AbstractC1859b;
import p3.AbstractC1860c;
import r1.e;
import t3.C2075a;
import t3.C2077c;
import z2.A0;
import z2.C2485a;
import z2.C2487b;
import z2.C2488b0;
import z2.C2500h0;
import z2.C2512n0;
import z2.C2530x;
import z2.InterfaceC2528w;
import z2.Y;
import z3.g;
public final class PlaybackService extends A0 {
public static final f[] f12655s;
public C2500h0 f12656n;
public final C0649g0 f12657o = C0642d.L(u.f3488g, T.f9002l);
public final d f12658p;
public final k f12659q;
public final C1735a f12660r;
static {
o oVar = new o(PlaybackService.class, "use40DpIcon", "getUse40DpIcon()Z", 0);
v.f10061a.getClass();
f12655s = new f[]{oVar, new o(PlaybackService.class, "audioQuality", "getAudioQuality()Lcom/rcmiku/ncmapi/api/player/SongLevel;", 0)};
}
public PlaybackService() {
f[] fVarArr = g.f21378a;
e eVar = AbstractC1860c.f16667b;
j.f(eVar, "key");
this.f12658p = new d(17, this, eVar);
E3.f fVar = E3.f.f3466h;
this.f12659q = new k(this, AbstractC1860c.f16670e);
C1481e c1481e = AbstractC1048I.f12909a;
C1735a c6 = AbstractC1040A.c(m.f14367a);
this.f12660r = new C1735a(c6.f16248h.h(AbstractC1040A.e()));
}
@Override
public final void f(C2500h0 c2500h0, boolean z5) {
C2530x a3;
AbstractC1301G abstractC1301G;
j.f(c2500h0, "session");
l();
C2488b0 c6 = c();
C2530x c2530x = null;
if (!c6.f21035g.e(c2500h0) || (a3 = c6.a(c2500h0)) == null || a3.v().p()) {
int i6 = C.f3818a;
A0 a02 = c6.f21035g;
if (i6 >= 24) {
a02.stopForeground(1);
} else {
a02.stopForeground(true);
}
c6.f21045q = false;
E5.u uVar = c6.f21044p;
if (uVar != null) {
c6.f21038j.f11224b.cancel(null, uVar.f3572b);
c6.f21043o++;
c6.f21044p = null;
return;
}
return;
}
int i7 = c6.f21043o + 1;
c6.f21043o = i7;
z zVar = (z) c6.f21042n.get(c2500h0);
if (zVar != null && zVar.isDone()) {
try {
c2530x = (C2530x) l.A(zVar);
} catch (ExecutionException unused) {
}
}
if (c2530x != null) {
c2530x.I();
InterfaceC2528w interfaceC2528w = c2530x.f21329i;
if (interfaceC2528w.x()) {
abstractC1301G = interfaceC2528w.B();
} else {
C1299E c1299e = AbstractC1301G.f13815h;
abstractC1301G = Z.f13852k;
}
} else {
C1299E c1299e2 = AbstractC1301G.f13815h;
abstractC1301G = Z.f13852k;
}
C.F(new Handler(((B) c2500h0.a()).f4980z), new Y(c6, c2500h0, abstractC1301G, new C0385x(i7, c6, c2500h0), z5, 0));
}
public final C2487b i() {
C2485a c2485a = new C2485a(0);
c2485a.f21006d = k() ? 2131099656 : 2131099655;
c2485a.f21008f = "like";
c2485a.c(AbstractC1859b.f16664a);
return c2485a.a();
}
public final C2487b j() {
C2485a c2485a = new C2485a(0);
c2485a.f21006d = k() ? 2131099663 : 2131099662;
c2485a.f21008f = "shuffle";
c2485a.c(AbstractC1859b.f16665b);
return c2485a.a();
}
public final boolean k() {
f fVar = f12655s[0];
d dVar = this.f12658p;
dVar.getClass();
j.f(fVar, "<unused var>");
Object a3 = g.a(g.b((PlaybackService) dVar.f5494h), (e) dVar.f5495i);
if (a3 == null) {
a3 = Boolean.FALSE;
}
return ((Boolean) a3).booleanValue();
}
public final void l() {
C2487b i6;
C2487b a3;
J x5;
String str;
C2500h0 c2500h0 = this.f12656n;
if (c2500h0 != null) {
List list = (List) this.f12657o.getValue();
C2500h0 c2500h02 = this.f12656n;
if (E4.l.j0(list, (c2500h02 == null || (x5 = ((AbstractC0187f) c2500h02.a()).x()) == null || (str = x5.f1781a) == null) ? null : Long.valueOf(Long.parseLong(str)))) {
C2485a c2485a = new C2485a(0);
c2485a.f21006d = k() ? 2131099658 : 2131099657;
c2485a.f21008f = "like_on";
c2485a.c(AbstractC1859b.f16664a);
i6 = c2485a.a();
} else {
i6 = i();
}
C2500h0 c2500h03 = this.f12656n;
if (c2500h03 != null) {
B b2 = (B) c2500h03.a();
b2.L0();
if (!b2.f4936M) {
a3 = j();
Z r6 = AbstractC1301G.r(i6, a3);
AbstractC0341b.d(r6, "layout must not be null");
AbstractC1301G m2 = AbstractC1301G.m(r6);
C2512n0 c2512n0 = c2500h0.f21124a;
c2512n0.f21220B = m2;
c2512n0.f21242t.f21078i = m2;
c2512n0.c(new C0381t(16, m2));
}
}
C2485a c2485a2 = new C2485a(0);
c2485a2.f21006d = k() ? 2131099665 : 2131099664;
c2485a2.f21008f = "shuffle_on";
c2485a2.c(AbstractC1859b.f16665b);
a3 = c2485a2.a();
Z r62 = AbstractC1301G.r(i6, a3);
AbstractC0341b.d(r62, "layout must not be null");
AbstractC1301G m22 = AbstractC1301G.m(r62);
C2512n0 c2512n02 = c2500h0.f21124a;
c2512n02.f21220B = m22;
c2512n02.f21242t.f21078i = m22;
c2512n02.c(new C0381t(16, m22));
}
}
@Override
public final void onCreate() {
boolean isActivity;
int i6 = 1;
super.onCreate();
l2.j jVar = new l2.j(this, new C1395d(7));
jVar.f14874g = 2131099661;
synchronized (this.f20763g) {
try {
this.f20768l = jVar;
} catch (Throwable th) {
th = th;
while (true) {
try {
throw th;
} catch (Throwable th2) {
th = th2;
}
}
}
}
C0375m c0375m = new C0375m(this, new C2075a(this));
C0625p c0625p = new C0625p(new D.v(14, new q(0), new C2075a(this)), new S1.l());
AbstractC0341b.f(!c0375m.f5287t);
c0375m.f5271d = new C0365c(i6, c0625p);
AbstractC0341b.f(!c0375m.f5287t);
c0375m.f5287t = true;
B b2 = new B(c0375m);
m0 m0Var = new m0();
m0Var.f2091a = 1;
m0Var.f2092b = true;
n0 n0Var = new n0(m0Var);
P1.k kVar = (P1.k) b2.n0();
kVar.getClass();
P1.j jVar2 = new P1.j(kVar);
jVar2.f2135u = n0Var;
b2.E0(new P1.k(jVar2));
b2.C0(2);
Bundle bundle = new Bundle();
Bundle bundle2 = new Bundle();
C1299E c1299e = AbstractC1301G.f13815h;
Z z5 = Z.f13852k;
PendingIntent activity = PendingIntent.getActivity(this, 0, new Intent(this, (Class<?>) MainActivity.class), 201326592);
if (C.f3818a >= 31) {
isActivity = activity.isActivity();
AbstractC0341b.b(isActivity);
}
activity.getClass();
this.f12656n = new C2500h0(this, b2, activity, AbstractC1301G.m(AbstractC1301G.r(i(), j())), z5, z5, new o3.j(5, this), bundle, bundle2, new k(26, new H1.k(this)));
AbstractC1040A.w(this.f12660r, null, null, new t3.e(this, null), 3);
AbstractC1040A.w(this.f12660r, null, null, new C2077c(this, null), 3);
}
@Override
public final void onDestroy() {
String str;
boolean z5;
int i6 = 7;
C2500h0 c2500h0 = this.f12656n;
if (c2500h0 != null) {
B b2 = (B) c2500h0.a();
b2.getClass();
StringBuilder sb = new StringBuilder("Release ");
sb.append(Integer.toHexString(System.identityHashCode(b2)));
sb.append(" [AndroidXMedia3/1.6.0] [");
sb.append(C.f3819b);
sb.append("] [");
HashSet hashSet = K.f1787a;
synchronized (K.class) {
str = K.f1788b;
}
sb.append(str);
sb.append("]");
AbstractC0340a.h("ExoPlayerImpl", sb.toString());
b2.L0();
b2.G.g();
b2.H.f(false);
b2.I.f(false);
I i7 = b2.f4972r;
synchronized (i7) {
if (!i7.J && i7.f5042p.getThread().isAlive()) {
i7.f5040n.e(7);
i7.t0(new C0365c(3, i7), i7.f5005A);
z5 = i7.J;
}
z5 = true;
}
if (!z5) {
b2.f4973s.e(10, new C0050q1(19));
}
b2.f4973s.d();
b2.f4970p.f3892a.removeCallbacksAndMessages(null);
Q1.e eVar = b2.f4928A;
K1.g gVar = b2.f4979y;
CopyOnWriteArrayList copyOnWriteArrayList = ((h) eVar).f9574c.f9557a;
Iterator it = copyOnWriteArrayList.iterator();
while (it.hasNext()) {
c cVar = (c) it.next();
if (cVar.f9555b == gVar) {
cVar.f9556c = true;
copyOnWriteArrayList.remove(cVar);
}
}
a0 a0Var = b2.f4962j0;
if (a0Var.f5167p) {
b2.f4962j0 = a0Var.a();
}
a0 p02 = B.p0(b2.f4962j0, 1);
b2.f4962j0 = p02;
a0 c6 = p02.c(p02.f5153b);
b2.f4962j0 = c6;
c6.f5168q = c6.f5170s;
b2.f4962j0.f5169r = 0L;
K1.g gVar2 = b2.f4979y;
w wVar = gVar2.f5507h;
AbstractC0341b.g(wVar);
wVar.c(new RunnableC0039n(i6, gVar2));
Surface surface = b2.f4945V;
if (surface != null) {
surface.release();
b2.f4945V = null;
}
b2.f4951b0 = E1.c.f3035c;
b2.f4955f0 = true;
try {
synchronized (C2500h0.f21122b) {
C2500h0.f21123c.remove(c2500h0.f21124a.f21231i);
}
c2500h0.f21124a.q();
} catch (Exception unused) {
}
this.f12656n = null;
}
super.onDestroy();
}
@Override
public final void onTaskRemoved(Intent intent) {
C2488b0 c6 = c();
c6.f21047s = false;
Handler handler = c6.f21039k;
if (handler.hasMessages(1)) {
handler.removeMessages(1);
A0 a02 = c6.f21035g;
ArrayList d6 = a02.d();
for (int i6 = 0; i6 < d6.size(); i6++) {
a02.g((C2500h0) d6.get(i6), false);
}
}
ArrayList d7 = d();
for (int i7 = 0; i7 < d7.size(); i7++) {
((B) ((C2500h0) d7.get(i7)).a()).A0(false);
}
stopSelf();
}
}