导航菜单

页面标题

页面副标题

Online Loans v421.2.42 - m.java 源代码

正在查看: Online Loans v421.2.42 应用的 m.java JAVA 源代码文件

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


package L;

import L.y;
import android.app.Notification;
import android.app.PendingIntent;
import android.app.Person;
import android.content.Context;
import android.content.res.ColorStateList;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffColorFilter;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.Icon;
import android.media.AudioAttributes;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Parcelable;
import android.text.SpannableStringBuilder;
import android.text.TextUtils;
import android.text.style.ForegroundColorSpan;
import android.text.style.TextAppearanceSpan;
import android.util.Log;
import android.widget.RemoteViews;
import androidx.annotation.NonNull;
import androidx.core.graphics.drawable.IconCompat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;

public abstract class m {

    public static class a {

        public final Bundle f3660a;

        public IconCompat f3661b;

        public final A[] f3662c;

        public final A[] f3663d;

        public boolean f3664e;

        public boolean f3665f;

        public final int f3666g;

        public final boolean f3667h;

        public int f3668i;

        public CharSequence f3669j;

        public PendingIntent f3670k;

        public boolean f3671l;

        public a(int i6, CharSequence charSequence, PendingIntent pendingIntent) {
            this(i6 != 0 ? IconCompat.l(null, "", i6) : null, charSequence, pendingIntent);
        }

        public PendingIntent a() {
            return this.f3670k;
        }

        public boolean b() {
            return this.f3664e;
        }

        public Bundle c() {
            return this.f3660a;
        }

        public IconCompat d() {
            int i6;
            if (this.f3661b == null && (i6 = this.f3668i) != 0) {
                this.f3661b = IconCompat.l(null, "", i6);
            }
            return this.f3661b;
        }

        public A[] e() {
            return this.f3662c;
        }

        public int f() {
            return this.f3666g;
        }

        public boolean g() {
            return this.f3665f;
        }

        public CharSequence h() {
            return this.f3669j;
        }

        public boolean i() {
            return this.f3671l;
        }

        public boolean j() {
            return this.f3667h;
        }

        public static final class C0067a {

            public final IconCompat f3672a;

            public final CharSequence f3673b;

            public final PendingIntent f3674c;

            public boolean f3675d;

            public final Bundle f3676e;

            public ArrayList f3677f;

            public int f3678g;

            public boolean f3679h;

            public boolean f3680i;

            public boolean f3681j;

            public C0067a(int i6, CharSequence charSequence, PendingIntent pendingIntent) {
                this(i6 != 0 ? IconCompat.l(null, "", i6) : null, charSequence, pendingIntent, new Bundle(), null, true, 0, true, false, false);
            }

            public C0067a a(A a7) {
                if (this.f3677f == null) {
                    this.f3677f = new ArrayList();
                }
                if (a7 != null) {
                    this.f3677f.add(a7);
                }
                return this;
            }

            public a b() {
                c();
                ArrayList arrayList = new ArrayList();
                ArrayList arrayList2 = new ArrayList();
                ArrayList arrayList3 = this.f3677f;
                if (arrayList3 != null) {
                    Iterator it = arrayList3.iterator();
                    while (it.hasNext()) {
                        A a7 = (A) it.next();
                        if (a7.k()) {
                            arrayList.add(a7);
                        } else {
                            arrayList2.add(a7);
                        }
                    }
                }
                return new a(this.f3672a, this.f3673b, this.f3674c, this.f3676e, arrayList2.isEmpty() ? null : (A[]) arrayList2.toArray(new A[arrayList2.size()]), arrayList.isEmpty() ? null : (A[]) arrayList.toArray(new A[arrayList.size()]), this.f3675d, this.f3678g, this.f3679h, this.f3680i, this.f3681j);
            }

            public final void c() {
                if (this.f3680i && this.f3674c == null) {
                    throw new NullPointerException("Contextual Actions must contain a valid PendingIntent");
                }
            }

            public C0067a d(boolean z6) {
                this.f3675d = z6;
                return this;
            }

            public C0067a e(boolean z6) {
                this.f3680i = z6;
                return this;
            }

            public C0067a f(boolean z6) {
                this.f3679h = z6;
                return this;
            }

            public C0067a(IconCompat iconCompat, CharSequence charSequence, PendingIntent pendingIntent) {
                this(iconCompat, charSequence, pendingIntent, new Bundle(), null, true, 0, true, false, false);
            }

            public C0067a(IconCompat iconCompat, CharSequence charSequence, PendingIntent pendingIntent, Bundle bundle, A[] aArr, boolean z6, int i6, boolean z7, boolean z8, boolean z9) {
                this.f3675d = true;
                this.f3679h = true;
                this.f3672a = iconCompat;
                this.f3673b = e.k(charSequence);
                this.f3674c = pendingIntent;
                this.f3676e = bundle;
                this.f3677f = aArr == null ? null : new ArrayList(Arrays.asList(aArr));
                this.f3675d = z6;
                this.f3678g = i6;
                this.f3679h = z7;
                this.f3680i = z8;
                this.f3681j = z9;
            }
        }

        public a(IconCompat iconCompat, CharSequence charSequence, PendingIntent pendingIntent) {
            this(iconCompat, charSequence, pendingIntent, new Bundle(), null, null, true, 0, true, false, false);
        }

        public a(IconCompat iconCompat, CharSequence charSequence, PendingIntent pendingIntent, Bundle bundle, A[] aArr, A[] aArr2, boolean z6, int i6, boolean z7, boolean z8, boolean z9) {
            this.f3665f = true;
            this.f3661b = iconCompat;
            if (iconCompat != null && iconCompat.q() == 2) {
                this.f3668i = iconCompat.n();
            }
            this.f3669j = e.k(charSequence);
            this.f3670k = pendingIntent;
            this.f3660a = bundle == null ? new Bundle() : bundle;
            this.f3662c = aArr;
            this.f3663d = aArr2;
            this.f3664e = z6;
            this.f3666g = i6;
            this.f3665f = z7;
            this.f3667h = z8;
            this.f3671l = z9;
        }
    }

    public static class b extends j {

        public IconCompat f3682e;

        public IconCompat f3683f;

        public boolean f3684g;

        public CharSequence f3685h;

        public boolean f3686i;

        public static class a {
            public static void a(Notification.BigPictureStyle bigPictureStyle, Icon icon) {
                bigPictureStyle.bigLargeIcon(icon);
            }
        }

        public static class C0068b {
            public static void a(Notification.BigPictureStyle bigPictureStyle, Icon icon) {
                bigPictureStyle.bigPicture(icon);
            }

            public static void b(Notification.BigPictureStyle bigPictureStyle, CharSequence charSequence) {
                bigPictureStyle.setContentDescription(charSequence);
            }

