正在查看: 迅 唔 v1.3.9 应用的 p.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 迅 唔 v1.3.9 应用的 p.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package v;
import android.app.Notification;
import android.app.Notification$CallStyle;
import android.app.PendingIntent;
import android.app.Person;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.drawable.Icon;
import android.os.Build;
import android.os.Bundle;
import android.os.Parcelable;
import android.text.SpannableStringBuilder;
import android.text.style.ForegroundColorSpan;
import android.util.Log;
import android.widget.RemoteViews;
import androidx.core.graphics.drawable.IconCompat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
public class p {
public static class a {
public final Bundle f10488a;
public IconCompat f10489b;
public final u0[] f10490c;
public final u0[] f10491d;
public boolean f10492e;
public boolean f10493f;
public final int f10494g;
public final boolean f10495h;
@Deprecated
public int f10496i;
public CharSequence f10497j;
public PendingIntent f10498k;
public boolean f10499l;
public static final class C0159a {
public final IconCompat f10500a;
public final CharSequence f10501b;
public final PendingIntent f10502c;
public boolean f10503d;
public final Bundle f10504e;
public ArrayList<u0> f10505f;
public int f10506g;
public boolean f10507h;
public boolean f10508i;
public boolean f10509j;
public C0159a(IconCompat iconCompat, CharSequence charSequence, PendingIntent pendingIntent) {
this(iconCompat, charSequence, pendingIntent, new Bundle(), null, true, 0, true, false, false);
}
public C0159a(IconCompat iconCompat, CharSequence charSequence, PendingIntent pendingIntent, Bundle bundle, u0[] u0VarArr, boolean z7, int i8, boolean z8, boolean z9, boolean z10) {
this.f10503d = true;
this.f10507h = true;
this.f10500a = iconCompat;
this.f10501b = c.c(charSequence);
this.f10502c = pendingIntent;
this.f10504e = bundle;
this.f10505f = u0VarArr == null ? null : new ArrayList<>(Arrays.asList(u0VarArr));
this.f10503d = z7;
this.f10506g = i8;
this.f10507h = z8;
this.f10508i = z9;
this.f10509j = z10;
}
public a a() {
b();
ArrayList arrayList = new ArrayList();
ArrayList arrayList2 = new ArrayList();
ArrayList<u0> arrayList3 = this.f10505f;
if (arrayList3 != null) {
Iterator<u0> it = arrayList3.iterator();
while (it.hasNext()) {
u0 next = it.next();
if (next.j()) {
arrayList.add(next);
} else {
arrayList2.add(next);
}
}
}
u0[] u0VarArr = arrayList.isEmpty() ? null : (u0[]) arrayList.toArray(new u0[arrayList.size()]);
return new a(this.f10500a, this.f10501b, this.f10502c, this.f10504e, arrayList2.isEmpty() ? null : (u0[]) arrayList2.toArray(new u0[arrayList2.size()]), u0VarArr, this.f10503d, this.f10506g, this.f10507h, this.f10508i, this.f10509j);
}
public final void b() {
if (this.f10508i && this.f10502c == null) {
throw new NullPointerException("Contextual Actions must contain a valid PendingIntent");
}
}
}
public a(IconCompat iconCompat, CharSequence charSequence, PendingIntent pendingIntent, Bundle bundle, u0[] u0VarArr, u0[] u0VarArr2, boolean z7, int i8, boolean z8, boolean z9, boolean z10) {
this.f10493f = true;
this.f10489b = iconCompat;
if (iconCompat != null && iconCompat.l() == 2) {
this.f10496i = iconCompat.j();
}
this.f10497j = c.c(charSequence);
this.f10498k = pendingIntent;
this.f10488a = bundle == null ? new Bundle() : bundle;
this.f10490c = u0VarArr;
this.f10491d = u0VarArr2;
this.f10492e = z7;
this.f10494g = i8;
this.f10493f = z8;
this.f10495h = z9;
this.f10499l = z10;
}
public PendingIntent a() {
return this.f10498k;
}
public boolean b() {
return this.f10492e;
}
public Bundle c() {
return this.f10488a;
}
public IconCompat d() {
int i8;
if (this.f10489b == null && (i8 = this.f10496i) != 0) {
this.f10489b = IconCompat.h(null, "", i8);
}
return this.f10489b;
}
public u0[] e() {
return this.f10490c;
}
public int f() {
return this.f10494g;
}
public boolean g() {
return this.f10493f;
}
public CharSequence h() {
return this.f10497j;
}
public boolean i() {
return this.f10499l;
}
public boolean j() {
return this.f10495h;
}
}
public static final class b {
public static Notification.BubbleMetadata a(b bVar) {
return null;
}
}
public static class c {
public boolean A;
public boolean B;
public String C;
public Bundle D;
public Notification G;
public RemoteViews H;
public RemoteViews I;
public RemoteViews J;
public String K;
public String M;
public long N;
public boolean Q;
public Notification R;
public boolean S;
public Object T;
@Deprecated
public ArrayList<String> U;
public Context f10510a;
public CharSequence f10514e;
public CharSequence f10515f;
public PendingIntent f10516g;
public PendingIntent f10517h;
public RemoteViews f10518i;
public IconCompat f10519j;
public CharSequence f10520k;
public int f10521l;
public int f10522m;
public boolean f10524o;
public e f10525p;
public CharSequence f10526q;
public CharSequence f10527r;
public CharSequence[] f10528s;
public int f10529t;
public int f10530u;
public boolean f10531v;
public String f10532w;
public boolean f10533x;
public String f10534y;
public ArrayList<a> f10511b = new ArrayList<>();
public ArrayList<s0> f10512c = new ArrayList<>();
public ArrayList<a> f10513d = new ArrayList<>();
public boolean f10523n = true;
public boolean f10535z = false;
public int E = 0;
public int F = 0;
public int L = 0;
public int O = 0;
public int P = 0;
public c(Context context, String str) {
Notification notification = new Notification();
this.R = notification;
this.f10510a = context;
this.K = str;
notification.when = System.currentTimeMillis();
this.R.audioStreamType = -1;
this.f10522m = 0;
this.U = new ArrayList<>();
this.Q = true;
}
public static CharSequence c(CharSequence charSequence) {
return (charSequence != null && charSequence.length() > 5120) ? charSequence.subSequence(0, 5120) : charSequence;
}
public Notification a() {
return new t(this).c();
}
public Bundle b() {
if (this.D == null) {
this.D = new Bundle();
}
return this.D;
}
public c d(boolean z7) {
j(16, z7);
return this;
}
public c e(int i8) {
this.E = i8;
return this;
}
public c f(PendingIntent pendingIntent) {
this.f10516g = pendingIntent;
return this;
}
public c g(CharSequence charSequence) {
this.f10515f = c(charSequence);
return this;
}
public c h(CharSequence charSequence) {
this.f10514e = c(charSequence);
return this;
}
public c i(int i8) {
Notification notification = this.R;
notification.defaults = i8;
if ((i8 & 4) != 0) {
notification.flags |= 1;
}
return this;
}
public final void j(int i8, boolean z7) {
Notification notification;
int i9;
if (z7) {
notification = this.R;
i9 = i8 | notification.flags;
} else {
notification = this.R;
i9 = (~i8) & notification.flags;
}
notification.flags = i9;
}
public c k(boolean z7) {
j(2, z7);
return this;
}
public c l(boolean z7) {
j(8, z7);
return this;
}
public c m(int i8) {
this.f10522m = i8;
return this;
}
public c n(int i8) {
this.R.icon = i8;
return this;
}
public c o(long j8) {
this.R.when = j8;
return this;
}
}
public static class d extends e {
public int f10536e;
public s0 f10537f;
public PendingIntent f10538g;
public PendingIntent f10539h;
public PendingIntent f10540i;
public boolean f10541j;
public Integer f10542k;
public Integer f10543l;
public IconCompat f10544m;
public CharSequence f10545n;
public static class a {
public static Notification.Builder a(Notification.Builder builder, String str) {
return builder.addPerson(str);
}
public static Notification.Builder b(Notification.Builder builder, String str) {
return builder.setCategory(str);
}
}
public static class b {
public static Parcelable a(Icon icon) {
return icon;
}
public static Notification.Action.Builder b(Icon icon, CharSequence charSequence, PendingIntent pendingIntent) {
return new Notification.Action.Builder(icon, charSequence, pendingIntent);
}
public static void c(Notification.Builder builder, Icon icon) {
builder.setLargeIcon(icon);
}
}
public static class c {
public static Notification.Builder a(Notification.Builder builder, Person person) {
Notification.Builder addPerson;
addPerson = builder.addPerson(person);
return addPerson;
}
public static Parcelable b(Person person) {
return person;
}
}
public static class C0160d {
public static Notification$CallStyle a(Person person, PendingIntent pendingIntent, PendingIntent pendingIntent2) {
return Notification$CallStyle.forIncomingCall(person, pendingIntent, pendingIntent2);
}
public static Notification$CallStyle b(Person person, PendingIntent pendingIntent) {
return Notification$CallStyle.forOngoingCall(person, pendingIntent);
}
public static Notification$CallStyle c(Person person, PendingIntent pendingIntent, PendingIntent pendingIntent2) {
return Notification$CallStyle.forScreeningCall(person, pendingIntent, pendingIntent2);
}
public static Notification$CallStyle d(Notification$CallStyle notification$CallStyle, int i8) {
return notification$CallStyle.setAnswerButtonColorHint(i8);
}
public static Notification.Action.Builder e(Notification.Action.Builder builder, boolean z7) {
Notification.Action.Builder authenticationRequired;
authenticationRequired = builder.setAuthenticationRequired(z7);
return authenticationRequired;
}
public static Notification$CallStyle f(Notification$CallStyle notification$CallStyle, int i8) {
return notification$CallStyle.setDeclineButtonColorHint(i8);
}
public static Notification$CallStyle g(Notification$CallStyle notification$CallStyle, boolean z7) {
return notification$CallStyle.setIsVideo(z7);
}
public static Notification$CallStyle h(Notification$CallStyle notification$CallStyle, Icon icon) {
return notification$CallStyle.setVerificationIcon(icon);
}
public static Notification$CallStyle i(Notification$CallStyle notification$CallStyle, CharSequence charSequence) {
return notification$CallStyle.setVerificationText(charSequence);
}
}
@Override
public void a(Bundle bundle) {
Parcelable q7;
String str;
Parcelable i8;
String str2;
super.a(bundle);
bundle.putInt("android.callType", this.f10536e);
bundle.putBoolean("android.callIsVideo", this.f10541j);
s0 s0Var = this.f10537f;
if (s0Var != null) {
if (Build.VERSION.SDK_INT >= 28) {
i8 = c.b(s0Var.h());
str2 = "android.callPerson";
} else {
i8 = s0Var.i();
str2 = "android.callPersonCompat";
}
bundle.putParcelable(str2, i8);
}
IconCompat iconCompat = this.f10544m;
if (iconCompat != null) {
if (Build.VERSION.SDK_INT >= 23) {
q7 = b.a(iconCompat.s(this.f10546a.f10510a));
str = "android.verificationIcon";
} else {
q7 = iconCompat.q();
str = "android.verificationIconCompat";
}
bundle.putParcelable(str, q7);
}
bundle.putCharSequence("android.verificationText", this.f10545n);
bundle.putParcelable("android.answerIntent", this.f10538g);
bundle.putParcelable("android.declineIntent", this.f10539h);
bundle.putParcelable("android.hangUpIntent", this.f10540i);
Integer num = this.f10542k;
if (num != null) {
bundle.putInt("android.answerColor", num.intValue());
}
Integer num2 = this.f10543l;
if (num2 != null) {
bundle.putInt("android.declineColor", num2.intValue());
}
}
@Override
public void b(o oVar) {
int i8 = Build.VERSION.SDK_INT;
CharSequence charSequence = null;
r1 = null;
Notification$CallStyle a8 = null;
charSequence = null;
if (i8 < 31) {
Notification.Builder a9 = oVar.a();
s0 s0Var = this.f10537f;
a9.setContentTitle(s0Var != null ? s0Var.c() : null);
Bundle bundle = this.f10546a.D;
if (bundle != null && bundle.containsKey("android.text")) {
charSequence = this.f10546a.D.getCharSequence("android.text");
}
if (charSequence == null) {
charSequence = h();
}
a9.setContentText(charSequence);
s0 s0Var2 = this.f10537f;
if (s0Var2 != null) {
if (i8 >= 23 && s0Var2.a() != null) {
b.c(a9, this.f10537f.a().s(this.f10546a.f10510a));
}
if (i8 >= 28) {
c.a(a9, this.f10537f.h());
} else {
a.a(a9, this.f10537f.d());
}
}
a.b(a9, "call");
return;
}
int i9 = this.f10536e;
if (i9 == 1) {
a8 = C0160d.a(this.f10537f.h(), this.f10539h, this.f10538g);
} else if (i9 == 2) {
a8 = C0160d.b(this.f10537f.h(), this.f10540i);
} else if (i9 == 3) {
a8 = C0160d.c(this.f10537f.h(), this.f10540i, this.f10538g);
} else if (Log.isLoggable("NotifCompat", 3)) {
Log.d("NotifCompat", "Unrecognized call type in CallStyle: " + String.valueOf(this.f10536e));
}
if (a8 != null) {
a8.setBuilder(oVar.a());
Integer num = this.f10542k;
if (num != null) {
C0160d.d(a8, num.intValue());
}
Integer num2 = this.f10543l;
if (num2 != null) {
C0160d.f(a8, num2.intValue());
}
C0160d.i(a8, this.f10545n);
IconCompat iconCompat = this.f10544m;
if (iconCompat != null) {
C0160d.h(a8, iconCompat.s(this.f10546a.f10510a));
}
C0160d.g(a8, this.f10541j);
}
}
@Override
public String c() {
return "androidx.core.app.NotificationCompat$CallStyle";
}
public ArrayList<a> g() {
a l8 = l();
a k8 = k();
ArrayList<a> arrayList = new ArrayList<>(3);
arrayList.add(l8);
int i8 = 2;
ArrayList<a> arrayList2 = this.f10546a.f10511b;
if (arrayList2 != null) {
for (a aVar : arrayList2) {
if (aVar.j()) {
arrayList.add(aVar);
} else if (!i(aVar) && i8 > 1) {
arrayList.add(aVar);
i8--;
}
if (k8 != null && i8 == 1) {
arrayList.add(k8);
i8--;
}
}
}
if (k8 != null && i8 >= 1) {
arrayList.add(k8);
}
return arrayList;
}
public final String h() {
Resources resources;
int i8;
int i9 = this.f10536e;
if (i9 == 1) {
resources = this.f10546a.f10510a.getResources();
i8 = u.e.f9818e;
} else if (i9 == 2) {
resources = this.f10546a.f10510a.getResources();
i8 = u.e.f9819f;
} else {
if (i9 != 3) {
return null;
}
resources = this.f10546a.f10510a.getResources();
i8 = u.e.f9820g;
}
return resources.getString(i8);
}
public final boolean i(a aVar) {
return aVar != null && aVar.c().getBoolean("key_action_priority");
}
public final a j(int i8, int i9, Integer num, int i10, PendingIntent pendingIntent) {
if (num == null) {
num = Integer.valueOf(w.a.b(this.f10546a.f10510a, i10));
}
SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder();
spannableStringBuilder.append((CharSequence) this.f10546a.f10510a.getResources().getString(i9));
spannableStringBuilder.setSpan(new ForegroundColorSpan(num.intValue()), 0, spannableStringBuilder.length(), 18);
a a8 = new a.C0159a(IconCompat.g(this.f10546a.f10510a, i8), spannableStringBuilder, pendingIntent).a();
a8.c().putBoolean("key_action_priority", true);
return a8;
}
public final a k() {
int i8 = u.c.f9786b;
int i9 = u.c.f9785a;
PendingIntent pendingIntent = this.f10538g;
if (pendingIntent == null) {
return null;
}
boolean z7 = this.f10541j;
return j(z7 ? i8 : i9, z7 ? u.e.f9815b : u.e.f9814a, this.f10542k, u.b.f9783a, pendingIntent);
}
public final a l() {
int i8;
Integer num;
int i9;
int i10 = u.c.f9787c;
PendingIntent pendingIntent = this.f10539h;
if (pendingIntent == null) {
i8 = u.e.f9817d;
num = this.f10543l;
i9 = u.b.f9784b;
pendingIntent = this.f10540i;
} else {
i8 = u.e.f9816c;
num = this.f10543l;
i9 = u.b.f9784b;
}
return j(i10, i8, num, i9, pendingIntent);
}
}
public static abstract class e {
public c f10546a;
public CharSequence f10547b;
public CharSequence f10548c;
public boolean f10549d = false;
public void a(Bundle bundle) {
if (this.f10549d) {
bundle.putCharSequence("android.summaryText", this.f10548c);
}
CharSequence charSequence = this.f10547b;
if (charSequence != null) {
bundle.putCharSequence("android.title.big", charSequence);
}
String c8 = c();
if (c8 != null) {
bundle.putString("androidx.core.app.extra.COMPAT_TEMPLATE", c8);
}
}
public abstract void b(o oVar);
public abstract String c();
public RemoteViews d(o oVar) {
return null;
}
public RemoteViews e(o oVar) {
return null;
}
public RemoteViews f(o oVar) {
return null;
}
}
public static Bundle a(Notification notification) {
return notification.extras;
}
}