正在查看: Pesohere v1.0.5 应用的 i.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Pesohere v1.0.5 应用的 i.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package d.i.e;
import android.annotation.SuppressLint;
import android.app.Notification;
import android.app.PendingIntent;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.drawable.Icon;
import android.media.AudioAttributes;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.widget.RemoteViews;
import androidx.core.graphics.drawable.IconCompat;
import com.wang.avi.BuildConfig;
import java.util.ArrayList;
public class i {
public static class a {
public final Bundle a;
public IconCompat b;
public final m[] f1431c;
public final m[] f1432d;
public boolean f1433e;
public boolean f1434f;
public final int f1435g;
public final boolean f1436h;
@Deprecated
public int f1437i;
public CharSequence f1438j;
public PendingIntent f1439k;
public a(int i2, CharSequence charSequence, PendingIntent pendingIntent) {
this(i2 != 0 ? IconCompat.c(null, BuildConfig.FLAVOR, i2) : null, charSequence, pendingIntent);
}
public PendingIntent a() {
return this.f1439k;
}
public boolean b() {
return this.f1433e;
}
public m[] c() {
return this.f1432d;
}
public Bundle d() {
return this.a;
}
public IconCompat e() {
int i2;
if (this.b == null && (i2 = this.f1437i) != 0) {
this.b = IconCompat.c(null, BuildConfig.FLAVOR, i2);
}
return this.b;
}
public m[] f() {
return this.f1431c;
}
public int g() {
return this.f1435g;
}
public boolean h() {
return this.f1434f;
}
public CharSequence i() {
return this.f1438j;
}
public boolean j() {
return this.f1436h;
}
public a(IconCompat iconCompat, CharSequence charSequence, PendingIntent pendingIntent) {
this(iconCompat, charSequence, pendingIntent, new Bundle(), null, null, true, 0, true, false);
}
public a(IconCompat iconCompat, CharSequence charSequence, PendingIntent pendingIntent, Bundle bundle, m[] mVarArr, m[] mVarArr2, boolean z, int i2, boolean z2, boolean z3) {
this.f1434f = true;
this.b = iconCompat;
if (iconCompat != null && iconCompat.i() == 2) {
this.f1437i = iconCompat.e();
}
this.f1438j = e.d(charSequence);
this.f1439k = pendingIntent;
this.a = bundle == null ? new Bundle() : bundle;
this.f1431c = mVarArr;
this.f1432d = mVarArr2;
this.f1433e = z;
this.f1435g = i2;
this.f1434f = z2;
this.f1436h = z3;
}
}
public static class b extends f {
public Bitmap f1440e;
public IconCompat f1441f;
public boolean f1442g;
public static class a {
public static void a(Notification.BigPictureStyle bigPictureStyle, Bitmap bitmap) {
bigPictureStyle.bigLargeIcon(bitmap);
}
public static void b(Notification.BigPictureStyle bigPictureStyle, CharSequence charSequence) {
bigPictureStyle.setSummaryText(charSequence);
}
}
public static class C0029b {
public static void a(Notification.BigPictureStyle bigPictureStyle, Icon icon) {
bigPictureStyle.bigLargeIcon(icon);
}
}
@Override
public void b(h hVar) {
if (Build.VERSION.SDK_INT >= 16) {
Notification.BigPictureStyle bigPicture = new Notification.BigPictureStyle(hVar.a()).setBigContentTitle(this.b).bigPicture(this.f1440e);
if (this.f1442g) {
IconCompat iconCompat = this.f1441f;
if (iconCompat == null) {
a.a(bigPicture, null);
} else if (Build.VERSION.SDK_INT >= 23) {
C0029b.a(bigPicture, this.f1441f.q(hVar instanceof j ? ((j) hVar).f() : null));
} else if (iconCompat.i() == 1) {
a.a(bigPicture, this.f1441f.d());
} else {
a.a(bigPicture, null);
}
}
if (this.f1455d) {
a.b(bigPicture, this.f1454c);
}
}
}
@Override
public String c() {
return "androidx.core.app.NotificationCompat$BigPictureStyle";
}
public b h(Bitmap bitmap) {
this.f1441f = bitmap == null ? null : IconCompat.b(bitmap);
this.f1442g = true;
return this;
}
public b i(Bitmap bitmap) {
this.f1440e = bitmap;
return this;
}
}
public static class c extends f {
public CharSequence f1443e;
@Override
public void a(Bundle bundle) {
super.a(bundle);
if (Build.VERSION.SDK_INT < 21) {
bundle.putCharSequence("android.bigText", this.f1443e);
}
}
@Override
public void b(h hVar) {
if (Build.VERSION.SDK_INT >= 16) {
Notification.BigTextStyle bigText = new Notification.BigTextStyle(hVar.a()).setBigContentTitle(this.b).bigText(this.f1443e);
if (this.f1455d) {
bigText.setSummaryText(this.f1454c);
}
}
}
@Override
public String c() {
return "androidx.core.app.NotificationCompat$BigTextStyle";
}
public c h(CharSequence charSequence) {
this.f1443e = e.d(charSequence);
return this;
}
}
public static final class d {
public static class a {
public static Notification.BubbleMetadata a(d dVar) {
if (dVar == null || dVar.f() == null) {
return null;
}
Notification.BubbleMetadata.Builder suppressNotification = new Notification.BubbleMetadata.Builder().setIcon(dVar.e().p()).setIntent(dVar.f()).setDeleteIntent(dVar.b()).setAutoExpandBubble(dVar.a()).setSuppressNotification(dVar.h());
if (dVar.c() != 0) {
suppressNotification.setDesiredHeight(dVar.c());
}
if (dVar.d() != 0) {
suppressNotification.setDesiredHeightResId(dVar.d());
}
return suppressNotification.build();
}
}
public static class b {
public static Notification.BubbleMetadata a(d dVar) {
if (dVar == null) {
return null;
}
Notification.BubbleMetadata.Builder builder = dVar.g() != null ? new Notification.BubbleMetadata.Builder(dVar.g()) : new Notification.BubbleMetadata.Builder(dVar.f(), dVar.e().p());
builder.setDeleteIntent(dVar.b()).setAutoExpandBubble(dVar.a()).setSuppressNotification(dVar.h());
if (dVar.c() != 0) {
builder.setDesiredHeight(dVar.c());
}
if (dVar.d() != 0) {
builder.setDesiredHeightResId(dVar.d());
}
return builder.build();
}
}
public static Notification.BubbleMetadata i(d dVar) {
if (dVar == null) {
return null;
}
int i2 = Build.VERSION.SDK_INT;
if (i2 >= 30) {
return b.a(dVar);
}
if (i2 == 29) {
return a.a(dVar);
}
return null;
}
public abstract boolean a();
public abstract PendingIntent b();
public abstract int c();
public abstract int d();
@SuppressLint({"InvalidNullConversion"})
public abstract IconCompat e();
@SuppressLint({"InvalidNullConversion"})
public abstract PendingIntent f();
public abstract String g();
public abstract boolean h();
}
public static abstract class f {
public e a;
public CharSequence b;
public CharSequence f1454c;
public boolean f1455d = false;
public void a(Bundle bundle) {
if (this.f1455d) {
bundle.putCharSequence("android.summaryText", this.f1454c);
}
CharSequence charSequence = this.b;
if (charSequence != null) {
bundle.putCharSequence("android.title.big", charSequence);
}
String c2 = c();
if (c2 != null) {
bundle.putString("androidx.core.app.extra.COMPAT_TEMPLATE", c2);
}
}
public abstract void b(h hVar);
public abstract String c();
public RemoteViews d(h hVar) {
return null;
}
public RemoteViews e(h hVar) {
return null;
}
public RemoteViews f(h hVar) {
return null;
}
public void g(e eVar) {
if (this.a != eVar) {
this.a = eVar;
if (eVar != null) {
eVar.w(this);
}
}
}
}
public static Bundle a(Notification notification) {
int i2 = Build.VERSION.SDK_INT;
if (i2 >= 19) {
return notification.extras;
}
if (i2 >= 16) {
return k.c(notification);
}
return null;
}
public static class e {
public boolean A;
public boolean B;
public String C;
public Bundle D;
public int E;
public int F;
public Notification G;
public RemoteViews H;
public RemoteViews I;
public RemoteViews J;
public String K;
public int L;
public String M;
public d.i.f.b N;
public long O;
public int P;
public boolean Q;
public d R;
public Notification S;
public boolean T;
public Icon U;
@Deprecated
public ArrayList<String> V;
public Context a;
public ArrayList<a> b;
public ArrayList<l> f1444c;
public ArrayList<a> f1445d;
public CharSequence f1446e;
public CharSequence f1447f;
public PendingIntent f1448g;
public PendingIntent f1449h;
public RemoteViews f1450i;
public Bitmap f1451j;
public CharSequence f1452k;
public int f1453l;
public int m;
public boolean n;
public boolean o;
public f p;
public CharSequence q;
public CharSequence r;
public CharSequence[] s;
public int t;
public int u;
public boolean v;
public String w;
public boolean x;
public String y;
public boolean z;
public e(Context context, String str) {
this.b = new ArrayList<>();
this.f1444c = new ArrayList<>();
this.f1445d = new ArrayList<>();
this.n = true;
this.z = false;
this.E = 0;
this.F = 0;
this.L = 0;
this.P = 0;
Notification notification = new Notification();
this.S = notification;
this.a = context;
this.K = str;
notification.when = System.currentTimeMillis();
this.S.audioStreamType = -1;
this.m = 0;
this.V = new ArrayList<>();
this.Q = true;
}
public static CharSequence d(CharSequence charSequence) {
return (charSequence != null && charSequence.length() > 5120) ? charSequence.subSequence(0, 5120) : charSequence;
}
public e A(long j2) {
this.S.when = j2;
return this;
}
public e a(int i2, CharSequence charSequence, PendingIntent pendingIntent) {
this.b.add(new a(i2, charSequence, pendingIntent));
return this;
}
public Notification b() {
return new j(this).c();
}
public Bundle c() {
if (this.D == null) {
this.D = new Bundle();
}
return this.D;
}
public final Bitmap e(Bitmap bitmap) {
if (bitmap == null || Build.VERSION.SDK_INT >= 27) {
return bitmap;
}
Resources resources = this.a.getResources();
int dimensionPixelSize = resources.getDimensionPixelSize(d.i.b.compat_notification_large_icon_max_width);
int dimensionPixelSize2 = resources.getDimensionPixelSize(d.i.b.compat_notification_large_icon_max_height);
if (bitmap.getWidth() <= dimensionPixelSize && bitmap.getHeight() <= dimensionPixelSize2) {
return bitmap;
}
double min = Math.min(dimensionPixelSize / Math.max(1, bitmap.getWidth()), dimensionPixelSize2 / Math.max(1, bitmap.getHeight()));
return Bitmap.createScaledBitmap(bitmap, (int) Math.ceil(bitmap.getWidth() * min), (int) Math.ceil(bitmap.getHeight() * min), true);
}
public e f(boolean z) {
n(16, z);
return this;
}
public e g(String str) {
this.K = str;
return this;
}
public e h(int i2) {
this.E = i2;
return this;
}
public e i(PendingIntent pendingIntent) {
this.f1448g = pendingIntent;
return this;
}
public e j(CharSequence charSequence) {
this.f1447f = d(charSequence);
return this;
}
public e k(CharSequence charSequence) {
this.f1446e = d(charSequence);
return this;
}
public e l(int i2) {
Notification notification = this.S;
notification.defaults = i2;
if ((i2 & 4) != 0) {
notification.flags |= 1;
}
return this;
}
public e m(PendingIntent pendingIntent) {
this.S.deleteIntent = pendingIntent;
return this;
}
public final void n(int i2, boolean z) {
if (z) {
Notification notification = this.S;
notification.flags = i2 | notification.flags;
} else {
Notification notification2 = this.S;
notification2.flags = (~i2) & notification2.flags;
}
}
public e o(Bitmap bitmap) {
this.f1451j = e(bitmap);
return this;
}
public e p(int i2, int i3, int i4) {
Notification notification = this.S;
notification.ledARGB = i2;
notification.ledOnMS = i3;
notification.ledOffMS = i4;
int i5 = (i3 == 0 || i4 == 0) ? 0 : 1;
Notification notification2 = this.S;
notification2.flags = i5 | (notification2.flags & (-2));
return this;
}
public e q(boolean z) {
this.z = z;
return this;
}
public e r(int i2) {
this.f1453l = i2;
return this;
}
public e s(int i2) {
this.m = i2;
return this;
}
public e t(boolean z) {
this.n = z;
return this;
}
public e u(int i2) {
this.S.icon = i2;
return this;
}
public e v(Uri uri) {
Notification notification = this.S;
notification.sound = uri;
notification.audioStreamType = -1;
if (Build.VERSION.SDK_INT >= 21) {
notification.audioAttributes = new AudioAttributes.Builder().setContentType(4).setUsage(5).build();
}
return this;
}
public e w(f fVar) {
if (this.p != fVar) {
this.p = fVar;
if (fVar != null) {
fVar.g(this);
}
}
return this;
}
public e x(CharSequence charSequence) {
this.S.tickerText = d(charSequence);
return this;
}
public e y(long[] jArr) {
this.S.vibrate = jArr;
return this;
}
public e z(int i2) {
this.F = i2;
return this;
}
@Deprecated
public e(Context context) {
this(context, null);
}
}
}