            public static void c(Notification.BigPictureStyle bigPictureStyle, boolean z6) {
                bigPictureStyle.showBigPictureWhenCollapsed(z6);
            }
        }

        public static IconCompat w(Parcelable parcelable) {
            if (parcelable == null) {
                return null;
            }
            if (parcelable instanceof Icon) {
                return IconCompat.c((Icon) parcelable);
            }
            if (parcelable instanceof Bitmap) {
                return IconCompat.g((Bitmap) parcelable);
            }
            return null;
        }

        public static IconCompat z(Bundle bundle) {
            if (bundle == null) {
                return null;
            }
            Parcelable parcelable = bundle.getParcelable("android.picture");
            return parcelable != null ? w(parcelable) : w(bundle.getParcelable("android.pictureIcon"));
        }

        public b A(CharSequence charSequence) {
            this.f3759b = e.k(charSequence);
            return this;
        }

        public b B(CharSequence charSequence) {
            this.f3760c = e.k(charSequence);
            this.f3761d = true;
            return this;
        }

        @Override
        public void b(k kVar) {
            Notification.BigPictureStyle bigContentTitle = new Notification.BigPictureStyle(kVar.a()).setBigContentTitle(this.f3759b);
            IconCompat iconCompat = this.f3682e;
            if (iconCompat != null) {
                if (Build.VERSION.SDK_INT >= 31) {
                    C0068b.a(bigContentTitle, this.f3682e.y(kVar instanceof s ? ((s) kVar).f() : null));
                } else if (iconCompat.q() == 1) {
                    bigContentTitle = bigContentTitle.bigPicture(this.f3682e.m());
                }
            }
            if (this.f3684g) {
                if (this.f3683f == null) {
                    bigContentTitle.bigLargeIcon((Bitmap) null);
                } else {
                    a.a(bigContentTitle, this.f3683f.y(kVar instanceof s ? ((s) kVar).f() : null));
                }
            }
            if (this.f3761d) {
                bigContentTitle.setSummaryText(this.f3760c);
            }
            if (Build.VERSION.SDK_INT >= 31) {
                C0068b.c(bigContentTitle, this.f3686i);
                C0068b.b(bigContentTitle, this.f3685h);
            }
        }

        @Override
        public String p() {
            return "androidx.core.app.NotificationCompat$BigPictureStyle";
        }

        @Override
        public void u(Bundle bundle) {
            super.u(bundle);
            if (bundle.containsKey("android.largeIcon.big")) {
                this.f3683f = w(bundle.getParcelable("android.largeIcon.big"));
                this.f3684g = true;
            }
            this.f3682e = z(bundle);
            this.f3686i = bundle.getBoolean("android.showBigPictureWhenCollapsed");
        }

        public b x(Bitmap bitmap) {
            this.f3683f = bitmap == null ? null : IconCompat.g(bitmap);
            this.f3684g = true;
            return this;
        }

        public b y(Bitmap bitmap) {
            this.f3682e = bitmap == null ? null : IconCompat.g(bitmap);
            return this;
        }
    }

    public static class c extends j {

        public CharSequence f3687e;

        @Override
        public void a(Bundle bundle) {
            super.a(bundle);
        }

        @Override
        public void b(k kVar) {
            Notification.BigTextStyle bigText = new Notification.BigTextStyle(kVar.a()).setBigContentTitle(this.f3759b).bigText(this.f3687e);
            if (this.f3761d) {
                bigText.setSummaryText(this.f3760c);
            }
        }

        @Override
        public String p() {
            return "androidx.core.app.NotificationCompat$BigTextStyle";
        }

        @Override
        public void u(Bundle bundle) {
            super.u(bundle);
            this.f3687e = bundle.getCharSequence("android.bigText");
        }

        public c w(CharSequence charSequence) {
            this.f3687e = e.k(charSequence);
            return this;
        }

        public c x(CharSequence charSequence) {
            this.f3759b = e.k(charSequence);
            return this;
        }

        public c y(CharSequence charSequence) {
            this.f3760c = e.k(charSequence);
            this.f3761d = true;
            return this;
        }
    }

    public static final class d {
        public static Notification.BubbleMetadata a(d dVar) {
            return null;
        }
    }

    public static class g extends j {

        public static class a {
            public static Notification.Style a() {
                return new Notification.DecoratedCustomViewStyle();
            }
        }

        public static List y(List list) {
            if (list == null) {
                return null;
            }
            ArrayList arrayList = new ArrayList();
            Iterator it = list.iterator();
            while (it.hasNext()) {
                a aVar = (a) it.next();
                if (!aVar.j()) {
                    arrayList.add(aVar);
                }
            }
            return arrayList;
        }

        @Override
        public void b(k kVar) {
            if (Build.VERSION.SDK_INT >= 24) {
                kVar.a().setStyle(a.a());
            }
        }

        @Override
        public String p() {
            return "androidx.core.app.NotificationCompat$DecoratedCustomViewStyle";
        }

        @Override
        public RemoteViews r(k kVar) {
            if (Build.VERSION.SDK_INT >= 24) {
                return null;
            }
            RemoteViews d7 = this.f3758a.d();
            if (d7 == null) {
                d7 = this.f3758a.f();
            }
            if (d7 == null) {
                return null;
            }
            return w(d7, true);
        }

        @Override
        public RemoteViews s(k kVar) {
            if (Build.VERSION.SDK_INT < 24 && this.f3758a.f() != null) {
                return w(this.f3758a.f(), false);
            }
            return null;
        }

        @Override
        public RemoteViews t(k kVar) {
            if (Build.VERSION.SDK_INT >= 24) {
                return null;
            }
            RemoteViews h6 = this.f3758a.h();
            RemoteViews f6 = h6 != null ? h6 : this.f3758a.f();
            if (h6 == null) {
                return null;
            }
            return w(f6, true);
        }

        public final RemoteViews w(RemoteViews remoteViews, boolean z6) {
            int min;
            int i6 = 0;
            RemoteViews c7 = c(true, K.g.f3440c, false);
            c7.removeAllViews(K.e.f3385L);
            List y6 = y(this.f3758a.f3711b);
            if (!z6 || y6 == null || (min = Math.min(y6.size(), 3)) <= 0) {
                i6 = 8;
            } else {
                for (int i7 = 0; i7 < min; i7++) {
                    c7.addView(K.e.f3385L, x((a) y6.get(i7)));
                }
            }
            c7.setViewVisibility(K.e.f3385L, i6);
            c7.setViewVisibility(K.e.f3382I, i6);
            d(c7, remoteViews);
            return c7;
        }

        public final RemoteViews x(a aVar) {
            boolean z6 = aVar.f3670k == null;
            RemoteViews remoteViews = new RemoteViews(this.f3758a.f3710a.getPackageName(), z6 ? K.g.f3439b : K.g.f3438a);
            IconCompat d7 = aVar.d();
            if (d7 != null) {
                remoteViews.setImageViewBitmap(K.e.f3383J, l(d7, K.b.f3359c));
            }
            remoteViews.setTextViewText(K.e.f3384K, aVar.f3669j);
            if (!z6) {
                remoteViews.setOnClickPendingIntent(K.e.f3381H, aVar.f3670k);
            }
            remoteViews.setContentDescription(K.e.f3381H, aVar.f3669j);
            return remoteViews;
        }
    }

    public static class h extends j {

        public ArrayList f3746e = new ArrayList();

        @Override
        public void b(k kVar) {
            Notification.InboxStyle bigContentTitle = new Notification.InboxStyle(kVar.a()).setBigContentTitle(this.f3759b);
            if (this.f3761d) {
                bigContentTitle.setSummaryText(this.f3760c);
            }
            Iterator it = this.f3746e.iterator();
            while (it.hasNext()) {
                bigContentTitle.addLine((CharSequence) it.next());
            }
        }

        @Override
        public String p() {
            return "androidx.core.app.NotificationCompat$InboxStyle";
        }

        @Override
        public void u(Bundle bundle) {
            super.u(bundle);
            this.f3746e.clear();
            if (bundle.containsKey("android.textLines")) {
                Collections.addAll(this.f3746e, bundle.getCharSequenceArray("android.textLines"));
            }
        }

        public h w(CharSequence charSequence) {
            if (charSequence != null) {
                this.f3746e.add(e.k(charSequence));
            }
            return this;
        }

        public h x(CharSequence charSequence) {
            this.f3759b = e.k(charSequence);
            return this;
        }

        public h y(CharSequence charSequence) {
            this.f3760c = e.k(charSequence);
            this.f3761d = true;
            return this;
        }
    }

    public static abstract class j {

        public e f3758a;

        public CharSequence f3759b;

        public CharSequence f3760c;

        public boolean f3761d = false;

        public static class a {
            public static void a(RemoteViews remoteViews, int i6, boolean z6) {
                remoteViews.setChronometerCountDown(i6, z6);
            }
        }

        public static float f(float f6, float f7, float f8) {
            return f6 < f7 ? f7 : f6 > f8 ? f8 : f6;
        }

        public static j g(String str) {
            if (str == null) {
                return null;
            }
            switch (str) {
                case "androidx.core.app.NotificationCompat$DecoratedCustomViewStyle":
                    return new g();
                case "androidx.core.app.NotificationCompat$BigPictureStyle":
                    return new b();
                case "androidx.core.app.NotificationCompat$CallStyle":
                    return new f();
                case "androidx.core.app.NotificationCompat$InboxStyle":
                    return new h();
                case "androidx.core.app.NotificationCompat$BigTextStyle":
                    return new c();
                case "androidx.core.app.NotificationCompat$MessagingStyle":
                    return new i();
                default:
                    return null;
            }
        }

        public static j h(String str) {
            if (str == null) {
                return null;
            }
            if (str.equals(Notification.BigPictureStyle.class.getName())) {
                return new b();
            }
            if (str.equals(Notification.BigTextStyle.class.getName())) {
                return new c();
            }
            if (str.equals(Notification.InboxStyle.class.getName())) {
                return new h();
            }
            if (Build.VERSION.SDK_INT >= 24) {
                if (str.equals(q.a().getName())) {
                    return new i();
                }
                if (str.equals(r.a().getName())) {
                    return new g();
                }
            }
            return null;
        }

        public static j i(Bundle bundle) {
            j g6 = g(bundle.getString("androidx.core.app.extra.COMPAT_TEMPLATE"));
            return g6 != null ? g6 : (bundle.containsKey("android.selfDisplayName") || bundle.containsKey("android.messagingStyleUser")) ? new i() : (bundle.containsKey("android.picture") || bundle.containsKey("android.pictureIcon")) ? new b() : bundle.containsKey("android.bigText") ? new c() : bundle.containsKey("android.textLines") ? new h() : bundle.containsKey("android.callType") ? new f() : h(bundle.getString("android.template"));
        }

        public static j j(Bundle bundle) {
            j i6 = i(bundle);
            if (i6 == null) {
                return null;
            }
            try {
                i6.u(bundle);
                return i6;
            } catch (ClassCastException unused) {
                return null;
            }
        }

        public static j o(Notification notification) {
            Bundle a7 = m.a(notification);
            if (a7 == null) {
                return null;
            }
            return j(a7);
        }

        public void a(Bundle bundle) {
            if (this.f3761d) {
                bundle.putCharSequence("android.summaryText", this.f3760c);
            }
            CharSequence charSequence = this.f3759b;
            if (charSequence != null) {
                bundle.putCharSequence("android.title.big", charSequence);
            }
            String p6 = p();
            if (p6 != null) {
                bundle.putString("androidx.core.app.extra.COMPAT_TEMPLATE", p6);
            }
        }

        public abstract void b(k kVar);

        public android.widget.RemoteViews c(boolean r13, int r14, boolean r15) {
            throw new UnsupportedOperationException("Method not decompiled: L.m.j.c(boolean, int, boolean):android.widget.RemoteViews");
        }

        public void d(RemoteViews remoteViews, RemoteViews remoteViews2) {
            q(remoteViews);
            remoteViews.removeAllViews(K.e.f3391R);
            remoteViews.addView(K.e.f3391R, remoteViews2.clone());
            remoteViews.setViewVisibility(K.e.f3391R, 0);
            remoteViews.setViewPadding(K.e.f3392S, 0, e(), 0, 0);
        }

        public final int e() {
            Resources resources = this.f3758a.f3710a.getResources();
            int dimensionPixelSize = resources.getDimensionPixelSize(K.c.f3368i);
            int dimensionPixelSize2 = resources.getDimensionPixelSize(K.c.f3369j);
            float f6 = (f(resources.getConfiguration().fontScale, 1.0f, 1.3f) - 1.0f) / 0.29999995f;
            return Math.round(((1.0f - f6) * dimensionPixelSize) + (f6 * dimensionPixelSize2));
        }

        public final Bitmap k(int i6, int i7, int i8) {
            return m(IconCompat.k(this.f3758a.f3710a, i6), i7, i8);
        }

        public Bitmap l(IconCompat iconCompat, int i6) {
            return m(iconCompat, i6, 0);
        }

        public final Bitmap m(IconCompat iconCompat, int i6, int i7) {
            Drawable t6 = iconCompat.t(this.f3758a.f3710a);
            int intrinsicWidth = i7 == 0 ? t6.getIntrinsicWidth() : i7;
            if (i7 == 0) {
                i7 = t6.getIntrinsicHeight();
            }
            Bitmap createBitmap = Bitmap.createBitmap(intrinsicWidth, i7, Bitmap.Config.ARGB_8888);
            t6.setBounds(0, 0, intrinsicWidth, i7);
            if (i6 != 0) {
                t6.mutate().setColorFilter(new PorterDuffColorFilter(i6, PorterDuff.Mode.SRC_IN));
            }
            t6.draw(new Canvas(createBitmap));
            return createBitmap;
        }

        public final Bitmap n(int i6, int i7, int i8, int i9) {
            int i10 = K.d.f3373d;
            if (i9 == 0) {
                i9 = 0;
            }
            Bitmap k6 = k(i10, i9, i7);
            Canvas canvas = new Canvas(k6);
            Drawable mutate = this.f3758a.f3710a.getResources().getDrawable(i6).mutate();
            mutate.setFilterBitmap(true);
            int i11 = (i7 - i8) / 2;
            int i12 = i8 + i11;
            mutate.setBounds(i11, i11, i12, i12);
            mutate.setColorFilter(new PorterDuffColorFilter(-1, PorterDuff.Mode.SRC_ATOP));
            mutate.draw(canvas);
            return k6;
        }

        public String p() {
            return null;
        }

        public final void q(RemoteViews remoteViews) {
            remoteViews.setViewVisibility(K.e.f3421k0, 8);
            remoteViews.setViewVisibility(K.e.f3417i0, 8);
            remoteViews.setViewVisibility(K.e.f3415h0, 8);
        }

        public RemoteViews r(k kVar) {
            return null;
        }

        public RemoteViews s(k kVar) {
            return null;
        }

        public RemoteViews t(k kVar) {
            return null;
        }

        public void u(Bundle bundle) {
            if (bundle.containsKey("android.summaryText")) {
                this.f3760c = bundle.getCharSequence("android.summaryText");
                this.f3761d = true;
            }
            this.f3759b = bundle.getCharSequence("android.title.big");
        }

        public void v(e eVar) {
            if (this.f3758a != eVar) {
                this.f3758a = eVar;
                if (eVar != null) {
                    eVar.O(this);
                }
            }
        }
    }

    public static Bundle a(Notification notification) {
        return notification.extras;
    }

    public static Bitmap b(Context context, Bitmap bitmap) {
        if (bitmap == null || Build.VERSION.SDK_INT >= 27) {
            return bitmap;
        }
        Resources resources = context.getResources();
        int dimensionPixelSize = resources.getDimensionPixelSize(K.c.f3361b);
        int dimensionPixelSize2 = resources.getDimensionPixelSize(K.c.f3360a);
        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 static class e {

        public boolean f3688A;

        public boolean f3689B;

        public boolean f3690C;

        public String f3691D;

        public Bundle f3692E;

        public int f3693F;

        public int f3694G;

        public Notification f3695H;

        public RemoteViews f3696I;

        public RemoteViews f3697J;

        public RemoteViews f3698K;

        public String f3699L;

        public int f3700M;

        public String f3701N;

        public long f3702O;

        public int f3703P;

        public int f3704Q;

        public boolean f3705R;

        public Notification f3706S;

        public boolean f3707T;

        public Object f3708U;

        public ArrayList f3709V;

        public Context f3710a;

        public ArrayList f3711b;

        public ArrayList f3712c;

        public ArrayList f3713d;

        public CharSequence f3714e;

        public CharSequence f3715f;

        public PendingIntent f3716g;

        public PendingIntent f3717h;

        public RemoteViews f3718i;

        public IconCompat f3719j;

        public CharSequence f3720k;

        public int f3721l;

        public int f3722m;

        public boolean f3723n;

        public boolean f3724o;

        public boolean f3725p;

        public j f3726q;

        public CharSequence f3727r;

        public CharSequence f3728s;

        public CharSequence[] f3729t;

        public int f3730u;

        public int f3731v;

        public boolean f3732w;

        public String f3733x;

        public boolean f3734y;

        public String f3735z;

        public static class a {
            public static AudioAttributes a(AudioAttributes.Builder builder) {
                return builder.build();
            }

            public static AudioAttributes.Builder b() {
                return new AudioAttributes.Builder();
            }

            public static AudioAttributes.Builder c(AudioAttributes.Builder builder, int i6) {
                return builder.setContentType(i6);
            }

            public static AudioAttributes.Builder d(AudioAttributes.Builder builder, int i6) {
                return builder.setUsage(i6);
            }
        }

        public e(Context context) {
            this(context, null);
        }

        public static CharSequence k(CharSequence charSequence) {
            return charSequence == null ? charSequence : charSequence.length() > 5120 ? charSequence.subSequence(0, 5120) : charSequence;
        }

        public e A(boolean z6) {
            this.f3734y = z6;
            return this;
        }

        public e B(Bitmap bitmap) {
            this.f3719j = bitmap == null ? null : IconCompat.g(m.b(this.f3710a, bitmap));
            return this;
        }

        public e C(int i6, int i7, int i8) {
            Notification notification = this.f3706S;
            notification.ledARGB = i6;
            notification.ledOnMS = i7;
            notification.ledOffMS = i8;
            notification.flags = ((i7 == 0 || i8 == 0) ? 0 : 1) | (notification.flags & (-2));
            return this;
        }

        public e D(boolean z6) {
            this.f3688A = z6;
            return this;
        }

        public e E(int i6) {
            this.f3721l = i6;
            return this;
        }

        public e F(boolean z6) {
            w(2, z6);
            return this;
        }

        public e G(boolean z6) {
            w(8, z6);
            return this;
        }

        public e H(int i6) {
            this.f3722m = i6;
            return this;
        }

        public e I(int i6, int i7, boolean z6) {
            this.f3730u = i6;
            this.f3731v = i7;
            this.f3732w = z6;
            return this;
        }

        public e J(String str) {
            this.f3701N = str;
            return this;
        }

        public e K(boolean z6) {
            this.f3723n = z6;
            return this;
        }

        public e L(boolean z6) {
            this.f3707T = z6;
            return this;
        }

        public e M(int i6) {
            this.f3706S.icon = i6;
            return this;
        }

        public e N(Uri uri) {
            Notification notification = this.f3706S;
            notification.sound = uri;
            notification.audioStreamType = -1;
            AudioAttributes.Builder d7 = a.d(a.c(a.b(), 4), 5);
            this.f3706S.audioAttributes = a.a(d7);
            return this;
        }

        public e O(j jVar) {
            if (this.f3726q != jVar) {
                this.f3726q = jVar;
                if (jVar != null) {
                    jVar.v(this);
                }
            }
            return this;
        }

        public e P(CharSequence charSequence) {
            this.f3727r = k(charSequence);
            return this;
        }

        public e Q(CharSequence charSequence) {
            this.f3706S.tickerText = k(charSequence);
            return this;
        }

        public e R(long j6) {
            this.f3702O = j6;
            return this;
        }

        public e S(boolean z6) {
            this.f3724o = z6;
            return this;
        }

        public e T(long[] jArr) {
            this.f3706S.vibrate = jArr;
            return this;
        }

        public e U(int i6) {
            this.f3694G = i6;
            return this;
        }

        public e V(long j6) {
            this.f3706S.when = j6;
            return this;
        }

        public e a(int i6, CharSequence charSequence, PendingIntent pendingIntent) {
            this.f3711b.add(new a(i6, charSequence, pendingIntent));
            return this;
        }

        public e b(a aVar) {
            if (aVar != null) {
                this.f3711b.add(aVar);
            }
            return this;
        }

        public Notification c() {
            return new s(this).c();
        }

        public RemoteViews d() {
            return this.f3697J;
        }

        public int e() {
            return this.f3693F;
        }

        public RemoteViews f() {
            return this.f3696I;
        }

        public Bundle g() {
            if (this.f3692E == null) {
                this.f3692E = new Bundle();
            }
            return this.f3692E;
        }

        public RemoteViews h() {
            return this.f3698K;
        }

        public int i() {
            return this.f3722m;
        }

        public long j() {
            if (this.f3723n) {
                return this.f3706S.when;
            }
            return 0L;
        }

        public e l(boolean z6) {
            w(16, z6);
            return this;
        }

        public e m(String str) {
            this.f3691D = str;
            return this;
        }

        public e n(String str) {
            this.f3699L = str;
            return this;
        }

        public e o(boolean z6) {
            this.f3725p = z6;
            g().putBoolean("android.chronometerCountDown", z6);
            return this;
        }

        public e p(int i6) {
            this.f3693F = i6;
            return this;
        }

        public e q(boolean z6) {
            this.f3689B = z6;
            this.f3690C = true;
            return this;
        }

        public e r(PendingIntent pendingIntent) {
            this.f3716g = pendingIntent;
            return this;
        }

        public e s(CharSequence charSequence) {
            this.f3715f = k(charSequence);
            return this;
        }

        public e t(CharSequence charSequence) {
            this.f3714e = k(charSequence);
            return this;
        }

        public e u(int i6) {
            Notification notification = this.f3706S;
            notification.defaults = i6;
            if ((i6 & 4) != 0) {
                notification.flags |= 1;
            }
            return this;
        }

        public e v(PendingIntent pendingIntent) {
            this.f3706S.deleteIntent = pendingIntent;
            return this;
        }

        public final void w(int i6, boolean z6) {
            if (z6) {
                Notification notification = this.f3706S;
                notification.flags = i6 | notification.flags;
            } else {
                Notification notification2 = this.f3706S;
                notification2.flags = (~i6) & notification2.flags;
            }
        }

        public e x(PendingIntent pendingIntent, boolean z6) {
            this.f3717h = pendingIntent;
            w(128, z6);
            return this;
        }

        public e y(String str) {
            this.f3733x = str;
            return this;
        }

        public e z(int i6) {
            this.f3703P = i6;
            return this;
        }

        public e(Context context, String str) {
            this.f3711b = new ArrayList();
            this.f3712c = new ArrayList();
            this.f3713d = new ArrayList();
            this.f3723n = true;
            this.f3688A = false;
            this.f3693F = 0;
            this.f3694G = 0;
            this.f3700M = 0;
            this.f3703P = 0;
            this.f3704Q = 0;
            Notification notification = new Notification();
            this.f3706S = notification;
            this.f3710a = context;
            this.f3699L = str;
            notification.when = System.currentTimeMillis();
            this.f3706S.audioStreamType = -1;
            this.f3722m = 0;
            this.f3709V = new ArrayList();
            this.f3705R = true;
        }
    }

    public static class i extends j {

        public final List f3747e = new ArrayList();

        public final List f3748f = new ArrayList();

        public y f3749g;

        public CharSequence f3750h;

        public Boolean f3751i;

        public static class a {
            public static Notification.MessagingStyle a(Notification.MessagingStyle messagingStyle, Notification.MessagingStyle.Message message) {
                return messagingStyle.addMessage(message);
            }

            public static Notification.MessagingStyle b(CharSequence charSequence) {
                return new Notification.MessagingStyle(charSequence);
            }

            public static Notification.MessagingStyle c(Notification.MessagingStyle messagingStyle, CharSequence charSequence) {
                return messagingStyle.setConversationTitle(charSequence);
            }
        }

        public static class b {
            public static Notification.MessagingStyle a(Notification.MessagingStyle messagingStyle, Notification.MessagingStyle.Message message) {
                return messagingStyle.addHistoricMessage(message);
            }
        }

        public static class c {
            public static Notification.MessagingStyle a(Person person) {
                return new Notification.MessagingStyle(person);
            }

            public static Notification.MessagingStyle b(Notification.MessagingStyle messagingStyle, boolean z6) {
                return messagingStyle.setGroupConversation(z6);
            }
        }

        public i() {
        }

        public static i x(Notification notification) {
            j o6 = j.o(notification);
            if (o6 instanceof i) {
                return (i) o6;
            }
            return null;
        }

        public List A() {
            return this.f3747e;
        }

        public y B() {
            return this.f3749g;
        }

        public final boolean C() {
            for (int size = this.f3747e.size() - 1; size >= 0; size--) {
                d dVar = (d) this.f3747e.get(size);
                if (dVar.g() != null && dVar.g().e() == null) {
                    return true;
                }
            }
            return false;
        }

        public boolean D() {
            e eVar = this.f3758a;
            if (eVar != null && eVar.f3710a.getApplicationInfo().targetSdkVersion < 28 && this.f3751i == null) {
                return this.f3750h != null;
            }
            Boolean bool = this.f3751i;
            if (bool != null) {
                return bool.booleanValue();
            }
            return false;
        }

        public final TextAppearanceSpan E(int i6) {
            return new TextAppearanceSpan(null, 0, 0, ColorStateList.valueOf(i6), null);
        }

        public final CharSequence F(d dVar) {
            W.a c7 = W.a.c();
            SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder();
            CharSequence e7 = dVar.g() == null ? "" : dVar.g().e();
            int i6 = -16777216;
            if (TextUtils.isEmpty(e7)) {
                e7 = this.f3749g.e();
                if (this.f3758a.e() != 0) {
                    i6 = this.f3758a.e();
                }
            }
            CharSequence h6 = c7.h(e7);
            spannableStringBuilder.append(h6);
            spannableStringBuilder.setSpan(E(i6), spannableStringBuilder.length() - h6.length(), spannableStringBuilder.length(), 33);
            spannableStringBuilder.append((CharSequence) "  ").append(c7.h(dVar.h() != null ? dVar.h() : ""));
            return spannableStringBuilder;
        }

        public i G(CharSequence charSequence) {
            this.f3750h = charSequence;
            return this;
        }

        public i H(boolean z6) {
            this.f3751i = Boolean.valueOf(z6);
            return this;
        }

        @Override
        public void a(Bundle bundle) {
            super.a(bundle);
            bundle.putCharSequence("android.selfDisplayName", this.f3749g.e());
            bundle.putBundle("android.messagingStyleUser", this.f3749g.k());
            bundle.putCharSequence("android.hiddenConversationTitle", this.f3750h);
            if (this.f3750h != null && this.f3751i.booleanValue()) {
                bundle.putCharSequence("android.conversationTitle", this.f3750h);
            }
            if (!this.f3747e.isEmpty()) {
                bundle.putParcelableArray("android.messages", d.a(this.f3747e));
            }
            if (!this.f3748f.isEmpty()) {
                bundle.putParcelableArray("android.messages.historic", d.a(this.f3748f));
            }
            Boolean bool = this.f3751i;
            if (bool != null) {
                bundle.putBoolean("android.isGroupConversation", bool.booleanValue());
            }
        }

        @Override
        public void b(k kVar) {
            H(D());
            int i6 = Build.VERSION.SDK_INT;
            if (i6 >= 24) {
                Notification.MessagingStyle a7 = i6 >= 28 ? c.a(this.f3749g.j()) : a.b(this.f3749g.e());
                Iterator it = this.f3747e.iterator();
                while (it.hasNext()) {
                    a.a(p.a(a7), ((d) it.next()).k());
                }
                if (Build.VERSION.SDK_INT >= 26) {
                    Iterator it2 = this.f3748f.iterator();
                    while (it2.hasNext()) {
                        b.a(p.a(a7), ((d) it2.next()).k());
                    }
                }
                if (this.f3751i.booleanValue() || Build.VERSION.SDK_INT >= 28) {
                    a.c(p.a(a7), this.f3750h);
                }
                if (Build.VERSION.SDK_INT >= 28) {
                    c.b(p.a(a7), this.f3751i.booleanValue());
                }
                a7.setBuilder(kVar.a());
                return;
            }
            d y6 = y();
            if (this.f3750h != null && this.f3751i.booleanValue()) {
                kVar.a().setContentTitle(this.f3750h);
            } else if (y6 != null) {
                kVar.a().setContentTitle("");
                if (y6.g() != null) {
                    kVar.a().setContentTitle(y6.g().e());
                }
            }
            if (y6 != null) {
                kVar.a().setContentText(this.f3750h != null ? F(y6) : y6.h());
            }
            SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder();
            boolean z6 = this.f3750h != null || C();
            for (int size = this.f3747e.size() - 1; size >= 0; size--) {
                d dVar = (d) this.f3747e.get(size);
                CharSequence F6 = z6 ? F(dVar) : dVar.h();
                if (size != this.f3747e.size() - 1) {
                    spannableStringBuilder.insert(0, (CharSequence) "\n");
                }
                spannableStringBuilder.insert(0, F6);
            }
            new Notification.BigTextStyle(kVar.a()).setBigContentTitle(null).bigText(spannableStringBuilder);
        }

        @Override
        public String p() {
            return "androidx.core.app.NotificationCompat$MessagingStyle";
        }

        @Override
        public void u(Bundle bundle) {
            super.u(bundle);
            this.f3747e.clear();
            if (bundle.containsKey("android.messagingStyleUser")) {
                this.f3749g = y.b(bundle.getBundle("android.messagingStyleUser"));
            } else {
                this.f3749g = new y.b().f(bundle.getString("android.selfDisplayName")).a();
            }
            CharSequence charSequence = bundle.getCharSequence("android.conversationTitle");
            this.f3750h = charSequence;
            if (charSequence == null) {
                this.f3750h = bundle.getCharSequence("android.hiddenConversationTitle");
            }
            Parcelable[] parcelableArray = bundle.getParcelableArray("android.messages");
            if (parcelableArray != null) {
                this.f3747e.addAll(d.f(parcelableArray));
            }
            Parcelable[] parcelableArray2 = bundle.getParcelableArray("android.messages.historic");
            if (parcelableArray2 != null) {
                this.f3748f.addAll(d.f(parcelableArray2));
            }
            if (bundle.containsKey("android.isGroupConversation")) {
                this.f3751i = Boolean.valueOf(bundle.getBoolean("android.isGroupConversation"));
            }
        }

        public i w(d dVar) {
            if (dVar != null) {
                this.f3747e.add(dVar);
                if (this.f3747e.size() > 25) {
                    this.f3747e.remove(0);
                }
            }
            return this;
        }

        public final d y() {
            for (int size = this.f3747e.size() - 1; size >= 0; size--) {
                d dVar = (d) this.f3747e.get(size);
                if (dVar.g() != null && !TextUtils.isEmpty(dVar.g().e())) {
                    return dVar;
                }
            }
            if (this.f3747e.isEmpty()) {
                return null;
            }
            return (d) this.f3747e.get(r0.size() - 1);
        }

        public CharSequence z() {
            return this.f3750h;
        }

        public i(y yVar) {
            if (!TextUtils.isEmpty(yVar.e())) {
                this.f3749g = yVar;
                return;
            }
            throw new IllegalArgumentException("User's name must not be empty.");
        }

        public static final class d {

            public final CharSequence f3752a;

            public final long f3753b;

            public final y f3754c;

            public Bundle f3755d = new Bundle();

            public String f3756e;

            public Uri f3757f;

            public static class a {
                public static Notification.MessagingStyle.Message a(CharSequence charSequence, long j6, CharSequence charSequence2) {
                    return new Notification.MessagingStyle.Message(charSequence, j6, charSequence2);
                }

                public static Notification.MessagingStyle.Message b(Notification.MessagingStyle.Message message, String str, Uri uri) {
                    return message.setData(str, uri);
                }
            }

            public d(CharSequence charSequence, long j6, y yVar) {
                this.f3752a = charSequence;
                this.f3753b = j6;
                this.f3754c = yVar;
            }

            public static Bundle[] a(List list) {
                Bundle[] bundleArr = new Bundle[list.size()];
                int size = list.size();
                for (int i6 = 0; i6 < size; i6++) {
                    bundleArr[i6] = ((d) list.get(i6)).l();
                }
                return bundleArr;
            }

            public static d e(Bundle bundle) {
                try {
                    if (bundle.containsKey("text") && bundle.containsKey("time")) {
                        d dVar = new d(bundle.getCharSequence("text"), bundle.getLong("time"), bundle.containsKey("person") ? y.b(bundle.getBundle("person")) : (!bundle.containsKey("sender_person") || Build.VERSION.SDK_INT < 28) ? bundle.containsKey("sender") ? new y.b().f(bundle.getCharSequence("sender")).a() : null : y.a(o.a(bundle.getParcelable("sender_person"))));
                        if (bundle.containsKey("type") && bundle.containsKey("uri")) {
                            dVar.j(bundle.getString("type"), (Uri) bundle.getParcelable("uri"));
                        }
                        if (bundle.containsKey("extras")) {
                            dVar.d().putAll(bundle.getBundle("extras"));
                        }
                        return dVar;
                    }
                } catch (ClassCastException unused) {
                }
                return null;
            }

            public static List f(Parcelable[] parcelableArr) {
                d e7;
                ArrayList arrayList = new ArrayList(parcelableArr.length);
                for (Parcelable parcelable : parcelableArr) {
                    if ((parcelable instanceof Bundle) && (e7 = e((Bundle) parcelable)) != null) {
                        arrayList.add(e7);
                    }
                }
                return arrayList;
            }

            public String b() {
                return this.f3756e;
            }

            public Uri c() {
                return this.f3757f;
            }

            public Bundle d() {
                return this.f3755d;
            }

            public y g() {
                return this.f3754c;
            }

            public CharSequence h() {
                return this.f3752a;
            }

            public long i() {
                return this.f3753b;
            }

            public d j(String str, Uri uri) {
                this.f3756e = str;
                this.f3757f = uri;
                return this;
            }

            public Notification.MessagingStyle.Message k() {
                Notification.MessagingStyle.Message a7;
                y g6 = g();
                if (Build.VERSION.SDK_INT >= 28) {
                    a7 = b.b(h(), i(), g6 != null ? g6.j() : null);
                } else {
                    a7 = a.a(h(), i(), g6 != null ? g6.e() : null);
                }
                if (b() != null) {
                    a.b(a7, b(), c());
                }
                return a7;
            }

            public final Bundle l() {
                Bundle bundle = new Bundle();
                CharSequence charSequence = this.f3752a;
                if (charSequence != null) {
                    bundle.putCharSequence("text", charSequence);
                }
                bundle.putLong("time", this.f3753b);
                y yVar = this.f3754c;
                if (yVar != null) {
                    bundle.putCharSequence("sender", yVar.e());
                    if (Build.VERSION.SDK_INT >= 28) {
                        bundle.putParcelable("sender_person", b.a(this.f3754c.j()));
                    } else {
                        bundle.putBundle("person", this.f3754c.k());
                    }
                }
                String str = this.f3756e;
                if (str != null) {
                    bundle.putString("type", str);
                }
                Uri uri = this.f3757f;
                if (uri != null) {
                    bundle.putParcelable("uri", uri);
                }
                Bundle bundle2 = this.f3755d;
                if (bundle2 != null) {
                    bundle.putBundle("extras", bundle2);
                }
                return bundle;
            }

            public static class b {
                public static Notification.MessagingStyle.Message b(CharSequence charSequence, long j6, Person person) {
                    return new Notification.MessagingStyle.Message(charSequence, j6, person);
                }

                public static Parcelable a(Person person) {
                    return person;
                }
            }
        }
    }

    public static class f extends j {

        public int f3736e;

        public y f3737f;

        public PendingIntent f3738g;

        public PendingIntent f3739h;

        public PendingIntent f3740i;

        public boolean f3741j;

        public Integer f3742k;

        public Integer f3743l;

        public IconCompat f3744m;

        public CharSequence f3745n;

        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 d {
            public static Notification.CallStyle a(@NonNull Person person, @NonNull PendingIntent pendingIntent, @NonNull PendingIntent pendingIntent2) {
                return Notification.CallStyle.forIncomingCall(person, pendingIntent, pendingIntent2);
            }

            public static Notification.CallStyle b(@NonNull Person person, @NonNull PendingIntent pendingIntent) {
                return Notification.CallStyle.forOngoingCall(person, pendingIntent);
            }

            public static Notification.CallStyle c(@NonNull Person person, @NonNull PendingIntent pendingIntent, @NonNull PendingIntent pendingIntent2) {
                return Notification.CallStyle.forScreeningCall(person, pendingIntent, pendingIntent2);
            }

            public static Notification.CallStyle d(Notification.CallStyle callStyle, int i6) {
                return callStyle.setAnswerButtonColorHint(i6);
            }

            public static Notification.CallStyle e(Notification.CallStyle callStyle, int i6) {
                return callStyle.setDeclineButtonColorHint(i6);
            }

            public static Notification.CallStyle f(Notification.CallStyle callStyle, boolean z6) {
                return callStyle.setIsVideo(z6);
            }

            public static Notification.CallStyle g(Notification.CallStyle callStyle, Icon icon) {
                return callStyle.setVerificationIcon(icon);
            }

            public static Notification.CallStyle h(Notification.CallStyle callStyle, CharSequence charSequence) {
                return callStyle.setVerificationText(charSequence);
            }
        }

        public final a A() {
            int i6 = K.d.f3371b;
            int i7 = K.d.f3370a;
            PendingIntent pendingIntent = this.f3738g;
            if (pendingIntent == null) {
                return null;
            }
            boolean z6 = this.f3741j;
            return z(z6 ? i6 : i7, z6 ? K.h.f3442b : K.h.f3441a, this.f3742k, K.b.f3357a, pendingIntent);
        }

        public final a B() {
            int i6 = K.d.f3372c;
            PendingIntent pendingIntent = this.f3739h;
            return pendingIntent == null ? z(i6, K.h.f3444d, this.f3743l, K.b.f3358b, this.f3740i) : z(i6, K.h.f3443c, this.f3743l, K.b.f3358b, pendingIntent);
        }

        @Override
        public void a(Bundle bundle) {
            super.a(bundle);
            bundle.putInt("android.callType", this.f3736e);
            bundle.putBoolean("android.callIsVideo", this.f3741j);
            y yVar = this.f3737f;
            if (yVar != null) {
                if (Build.VERSION.SDK_INT >= 28) {
                    bundle.putParcelable("android.callPerson", c.b(yVar.j()));
                } else {
                    bundle.putParcelable("android.callPersonCompat", yVar.k());
                }
            }
            IconCompat iconCompat = this.f3744m;
            if (iconCompat != null) {
                bundle.putParcelable("android.verificationIcon", b.a(iconCompat.y(this.f3758a.f3710a)));
            }
            bundle.putCharSequence("android.verificationText", this.f3745n);
            bundle.putParcelable("android.answerIntent", this.f3738g);
            bundle.putParcelable("android.declineIntent", this.f3739h);
            bundle.putParcelable("android.hangUpIntent", this.f3740i);
            Integer num = this.f3742k;
            if (num != null) {
                bundle.putInt("android.answerColor", num.intValue());
            }
            Integer num2 = this.f3743l;
            if (num2 != null) {
                bundle.putInt("android.declineColor", num2.intValue());
            }
        }

        @Override
        public void b(k kVar) {
            int i6 = Build.VERSION.SDK_INT;
            CharSequence charSequence = null;
            r2 = null;
            Notification.CallStyle a7 = null;
            charSequence = null;
            if (i6 < 31) {
                Notification.Builder a8 = kVar.a();
                y yVar = this.f3737f;
                a8.setContentTitle(yVar != null ? yVar.e() : null);
                Bundle bundle = this.f3758a.f3692E;
                if (bundle != null && bundle.containsKey("android.text")) {
                    charSequence = this.f3758a.f3692E.getCharSequence("android.text");
                }
                if (charSequence == null) {
                    charSequence = x();
                }
                a8.setContentText(charSequence);
                y yVar2 = this.f3737f;
                if (yVar2 != null) {
                    if (yVar2.c() != null) {
                        b.b(a8, this.f3737f.c().y(this.f3758a.f3710a));
                    }
                    if (i6 >= 28) {
                        c.a(a8, this.f3737f.j());
                    } else {
                        a.a(a8, this.f3737f.f());
                    }
                }
                a.b(a8, "call");
                return;
            }
            int i7 = this.f3736e;
            if (i7 == 1) {
                a7 = d.a(this.f3737f.j(), this.f3739h, this.f3738g);
            } else if (i7 == 2) {
                a7 = d.b(this.f3737f.j(), this.f3740i);
            } else if (i7 == 3) {
                a7 = d.c(this.f3737f.j(), this.f3740i, this.f3738g);
            } else if (Log.isLoggable("NotifCompat", 3)) {
                StringBuilder sb = new StringBuilder();
                sb.append("Unrecognized call type in CallStyle: ");
                sb.append(String.valueOf(this.f3736e));
            }
            if (a7 != null) {
                a7.setBuilder(kVar.a());
                Integer num = this.f3742k;
                if (num != null) {
                    d.d(a7, num.intValue());
                }
                Integer num2 = this.f3743l;
                if (num2 != null) {
                    d.e(a7, num2.intValue());
                }
                d.h(a7, this.f3745n);
                IconCompat iconCompat = this.f3744m;
                if (iconCompat != null) {
                    d.g(a7, iconCompat.y(this.f3758a.f3710a));
                }
                d.f(a7, this.f3741j);
            }
        }

        @Override
        public String p() {
            return "androidx.core.app.NotificationCompat$CallStyle";
        }

        @Override
        public void u(Bundle bundle) {
            super.u(bundle);
            this.f3736e = bundle.getInt("android.callType");
            this.f3741j = bundle.getBoolean("android.callIsVideo");
            if (Build.VERSION.SDK_INT >= 28 && bundle.containsKey("android.callPerson")) {
                this.f3737f = y.a(o.a(bundle.getParcelable("android.callPerson")));
            } else if (bundle.containsKey("android.callPersonCompat")) {
                this.f3737f = y.b(bundle.getBundle("android.callPersonCompat"));
            }
            if (bundle.containsKey("android.verificationIcon")) {
                this.f3744m = IconCompat.c((Icon) bundle.getParcelable("android.verificationIcon"));
            } else if (bundle.containsKey("android.verificationIconCompat")) {
                this.f3744m = IconCompat.b(bundle.getBundle("android.verificationIconCompat"));
            }
            this.f3745n = bundle.getCharSequence("android.verificationText");
            this.f3738g = (PendingIntent) bundle.getParcelable("android.answerIntent");
            this.f3739h = (PendingIntent) bundle.getParcelable("android.declineIntent");
            this.f3740i = (PendingIntent) bundle.getParcelable("android.hangUpIntent");
            this.f3742k = bundle.containsKey("android.answerColor") ? Integer.valueOf(bundle.getInt("android.answerColor")) : null;
            this.f3743l = bundle.containsKey("android.declineColor") ? Integer.valueOf(bundle.getInt("android.declineColor")) : null;
        }

        public ArrayList w() {
            a B6 = B();
            a A6 = A();
            ArrayList arrayList = new ArrayList(3);
            arrayList.add(B6);
            ArrayList<a> arrayList2 = this.f3758a.f3711b;
            int i6 = 2;
            if (arrayList2 != null) {
                for (a aVar : arrayList2) {
                    if (aVar.j()) {
                        arrayList.add(aVar);
                    } else if (!y(aVar) && i6 > 1) {
                        arrayList.add(aVar);
                        i6--;
                    }
                    if (A6 != null && i6 == 1) {
                        arrayList.add(A6);
                        i6--;
                    }
                }
            }
            if (A6 != null && i6 >= 1) {
                arrayList.add(A6);
            }
            return arrayList;
        }

        public final String x() {
            int i6 = this.f3736e;
            if (i6 == 1) {
                return this.f3758a.f3710a.getResources().getString(K.h.f3445e);
            }
            if (i6 == 2) {
                return this.f3758a.f3710a.getResources().getString(K.h.f3446f);
            }
            if (i6 != 3) {
                return null;
            }
            return this.f3758a.f3710a.getResources().getString(K.h.f3447g);
        }

        public final boolean y(a aVar) {
            return aVar != null && aVar.c().getBoolean("key_action_priority");
        }

        public final a z(int i6, int i7, Integer num, int i8, PendingIntent pendingIntent) {
            if (num == null) {
                num = Integer.valueOf(M.a.c(this.f3758a.f3710a, i8));
            }
            SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder();
            spannableStringBuilder.append((CharSequence) this.f3758a.f3710a.getResources().getString(i7));
            spannableStringBuilder.setSpan(new ForegroundColorSpan(num.intValue()), 0, spannableStringBuilder.length(), 18);
            a b7 = new a.C0067a(IconCompat.k(this.f3758a.f3710a, i6), spannableStringBuilder, pendingIntent).b();
            b7.c().putBoolean("key_action_priority", true);
            return b7;
        }

        public static class b {
            public static void b(Notification.Builder builder, Icon icon) {
                builder.setLargeIcon(icon);
            }

            public static Parcelable a(Icon icon) {
                return icon;
            }
        }

        public static class c {
            public static Notification.Builder a(Notification.Builder builder, Person person) {
                return builder.addPerson(person);
            }

            public static Parcelable b(Person person) {
                return person;
            }
        }
    }
}