导航菜单

页面标题

页面副标题

moonshot.企业版 v5.53.33 - C2571.java 源代码

正在查看: moonshot.企业版 v5.53.33 应用的 C2571.java JAVA 源代码文件

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


package TCUcMtElLJnqSvqb7YcU.cr3JSOpoZIqsmhvmO4JX.rKwtQoMTg9U9BbR7dg96;

import TCUcMtElLJnqSvqb7YcU.TCUcMtElLJnqSvqb7YcU.InterfaceC1744;
import TCUcMtElLJnqSvqb7YcU.TCUcMtElLJnqSvqb7YcU.InterfaceC1753;
import TCUcMtElLJnqSvqb7YcU.TCUcMtElLJnqSvqb7YcU.InterfaceC1758;
import TCUcMtElLJnqSvqb7YcU.TCUcMtElLJnqSvqb7YcU.InterfaceC1762;
import TCUcMtElLJnqSvqb7YcU.TCUcMtElLJnqSvqb7YcU.InterfaceC1770;
import TCUcMtElLJnqSvqb7YcU.TCUcMtElLJnqSvqb7YcU.InterfaceC1773;
import TCUcMtElLJnqSvqb7YcU.TCUcMtElLJnqSvqb7YcU.InterfaceC1793;
import TCUcMtElLJnqSvqb7YcU.cr3JSOpoZIqsmhvmO4JX.J8XGgBmc5IbfScQDY6EG.C2307;
import TCUcMtElLJnqSvqb7YcU.cr3JSOpoZIqsmhvmO4JX.jnksI9k6J1HFuFo5YzBf.C2553;
import TCUcMtElLJnqSvqb7YcU.cr3JSOpoZIqsmhvmO4JX.jnksI9k6J1HFuFo5YzBf.ShxcOQUYV4NCnoYZ6rEG.C2519;
import TCUcMtElLJnqSvqb7YcU.cr3JSOpoZIqsmhvmO4JX.rKwtQoMTg9U9BbR7dg96.C2611;
import android.annotation.SuppressLint;
import android.app.Notification;
import android.app.PendingIntent;
import android.app.Person;
import android.app.RemoteInput;
import android.content.Context;
import android.content.LocusId;
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.os.SystemClock;
import android.text.SpannableStringBuilder;
import android.text.TextUtils;
import android.text.style.TextAppearanceSpan;
import android.util.SparseArray;
import android.widget.RemoteViews;
import androidx.core.R;
import androidx.core.graphics.drawable.IconCompat;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Objects;

public class C2571 {

    public static final String f11641 = "androidx.core.app.extra.COMPAT_TEMPLATE";

    public static final int f11642 = 32;

    @SuppressLint({"ActionValue"})
    public static final String f11643 = "android.intent.extra.CHANNEL_ID";

    public static final String f11644 = "social";

    public static final int f11645 = -1;

    public static final int f11646 = -1;

    public static final int f11647 = 512;

    @SuppressLint({"ActionValue"})
    public static final String f11648 = "android.chronometerCountDown";

    @SuppressLint({"ActionValue"})
    public static final String f11649 = "android.picture";

    @InterfaceC1770
    public static final int f11650 = 0;

    @SuppressLint({"ActionValue"})
    public static final String f11651 = "android.remoteInputHistory";

    public static final int f11652 = 4096;

    public static final String f11653 = "workout";

    @SuppressLint({"ActionValue"})
    public static final String f11654 = "android.showChronometer";

    @SuppressLint({"ActionValue"})
    public static final String f11655 = "android.messages";

    public static final String f11656 = "sys";

    public static final String f11657 = "stopwatch";

    public static final int f11658 = -1;

    public static final String f11659 = "location_sharing";

    @SuppressLint({"ActionValue"})
    public static final String f11660 = "android.backgroundImageUri";

    @SuppressLint({"ActionValue"})
    public static final String f11661 = "android.audioContents";

    @SuppressLint({"ActionValue"})
    public static final String f11662 = "android.icon";

    @SuppressLint({"ActionValue"})
    public static final String f11663 = "android.people.list";

    public static final int f11664 = 1;

    public static final int f11665 = 0;

    @SuppressLint({"ActionValue"})
    public static final String f11666 = "android.title.big";

    public static final int f11667 = 0;

    @SuppressLint({"ActionValue"})
    public static final String f11668 = "android.largeIcon.big";

    public static final int f11669 = 1;

    public static final int f11670 = 1;

    public static final String f11671 = "alarm";

    @SuppressLint({"ActionValue"})
    public static final String f11672 = "android.intent.extra.NOTIFICATION_TAG";

    @SuppressLint({"ActionValue"})
    public static final String f11673 = "android.showWhen";

    public static final int f11674 = 4;

    public static final int f11675 = 2;

    @SuppressLint({"ActionValue"})
    public static final String f11676 = "android.mediaSession";

    public static final int f11677 = 1;

    public static final String f11678 = "progress";

    public static final int f11679 = 0;

    public static final int f11680 = -1;

    public static final int f11681 = 2;

    public static final int f11682 = 2;

    public static final int f11683 = 256;

    @SuppressLint({"ActionValue"})
    public static final String f11684 = "android.intent.extra.CHANNEL_GROUP_ID";

    public static final String f11685 = "navigation";

    public static final int f11686 = 64;

    @SuppressLint({"ActionValue"})
    public static final String f11687 = "android.colorized";

    public static final int f11688 = 1;

    @SuppressLint({"ActionValue"})
    public static final String f11689 = "android.hiddenConversationTitle";

    public static final String f11690 = "silent";

    @SuppressLint({"ActionValue"})
    public static final String f11691 = "android.isGroupConversation";

    @SuppressLint({"ActionValue"})
    public static final String f11692 = "android.compactActions";

    @SuppressLint({"ActionValue"})
    public static final String f11693 = "android.progress";

    @SuppressLint({"ActionValue"})
    public static final String f11694 = "android.title";

    public static final int f11695 = 1;

    public static final String f11696 = "status";

    @SuppressLint({"ActionValue"})
    public static final String f11697 = "android.text";

    @SuppressLint({"ActionValue"})
    public static final String f11698 = "android.bigText";

    @SuppressLint({"ActionValue"})
    public static final String f11699 = "android.progressIndeterminate";

    public static final String f11700 = "event";

    @SuppressLint({"ActionValue"})
    public static final String f11701 = "android.messagingStyleUser";

    @SuppressLint({"ActionValue"})
    public static final String f11702 = "android.intent.category.NOTIFICATION_PREFERENCES";

    public static final int f11703 = 2;

    @Deprecated
    public static final int f11704 = 128;

    public static final int f11705 = 16;

    public static final String f11706 = "msg";

    public static final String f11707 = "transport";

    public static final String f11708 = "service";

    @SuppressLint({"ActionValue"})
    @Deprecated
    public static final String f11709 = "android.people";

    public static final int f11710 = 0;

    @SuppressLint({"ActionValue"})
    public static final String f11711 = "android.subText";

    public static final String f11712 = "promo";

    @SuppressLint({"ActionValue"})
    public static final String f11713 = "android.textLines";

    public static final int f11714 = 2;

    @SuppressLint({"ActionValue"})
    public static final String f11715 = "android.largeIcon";

    public static final int f11716 = 8;

    @SuppressLint({"ActionValue"})
    public static final String f11717 = "android.selfDisplayName";

    public static final String f11718 = "missed_call";

    public static final String f11719 = "err";

    @SuppressLint({"ActionValue"})
    public static final String f11720 = "android.template";

    @SuppressLint({"ActionValue"})
    public static final String f11721 = "android.conversationTitle";

    public static final String f11722 = "reminder";

    public static final int f11723 = 4;

    @SuppressLint({"ActionValue"})
    public static final String f11724 = "android.infoText";

    @SuppressLint({"ActionValue"})
    public static final String f11725 = "android.progressMax";

    @SuppressLint({"ActionValue"})
    public static final String f11726 = "android.summaryText";

    public static final String f11727 = "email";

    public static final String f11728 = "call";

    @SuppressLint({"ActionValue"})
    public static final String f11729 = "android.messages.historic";

    public static final int f11730 = -2;

    @SuppressLint({"ActionValue"})
    public static final String f11731 = "android.intent.extra.NOTIFICATION_ID";

    public static final String f11732 = "recommendation";

    public static abstract class AbstractC2572 {

        public CharSequence f11733;

        public boolean f11734 = false;

        public CharSequence f11735;

        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public C2583 f11736;

        private Bitmap m10033(@InterfaceC1793 IconCompat iconCompat, int i, int i2) {
            Drawable m21867 = iconCompat.m21867(this.f11736.f11833);
            int intrinsicWidth = i2 == 0 ? m21867.getIntrinsicWidth() : i2;
            if (i2 == 0) {
                i2 = m21867.getIntrinsicHeight();
            }
            Bitmap createBitmap = Bitmap.createBitmap(intrinsicWidth, i2, Bitmap.Config.ARGB_8888);
            m21867.setBounds(0, 0, intrinsicWidth, i2);
            if (i != 0) {
                m21867.mutate().setColorFilter(new PorterDuffColorFilter(i, PorterDuff.Mode.SRC_IN));
            }
            m21867.draw(new Canvas(createBitmap));
            return createBitmap;
        }

        private int m10034() {
            Resources resources = this.f11736.f11833.getResources();
            int dimensionPixelSize = resources.getDimensionPixelSize(R.dimen.notification_top_pad);
            int dimensionPixelSize2 = resources.getDimensionPixelSize(R.dimen.notification_top_pad_large_text);
            float m10037 = (m10037(resources.getConfiguration().fontScale, 1.0f, 1.3f) - 1.0f) / 0.29999995f;
            return Math.round(((1.0f - m10037) * dimensionPixelSize) + (m10037 * dimensionPixelSize2));
        }

        @InterfaceC1758
        private static AbstractC2572 m10035(@InterfaceC1758 String str) {
            int i;
            if (str != null && (i = Build.VERSION.SDK_INT) >= 16) {
                if (str.equals(Notification.BigPictureStyle.class.getName())) {
                    return new C2584();
                }
                if (str.equals(Notification.BigTextStyle.class.getName())) {
                    return new C2600();
                }
                if (str.equals(Notification.InboxStyle.class.getName())) {
                    return new C2593();
                }
                if (i >= 24) {
                    if (str.equals(Notification.MessagingStyle.class.getName())) {
                        return new C2587();
                    }
                    if (str.equals(Notification.DecoratedCustomViewStyle.class.getName())) {
                        return new C2599();
                    }
                }
            }
            return null;
        }

        private void m10036(RemoteViews remoteViews) {
            remoteViews.setViewVisibility(R.id.title, 8);
            remoteViews.setViewVisibility(R.id.text2, 8);
            remoteViews.setViewVisibility(R.id.text, 8);
        }

        private static float m10037(float f, float f2, float f3) {
            return f < f2 ? f2 : f > f3 ? f3 : f;
        }

        @InterfaceC1758
        public static AbstractC2572 m10038(@InterfaceC1793 Bundle bundle) {
            AbstractC2572 m10043 = m10043(bundle.getString(C2571.f11641));
            return m10043 != null ? m10043 : (bundle.containsKey(C2571.f11717) || bundle.containsKey(C2571.f11701)) ? new C2587() : bundle.containsKey(C2571.f11649) ? new C2584() : bundle.containsKey(C2571.f11698) ? new C2600() : bundle.containsKey(C2571.f11713) ? new C2593() : m10035(bundle.getString(C2571.f11720));
        }

        @InterfaceC1758
        public static AbstractC2572 m10039(@InterfaceC1793 Bundle bundle) {
            AbstractC2572 m10038 = m10038(bundle);
            if (m10038 == null) {
                return null;
            }
            try {
                m10038.mo10045(bundle);
                return m10038;
            } catch (ClassCastException unused) {
                return null;
            }
        }

        @InterfaceC1758
        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public static AbstractC2572 m10040(@InterfaceC1793 Notification notification) {
            Bundle m10027 = C2571.m10027(notification);
            if (m10027 == null) {
                return null;
            }
            return m10039(m10027);
        }

        private Bitmap m10041(int i, int i2, int i3, int i4) {
            int i5 = R.drawable.notification_icon_background;
            if (i4 == 0) {
                i4 = 0;
            }
            Bitmap m10042 = m10042(i5, i4, i2);
            Canvas canvas = new Canvas(m10042);
            Drawable mutate = this.f11736.f11833.getResources().getDrawable(i).mutate();
            mutate.setFilterBitmap(true);
            int i6 = (i2 - i3) / 2;
            int i7 = i3 + i6;
            mutate.setBounds(i6, i6, i7, i7);
            mutate.setColorFilter(new PorterDuffColorFilter(-1, PorterDuff.Mode.SRC_ATOP));
            mutate.draw(canvas);
            return m10042;
        }

        private Bitmap m10042(int i, int i2, int i3) {
            return m10033(IconCompat.m21840(this.f11736.f11833, i), i2, i3);
        }

        @InterfaceC1758
        public static AbstractC2572 m10043(@InterfaceC1758 String str) {
            if (str == null) {
                return null;
            }
            str.hashCode();
            switch (str) {
                case "androidx.core.app.NotificationCompat$DecoratedCustomViewStyle":
                    return new C2599();
                case "androidx.core.app.NotificationCompat$BigPictureStyle":
                    return new C2584();
                case "androidx.core.app.NotificationCompat$InboxStyle":
                    return new C2593();
                case "androidx.core.app.NotificationCompat$BigTextStyle":
                    return new C2600();
                case "androidx.core.app.NotificationCompat$MessagingStyle":
                    return new C2587();
                default:
                    return null;
            }
        }

        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public void mo5651(InterfaceC2621 interfaceC2621) {
        }

        @InterfaceC1758
        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public String mo10044() {
            return null;
        }

        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public void mo10045(@InterfaceC1793 Bundle bundle) {
            if (bundle.containsKey(C2571.f11726)) {
                this.f11735 = bundle.getCharSequence(C2571.f11726);
                this.f11734 = true;
            }
            this.f11733 = bundle.getCharSequence(C2571.f11666);
        }

        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public void mo10046(@InterfaceC1793 Bundle bundle) {
            bundle.remove(C2571.f11726);
            bundle.remove(C2571.f11666);
            bundle.remove(C2571.f11641);
        }

        @InterfaceC1758
        public Notification m10047() {
            C2583 c2583 = this.f11736;
            if (c2583 != null) {
                return c2583.m10152();
            }
            return null;
        }

        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public Bitmap m10048(int i, int i2) {
            return m10042(i, i2, 0);
        }

        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public RemoteViews mo5656(InterfaceC2621 interfaceC2621) {
            return null;
        }

        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public RemoteViews mo5657(InterfaceC2621 interfaceC2621) {
            return null;
        }

        @InterfaceC1793
        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public RemoteViews m10049(boolean z, int i, boolean z2) {
            boolean z3;
            boolean z4;
            boolean z5;
            CharSequence charSequence;
            boolean z6;
            CharSequence charSequence2;
            Resources resources = this.f11736.f11833.getResources();
            RemoteViews remoteViews = new RemoteViews(this.f11736.f11833.getPackageName(), i);
            boolean z7 = true;
            boolean z8 = this.f11736.m10199() < -1;
            int i2 = Build.VERSION.SDK_INT;
            if (i2 >= 16 && i2 < 21) {
                if (z8) {
                    remoteViews.setInt(R.id.notification_background, "setBackgroundResource", R.drawable.notification_bg_low);
                    remoteViews.setInt(R.id.icon, "setBackgroundResource", R.drawable.notification_template_icon_low_bg);
                } else {
                    remoteViews.setInt(R.id.notification_background, "setBackgroundResource", R.drawable.notification_bg);
                    remoteViews.setInt(R.id.icon, "setBackgroundResource", R.drawable.notification_template_icon_bg);
                }
            }
            C2583 c2583 = this.f11736;
            if (c2583.f11804 != null) {
                if (i2 >= 16) {
                    int i3 = R.id.icon;
                    remoteViews.setViewVisibility(i3, 0);
                    remoteViews.setImageViewBitmap(i3, this.f11736.f11804);
                } else {
                    remoteViews.setViewVisibility(R.id.icon, 8);
                }
                if (z && this.f11736.f11838.icon != 0) {
                    int dimensionPixelSize = resources.getDimensionPixelSize(R.dimen.notification_right_icon_size);
                    int dimensionPixelSize2 = dimensionPixelSize - (resources.getDimensionPixelSize(R.dimen.notification_small_icon_background_padding) * 2);
                    if (i2 >= 21) {
                        C2583 c25832 = this.f11736;
                        remoteViews.setImageViewBitmap(R.id.right_icon, m10041(c25832.f11838.icon, dimensionPixelSize, dimensionPixelSize2, c25832.m10176()));
                    } else {
                        remoteViews.setImageViewBitmap(R.id.right_icon, m10048(this.f11736.f11838.icon, -1));
                    }
                    remoteViews.setViewVisibility(R.id.right_icon, 0);
                }
            } else if (z && c2583.f11838.icon != 0) {
                int i4 = R.id.icon;
                remoteViews.setViewVisibility(i4, 0);
                if (i2 >= 21) {
                    int dimensionPixelSize3 = resources.getDimensionPixelSize(R.dimen.notification_large_icon_width) - resources.getDimensionPixelSize(R.dimen.notification_big_circle_margin);
                    int dimensionPixelSize4 = resources.getDimensionPixelSize(R.dimen.notification_small_icon_size_as_large);
                    C2583 c25833 = this.f11736;
                    remoteViews.setImageViewBitmap(i4, m10041(c25833.f11838.icon, dimensionPixelSize3, dimensionPixelSize4, c25833.m10176()));
                } else {
                    remoteViews.setImageViewBitmap(i4, m10048(this.f11736.f11838.icon, -1));
                }
            }
            CharSequence charSequence3 = this.f11736.f11848;
            if (charSequence3 != null) {
                remoteViews.setTextViewText(R.id.title, charSequence3);
            }
            CharSequence charSequence4 = this.f11736.f11803;
            if (charSequence4 != null) {
                remoteViews.setTextViewText(R.id.text, charSequence4);
                z3 = true;
            } else {
                z3 = false;
            }
            boolean z9 = i2 < 21 && this.f11736.f11804 != null;
            C2583 c25834 = this.f11736;
            CharSequence charSequence5 = c25834.f11820;
            if (charSequence5 != null) {
                int i5 = R.id.info;
                remoteViews.setTextViewText(i5, charSequence5);
                remoteViews.setViewVisibility(i5, 0);
            } else {
                if (c25834.f11823 <= 0) {
                    remoteViews.setViewVisibility(R.id.info, 8);
                    z4 = z3;
                    z5 = z9;
                    charSequence = this.f11736.f11834;
                    if (charSequence != null && i2 >= 16) {
                        remoteViews.setTextViewText(R.id.text, charSequence);
                        charSequence2 = this.f11736.f11803;
                        if (charSequence2 == null) {
                            int i6 = R.id.text2;
                            remoteViews.setTextViewText(i6, charSequence2);
                            remoteViews.setViewVisibility(i6, 0);
                            z6 = true;
                            if (z6 && i2 >= 16) {
                                if (z2) {
                                    remoteViews.setTextViewTextSize(R.id.text, 0, resources.getDimensionPixelSize(R.dimen.notification_subtext_size));
                                }
                                remoteViews.setViewPadding(R.id.line1, 0, 0, 0, 0);
                            }
                            if (this.f11736.m10146() == 0) {
                                z7 = z5;
                            } else if (!this.f11736.f11835 || i2 < 16) {
                                int i7 = R.id.time;
                                remoteViews.setViewVisibility(i7, 0);
                                remoteViews.setLong(i7, "setTime", this.f11736.m10146());
                            } else {
                                int i8 = R.id.chronometer;
                                remoteViews.setViewVisibility(i8, 0);
                                remoteViews.setLong(i8, "setBase", this.f11736.m10146() + (SystemClock.elapsedRealtime() - System.currentTimeMillis()));
                                remoteViews.setBoolean(i8, "setStarted", true);
                                boolean z10 = this.f11736.f11801;
                                if (z10 && i2 >= 24) {
                                    remoteViews.setChronometerCountDown(i8, z10);
                                }
                            }
                            remoteViews.setViewVisibility(R.id.right_side, z7 ? 0 : 8);
                            remoteViews.setViewVisibility(R.id.line3, z4 ? 0 : 8);
                            return remoteViews;
                        }
                        remoteViews.setViewVisibility(R.id.text2, 8);
                    }
                    z6 = false;
                    if (z6) {
                        if (z2) {
                        }
                        remoteViews.setViewPadding(R.id.line1, 0, 0, 0, 0);
                    }
                    if (this.f11736.m10146() == 0) {
                    }
                    remoteViews.setViewVisibility(R.id.right_side, z7 ? 0 : 8);
                    remoteViews.setViewVisibility(R.id.line3, z4 ? 0 : 8);
                    return remoteViews;
                }
                if (this.f11736.f11823 > resources.getInteger(R.integer.status_bar_notification_info_maxnum)) {
                    remoteViews.setTextViewText(R.id.info, resources.getString(R.string.status_bar_notification_info_overflow));
                } else {
                    remoteViews.setTextViewText(R.id.info, NumberFormat.getIntegerInstance().format(this.f11736.f11823));
                }
                remoteViews.setViewVisibility(R.id.info, 0);
            }
            z4 = true;
            z5 = true;
            charSequence = this.f11736.f11834;
            if (charSequence != null) {
                remoteViews.setTextViewText(R.id.text, charSequence);
                charSequence2 = this.f11736.f11803;
                if (charSequence2 == null) {
                }
            }
            z6 = false;
            if (z6) {
            }
            if (this.f11736.m10146() == 0) {
            }
            remoteViews.setViewVisibility(R.id.right_side, z7 ? 0 : 8);
            remoteViews.setViewVisibility(R.id.line3, z4 ? 0 : 8);
            return remoteViews;
        }

        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public void mo10050(@InterfaceC1793 Bundle bundle) {
            if (this.f11734) {
                bundle.putCharSequence(C2571.f11726, this.f11735);
            }
            CharSequence charSequence = this.f11733;
            if (charSequence != null) {
                bundle.putCharSequence(C2571.f11666, charSequence);
            }
            String mo10044 = mo10044();
            if (mo10044 != null) {
                bundle.putString(C2571.f11641, mo10044);
            }
        }

        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public boolean mo10051() {
            return false;
        }

        public Bitmap m10052(@InterfaceC1793 IconCompat iconCompat, int i) {
            return m10033(iconCompat, i, 0);
        }

        public void m10053(@InterfaceC1758 C2583 c2583) {
            if (this.f11736 != c2583) {
                this.f11736 = c2583;
                if (c2583 != null) {
                    c2583.m10179(this);
                }
            }
        }

        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public RemoteViews mo5664(InterfaceC2621 interfaceC2621) {
            return null;
        }

        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public void m10054(RemoteViews remoteViews, RemoteViews remoteViews2) {
            m10036(remoteViews);
            int i = R.id.notification_main_column;
            remoteViews.removeAllViews(i);
            remoteViews.addView(i, remoteViews2.clone());
            remoteViews.setViewVisibility(i, 0);
            if (Build.VERSION.SDK_INT >= 21) {
                remoteViews.setViewPadding(R.id.notification_main_column_container, 0, m10034(), 0, 0);
            }
        }
    }

    public static class C2573 {

        public static final int f11737 = 4;

        public static final int f11738 = 8;

        public static final int f11739 = 9;

        public static final int f11740 = 1;

        public static final int f11741 = 10;

        public static final String f11742 = "android.support.action.showsUserInterface";

        public static final int f11743 = 0;

        public static final int f11744 = 7;

        public static final int f11745 = 5;

        public static final int f11746 = 6;

        public static final int f11747 = 3;

        public static final int f11748 = 2;

        public static final String f11749 = "android.support.action.semanticAction";

        @InterfaceC1758
        private IconCompat f11750;

        public boolean f11751;

        public CharSequence f11752;

        private final int f11753;

        private final C2628[] f11754;

        private final boolean f11755;

        public PendingIntent f11756;

        private final C2628[] f11757;

        public final Bundle f11758;

        @Deprecated
        public int f11759;

        private boolean f11760;

        public interface InterfaceC2574 {
            @InterfaceC1793
            C2577 mo10066(@InterfaceC1793 C2577 c2577);
        }

        @Retention(RetentionPolicy.SOURCE)
        public @interface InterfaceC2576 {
        }

        public static final class C2577 {

            private final CharSequence f11774;

            private ArrayList<C2628> f11775;

            private int f11776;

            private boolean f11777;

            private boolean f11778;

            private final PendingIntent f11779;

            private final IconCompat f11780;

            private boolean f11781;

            private final Bundle f11782;

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

            @InterfaceC1793
            @InterfaceC1753(19)
            @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
            public static C2577 m10081(@InterfaceC1793 Notification.Action action) {
                RemoteInput[] remoteInputs;
                int i = Build.VERSION.SDK_INT;
                C2577 c2577 = (i < 23 || action.getIcon() == null) ? new C2577(action.icon, action.title, action.actionIntent) : new C2577(IconCompat.m21837(action.getIcon()), action.title, action.actionIntent);
                if (i >= 20 && (remoteInputs = action.getRemoteInputs()) != null && remoteInputs.length != 0) {
                    for (RemoteInput remoteInput : remoteInputs) {
                        c2577.m10083(C2628.m10434(remoteInput));
                    }
                }
                int i2 = Build.VERSION.SDK_INT;
                if (i2 >= 24) {
                    c2577.f11777 = action.getAllowGeneratedReplies();
                }
                if (i2 >= 28) {
                    c2577.m10084(action.getSemanticAction());
                }
                if (i2 >= 29) {
                    c2577.m10090(action.isContextual());
                }
                return c2577;
            }

            private void m10082() {
                if (this.f11781) {
                    Objects.requireNonNull(this.f11779, "Contextual Actions must contain a valid PendingIntent");
                }
            }

            @InterfaceC1793
            public C2577 m10083(@InterfaceC1758 C2628 c2628) {
                if (this.f11775 == null) {
                    this.f11775 = new ArrayList<>();
                }
                if (c2628 != null) {
                    this.f11775.add(c2628);
                }
                return this;
            }

            @InterfaceC1793
            public C2577 m10084(int i) {
                this.f11776 = i;
                return this;
            }

            @InterfaceC1793
            public Bundle m10085() {
                return this.f11782;
            }

            @InterfaceC1793
            public C2577 m10086(boolean z) {
                this.f11777 = z;
                return this;
            }

            @InterfaceC1793
            public C2577 m10087(boolean z) {
                this.f11778 = z;
                return this;
            }

            @InterfaceC1793
            public C2573 m10088() {
                m10082();
                ArrayList arrayList = new ArrayList();
                ArrayList arrayList2 = new ArrayList();
                ArrayList<C2628> arrayList3 = this.f11775;
                if (arrayList3 != null) {
                    Iterator<C2628> it = arrayList3.iterator();
                    while (it.hasNext()) {
                        C2628 next = it.next();
                        if (next.m10440()) {
                            arrayList.add(next);
                        } else {
                            arrayList2.add(next);
                        }
                    }
                }
                C2628[] c2628Arr = arrayList.isEmpty() ? null : (C2628[]) arrayList.toArray(new C2628[arrayList.size()]);
                return new C2573(this.f11780, this.f11774, this.f11779, this.f11782, arrayList2.isEmpty() ? null : (C2628[]) arrayList2.toArray(new C2628[arrayList2.size()]), c2628Arr, this.f11777, this.f11776, this.f11778, this.f11781);
            }

            @InterfaceC1793
            public C2577 m10089(@InterfaceC1758 Bundle bundle) {
                if (bundle != null) {
                    this.f11782.putAll(bundle);
                }
                return this;
            }

            @InterfaceC1793
            public C2577 m10090(boolean z) {
                this.f11781 = z;
                return this;
            }

            @InterfaceC1793
            public C2577 m10091(@InterfaceC1793 InterfaceC2574 interfaceC2574) {
                interfaceC2574.mo10066(this);
                return this;
            }

            public C2577(int i, @InterfaceC1758 CharSequence charSequence, @InterfaceC1758 PendingIntent pendingIntent) {
                this(i != 0 ? IconCompat.m21853(null, "", i) : null, charSequence, pendingIntent, new Bundle(), null, true, 0, true, false);
            }

            public C2577(@InterfaceC1793 C2573 c2573) {
                this(c2573.m10056(), c2573.f11752, c2573.f11756, new Bundle(c2573.f11758), c2573.m10058(), c2573.m10055(), c2573.m10060(), c2573.f11751, c2573.m10061());
            }

            private C2577(@InterfaceC1758 IconCompat iconCompat, @InterfaceC1758 CharSequence charSequence, @InterfaceC1758 PendingIntent pendingIntent, @InterfaceC1793 Bundle bundle, @InterfaceC1758 C2628[] c2628Arr, boolean z, int i, boolean z2, boolean z3) {
                this.f11777 = true;
                this.f11778 = true;
                this.f11780 = iconCompat;
                this.f11774 = C2583.m10120(charSequence);
                this.f11779 = pendingIntent;
                this.f11782 = bundle;
                this.f11775 = c2628Arr == null ? null : new ArrayList<>(Arrays.asList(c2628Arr));
                this.f11777 = z;
                this.f11776 = i;
                this.f11778 = z2;
                this.f11781 = z3;
            }
        }

        public C2573(int i, @InterfaceC1758 CharSequence charSequence, @InterfaceC1758 PendingIntent pendingIntent) {
            this(i != 0 ? IconCompat.m21853(null, "", i) : null, charSequence, pendingIntent);
        }

        public boolean m10055() {
            return this.f11760;
        }

        @InterfaceC1758
        public IconCompat m10056() {
            int i;
            if (this.f11750 == null && (i = this.f11759) != 0) {
                this.f11750 = IconCompat.m21853(null, "", i);
            }
            return this.f11750;
        }

        @InterfaceC1758
        public CharSequence m10057() {
            return this.f11752;
        }

        @InterfaceC1758
        public C2628[] m10058() {
            return this.f11757;
        }

        @InterfaceC1793
        public Bundle m10059() {
            return this.f11758;
        }

        public int m10060() {
            return this.f11753;
        }

        public boolean m10061() {
            return this.f11755;
        }

        @InterfaceC1758
        public C2628[] m10062() {
            return this.f11754;
        }

        @InterfaceC1758
        public PendingIntent m10063() {
            return this.f11756;
        }

        public boolean m10064() {
            return this.f11751;
        }

        @Deprecated
        public int m10065() {
            return this.f11759;
        }

        public static final class C2575 implements InterfaceC2574 {

            private static final String f11761 = "flags";

            private static final int f11762 = 1;

            private static final String f11763 = "inProgressLabel";

            private static final int f11764 = 1;

            private static final String f11765 = "confirmLabel";

            private static final int f11766 = 2;

            private static final int f11767 = 4;

            private static final String f11768 = "cancelLabel";

            private static final String f11769 = "android.wearable.EXTENSIONS";

            private CharSequence f11770;

            private CharSequence f11771;

            private CharSequence f11772;

            private int f11773;

            public C2575() {
                this.f11773 = 1;
            }

            private void m10067(int i, boolean z) {
                if (z) {
                    this.f11773 = i | this.f11773;
                } else {
                    this.f11773 = (i ^ (-1)) & this.f11773;
                }
            }

            @InterfaceC1793
            public C2575 clone() {
                C2575 c2575 = new C2575();
                c2575.f11773 = this.f11773;
                c2575.f11770 = this.f11770;
                c2575.f11772 = this.f11772;
                c2575.f11771 = this.f11771;
                return c2575;
            }

            public boolean m10069() {
                return (this.f11773 & 2) != 0;
            }

            @InterfaceC1793
            @Deprecated
            public C2575 m10070(@InterfaceC1758 CharSequence charSequence) {
                this.f11771 = charSequence;
                return this;
            }

            @InterfaceC1758
            @Deprecated
            public CharSequence m10071() {
                return this.f11770;
            }

            @InterfaceC1758
            @Deprecated
            public CharSequence m10072() {
                return this.f11772;
            }

            @InterfaceC1793
            public C2575 m10073(boolean z) {
                m10067(4, z);
                return this;
            }

            public boolean m10074() {
                return (this.f11773 & 1) != 0;
            }

            @InterfaceC1793
            @Deprecated
            public C2575 m10075(@InterfaceC1758 CharSequence charSequence) {
                this.f11772 = charSequence;
                return this;
            }

            @InterfaceC1758
            @Deprecated
            public CharSequence m10076() {
                return this.f11771;
            }

            @Override
            @InterfaceC1793
            public C2577 mo10066(@InterfaceC1793 C2577 c2577) {
                Bundle bundle = new Bundle();
                int i = this.f11773;
                if (i != 1) {
                    bundle.putInt(f11761, i);
                }
                CharSequence charSequence = this.f11770;
                if (charSequence != null) {
                    bundle.putCharSequence(f11763, charSequence);
                }
                CharSequence charSequence2 = this.f11772;
                if (charSequence2 != null) {
                    bundle.putCharSequence(f11765, charSequence2);
                }
                CharSequence charSequence3 = this.f11771;
                if (charSequence3 != null) {
                    bundle.putCharSequence(f11768, charSequence3);
                }
                c2577.m10085().putBundle(f11769, bundle);
                return c2577;
            }

            @InterfaceC1793
            @Deprecated
            public C2575 m10077(@InterfaceC1758 CharSequence charSequence) {
                this.f11770 = charSequence;
                return this;
            }

            @InterfaceC1793
            public C2575 m10078(boolean z) {
                m10067(2, z);
                return this;
            }

            @InterfaceC1793
            public C2575 m10079(boolean z) {
                m10067(1, z);
                return this;
            }

            public boolean m10080() {
                return (this.f11773 & 4) != 0;
            }

            public C2575(@InterfaceC1793 C2573 c2573) {
                this.f11773 = 1;
                Bundle bundle = c2573.m10059().getBundle(f11769);
                if (bundle != null) {
                    this.f11773 = bundle.getInt(f11761, 1);
                    this.f11770 = bundle.getCharSequence(f11763);
                    this.f11772 = bundle.getCharSequence(f11765);
                    this.f11771 = bundle.getCharSequence(f11768);
                }
            }
        }

        public C2573(@InterfaceC1758 IconCompat iconCompat, @InterfaceC1758 CharSequence charSequence, @InterfaceC1758 PendingIntent pendingIntent) {
            this(iconCompat, charSequence, pendingIntent, new Bundle(), (C2628[]) null, (C2628[]) null, true, 0, true, false);
        }

        public C2573(int i, @InterfaceC1758 CharSequence charSequence, @InterfaceC1758 PendingIntent pendingIntent, @InterfaceC1758 Bundle bundle, @InterfaceC1758 C2628[] c2628Arr, @InterfaceC1758 C2628[] c2628Arr2, boolean z, int i2, boolean z2, boolean z3) {
            this(i != 0 ? IconCompat.m21853(null, "", i) : null, charSequence, pendingIntent, bundle, c2628Arr, c2628Arr2, z, i2, z2, z3);
        }

        public C2573(@InterfaceC1758 IconCompat iconCompat, @InterfaceC1758 CharSequence charSequence, @InterfaceC1758 PendingIntent pendingIntent, @InterfaceC1758 Bundle bundle, @InterfaceC1758 C2628[] c2628Arr, @InterfaceC1758 C2628[] c2628Arr2, boolean z, int i, boolean z2, boolean z3) {
            this.f11751 = true;
            this.f11750 = iconCompat;
            if (iconCompat != null && iconCompat.m21857() == 2) {
                this.f11759 = iconCompat.m21866();
            }
            this.f11752 = C2583.m10120(charSequence);
            this.f11756 = pendingIntent;
            this.f11758 = bundle == null ? new Bundle() : bundle;
            this.f11757 = c2628Arr;
            this.f11754 = c2628Arr2;
            this.f11760 = z;
            this.f11753 = i;
            this.f11751 = z2;
            this.f11755 = z3;
        }
    }

    public static final class C2578 {

        private static final int f11783 = 1;

        private static final int f11784 = 2;

        private PendingIntent f11785;

        private int f11786;

        private String f11787;

        private int f11788;

        private IconCompat f11789;

        private PendingIntent f11790;

        @InterfaceC1744
        private int f11791;

        @InterfaceC1753(30)
        public static class C2579 {
            private C2579() {
            }

            @InterfaceC1758
            @InterfaceC1753(30)
            public static Notification.BubbleMetadata m10103(@InterfaceC1758 C2578 c2578) {
                if (c2578 == null) {
                    return null;
                }
                Notification.BubbleMetadata.Builder builder = c2578.m10099() != null ? new Notification.BubbleMetadata.Builder(c2578.m10099()) : new Notification.BubbleMetadata.Builder(c2578.m10097(), c2578.m10095().m21858());
                builder.setDeleteIntent(c2578.m10100()).setAutoExpandBubble(c2578.m10094()).setSuppressNotification(c2578.m10101());
                if (c2578.m10098() != 0) {
                    builder.setDesiredHeight(c2578.m10098());
                }
                if (c2578.m10102() != 0) {
                    builder.setDesiredHeightResId(c2578.m10102());
                }
                return builder.build();
            }

            @InterfaceC1758
            @InterfaceC1753(30)
            public static C2578 m10104(@InterfaceC1758 Notification.BubbleMetadata bubbleMetadata) {
                if (bubbleMetadata == null) {
                    return null;
                }
                C2580 c2580 = bubbleMetadata.getShortcutId() != null ? new C2580(bubbleMetadata.getShortcutId()) : new C2580(bubbleMetadata.getIntent(), IconCompat.m21837(bubbleMetadata.getIcon()));
                c2580.m10106(bubbleMetadata.getAutoExpandBubble()).m10110(bubbleMetadata.getDeleteIntent()).m10112(bubbleMetadata.isNotificationSuppressed());
                if (bubbleMetadata.getDesiredHeight() != 0) {
                    c2580.m10108(bubbleMetadata.getDesiredHeight());
                }
                if (bubbleMetadata.getDesiredHeightResId() != 0) {
                    c2580.m10113(bubbleMetadata.getDesiredHeightResId());
                }
                return c2580.m10111();
            }
        }

        public static final class C2580 {

            private IconCompat f11792;

            private PendingIntent f11793;

            private String f11794;

            @InterfaceC1744
            private int f11795;

            private int f11796;

            private PendingIntent f11797;

            private int f11798;

            @Deprecated
            public C2580() {
            }

            @InterfaceC1793
            private C2580 m10105(int i, boolean z) {
                if (z) {
                    this.f11798 = i | this.f11798;
                } else {
                    this.f11798 = (i ^ (-1)) & this.f11798;
                }
                return this;
            }

            @InterfaceC1793
            public C2580 m10106(boolean z) {
                m10105(1, z);
                return this;
            }

            @InterfaceC1793
            public C2580 m10107(@InterfaceC1793 IconCompat iconCompat) {
                if (this.f11794 != null) {
                    throw new IllegalStateException("Created as a shortcut bubble, cannot set an Icon. Consider using BubbleMetadata.Builder(PendingIntent,Icon) instead.");
                }
                Objects.requireNonNull(iconCompat, "Bubbles require non-null icon");
                this.f11792 = iconCompat;
                return this;
            }

            @InterfaceC1793
            public C2580 m10108(@InterfaceC1773(unit = 0) int i) {
                this.f11796 = Math.max(i, 0);
                this.f11795 = 0;
                return this;
            }

            @InterfaceC1793
            public C2580 m10109(@InterfaceC1793 PendingIntent pendingIntent) {
                if (this.f11794 != null) {
                    throw new IllegalStateException("Created as a shortcut bubble, cannot set a PendingIntent. Consider using BubbleMetadata.Builder(PendingIntent,Icon) instead.");
                }
                Objects.requireNonNull(pendingIntent, "Bubble requires non-null pending intent");
                this.f11797 = pendingIntent;
                return this;
            }

            @InterfaceC1793
            public C2580 m10110(@InterfaceC1758 PendingIntent pendingIntent) {
                this.f11793 = pendingIntent;
                return this;
            }

            @InterfaceC1793
            @SuppressLint({"SyntheticAccessor"})
            public C2578 m10111() {
                String str = this.f11794;
                if (str == null) {
                    Objects.requireNonNull(this.f11797, "Must supply pending intent or shortcut to bubble");
                }
                if (str == null) {
                    Objects.requireNonNull(this.f11792, "Must supply an icon or shortcut for the bubble");
                }
                C2578 c2578 = new C2578(this.f11797, this.f11793, this.f11792, this.f11796, this.f11795, this.f11798, str);
                c2578.m10096(this.f11798);
                return c2578;
            }

            @InterfaceC1793
            public C2580 m10112(boolean z) {
                m10105(2, z);
                return this;
            }

            @InterfaceC1793
            public C2580 m10113(@InterfaceC1744 int i) {
                this.f11795 = i;
                this.f11796 = 0;
                return this;
            }

            @InterfaceC1753(30)
            public C2580(@InterfaceC1793 String str) {
                if (TextUtils.isEmpty(str)) {
                    throw new NullPointerException("Bubble requires a non-null shortcut id");
                }
                this.f11794 = str;
            }

            public C2580(@InterfaceC1793 PendingIntent pendingIntent, @InterfaceC1793 IconCompat iconCompat) {
                Objects.requireNonNull(pendingIntent, "Bubble requires non-null pending intent");
                Objects.requireNonNull(iconCompat, "Bubbles require non-null icon");
                this.f11797 = pendingIntent;
                this.f11792 = iconCompat;
            }
        }

        @InterfaceC1753(29)
        public static class C2581 {
            private C2581() {
            }

            @InterfaceC1758
            @InterfaceC1753(29)
            public static Notification.BubbleMetadata m10114(@InterfaceC1758 C2578 c2578) {
                if (c2578 == null || c2578.m10097() == null) {
                    return null;
                }
                Notification.BubbleMetadata.Builder suppressNotification = new Notification.BubbleMetadata.Builder().setIcon(c2578.m10095().m21858()).setIntent(c2578.m10097()).setDeleteIntent(c2578.m10100()).setAutoExpandBubble(c2578.m10094()).setSuppressNotification(c2578.m10101());
                if (c2578.m10098() != 0) {
                    suppressNotification.setDesiredHeight(c2578.m10098());
                }
                if (c2578.m10102() != 0) {
                    suppressNotification.setDesiredHeightResId(c2578.m10102());
                }
                return suppressNotification.build();
            }

            @InterfaceC1758
            @InterfaceC1753(29)
            public static C2578 m10115(@InterfaceC1758 Notification.BubbleMetadata bubbleMetadata) {
                if (bubbleMetadata == null || bubbleMetadata.getIntent() == null) {
                    return null;
                }
                C2580 m10112 = new C2580(bubbleMetadata.getIntent(), IconCompat.m21837(bubbleMetadata.getIcon())).m10106(bubbleMetadata.getAutoExpandBubble()).m10110(bubbleMetadata.getDeleteIntent()).m10112(bubbleMetadata.isNotificationSuppressed());
                if (bubbleMetadata.getDesiredHeight() != 0) {
                    m10112.m10108(bubbleMetadata.getDesiredHeight());
                }
                if (bubbleMetadata.getDesiredHeightResId() != 0) {
                    m10112.m10113(bubbleMetadata.getDesiredHeightResId());
                }
                return m10112.m10111();
            }
        }

        @InterfaceC1758
        public static Notification.BubbleMetadata m10092(@InterfaceC1758 C2578 c2578) {
            if (c2578 == null) {
                return null;
            }
            int i = Build.VERSION.SDK_INT;
            if (i >= 30) {
                return C2579.m10103(c2578);
            }
            if (i == 29) {
                return C2581.m10114(c2578);
            }
            return null;
        }

        @InterfaceC1758
        public static C2578 m10093(@InterfaceC1758 Notification.BubbleMetadata bubbleMetadata) {
            if (bubbleMetadata == null) {
                return null;
            }
            int i = Build.VERSION.SDK_INT;
            if (i >= 30) {
                return C2579.m10104(bubbleMetadata);
            }
            if (i == 29) {
                return C2581.m10115(bubbleMetadata);
            }
            return null;
        }

        public boolean m10094() {
            return (this.f11786 & 1) != 0;
        }

        @InterfaceC1758
        @SuppressLint({"InvalidNullConversion"})
        public IconCompat m10095() {
            return this.f11789;
        }

        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public void m10096(int i) {
            this.f11786 = i;
        }

        @InterfaceC1758
        @SuppressLint({"InvalidNullConversion"})
        public PendingIntent m10097() {
            return this.f11790;
        }

        @InterfaceC1773(unit = 0)
        public int m10098() {
            return this.f11788;
        }

        @InterfaceC1758
        public String m10099() {
            return this.f11787;
        }

        @InterfaceC1758
        public PendingIntent m10100() {
            return this.f11785;
        }

        public boolean m10101() {
            return (this.f11786 & 2) != 0;
        }

        @InterfaceC1744
        public int m10102() {
            return this.f11791;
        }

        private C2578(@InterfaceC1758 PendingIntent pendingIntent, @InterfaceC1758 PendingIntent pendingIntent2, @InterfaceC1758 IconCompat iconCompat, int i, @InterfaceC1744 int i2, int i3, @InterfaceC1758 String str) {
            this.f11790 = pendingIntent;
            this.f11789 = iconCompat;
            this.f11788 = i;
            this.f11791 = i2;
            this.f11785 = pendingIntent2;
            this.f11786 = i3;
            this.f11787 = str;
        }
    }

    public interface InterfaceC2582 {
        @InterfaceC1793
        C2583 mo10116(@InterfaceC1793 C2583 c2583);
    }

    public static class C2584 extends AbstractC2572 {

        private static final String f11849 = "androidx.core.app.NotificationCompat$BigPictureStyle";

        private IconCompat f11850;

        private boolean f11851;

        private Bitmap f11852;

        @InterfaceC1753(23)
        public static class C2585 {
            private C2585() {
            }

            @InterfaceC1753(23)
            public static void m10207(Notification.BigPictureStyle bigPictureStyle, Icon icon) {
                bigPictureStyle.bigLargeIcon(icon);
            }
        }

        @InterfaceC1753(16)
        public static class C2586 {
            private C2586() {
            }

            @InterfaceC1753(16)
            public static void m10208(Notification.BigPictureStyle bigPictureStyle, CharSequence charSequence) {
                bigPictureStyle.setSummaryText(charSequence);
            }

            @InterfaceC1753(16)
            public static void m10209(Notification.BigPictureStyle bigPictureStyle, Bitmap bitmap) {
                bigPictureStyle.bigLargeIcon(bitmap);
            }
        }

        public C2584() {
        }

        @InterfaceC1758
        private static IconCompat m10202(@InterfaceC1758 Parcelable parcelable) {
            if (parcelable == null) {
                return null;
            }
            if (Build.VERSION.SDK_INT >= 23 && (parcelable instanceof Icon)) {
                return IconCompat.m21837((Icon) parcelable);
            }
            if (parcelable instanceof Bitmap) {
                return IconCompat.m21842((Bitmap) parcelable);
            }
            return null;
        }

        @Override
        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public void mo5651(InterfaceC2621 interfaceC2621) {
            int i = Build.VERSION.SDK_INT;
            if (i >= 16) {
                Notification.BigPictureStyle bigPicture = new Notification.BigPictureStyle(interfaceC2621.mo10407()).setBigContentTitle(this.f11733).bigPicture(this.f11852);
                if (this.f11851) {
                    IconCompat iconCompat = this.f11850;
                    if (iconCompat == null) {
                        C2586.m10209(bigPicture, null);
                    } else if (i >= 23) {
                        C2585.m10207(bigPicture, this.f11850.m21856(interfaceC2621 instanceof C2638 ? ((C2638) interfaceC2621).m10492() : null));
                    } else if (iconCompat.m21857() == 1) {
                        C2586.m10209(bigPicture, this.f11850.m21861());
                    } else {
                        C2586.m10209(bigPicture, null);
                    }
                }
                if (this.f11734) {
                    C2586.m10208(bigPicture, this.f11735);
                }
            }
        }

        @Override
        @InterfaceC1793
        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public String mo10044() {
            return f11849;
        }

        @InterfaceC1793
        public C2584 m10203(@InterfaceC1758 CharSequence charSequence) {
            this.f11735 = C2583.m10120(charSequence);
            this.f11734 = true;
            return this;
        }

        @InterfaceC1793
        public C2584 m10204(@InterfaceC1758 Bitmap bitmap) {
            this.f11850 = bitmap == null ? null : IconCompat.m21842(bitmap);
            this.f11851 = true;
            return this;
        }

        @Override
        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public void mo10045(@InterfaceC1793 Bundle bundle) {
            super.mo10045(bundle);
            if (bundle.containsKey(C2571.f11668)) {
                this.f11850 = m10202(bundle.getParcelable(C2571.f11668));
                this.f11851 = true;
            }
            this.f11852 = (Bitmap) bundle.getParcelable(C2571.f11649);
        }

        @Override
        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public void mo10046(@InterfaceC1793 Bundle bundle) {
            super.mo10046(bundle);
            bundle.remove(C2571.f11668);
            bundle.remove(C2571.f11649);
        }

        @InterfaceC1793
        public C2584 m10205(@InterfaceC1758 Bitmap bitmap) {
            this.f11852 = bitmap;
            return this;
        }

        @InterfaceC1793
        public C2584 m10206(@InterfaceC1758 CharSequence charSequence) {
            this.f11733 = C2583.m10120(charSequence);
            return this;
        }

        public C2584(@InterfaceC1758 C2583 c2583) {
            m10053(c2583);
        }
    }

    @Retention(RetentionPolicy.SOURCE)
    @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
    public @interface InterfaceC2592 {
    }

    @Retention(RetentionPolicy.SOURCE)
    @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
    public @interface InterfaceC2594 {
    }

    @Retention(RetentionPolicy.SOURCE)
    @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
    public @interface InterfaceC2597 {
    }

    @Retention(RetentionPolicy.SOURCE)
    @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
    public @interface InterfaceC2598 {
    }

    public static class C2599 extends AbstractC2572 {

        private static final int f11952 = 3;

        private static final String f11953 = "androidx.core.app.NotificationCompat$DecoratedCustomViewStyle";

        private RemoteViews m10310(C2573 c2573) {
            boolean z = c2573.f11756 == null;
            RemoteViews remoteViews = new RemoteViews(this.f11736.f11833.getPackageName(), z ? R.layout.notification_action_tombstone : R.layout.notification_action);
            IconCompat m10056 = c2573.m10056();
            if (m10056 != null) {
                remoteViews.setImageViewBitmap(R.id.action_image, m10052(m10056, this.f11736.f11833.getResources().getColor(R.color.notification_action_color_filter)));
            }
            remoteViews.setTextViewText(R.id.action_text, c2573.f11752);
            if (!z) {
                remoteViews.setOnClickPendingIntent(R.id.action_container, c2573.f11756);
            }
            if (Build.VERSION.SDK_INT >= 15) {
                remoteViews.setContentDescription(R.id.action_container, c2573.f11752);
            }
            return remoteViews;
        }

        private RemoteViews m10311(RemoteViews remoteViews, boolean z) {
            int min;
            boolean z2 = true;
            RemoteViews m10049 = m10049(true, R.layout.notification_template_custom_big, false);
            m10049.removeAllViews(R.id.actions);
            List<C2573> m10312 = m10312(this.f11736.f11802);
            if (!z || m10312 == null || (min = Math.min(m10312.size(), 3)) <= 0) {
                z2 = false;
            } else {
                for (int i = 0; i < min; i++) {
                    m10049.addView(R.id.actions, m10310(m10312.get(i)));
                }
            }
            int i2 = z2 ? 0 : 8;
            m10049.setViewVisibility(R.id.actions, i2);
            m10049.setViewVisibility(R.id.action_divider, i2);
            m10054(m10049, remoteViews);
            return m10049;
        }

        private static List<C2573> m10312(List<C2573> list) {
            if (list == null) {
                return null;
            }
            ArrayList arrayList = new ArrayList();
            for (C2573 c2573 : list) {
                if (!c2573.m10061()) {
                    arrayList.add(c2573);
                }
            }
            return arrayList;
        }

        @Override
        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public void mo5651(InterfaceC2621 interfaceC2621) {
            if (Build.VERSION.SDK_INT >= 24) {
                interfaceC2621.mo10407().setStyle(new Notification.DecoratedCustomViewStyle());
            }
        }

        @Override
        @InterfaceC1793
        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public String mo10044() {
            return f11953;
        }

        @Override
        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public RemoteViews mo5656(InterfaceC2621 interfaceC2621) {
            if (Build.VERSION.SDK_INT >= 24) {
                return null;
            }
            RemoteViews m10122 = this.f11736.m10122();
            if (m10122 == null) {
                m10122 = this.f11736.m10159();
            }
            if (m10122 == null) {
                return null;
            }
            return m10311(m10122, true);
        }

        @Override
        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public RemoteViews mo5657(InterfaceC2621 interfaceC2621) {
            if (Build.VERSION.SDK_INT < 24 && this.f11736.m10159() != null) {
                return m10311(this.f11736.m10159(), false);
            }
            return null;
        }

        @Override
        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public boolean mo10051() {
            return true;
        }

        @Override
        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public RemoteViews mo5664(InterfaceC2621 interfaceC2621) {
            if (Build.VERSION.SDK_INT >= 24) {
                return null;
            }
            RemoteViews m10156 = this.f11736.m10156();
            RemoteViews m10159 = m10156 != null ? m10156 : this.f11736.m10159();
            if (m10156 == null) {
                return null;
            }
            return m10311(m10159, true);
        }
    }

    public static class C2600 extends AbstractC2572 {

        private static final String f11954 = "androidx.core.app.NotificationCompat$BigTextStyle";

        private CharSequence f11955;

        public C2600() {
        }

        @Override
        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public void mo5651(InterfaceC2621 interfaceC2621) {
            if (Build.VERSION.SDK_INT >= 16) {
                Notification.BigTextStyle bigText = new Notification.BigTextStyle(interfaceC2621.mo10407()).setBigContentTitle(this.f11733).bigText(this.f11955);
                if (this.f11734) {
                    bigText.setSummaryText(this.f11735);
                }
            }
        }

        @Override
        @InterfaceC1793
        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public String mo10044() {
            return f11954;
        }

        @InterfaceC1793
        public C2600 m10313(@InterfaceC1758 CharSequence charSequence) {
            this.f11733 = C2583.m10120(charSequence);
            return this;
        }

        @Override
        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public void mo10045(@InterfaceC1793 Bundle bundle) {
            super.mo10045(bundle);
            this.f11955 = bundle.getCharSequence(C2571.f11698);
        }

        @Override
        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public void mo10046(@InterfaceC1793 Bundle bundle) {
            super.mo10046(bundle);
            bundle.remove(C2571.f11698);
        }

        @InterfaceC1793
        public C2600 m10314(@InterfaceC1758 CharSequence charSequence) {
            this.f11955 = C2583.m10120(charSequence);
            return this;
        }

        @InterfaceC1793
        public C2600 m10315(@InterfaceC1758 CharSequence charSequence) {
            this.f11735 = C2583.m10120(charSequence);
            this.f11734 = true;
            return this;
        }

        @Override
        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public void mo10050(@InterfaceC1793 Bundle bundle) {
            super.mo10050(bundle);
            if (Build.VERSION.SDK_INT < 21) {
                bundle.putCharSequence(C2571.f11698, this.f11955);
            }
        }

        public C2600(@InterfaceC1758 C2583 c2583) {
            m10053(c2583);
        }
    }

    @Deprecated
    public C2571() {
    }

    public static int m9999(@InterfaceC1793 Notification notification) {
        if (Build.VERSION.SDK_INT >= 26) {
            return notification.getGroupAlertBehavior();
        }
        return 0;
    }

    @InterfaceC1793
    @InterfaceC1753(20)
    public static C2573 m10000(@InterfaceC1793 Notification.Action action) {
        C2628[] c2628Arr;
        int i;
        RemoteInput[] remoteInputs = action.getRemoteInputs();
        if (remoteInputs == null) {
            c2628Arr = null;
        } else {
            C2628[] c2628Arr2 = new C2628[remoteInputs.length];
            for (int i2 = 0; i2 < remoteInputs.length; i2++) {
                RemoteInput remoteInput = remoteInputs[i2];
                c2628Arr2[i2] = new C2628(remoteInput.getResultKey(), remoteInput.getLabel(), remoteInput.getChoices(), remoteInput.getAllowFreeFormInput(), Build.VERSION.SDK_INT >= 29 ? remoteInput.getEditChoicesBeforeSending() : 0, remoteInput.getExtras(), null);
            }
            c2628Arr = c2628Arr2;
        }
        int i3 = Build.VERSION.SDK_INT;
        boolean z = i3 >= 24 ? action.getExtras().getBoolean(C2635.f12127) || action.getAllowGeneratedReplies() : action.getExtras().getBoolean(C2635.f12127);
        boolean z2 = action.getExtras().getBoolean(C2573.f11742, true);
        int semanticAction = i3 >= 28 ? action.getSemanticAction() : action.getExtras().getInt(C2573.f11749, 0);
        boolean isContextual = i3 >= 29 ? action.isContextual() : false;
        if (i3 < 23) {
            return new C2573(action.icon, action.title, action.actionIntent, action.getExtras(), c2628Arr, (C2628[]) null, z, semanticAction, z2, isContextual);
        }
        if (action.getIcon() != null || (i = action.icon) == 0) {
            return new C2573(action.getIcon() != null ? IconCompat.m21851(action.getIcon()) : null, action.title, action.actionIntent, action.getExtras(), c2628Arr, (C2628[]) null, z, semanticAction, z2, isContextual);
        }
        return new C2573(i, action.title, action.actionIntent, action.getExtras(), c2628Arr, (C2628[]) null, z, semanticAction, z2, isContextual);
    }

    public static int m10001(@InterfaceC1793 Notification notification) {
        if (Build.VERSION.SDK_INT >= 26) {
            return notification.getBadgeIconType();
        }
        return 0;
    }

    public static int m10002(@InterfaceC1793 Notification notification) {
        if (Build.VERSION.SDK_INT >= 21) {
            return notification.color;
        }
        return 0;
    }

    @InterfaceC1758
    public static C2553 m10003(@InterfaceC1793 Notification notification) {
        LocusId locusId;
        if (Build.VERSION.SDK_INT < 29 || (locusId = notification.getLocusId()) == null) {
            return null;
        }
        return C2553.m9937(locusId);
    }

    public static long m10004(@InterfaceC1793 Notification notification) {
        if (Build.VERSION.SDK_INT >= 26) {
            return notification.getTimeoutAfter();
        }
        return 0L;
    }

    @InterfaceC1793
    public static Notification[] m10005(@InterfaceC1793 Bundle bundle, @InterfaceC1793 String str) {
        Parcelable[] parcelableArray = bundle.getParcelableArray(str);
        if ((parcelableArray instanceof Notification[]) || parcelableArray == null) {
            return (Notification[]) parcelableArray;
        }
        Notification[] notificationArr = new Notification[parcelableArray.length];
        for (int i = 0; i < parcelableArray.length; i++) {
            notificationArr[i] = (Notification) parcelableArray[i];
        }
        bundle.putParcelableArray(str, notificationArr);
        return notificationArr;
    }

    @InterfaceC1753(19)
    public static boolean m10006(@InterfaceC1793 Notification notification) {
        return notification.extras.getBoolean(f11673);
    }

    @InterfaceC1758
    public static Notification m10007(@InterfaceC1793 Notification notification) {
        if (Build.VERSION.SDK_INT >= 21) {
            return notification.publicVersion;
        }
        return null;
    }

    @InterfaceC1758
    public static C2578 m10008(@InterfaceC1793 Notification notification) {
        if (Build.VERSION.SDK_INT >= 29) {
            return C2578.m10093(notification.getBubbleMetadata());
        }
        return null;
    }

    public static boolean m10009(@InterfaceC1793 Notification notification) {
        if (Build.VERSION.SDK_INT >= 29) {
            return notification.getAllowSystemGeneratedContextualActions();
        }
        return false;
    }

    @InterfaceC1758
    @InterfaceC1753(19)
    public static CharSequence m10010(@InterfaceC1793 Notification notification) {
        return notification.extras.getCharSequence(f11694);
    }

    @InterfaceC1758
    public static String m10011(@InterfaceC1793 Notification notification) {
        if (Build.VERSION.SDK_INT >= 21) {
            return notification.category;
        }
        return null;
    }

    @InterfaceC1758
    @InterfaceC1753(19)
    public static CharSequence m10012(@InterfaceC1793 Notification notification) {
        return notification.extras.getCharSequence(f11724);
    }

    public static boolean m10013(@InterfaceC1793 Notification notification) {
        return (notification.flags & 2) != 0;
    }

    public static boolean m10014(@InterfaceC1793 Notification notification) {
        return (notification.flags & 8) != 0;
    }

    @InterfaceC1758
    @InterfaceC1753(19)
    public static CharSequence m10015(@InterfaceC1793 Notification notification) {
        return notification.extras.getCharSequence(f11697);
    }

    public static boolean m10016(@InterfaceC1793 Notification notification) {
        int i = Build.VERSION.SDK_INT;
        if (i >= 20) {
            return (notification.flags & 256) != 0;
        }
        if (i >= 19) {
            return notification.extras.getBoolean(C2648.f12160);
        }
        if (i >= 16) {
            return C2635.m10467(notification).getBoolean(C2648.f12160);
        }
        return false;
    }

    public static int m10017(@InterfaceC1793 Notification notification) {
        int i = Build.VERSION.SDK_INT;
        if (i < 19) {
            if (i >= 16) {
                return C2635.m10461(notification);
            }
            return 0;
        }
        Notification.Action[] actionArr = notification.actions;
        if (actionArr != null) {
            return actionArr.length;
        }
        return 0;
    }

    @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
    public static boolean m10018(@InterfaceC1793 Notification notification) {
        return (notification.flags & 128) != 0;
    }

    @InterfaceC1758
    public static String m10019(@InterfaceC1793 Notification notification) {
        if (Build.VERSION.SDK_INT >= 26) {
            return notification.getShortcutId();
        }
        return null;
    }

    @InterfaceC1758
    public static String m10020(@InterfaceC1793 Notification notification) {
        int i = Build.VERSION.SDK_INT;
        if (i >= 20) {
            return notification.getSortKey();
        }
        if (i >= 19) {
            return notification.extras.getString(C2648.f12158);
        }
        if (i >= 16) {
            return C2635.m10467(notification).getString(C2648.f12158);
        }
        return null;
    }

    public static boolean m10021(@InterfaceC1793 Notification notification) {
        int i = Build.VERSION.SDK_INT;
        if (i >= 20) {
            return (notification.flags & 512) != 0;
        }
        if (i >= 19) {
            return notification.extras.getBoolean(C2648.f12159);
        }
        if (i >= 16) {
            return C2635.m10467(notification).getBoolean(C2648.f12159);
        }
        return false;
    }

    @InterfaceC1758
    public static C2573 m10022(@InterfaceC1793 Notification notification, int i) {
        int i2 = Build.VERSION.SDK_INT;
        if (i2 >= 20) {
            return m10000(notification.actions[i]);
        }
        if (i2 >= 19) {
            Notification.Action action = notification.actions[i];
            SparseArray sparseParcelableArray = notification.extras.getSparseParcelableArray(C2648.f12161);
            return C2635.m10468(action.icon, action.title, action.actionIntent, sparseParcelableArray != null ? (Bundle) sparseParcelableArray.get(i) : null);
        }
        if (i2 >= 16) {
            return C2635.m10474(notification, i);
        }
        return null;
    }

    @InterfaceC1793
    @InterfaceC1753(21)
    public static List<C2573> m10023(@InterfaceC1793 Notification notification) {
        Bundle bundle;
        Bundle bundle2;
        ArrayList arrayList = new ArrayList();
        if (Build.VERSION.SDK_INT >= 19 && (bundle = notification.extras.getBundle(C2589.f11878)) != null && (bundle2 = bundle.getBundle(C2589.f11880)) != null) {
            for (int i = 0; i < bundle2.size(); i++) {
                arrayList.add(C2635.m10463(bundle2.getBundle(Integer.toString(i))));
            }
        }
        return arrayList;
    }

    @InterfaceC1758
    public static String m10024(@InterfaceC1793 Notification notification) {
        int i = Build.VERSION.SDK_INT;
        if (i >= 20) {
            return notification.getGroup();
        }
        if (i >= 19) {
            return notification.extras.getString(C2648.f12156);
        }
        if (i >= 16) {
            return C2635.m10467(notification).getString(C2648.f12156);
        }
        return null;
    }

    @InterfaceC1758
    @InterfaceC1753(19)
    public static CharSequence m10025(@InterfaceC1793 Notification notification) {
        return notification.extras.getCharSequence(f11711);
    }

    @InterfaceC1758
    public static CharSequence m10026(@InterfaceC1793 Notification notification) {
        if (Build.VERSION.SDK_INT >= 26) {
            return notification.getSettingsText();
        }
        return null;
    }

    @InterfaceC1758
    public static Bundle m10027(@InterfaceC1793 Notification notification) {
        int i = Build.VERSION.SDK_INT;
        if (i >= 19) {
            return notification.extras;
        }
        if (i >= 16) {
            return C2635.m10467(notification);
        }
        return null;
    }

    @InterfaceC1758
    public static String m10028(@InterfaceC1793 Notification notification) {
        if (Build.VERSION.SDK_INT >= 26) {
            return notification.getChannelId();
        }
        return null;
    }

    @InterfaceC1753(19)
    public static boolean m10029(@InterfaceC1793 Notification notification) {
        return notification.extras.getBoolean(f11654);
    }

    public static int m10030(@InterfaceC1793 Notification notification) {
        if (Build.VERSION.SDK_INT >= 21) {
            return notification.visibility;
        }
        return 0;
    }

    @InterfaceC1793
    public static List<C2611> m10031(@InterfaceC1793 Notification notification) {
        String[] stringArray;
        ArrayList arrayList = new ArrayList();
        int i = Build.VERSION.SDK_INT;
        if (i >= 28) {
            ArrayList parcelableArrayList = notification.extras.getParcelableArrayList(f11663);
            if (parcelableArrayList != null && !parcelableArrayList.isEmpty()) {
                Iterator it = parcelableArrayList.iterator();
                while (it.hasNext()) {
                    arrayList.add(C2611.m10368((Person) it.next()));
                }
            }
        } else if (i >= 19 && (stringArray = notification.extras.getStringArray(f11709)) != null && stringArray.length != 0) {
            for (String str : stringArray) {
                arrayList.add(new C2611.C2612().m10382(str).m10385());
            }
        }
        return arrayList;
    }

    public static boolean m10032(@InterfaceC1793 Notification notification) {
        return (notification.flags & 16) != 0;
    }

    public static final class C2589 implements InterfaceC2582 {

        private static final String f11874 = "timestamp";

        private static final String f11875 = "car_conversation";

        private static final String f11876 = "text";

        private static final String f11877 = "app_color";

        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public static final String f11878 = "android.car.EXTENSIONS";

        private static final String f11879 = "on_reply";

        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public static final String f11880 = "invisible_actions";

        private static final String f11881 = "messages";

        private static final String f11882 = "remote_input";

        private static final String f11883 = "participants";

        private static final String f11884 = "on_read";

        private static final String f11885 = "author";

        private static final String f11886 = "large_icon";

        private C2590 f11887;

        private int f11888;

        private Bitmap f11889;

        @Deprecated
        public static class C2590 {

            private final C2628 f11890;

            private final long f11891;

            private final PendingIntent f11892;

            private final PendingIntent f11893;

            private final String[] f11894;

            private final String[] f11895;

            public static class C2591 {

                private final String f11896;

                private long f11897;

                private PendingIntent f11898;

                private C2628 f11899;

                private final List<String> f11900 = new ArrayList();

                private PendingIntent f11901;

                public C2591(@InterfaceC1793 String str) {
                    this.f11896 = str;
                }

                @InterfaceC1793
                public C2590 m10255() {
                    List<String> list = this.f11900;
                    return new C2590((String[]) list.toArray(new String[list.size()]), this.f11899, this.f11901, this.f11898, new String[]{this.f11896}, this.f11897);
                }

                @InterfaceC1793
                public C2591 m10256(@InterfaceC1758 PendingIntent pendingIntent) {
                    this.f11898 = pendingIntent;
                    return this;
                }

                @InterfaceC1793
                public C2591 m10257(long j) {
                    this.f11897 = j;
                    return this;
                }

                @InterfaceC1793
                public C2591 m10258(@InterfaceC1758 String str) {
                    if (str != null) {
                        this.f11900.add(str);
                    }
                    return this;
                }

                @InterfaceC1793
                public C2591 m10259(@InterfaceC1758 PendingIntent pendingIntent, @InterfaceC1758 C2628 c2628) {
                    this.f11899 = c2628;
                    this.f11901 = pendingIntent;
                    return this;
                }
            }

            public C2590(@InterfaceC1758 String[] strArr, @InterfaceC1758 C2628 c2628, @InterfaceC1758 PendingIntent pendingIntent, @InterfaceC1758 PendingIntent pendingIntent2, @InterfaceC1758 String[] strArr2, long j) {
                this.f11894 = strArr;
                this.f11890 = c2628;
                this.f11892 = pendingIntent2;
                this.f11893 = pendingIntent;
                this.f11895 = strArr2;
                this.f11891 = j;
            }

            @InterfaceC1758
            public String[] m10248() {
                return this.f11894;
            }

            @InterfaceC1758
            public C2628 m10249() {
                return this.f11890;
            }

            @InterfaceC1758
            public PendingIntent m10250() {
                return this.f11893;
            }

            @InterfaceC1758
            public String[] m10251() {
                return this.f11895;
            }

            @InterfaceC1758
            public String m10252() {
                String[] strArr = this.f11895;
                if (strArr.length > 0) {
                    return strArr[0];
                }
                return null;
            }

            public long m10253() {
                return this.f11891;
            }

            @InterfaceC1758
            public PendingIntent m10254() {
                return this.f11892;
            }
        }

        public C2589() {
            this.f11888 = 0;
        }

        @InterfaceC1753(21)
        private static Bundle m10240(@InterfaceC1793 C2590 c2590) {
            Bundle bundle = new Bundle();
            String str = (c2590.m10251() == null || c2590.m10251().length <= 1) ? null : c2590.m10251()[0];
            int length = c2590.m10248().length;
            Parcelable[] parcelableArr = new Parcelable[length];
            for (int i = 0; i < length; i++) {
                Bundle bundle2 = new Bundle();
                bundle2.putString("text", c2590.m10248()[i]);
                bundle2.putString(f11885, str);
                parcelableArr[i] = bundle2;
            }
            bundle.putParcelableArray(f11881, parcelableArr);
            C2628 m10249 = c2590.m10249();
            if (m10249 != null) {
                bundle.putParcelable(f11882, new RemoteInput.Builder(m10249.m10441()).setLabel(m10249.m10442()).setChoices(m10249.m10438()).setAllowFreeFormInput(m10249.m10435()).addExtras(m10249.m10437()).build());
            }
            bundle.putParcelable(f11879, c2590.m10250());
            bundle.putParcelable(f11884, c2590.m10254());
            bundle.putStringArray(f11883, c2590.m10251());
            bundle.putLong("timestamp", c2590.m10253());
            return bundle;
        }

        @InterfaceC1753(21)
        private static C2590 m10241(@InterfaceC1758 Bundle bundle) {
            String[] strArr;
            boolean z;
            if (bundle == null) {
                return null;
            }
            Parcelable[] parcelableArray = bundle.getParcelableArray(f11881);
            if (parcelableArray != null) {
                int length = parcelableArray.length;
                String[] strArr2 = new String[length];
                for (int i = 0; i < length; i++) {
                    if (parcelableArray[i] instanceof Bundle) {
                        strArr2[i] = ((Bundle) parcelableArray[i]).getString("text");
                        if (strArr2[i] != null) {
                        }
                    }
                    z = false;
                    break;
                }
                z = true;
                if (!z) {
                    return null;
                }
                strArr = strArr2;
            } else {
                strArr = null;
            }
            PendingIntent pendingIntent = (PendingIntent) bundle.getParcelable(f11884);
            PendingIntent pendingIntent2 = (PendingIntent) bundle.getParcelable(f11879);
            RemoteInput remoteInput = (RemoteInput) bundle.getParcelable(f11882);
            String[] stringArray = bundle.getStringArray(f11883);
            if (stringArray == null || stringArray.length != 1) {
                return null;
            }
            return new C2590(strArr, remoteInput != null ? new C2628(remoteInput.getResultKey(), remoteInput.getLabel(), remoteInput.getChoices(), remoteInput.getAllowFreeFormInput(), Build.VERSION.SDK_INT >= 29 ? remoteInput.getEditChoicesBeforeSending() : 0, remoteInput.getExtras(), null) : null, pendingIntent2, pendingIntent, stringArray, bundle.getLong("timestamp"));
        }

        @InterfaceC1793
        public C2589 m10242(@InterfaceC1770 int i) {
            this.f11888 = i;
            return this;
        }

        @InterfaceC1758
        public Bitmap m10243() {
            return this.f11889;
        }

        @InterfaceC1793
        public C2589 m10244(@InterfaceC1758 Bitmap bitmap) {
            this.f11889 = bitmap;
            return this;
        }

        @InterfaceC1770
        public int m10245() {
            return this.f11888;
        }

        @Override
        @InterfaceC1793
        public C2583 mo10116(@InterfaceC1793 C2583 c2583) {
            if (Build.VERSION.SDK_INT < 21) {
                return c2583;
            }
            Bundle bundle = new Bundle();
            Bitmap bitmap = this.f11889;
            if (bitmap != null) {
                bundle.putParcelable(f11886, bitmap);
            }
            int i = this.f11888;
            if (i != 0) {
                bundle.putInt(f11877, i);
            }
            C2590 c2590 = this.f11887;
            if (c2590 != null) {
                bundle.putBundle(f11875, m10240(c2590));
            }
            c2583.m10127().putBundle(f11878, bundle);
            return c2583;
        }

        @InterfaceC1793
        @Deprecated
        public C2589 m10246(@InterfaceC1758 C2590 c2590) {
            this.f11887 = c2590;
            return this;
        }

        @InterfaceC1758
        @Deprecated
        public C2590 m10247() {
            return this.f11887;
        }

        public C2589(@InterfaceC1793 Notification notification) {
            this.f11888 = 0;
            if (Build.VERSION.SDK_INT < 21) {
                return;
            }
            Bundle bundle = C2571.m10027(notification) == null ? null : C2571.m10027(notification).getBundle(f11878);
            if (bundle != null) {
                this.f11889 = (Bitmap) bundle.getParcelable(f11886);
                this.f11888 = bundle.getInt(f11877, 0);
                this.f11887 = m10241(bundle.getBundle(f11875));
            }
        }
    }

    public static class C2593 extends AbstractC2572 {

        private static final String f11902 = "androidx.core.app.NotificationCompat$InboxStyle";

        private ArrayList<CharSequence> f11903 = new ArrayList<>();

        public C2593() {
        }

        @Override
        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public void mo5651(InterfaceC2621 interfaceC2621) {
            if (Build.VERSION.SDK_INT >= 16) {
                Notification.InboxStyle bigContentTitle = new Notification.InboxStyle(interfaceC2621.mo10407()).setBigContentTitle(this.f11733);
                if (this.f11734) {
                    bigContentTitle.setSummaryText(this.f11735);
                }
                Iterator<CharSequence> it = this.f11903.iterator();
                while (it.hasNext()) {
                    bigContentTitle.addLine(it.next());
                }
            }
        }

        @Override
        @InterfaceC1793
        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public String mo10044() {
            return f11902;
        }

        @InterfaceC1793
        public C2593 m10260(@InterfaceC1758 CharSequence charSequence) {
            this.f11733 = C2583.m10120(charSequence);
            return this;
        }

        @Override
        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public void mo10045(@InterfaceC1793 Bundle bundle) {
            super.mo10045(bundle);
            this.f11903.clear();
            if (bundle.containsKey(C2571.f11713)) {
                Collections.addAll(this.f11903, bundle.getCharSequenceArray(C2571.f11713));
            }
        }

        @Override
        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public void mo10046(@InterfaceC1793 Bundle bundle) {
            super.mo10046(bundle);
            bundle.remove(C2571.f11713);
        }

        @InterfaceC1793
        public C2593 m10261(@InterfaceC1758 CharSequence charSequence) {
            if (charSequence != null) {
                this.f11903.add(C2583.m10120(charSequence));
            }
            return this;
        }

        @InterfaceC1793
        public C2593 m10262(@InterfaceC1758 CharSequence charSequence) {
            this.f11735 = C2583.m10120(charSequence);
            this.f11734 = true;
            return this;
        }

        public C2593(@InterfaceC1758 C2583 c2583) {
            m10053(c2583);
        }
    }

    public static class C2587 extends AbstractC2572 {

        private static final String f11853 = "androidx.core.app.NotificationCompat$MessagingStyle";

        public static final int f11854 = 25;

        private C2611 f11856;

        @InterfaceC1758
        private CharSequence f11857;

        @InterfaceC1758
        private Boolean f11858;

        private final List<C2588> f11859 = new ArrayList();

        private final List<C2588> f11855 = new ArrayList();

        public C2587() {
        }

        @InterfaceC1758
        public static C2587 m10210(@InterfaceC1793 Notification notification) {
            AbstractC2572 m10040 = AbstractC2572.m10040(notification);
            if (m10040 instanceof C2587) {
                return (C2587) m10040;
            }
            return null;
        }

        private CharSequence m10211(@InterfaceC1793 C2588 c2588) {
            C2307 m9142 = C2307.m9142();
            SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder();
            boolean z = Build.VERSION.SDK_INT >= 21;
            int i = z ? -16777216 : -1;
            CharSequence m10369 = c2588.m10233() == null ? "" : c2588.m10233().m10369();
            if (TextUtils.isEmpty(m10369)) {
                m10369 = this.f11856.m10369();
                if (z && this.f11736.m10176() != 0) {
                    i = this.f11736.m10176();
                }
            }
            CharSequence m9149 = m9142.m9149(m10369);
            spannableStringBuilder.append(m9149);
            spannableStringBuilder.setSpan(m10213(i), spannableStringBuilder.length() - m9149.length(), spannableStringBuilder.length(), 33);
            spannableStringBuilder.append((CharSequence) "  ").append(m9142.m9149(c2588.m10239() != null ? c2588.m10239() : ""));
            return spannableStringBuilder;
        }

        private boolean m10212() {
            for (int size = this.f11859.size() - 1; size >= 0; size--) {
                C2588 c2588 = this.f11859.get(size);
                if (c2588.m10233() != null && c2588.m10233().m10369() == null) {
                    return true;
                }
            }
            return false;
        }

        @InterfaceC1793
        private TextAppearanceSpan m10213(int i) {
            return new TextAppearanceSpan(null, 0, 0, ColorStateList.valueOf(i), null);
        }

        @InterfaceC1758
        private C2588 m10214() {
            for (int size = this.f11859.size() - 1; size >= 0; size--) {
                C2588 c2588 = this.f11859.get(size);
                if (c2588.m10233() != null && !TextUtils.isEmpty(c2588.m10233().m10369())) {
                    return c2588;
                }
            }
            if (this.f11859.isEmpty()) {
                return null;
            }
            return this.f11859.get(r0.size() - 1);
        }

        @Override
        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public void mo5651(InterfaceC2621 interfaceC2621) {
            m10219(m10225());
            int i = Build.VERSION.SDK_INT;
            if (i >= 24) {
                Notification.MessagingStyle messagingStyle = i >= 28 ? new Notification.MessagingStyle(this.f11856.m10375()) : new Notification.MessagingStyle(this.f11856.m10369());
                Iterator<C2588> it = this.f11859.iterator();
                while (it.hasNext()) {
                    messagingStyle.addMessage(it.next().m10237());
                }
                if (Build.VERSION.SDK_INT >= 26) {
                    Iterator<C2588> it2 = this.f11855.iterator();
                    while (it2.hasNext()) {
                        messagingStyle.addHistoricMessage(it2.next().m10237());
                    }
                }
                if (this.f11858.booleanValue() || Build.VERSION.SDK_INT >= 28) {
                    messagingStyle.setConversationTitle(this.f11857);
                }
                if (Build.VERSION.SDK_INT >= 28) {
                    messagingStyle.setGroupConversation(this.f11858.booleanValue());
                }
                messagingStyle.setBuilder(interfaceC2621.mo10407());
                return;
            }
            C2588 m10214 = m10214();
            if (this.f11857 != null && this.f11858.booleanValue()) {
                interfaceC2621.mo10407().setContentTitle(this.f11857);
            } else if (m10214 != null) {
                interfaceC2621.mo10407().setContentTitle("");
                if (m10214.m10233() != null) {
                    interfaceC2621.mo10407().setContentTitle(m10214.m10233().m10369());
                }
            }
            if (m10214 != null) {
                interfaceC2621.mo10407().setContentText(this.f11857 != null ? m10211(m10214) : m10214.m10239());
            }
            if (i >= 16) {
                SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder();
                boolean z = this.f11857 != null || m10212();
                for (int size = this.f11859.size() - 1; size >= 0; size--) {
                    C2588 c2588 = this.f11859.get(size);
                    CharSequence m10211 = z ? m10211(c2588) : c2588.m10239();
                    if (size != this.f11859.size() - 1) {
                        spannableStringBuilder.insert(0, (CharSequence) "\n");
                    }
                    spannableStringBuilder.insert(0, m10211);
                }
                new Notification.BigTextStyle(interfaceC2621.mo10407()).setBigContentTitle(null).bigText(spannableStringBuilder);
            }
        }

        @Override
        @InterfaceC1793
        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public String mo10044() {
            return f11853;
        }

        @InterfaceC1793
        public C2587 m10215(@InterfaceC1758 CharSequence charSequence) {
            this.f11857 = charSequence;
            return this;
        }

        @InterfaceC1793
        public List<C2588> m10216() {
            return this.f11859;
        }

        @InterfaceC1793
        public C2587 m10217(@InterfaceC1758 C2588 c2588) {
            if (c2588 != null) {
                this.f11859.add(c2588);
                if (this.f11859.size() > 25) {
                    this.f11859.remove(0);
                }
            }
            return this;
        }

        @InterfaceC1758
        @Deprecated
        public CharSequence m10218() {
            return this.f11856.m10369();
        }

        @Override
        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public void mo10045(@InterfaceC1793 Bundle bundle) {
            super.mo10045(bundle);
            this.f11859.clear();
            if (bundle.containsKey(C2571.f11701)) {
                this.f11856 = C2611.m10366(bundle.getBundle(C2571.f11701));
            } else {
                this.f11856 = new C2611.C2612().m10381(bundle.getString(C2571.f11717)).m10385();
            }
            CharSequence charSequence = bundle.getCharSequence(C2571.f11721);
            this.f11857 = charSequence;
            if (charSequence == null) {
                this.f11857 = bundle.getCharSequence(C2571.f11689);
            }
            Parcelable[] parcelableArray = bundle.getParcelableArray(C2571.f11655);
            if (parcelableArray != null) {
                this.f11859.addAll(C2588.m10227(parcelableArray));
            }
            Parcelable[] parcelableArray2 = bundle.getParcelableArray(C2571.f11729);
            if (parcelableArray2 != null) {
                this.f11855.addAll(C2588.m10227(parcelableArray2));
            }
            if (bundle.containsKey(C2571.f11691)) {
                this.f11858 = Boolean.valueOf(bundle.getBoolean(C2571.f11691));
            }
        }

        @Override
        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public void mo10046(@InterfaceC1793 Bundle bundle) {
            super.mo10046(bundle);
            bundle.remove(C2571.f11701);
            bundle.remove(C2571.f11717);
            bundle.remove(C2571.f11721);
            bundle.remove(C2571.f11689);
            bundle.remove(C2571.f11655);
            bundle.remove(C2571.f11729);
            bundle.remove(C2571.f11691);
        }

        @InterfaceC1793
        public C2587 m10219(boolean z) {
            this.f11858 = Boolean.valueOf(z);
            return this;
        }

        @InterfaceC1793
        public C2587 m10220(@InterfaceC1758 C2588 c2588) {
            if (c2588 != null) {
                this.f11855.add(c2588);
                if (this.f11855.size() > 25) {
                    this.f11855.remove(0);
                }
            }
            return this;
        }

        @InterfaceC1793
        public C2587 m10221(@InterfaceC1758 CharSequence charSequence, long j, @InterfaceC1758 C2611 c2611) {
            m10217(new C2588(charSequence, j, c2611));
            return this;
        }

        @InterfaceC1793
        public List<C2588> m10222() {
            return this.f11855;
        }

        @Override
        public void mo10050(@InterfaceC1793 Bundle bundle) {
            super.mo10050(bundle);
            bundle.putCharSequence(C2571.f11717, this.f11856.m10369());
            bundle.putBundle(C2571.f11701, this.f11856.m10373());
            bundle.putCharSequence(C2571.f11689, this.f11857);
            if (this.f11857 != null && this.f11858.booleanValue()) {
                bundle.putCharSequence(C2571.f11721, this.f11857);
            }
            if (!this.f11859.isEmpty()) {
                bundle.putParcelableArray(C2571.f11655, C2588.m10229(this.f11859));
            }
            if (!this.f11855.isEmpty()) {
                bundle.putParcelableArray(C2571.f11729, C2588.m10229(this.f11855));
            }
            Boolean bool = this.f11858;
            if (bool != null) {
                bundle.putBoolean(C2571.f11691, bool.booleanValue());
            }
        }

        @InterfaceC1793
        @Deprecated
        public C2587 m10223(@InterfaceC1758 CharSequence charSequence, long j, @InterfaceC1758 CharSequence charSequence2) {
            this.f11859.add(new C2588(charSequence, j, new C2611.C2612().m10381(charSequence2).m10385()));
            if (this.f11859.size() > 25) {
                this.f11859.remove(0);
            }
            return this;
        }

        @InterfaceC1793
        public C2611 m10224() {
            return this.f11856;
        }

        public boolean m10225() {
            C2583 c2583 = this.f11736;
            if (c2583 != null && c2583.f11833.getApplicationInfo().targetSdkVersion < 28 && this.f11858 == null) {
                return this.f11857 != null;
            }
            Boolean bool = this.f11858;
            if (bool != null) {
                return bool.booleanValue();
            }
            return false;
        }

        @InterfaceC1758
        public CharSequence m10226() {
            return this.f11857;
        }

        @Deprecated
        public C2587(@InterfaceC1793 CharSequence charSequence) {
            this.f11856 = new C2611.C2612().m10381(charSequence).m10385();
        }

        public static final class C2588 {

            public static final String f11860 = "type";

            public static final String f11861 = "text";

            public static final String f11862 = "person";

            public static final String f11863 = "time";

            public static final String f11864 = "uri";

            public static final String f11865 = "extras";

            public static final String f11866 = "sender_person";

            public static final String f11867 = "sender";

            private final long f11868;

            @InterfaceC1758
            private Uri f11869;

            private Bundle f11870;

            @InterfaceC1758
            private final C2611 f11871;

            private final CharSequence f11872;

            @InterfaceC1758
            private String f11873;

            public C2588(@InterfaceC1758 CharSequence charSequence, long j, @InterfaceC1758 C2611 c2611) {
                this.f11870 = new Bundle();
                this.f11872 = charSequence;
                this.f11868 = j;
                this.f11871 = c2611;
            }

            @InterfaceC1793
            public static List<C2588> m10227(@InterfaceC1793 Parcelable[] parcelableArr) {
                C2588 m10230;
                ArrayList arrayList = new ArrayList(parcelableArr.length);
                for (int i = 0; i < parcelableArr.length; i++) {
                    if ((parcelableArr[i] instanceof Bundle) && (m10230 = m10230((Bundle) parcelableArr[i])) != null) {
                        arrayList.add(m10230);
                    }
                }
                return arrayList;
            }

            @InterfaceC1793
            private Bundle m10228() {
                Bundle bundle = new Bundle();
                CharSequence charSequence = this.f11872;
                if (charSequence != null) {
                    bundle.putCharSequence("text", charSequence);
                }
                bundle.putLong("time", this.f11868);
                C2611 c2611 = this.f11871;
                if (c2611 != null) {
                    bundle.putCharSequence("sender", c2611.m10369());
                    if (Build.VERSION.SDK_INT >= 28) {
                        bundle.putParcelable(f11866, this.f11871.m10375());
                    } else {
                        bundle.putBundle(f11862, this.f11871.m10373());
                    }
                }
                String str = this.f11873;
                if (str != null) {
                    bundle.putString("type", str);
                }
                Uri uri = this.f11869;
                if (uri != null) {
                    bundle.putParcelable(f11864, uri);
                }
                Bundle bundle2 = this.f11870;
                if (bundle2 != null) {
                    bundle.putBundle(f11865, bundle2);
                }
                return bundle;
            }

            @InterfaceC1793
            public static Bundle[] m10229(@InterfaceC1793 List<C2588> list) {
                Bundle[] bundleArr = new Bundle[list.size()];
                int size = list.size();
                for (int i = 0; i < size; i++) {
                    bundleArr[i] = list.get(i).m10228();
                }
                return bundleArr;
            }

            @InterfaceC1758
            public static C2588 m10230(@InterfaceC1793 Bundle bundle) {
                try {
                    if (bundle.containsKey("text") && bundle.containsKey("time")) {
                        C2588 c2588 = new C2588(bundle.getCharSequence("text"), bundle.getLong("time"), bundle.containsKey(f11862) ? C2611.m10366(bundle.getBundle(f11862)) : (!bundle.containsKey(f11866) || Build.VERSION.SDK_INT < 28) ? bundle.containsKey("sender") ? new C2611.C2612().m10381(bundle.getCharSequence("sender")).m10385() : null : C2611.m10368((Person) bundle.getParcelable(f11866)));
                        if (bundle.containsKey("type") && bundle.containsKey(f11864)) {
                            c2588.m10236(bundle.getString("type"), (Uri) bundle.getParcelable(f11864));
                        }
                        if (bundle.containsKey(f11865)) {
                            c2588.m10234().putAll(bundle.getBundle(f11865));
                        }
                        return c2588;
                    }
                } catch (ClassCastException unused) {
                }
                return null;
            }

            @InterfaceC1758
            public String m10231() {
                return this.f11873;
            }

            public long m10232() {
                return this.f11868;
            }

            @InterfaceC1758
            public C2611 m10233() {
                return this.f11871;
            }

            @InterfaceC1793
            public Bundle m10234() {
                return this.f11870;
            }

            @InterfaceC1758
            @Deprecated
            public CharSequence m10235() {
                C2611 c2611 = this.f11871;
                if (c2611 == null) {
                    return null;
                }
                return c2611.m10369();
            }

            @InterfaceC1793
            public C2588 m10236(@InterfaceC1758 String str, @InterfaceC1758 Uri uri) {
                this.f11873 = str;
                this.f11869 = uri;
                return this;
            }

            @InterfaceC1793
            @InterfaceC1753(24)
            @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
            public Notification.MessagingStyle.Message m10237() {
                Notification.MessagingStyle.Message message;
                C2611 m10233 = m10233();
                if (Build.VERSION.SDK_INT >= 28) {
                    message = new Notification.MessagingStyle.Message(m10239(), m10232(), m10233 != null ? m10233.m10375() : null);
                } else {
                    message = new Notification.MessagingStyle.Message(m10239(), m10232(), m10233 != null ? m10233.m10369() : null);
                }
                if (m10231() != null) {
                    message.setData(m10231(), m10238());
                }
                return message;
            }

            @InterfaceC1758
            public Uri m10238() {
                return this.f11869;
            }

            @InterfaceC1758
            public CharSequence m10239() {
                return this.f11872;
            }

            @Deprecated
            public C2588(@InterfaceC1758 CharSequence charSequence, long j, @InterfaceC1758 CharSequence charSequence2) {
                this(charSequence, j, new C2611.C2612().m10381(charSequence2).m10385());
            }
        }

        public C2587(@InterfaceC1793 C2611 c2611) {
            if (!TextUtils.isEmpty(c2611.m10369())) {
                this.f11856 = c2611;
                return;
            }
            throw new IllegalArgumentException("User's name must not be empty.");
        }
    }

    public static final class C2595 implements InterfaceC2582 {

        private static final int f11904 = 80;

        @Deprecated
        public static final int f11905 = 0;

        @Deprecated
        public static final int f11906 = 4;

        private static final int f11907 = 8;

        private static final int f11908 = 64;

        private static final String f11909 = "contentIconGravity";

        @Deprecated
        public static final int f11910 = 5;

        private static final int f11911 = 4;

        private static final String f11912 = "gravity";

        private static final String f11913 = "pages";

        private static final String f11914 = "dismissalId";

        private static final String f11915 = "actions";

        private static final int f11916 = 32;

        @Deprecated
        public static final int f11917 = 0;

        @Deprecated
        public static final int f11918 = -1;

        @Deprecated
        public static final int f11919 = 3;

        @Deprecated
        public static final int f11920 = 1;

        private static final int f11921 = 16;

        private static final String f11922 = "bridgeTag";

        private static final String f11923 = "displayIntent";

        private static final String f11924 = "background";

        private static final String f11925 = "customContentHeight";

        private static final int f11926 = 2;

        @Deprecated
        public static final int f11927 = 2;

        public static final int f11928 = -1;

        private static final String f11929 = "contentIcon";

        private static final int f11930 = 1;

        private static final String f11931 = "flags";

        private static final String f11932 = "hintScreenTimeout";

        private static final int f11933 = 8388613;

        private static final String f11934 = "contentActionIndex";

        private static final int f11935 = 1;

        private static final String f11936 = "customSizePreset";

        private static final String f11937 = "android.wearable.EXTENSIONS";

        private int f11938;

        private int f11939;

        private int f11940;

        private int f11941;

        private ArrayList<Notification> f11942;

        private String f11943;

        private int f11944;

        private int f11945;

        private int f11946;

        private PendingIntent f11947;

        private ArrayList<C2573> f11948;

        private String f11949;

        private int f11950;

        private Bitmap f11951;

        public C2595() {
            this.f11948 = new ArrayList<>();
            this.f11938 = 1;
            this.f11942 = new ArrayList<>();
            this.f11941 = 8388613;
            this.f11944 = -1;
            this.f11950 = 0;
            this.f11945 = 80;
        }

        private void m10263(int i, boolean z) {
            if (z) {
                this.f11938 = i | this.f11938;
            } else {
                this.f11938 = (i ^ (-1)) & this.f11938;
            }
        }

        @InterfaceC1753(20)
        private static Notification.Action m10264(C2573 c2573) {
            Notification.Action.Builder builder;
            int i = Build.VERSION.SDK_INT;
            if (i >= 23) {
                IconCompat m10056 = c2573.m10056();
                builder = new Notification.Action.Builder(m10056 == null ? null : m10056.m21858(), c2573.m10057(), c2573.m10063());
            } else {
                IconCompat m100562 = c2573.m10056();
                builder = new Notification.Action.Builder((m100562 == null || m100562.m21857() != 2) ? 0 : m100562.m21866(), c2573.m10057(), c2573.m10063());
            }
            Bundle bundle = c2573.m10059() != null ? new Bundle(c2573.m10059()) : new Bundle();
            bundle.putBoolean(C2635.f12127, c2573.m10055());
            if (i >= 24) {
                builder.setAllowGeneratedReplies(c2573.m10055());
            }
            builder.addExtras(bundle);
            C2628[] m10058 = c2573.m10058();
            if (m10058 != null) {
                for (RemoteInput remoteInput : C2628.m10427(m10058)) {
                    builder.addRemoteInput(remoteInput);
                }
            }
            return builder.build();
        }

        @InterfaceC1793
        public C2595 m10265(boolean z) {
            m10263(8, z);
            return this;
        }

        public boolean m10266() {
            return (this.f11938 & 1) != 0;
        }

        @InterfaceC1793
        public C2595 m10267(@InterfaceC1793 C2573 c2573) {
            this.f11948.add(c2573);
            return this;
        }

        @InterfaceC1793
        public C2595 m10268() {
            this.f11948.clear();
            return this;
        }

        @InterfaceC1793
        public List<C2573> m10269() {
            return this.f11948;
        }

        @InterfaceC1758
        @Deprecated
        public PendingIntent m10270() {
            return this.f11947;
        }

        @InterfaceC1793
        @Deprecated
        public C2595 m10271(boolean z) {
            m10263(32, z);
            return this;
        }

        @InterfaceC1793
        @Deprecated
        public C2595 m10272(boolean z) {
            m10263(2, z);
            return this;
        }

        @InterfaceC1793
        public C2595 m10273(@InterfaceC1758 String str) {
            this.f11949 = str;
            return this;
        }

        @Deprecated
        public int m10274() {
            return this.f11945;
        }

        @InterfaceC1793
        @Deprecated
        public C2595 m10275(int i) {
            this.f11945 = i;
            return this;
        }

        @InterfaceC1793
        public C2595 m10276(boolean z) {
            m10263(1, z);
            return this;
        }

        @InterfaceC1793
        @Deprecated
        public List<Notification> m10277() {
            return this.f11942;
        }

        @InterfaceC1793
        @Deprecated
        public C2595 m10278(int i) {
            this.f11950 = i;
            return this;
        }

        @Deprecated
        public boolean m10279() {
            return (this.f11938 & 2) != 0;
        }

        @InterfaceC1793
        @Deprecated
        public C2595 m10280() {
            this.f11942.clear();
            return this;
        }

        @InterfaceC1793
        @Deprecated
        public C2595 m10281(@InterfaceC1793 Notification notification) {
            this.f11942.add(notification);
            return this;
        }

        @InterfaceC1793
        public C2595 m10282(boolean z) {
            m10263(64, z);
            return this;
        }

        public int m10283() {
            return this.f11944;
        }

        @InterfaceC1793
        public C2595 clone() {
            C2595 c2595 = new C2595();
            c2595.f11948 = new ArrayList<>(this.f11948);
            c2595.f11938 = this.f11938;
            c2595.f11947 = this.f11947;
            c2595.f11942 = new ArrayList<>(this.f11942);
            c2595.f11951 = this.f11951;
            c2595.f11939 = this.f11939;
            c2595.f11941 = this.f11941;
            c2595.f11944 = this.f11944;
            c2595.f11950 = this.f11950;
            c2595.f11940 = this.f11940;
            c2595.f11945 = this.f11945;
            c2595.f11946 = this.f11946;
            c2595.f11943 = this.f11943;
            c2595.f11949 = this.f11949;
            return c2595;
        }

        @InterfaceC1758
        @Deprecated
        public Bitmap m10285() {
            return this.f11951;
        }

        @Deprecated
        public boolean m10286() {
            return (this.f11938 & 32) != 0;
        }

        @Deprecated
        public boolean m10287() {
            return (this.f11938 & 16) != 0;
        }

        @InterfaceC1758
        public String m10288() {
            return this.f11949;
        }

        @InterfaceC1758
        public String m10289() {
            return this.f11943;
        }

        @InterfaceC1793
        public C2595 m10290(@InterfaceC1793 List<C2573> list) {
            this.f11948.addAll(list);
            return this;
        }

        @Deprecated
        public int m10291() {
            return this.f11940;
        }

        @InterfaceC1793
        @Deprecated
        public C2595 m10292(boolean z) {
            m10263(16, z);
            return this;
        }

        @InterfaceC1793
        public C2595 m10293(@InterfaceC1758 String str) {
            this.f11943 = str;
            return this;
        }

        @Deprecated
        public boolean m10294() {
            return (this.f11938 & 4) != 0;
        }

        public boolean m10295() {
            return (this.f11938 & 8) != 0;
        }

        @InterfaceC1793
        @Deprecated
        public C2595 m10296(int i) {
            this.f11941 = i;
            return this;
        }

        @Override
        @InterfaceC1793
        public C2583 mo10116(@InterfaceC1793 C2583 c2583) {
            Bundle bundle = new Bundle();
            if (!this.f11948.isEmpty()) {
                if (Build.VERSION.SDK_INT >= 16) {
                    ArrayList<? extends Parcelable> arrayList = new ArrayList<>(this.f11948.size());
                    Iterator<C2573> it = this.f11948.iterator();
                    while (it.hasNext()) {
                        C2573 next = it.next();
                        int i = Build.VERSION.SDK_INT;
                        if (i >= 20) {
                            arrayList.add(m10264(next));
                        } else if (i >= 16) {
                            arrayList.add(C2635.m10462(next));
                        }
                    }
                    bundle.putParcelableArrayList(f11915, arrayList);
                } else {
                    bundle.putParcelableArrayList(f11915, null);
                }
            }
            int i2 = this.f11938;
            if (i2 != 1) {
                bundle.putInt(f11931, i2);
            }
            PendingIntent pendingIntent = this.f11947;
            if (pendingIntent != null) {
                bundle.putParcelable(f11923, pendingIntent);
            }
            if (!this.f11942.isEmpty()) {
                ArrayList<Notification> arrayList2 = this.f11942;
                bundle.putParcelableArray(f11913, (Parcelable[]) arrayList2.toArray(new Notification[arrayList2.size()]));
            }
            Bitmap bitmap = this.f11951;
            if (bitmap != null) {
                bundle.putParcelable(f11924, bitmap);
            }
            int i3 = this.f11939;
            if (i3 != 0) {
                bundle.putInt(f11929, i3);
            }
            int i4 = this.f11941;
            if (i4 != 8388613) {
                bundle.putInt(f11909, i4);
            }
            int i5 = this.f11944;
            if (i5 != -1) {
                bundle.putInt(f11934, i5);
            }
            int i6 = this.f11950;
            if (i6 != 0) {
                bundle.putInt(f11936, i6);
            }
            int i7 = this.f11940;
            if (i7 != 0) {
                bundle.putInt(f11925, i7);
            }
            int i8 = this.f11945;
            if (i8 != 80) {
                bundle.putInt(f11912, i8);
            }
            int i9 = this.f11946;
            if (i9 != 0) {
                bundle.putInt(f11932, i9);
            }
            String str = this.f11943;
            if (str != null) {
                bundle.putString(f11914, str);
            }
            String str2 = this.f11949;
            if (str2 != null) {
                bundle.putString(f11922, str2);
            }
            c2583.m10127().putBundle(f11937, bundle);
            return c2583;
        }

        @Deprecated
        public int m10297() {
            return this.f11950;
        }

        @Deprecated
        public int m10298() {
            return this.f11941;
        }

        @InterfaceC1793
        @Deprecated
        public C2595 m10299(@InterfaceC1758 Bitmap bitmap) {
            this.f11951 = bitmap;
            return this;
        }

        @InterfaceC1793
        @Deprecated
        public C2595 m10300(int i) {
            this.f11946 = i;
            return this;
        }

        @Deprecated
        public int m10301() {
            return this.f11946;
        }

        @InterfaceC1793
        @Deprecated
        public C2595 m10302(int i) {
            this.f11940 = i;
            return this;
        }

        @Deprecated
        public int m10303() {
            return this.f11939;
        }

        @InterfaceC1793
        @Deprecated
        public C2595 m10304(boolean z) {
            m10263(4, z);
            return this;
        }

        @InterfaceC1793
        public C2595 m10305(int i) {
            this.f11944 = i;
            return this;
        }

        @InterfaceC1793
        @Deprecated
        public C2595 m10306(@InterfaceC1758 PendingIntent pendingIntent) {
            this.f11947 = pendingIntent;
            return this;
        }

        @InterfaceC1793
        @Deprecated
        public C2595 m10307(int i) {
            this.f11939 = i;
            return this;
        }

        public boolean m10308() {
            return (this.f11938 & 64) != 0;
        }

        @InterfaceC1793
        @Deprecated
        public C2595 m10309(@InterfaceC1793 List<Notification> list) {
            this.f11942.addAll(list);
            return this;
        }

        public C2595(@InterfaceC1793 Notification notification) {
            this.f11948 = new ArrayList<>();
            this.f11938 = 1;
            this.f11942 = new ArrayList<>();
            this.f11941 = 8388613;
            this.f11944 = -1;
            this.f11950 = 0;
            this.f11945 = 80;
            Bundle m10027 = C2571.m10027(notification);
            Bundle bundle = m10027 != null ? m10027.getBundle(f11937) : null;
            if (bundle != null) {
                ArrayList parcelableArrayList = bundle.getParcelableArrayList(f11915);
                if (Build.VERSION.SDK_INT >= 16 && parcelableArrayList != null) {
                    int size = parcelableArrayList.size();
                    C2573[] c2573Arr = new C2573[size];
                    for (int i = 0; i < size; i++) {
                        int i2 = Build.VERSION.SDK_INT;
                        if (i2 >= 20) {
                            c2573Arr[i] = C2571.m10000((Notification.Action) parcelableArrayList.get(i));
                        } else if (i2 >= 16) {
                            c2573Arr[i] = C2635.m10463((Bundle) parcelableArrayList.get(i));
                        }
                    }
                    Collections.addAll(this.f11948, c2573Arr);
                }
                this.f11938 = bundle.getInt(f11931, 1);
                this.f11947 = (PendingIntent) bundle.getParcelable(f11923);
                Notification[] m10005 = C2571.m10005(bundle, f11913);
                if (m10005 != null) {
                    Collections.addAll(this.f11942, m10005);
                }
                this.f11951 = (Bitmap) bundle.getParcelable(f11924);
                this.f11939 = bundle.getInt(f11929);
                this.f11941 = bundle.getInt(f11909, 8388613);
                this.f11944 = bundle.getInt(f11934, -1);
                this.f11950 = bundle.getInt(f11936, 0);
                this.f11940 = bundle.getInt(f11925);
                this.f11945 = bundle.getInt(f11912, 80);
                this.f11946 = bundle.getInt(f11932);
                this.f11943 = bundle.getString(f11914);
                this.f11949 = bundle.getString(f11922);
            }
        }
    }

    public static class C2583 {

        private static final int f11799 = 5120;

        public Icon f11800;

        public boolean f11801;

        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public ArrayList<C2573> f11802;

        public CharSequence f11803;

        public Bitmap f11804;

        public CharSequence[] f11805;

        public long f11806;

        public C2578 f11807;

        public Bundle f11808;

        public int f11809;

        public C2553 f11810;

        public RemoteViews f11811;

        public boolean f11812;

        public RemoteViews f11813;

        public boolean f11814;

        public PendingIntent f11815;

        public ArrayList<C2573> f11816;

        public boolean f11817;

        public int f11818;

        public PendingIntent f11819;

        public CharSequence f11820;

        public int f11821;

        public boolean f11822;

        public int f11823;

        public CharSequence f11824;

        @InterfaceC1793
        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public ArrayList<C2611> f11825;

        public AbstractC2572 f11826;

        public int f11827;

        public String f11828;

        public boolean f11829;

        public boolean f11830;

        public Notification f11831;

        public String f11832;

        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public Context f11833;

        public CharSequence f11834;

        public boolean f11835;

        @Deprecated
        public ArrayList<String> f11836;

        public String f11837;

        public Notification f11838;

        public String f11839;

        public RemoteViews f11840;

        public boolean f11841;

        public boolean f11842;

        public RemoteViews f11843;

        public int f11844;

        public int f11845;

        public int f11846;

        public String f11847;

        public CharSequence f11848;

        @InterfaceC1753(19)
        public C2583(@InterfaceC1793 Context context, @InterfaceC1793 Notification notification) {
            this(context, C2571.m10028(notification));
            ArrayList parcelableArrayList;
            Bundle bundle = notification.extras;
            AbstractC2572 m10040 = AbstractC2572.m10040(notification);
            m10133(C2571.m10010(notification)).m10172(C2571.m10015(notification)).m10168(C2571.m10012(notification)).m10135(C2571.m10025(notification)).m10137(C2571.m10026(notification)).m10179(m10040).m10194(notification.contentIntent).m10142(C2571.m10024(notification)).m10153(C2571.m10021(notification)).m10190(C2571.m10003(notification)).m10136(notification.when).m10178(C2571.m10006(notification)).m10169(C2571.m10029(notification)).m10170(C2571.m10032(notification)).m10165(C2571.m10014(notification)).m10166(C2571.m10013(notification)).m10174(C2571.m10016(notification)).m10167(notification.largeIcon).m10182(C2571.m10001(notification)).m10193(C2571.m10011(notification)).m10131(C2571.m10008(notification)).m10198(notification.number).m10180(notification.tickerText).m10194(notification.contentIntent).m10184(notification.deleteIntent).m10181(notification.fullScreenIntent, C2571.m10018(notification)).m10188(notification.sound, notification.audioStreamType).m10132(notification.vibrate).m10187(notification.ledARGB, notification.ledOnMS, notification.ledOffMS).m10129(notification.defaults).m10140(notification.priority).m10141(C2571.m10002(notification)).m10138(C2571.m10030(notification)).m10164(C2571.m10007(notification)).m10155(C2571.m10020(notification)).m10201(C2571.m10004(notification)).m10197(C2571.m10019(notification)).m10130(bundle.getInt(C2571.f11725), bundle.getInt(C2571.f11693), bundle.getBoolean(C2571.f11699)).m10144(C2571.m10009(notification)).m10183(notification.icon, notification.iconLevel).m10160(m10118(notification, m10040));
            if (Build.VERSION.SDK_INT >= 23) {
                this.f11800 = notification.getSmallIcon();
            }
            Notification.Action[] actionArr = notification.actions;
            if (actionArr != null && actionArr.length != 0) {
                for (Notification.Action action : actionArr) {
                    m10123(C2573.C2577.m10081(action).m10088());
                }
            }
            if (Build.VERSION.SDK_INT >= 21) {
                List<C2573> m10023 = C2571.m10023(notification);
                if (!m10023.isEmpty()) {
                    Iterator<C2573> it = m10023.iterator();
                    while (it.hasNext()) {
                        m10200(it.next());
                    }
                }
            }
            String[] stringArray = notification.extras.getStringArray(C2571.f11709);
            if (stringArray != null && stringArray.length != 0) {
                for (String str : stringArray) {
                    m10147(str);
                }
            }
            if (Build.VERSION.SDK_INT >= 28 && (parcelableArrayList = notification.extras.getParcelableArrayList(C2571.f11663)) != null && !parcelableArrayList.isEmpty()) {
                Iterator it2 = parcelableArrayList.iterator();
                while (it2.hasNext()) {
                    m10125(C2611.m10368((Person) it2.next()));
                }
            }
            int i = Build.VERSION.SDK_INT;
            if (i >= 24 && bundle.containsKey(C2571.f11648)) {
                m10171(bundle.getBoolean(C2571.f11648));
            }
            if (i < 26 || !bundle.containsKey(C2571.f11687)) {
                return;
            }
            m10185(bundle.getBoolean(C2571.f11687));
        }

        private void m10117(int i, boolean z) {
            if (z) {
                Notification notification = this.f11838;
                notification.flags = i | notification.flags;
            } else {
                Notification notification2 = this.f11838;
                notification2.flags = (i ^ (-1)) & notification2.flags;
            }
        }

        @InterfaceC1758
        @InterfaceC1753(19)
        private static Bundle m10118(@InterfaceC1793 Notification notification, @InterfaceC1758 AbstractC2572 abstractC2572) {
            if (notification.extras == null) {
                return null;
            }
            Bundle bundle = new Bundle(notification.extras);
            bundle.remove(C2571.f11694);
            bundle.remove(C2571.f11697);
            bundle.remove(C2571.f11724);
            bundle.remove(C2571.f11711);
            bundle.remove(C2571.f11643);
            bundle.remove(C2571.f11684);
            bundle.remove(C2571.f11673);
            bundle.remove(C2571.f11693);
            bundle.remove(C2571.f11725);
            bundle.remove(C2571.f11699);
            bundle.remove(C2571.f11648);
            bundle.remove(C2571.f11687);
            bundle.remove(C2571.f11663);
            bundle.remove(C2571.f11709);
            bundle.remove(C2648.f12158);
            bundle.remove(C2648.f12156);
            bundle.remove(C2648.f12159);
            bundle.remove(C2648.f12160);
            bundle.remove(C2648.f12161);
            Bundle bundle2 = bundle.getBundle(C2589.f11878);
            if (bundle2 != null) {
                Bundle bundle3 = new Bundle(bundle2);
                bundle3.remove(C2589.f11880);
                bundle.putBundle(C2589.f11878, bundle3);
            }
            if (abstractC2572 != null) {
                abstractC2572.mo10046(bundle);
            }
            return bundle;
        }

        @InterfaceC1758
        private Bitmap m10119(@InterfaceC1758 Bitmap bitmap) {
            if (bitmap == null || Build.VERSION.SDK_INT >= 27) {
                return bitmap;
            }
            Resources resources = this.f11833.getResources();
            int dimensionPixelSize = resources.getDimensionPixelSize(R.dimen.compat_notification_large_icon_max_width);
            int dimensionPixelSize2 = resources.getDimensionPixelSize(R.dimen.compat_notification_large_icon_max_height);
            if (bitmap.getWidth() <= dimensionPixelSize && bitmap.getHeight() <= dimensionPixelSize2) {
                return bitmap;
            }
            double d = dimensionPixelSize;
            double max = Math.max(1, bitmap.getWidth());
            Double.isNaN(d);
            Double.isNaN(max);
            double d2 = d / max;
            double d3 = dimensionPixelSize2;
            double max2 = Math.max(1, bitmap.getHeight());
            Double.isNaN(d3);
            Double.isNaN(max2);
            double min = Math.min(d2, d3 / max2);
            double width = bitmap.getWidth();
            Double.isNaN(width);
            int ceil = (int) Math.ceil(width * min);
            double height = bitmap.getHeight();
            Double.isNaN(height);
            return Bitmap.createScaledBitmap(bitmap, ceil, (int) Math.ceil(height * min), true);
        }

        @InterfaceC1758
        public static CharSequence m10120(@InterfaceC1758 CharSequence charSequence) {
            return (charSequence != null && charSequence.length() > f11799) ? charSequence.subSequence(0, f11799) : charSequence;
        }

        private boolean m10121() {
            AbstractC2572 abstractC2572 = this.f11826;
            return abstractC2572 == null || !abstractC2572.mo10051();
        }

        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public RemoteViews m10122() {
            return this.f11840;
        }

        @InterfaceC1793
        public C2583 m10123(@InterfaceC1758 C2573 c2573) {
            if (c2573 != null) {
                this.f11802.add(c2573);
            }
            return this;
        }

        @InterfaceC1793
        public C2583 m10124(@InterfaceC1758 Uri uri) {
            Notification notification = this.f11838;
            notification.sound = uri;
            notification.audioStreamType = -1;
            if (Build.VERSION.SDK_INT >= 21) {
                notification.audioAttributes = new AudioAttributes.Builder().setContentType(4).setUsage(5).build();
            }
            return this;
        }

        @InterfaceC1793
        public C2583 m10125(@InterfaceC1758 C2611 c2611) {
            if (c2611 != null) {
                this.f11825.add(c2611);
            }
            return this;
        }

        @InterfaceC1793
        public C2583 m10126() {
            this.f11816.clear();
            Bundle bundle = this.f11808.getBundle(C2589.f11878);
            if (bundle != null) {
                Bundle bundle2 = new Bundle(bundle);
                bundle2.remove(C2589.f11880);
                this.f11808.putBundle(C2589.f11878, bundle2);
            }
            return this;
        }

        @InterfaceC1793
        public Bundle m10127() {
            if (this.f11808 == null) {
                this.f11808 = new Bundle();
            }
            return this.f11808;
        }

        @InterfaceC1793
        public C2583 m10128(@InterfaceC1758 RemoteViews remoteViews) {
            this.f11840 = remoteViews;
            return this;
        }

        @InterfaceC1793
        public C2583 m10129(int i) {
            Notification notification = this.f11838;
            notification.defaults = i;
            if ((i & 4) != 0) {
                notification.flags |= 1;
            }
            return this;
        }

        @InterfaceC1793
        public C2583 m10130(int i, int i2, boolean z) {
            this.f11809 = i;
            this.f11821 = i2;
            this.f11822 = z;
            return this;
        }

        @InterfaceC1793
        public C2583 m10131(@InterfaceC1758 C2578 c2578) {
            this.f11807 = c2578;
            return this;
        }

        @InterfaceC1793
        public C2583 m10132(@InterfaceC1758 long[] jArr) {
            this.f11838.vibrate = jArr;
            return this;
        }

        @InterfaceC1793
        public C2583 m10133(@InterfaceC1758 CharSequence charSequence) {
            this.f11848 = m10120(charSequence);
            return this;
        }

        @InterfaceC1793
        @Deprecated
        public C2583 m10134() {
            this.f11842 = true;
            return this;
        }

        @InterfaceC1793
        public C2583 m10135(@InterfaceC1758 CharSequence charSequence) {
            this.f11834 = m10120(charSequence);
            return this;
        }

        @InterfaceC1793
        public C2583 m10136(long j) {
            this.f11838.when = j;
            return this;
        }

        @InterfaceC1793
        public C2583 m10137(@InterfaceC1758 CharSequence charSequence) {
            this.f11824 = m10120(charSequence);
            return this;
        }

        @InterfaceC1793
        public C2583 m10138(int i) {
            this.f11846 = i;
            return this;
        }

        @InterfaceC1793
        public C2583 m10139(int i) {
            this.f11827 = i;
            return this;
        }

        @InterfaceC1793
        public C2583 m10140(int i) {
            this.f11818 = i;
            return this;
        }

        @InterfaceC1793
        public C2583 m10141(@InterfaceC1770 int i) {
            this.f11844 = i;
            return this;
        }

        @InterfaceC1793
        public C2583 m10142(@InterfaceC1758 String str) {
            this.f11847 = str;
            return this;
        }

        @InterfaceC1793
        public C2583 m10143(@InterfaceC1758 CharSequence[] charSequenceArr) {
            this.f11805 = charSequenceArr;
            return this;
        }

        @InterfaceC1793
        public C2583 m10144(boolean z) {
            this.f11817 = z;
            return this;
        }

        @InterfaceC1793
        public C2583 m10145(@InterfaceC1758 RemoteViews remoteViews) {
            this.f11838.contentView = remoteViews;
            return this;
        }

        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public long m10146() {
            if (this.f11841) {
                return this.f11838.when;
            }
            return 0L;
        }

        @InterfaceC1793
        @Deprecated
        public C2583 m10147(@InterfaceC1758 String str) {
            if (str != null && !str.isEmpty()) {
                this.f11836.add(str);
            }
            return this;
        }

        @InterfaceC1793
        @InterfaceC1753(23)
        public C2583 m10148(@InterfaceC1793 IconCompat iconCompat) {
            this.f11800 = iconCompat.m21856(this.f11833);
            return this;
        }

        @InterfaceC1793
        @InterfaceC1753(21)
        public C2583 m10149(int i, @InterfaceC1758 CharSequence charSequence, @InterfaceC1758 PendingIntent pendingIntent) {
            this.f11816.add(new C2573(i, charSequence, pendingIntent));
            return this;
        }

        @InterfaceC1793
        public C2583 m10150(@InterfaceC1758 RemoteViews remoteViews) {
            this.f11813 = remoteViews;
            return this;
        }

        @InterfaceC1758
        @SuppressLint({"BuilderSetStyle"})
        public RemoteViews m10151() {
            RemoteViews mo5657;
            if (this.f11811 != null && m10121()) {
                return this.f11811;
            }
            C2638 c2638 = new C2638(this);
            AbstractC2572 abstractC2572 = this.f11826;
            if (abstractC2572 != null && (mo5657 = abstractC2572.mo5657(c2638)) != null) {
                return mo5657;
            }
            Notification m10494 = c2638.m10494();
            return Build.VERSION.SDK_INT >= 24 ? Notification.Builder.recoverBuilder(this.f11833, m10494).createContentView() : m10494.contentView;
        }

        @InterfaceC1793
        public Notification m10152() {
            return new C2638(this).m10494();
        }

        @InterfaceC1793
        public C2583 m10153(boolean z) {
            this.f11814 = z;
            return this;
        }

        @InterfaceC1793
        public C2583 m10154() {
            this.f11825.clear();
            this.f11836.clear();
            return this;
        }

        @InterfaceC1793
        public C2583 m10155(@InterfaceC1758 String str) {
            this.f11839 = str;
            return this;
        }

        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public RemoteViews m10156() {
            return this.f11813;
        }

        @InterfaceC1793
        @Deprecated
        public Notification m10157() {
            return m10152();
        }

        @InterfaceC1758
        @SuppressLint({"BuilderSetStyle"})
        public RemoteViews m10158() {
            RemoteViews mo5656;
            int i = Build.VERSION.SDK_INT;
            if (i < 16) {
                return null;
            }
            if (this.f11840 != null && m10121()) {
                return this.f11840;
            }
            C2638 c2638 = new C2638(this);
            AbstractC2572 abstractC2572 = this.f11826;
            if (abstractC2572 != null && (mo5656 = abstractC2572.mo5656(c2638)) != null) {
                return mo5656;
            }
            Notification m10494 = c2638.m10494();
            return i >= 24 ? Notification.Builder.recoverBuilder(this.f11833, m10494).createBigContentView() : m10494.bigContentView;
        }

        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public RemoteViews m10159() {
            return this.f11811;
        }

        @InterfaceC1793
        public C2583 m10160(@InterfaceC1758 Bundle bundle) {
            if (bundle != null) {
                Bundle bundle2 = this.f11808;
                if (bundle2 == null) {
                    this.f11808 = new Bundle(bundle);
                } else {
                    bundle2.putAll(bundle);
                }
            }
            return this;
        }

        @InterfaceC1793
        public C2583 m10161(@InterfaceC1758 C2519 c2519) {
            if (c2519 == null) {
                return this;
            }
            this.f11832 = c2519.m9777();
            if (this.f11810 == null) {
                if (c2519.m9797() != null) {
                    this.f11810 = c2519.m9797();
                } else if (c2519.m9777() != null) {
                    this.f11810 = new C2553(c2519.m9777());
                }
            }
            if (this.f11848 == null) {
                m10133(c2519.m9787());
            }
            return this;
        }

        @InterfaceC1758
        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public C2578 m10162() {
            return this.f11807;
        }

        @InterfaceC1793
        public C2583 m10163(@InterfaceC1758 RemoteViews remoteViews) {
            this.f11811 = remoteViews;
            return this;
        }

        @InterfaceC1793
        public C2583 m10164(@InterfaceC1758 Notification notification) {
            this.f11831 = notification;
            return this;
        }

        @InterfaceC1793
        public C2583 m10165(boolean z) {
            m10117(8, z);
            return this;
        }

        @InterfaceC1793
        public C2583 m10166(boolean z) {
            m10117(2, z);
            return this;
        }

        @InterfaceC1793
        public C2583 m10167(@InterfaceC1758 Bitmap bitmap) {
            this.f11804 = m10119(bitmap);
            return this;
        }

        @InterfaceC1793
        public C2583 m10168(@InterfaceC1758 CharSequence charSequence) {
            this.f11820 = m10120(charSequence);
            return this;
        }

        @InterfaceC1793
        public C2583 m10169(boolean z) {
            this.f11835 = z;
            return this;
        }

        @InterfaceC1793
        public C2583 m10170(boolean z) {
            m10117(16, z);
            return this;
        }

        @InterfaceC1793
        @InterfaceC1753(24)
        public C2583 m10171(boolean z) {
            this.f11801 = z;
            m10127().putBoolean(C2571.f11648, z);
            return this;
        }

        @InterfaceC1793
        public C2583 m10172(@InterfaceC1758 CharSequence charSequence) {
            this.f11803 = m10120(charSequence);
            return this;
        }

        @InterfaceC1793
        public C2583 m10173(int i) {
            this.f11838.icon = i;
            return this;
        }

        @InterfaceC1793
        public C2583 m10174(boolean z) {
            this.f11829 = z;
            return this;
        }

        @InterfaceC1793
        public C2583 m10175(int i, @InterfaceC1758 CharSequence charSequence, @InterfaceC1758 PendingIntent pendingIntent) {
            this.f11802.add(new C2573(i, charSequence, pendingIntent));
            return this;
        }

        @InterfaceC1770
        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public int m10176() {
            return this.f11844;
        }

        @InterfaceC1793
        public C2583 m10177(@InterfaceC1793 InterfaceC2582 interfaceC2582) {
            interfaceC2582.mo10116(this);
            return this;
        }

        @InterfaceC1793
        public C2583 m10178(boolean z) {
            this.f11841 = z;
            return this;
        }

        @InterfaceC1793
        public C2583 m10179(@InterfaceC1758 AbstractC2572 abstractC2572) {
            if (this.f11826 != abstractC2572) {
                this.f11826 = abstractC2572;
                if (abstractC2572 != null) {
                    abstractC2572.m10053(this);
                }
            }
            return this;
        }

        @InterfaceC1793
        public C2583 m10180(@InterfaceC1758 CharSequence charSequence) {
            this.f11838.tickerText = m10120(charSequence);
            return this;
        }

        @InterfaceC1793
        public C2583 m10181(@InterfaceC1758 PendingIntent pendingIntent, boolean z) {
            this.f11819 = pendingIntent;
            m10117(128, z);
            return this;
        }

        @InterfaceC1793
        public C2583 m10182(int i) {
            this.f11845 = i;
            return this;
        }

        @InterfaceC1793
        public C2583 m10183(int i, int i2) {
            Notification notification = this.f11838;
            notification.icon = i;
            notification.iconLevel = i2;
            return this;
        }

        @InterfaceC1793
        public C2583 m10184(@InterfaceC1758 PendingIntent pendingIntent) {
            this.f11838.deleteIntent = pendingIntent;
            return this;
        }

        @InterfaceC1793
        public C2583 m10185(boolean z) {
            this.f11812 = z;
            this.f11830 = true;
            return this;
        }

        @InterfaceC1758
        @SuppressLint({"BuilderSetStyle"})
        public RemoteViews m10186() {
            RemoteViews mo5664;
            int i = Build.VERSION.SDK_INT;
            if (i < 21) {
                return null;
            }
            if (this.f11813 != null && m10121()) {
                return this.f11813;
            }
            C2638 c2638 = new C2638(this);
            AbstractC2572 abstractC2572 = this.f11826;
            if (abstractC2572 != null && (mo5664 = abstractC2572.mo5664(c2638)) != null) {
                return mo5664;
            }
            Notification m10494 = c2638.m10494();
            return i >= 24 ? Notification.Builder.recoverBuilder(this.f11833, m10494).createHeadsUpContentView() : m10494.headsUpContentView;
        }

        @InterfaceC1793
        public C2583 m10187(@InterfaceC1770 int i, int i2, int i3) {
            Notification notification = this.f11838;
            notification.ledARGB = i;
            notification.ledOnMS = i2;
            notification.ledOffMS = i3;
            notification.flags = ((i2 == 0 || i3 == 0) ? 0 : 1) | (notification.flags & (-2));
            return this;
        }

        @InterfaceC1793
        public C2583 m10188(@InterfaceC1758 Uri uri, int i) {
            Notification notification = this.f11838;
            notification.sound = uri;
            notification.audioStreamType = i;
            if (Build.VERSION.SDK_INT >= 21) {
                notification.audioAttributes = new AudioAttributes.Builder().setContentType(4).setLegacyStreamType(i).build();
            }
            return this;
        }

        @InterfaceC1793
        public C2583 m10189(@InterfaceC1758 Bundle bundle) {
            this.f11808 = bundle;
            return this;
        }

        @InterfaceC1793
        public C2583 m10190(@InterfaceC1758 C2553 c2553) {
            this.f11810 = c2553;
            return this;
        }

        @InterfaceC1793
        @Deprecated
        public C2583 m10191(@InterfaceC1758 CharSequence charSequence, @InterfaceC1758 RemoteViews remoteViews) {
            this.f11838.tickerText = m10120(charSequence);
            this.f11843 = remoteViews;
            return this;
        }

        @InterfaceC1793
        public C2583 m10192() {
            this.f11802.clear();
            return this;
        }

        @InterfaceC1793
        public C2583 m10193(@InterfaceC1758 String str) {
            this.f11837 = str;
            return this;
        }

        @InterfaceC1793
        public C2583 m10194(@InterfaceC1758 PendingIntent pendingIntent) {
            this.f11815 = pendingIntent;
            return this;
        }

        @InterfaceC1793
        public C2583 m10195(@InterfaceC1793 String str) {
            this.f11828 = str;
            return this;
        }

        @InterfaceC1793
        public C2583 m10196(boolean z) {
            this.f11842 = z;
            return this;
        }

        @InterfaceC1793
        public C2583 m10197(@InterfaceC1758 String str) {
            this.f11832 = str;
            return this;
        }

        @InterfaceC1793
        public C2583 m10198(int i) {
            this.f11823 = i;
            return this;
        }

        @InterfaceC1762({InterfaceC1762.EnumC1763.LIBRARY_GROUP_PREFIX})
        public int m10199() {
            return this.f11818;
        }

        @InterfaceC1793
        @InterfaceC1753(21)
        public C2583 m10200(@InterfaceC1758 C2573 c2573) {
            if (c2573 != null) {
                this.f11816.add(c2573);
            }
            return this;
        }

        @InterfaceC1793
        public C2583 m10201(long j) {
            this.f11806 = j;
            return this;
        }

        public C2583(@InterfaceC1793 Context context, @InterfaceC1793 String str) {
            this.f11802 = new ArrayList<>();
            this.f11825 = new ArrayList<>();
            this.f11816 = new ArrayList<>();
            this.f11841 = true;
            this.f11829 = false;
            this.f11844 = 0;
            this.f11846 = 0;
            this.f11845 = 0;
            this.f11827 = 0;
            Notification notification = new Notification();
            this.f11838 = notification;
            this.f11833 = context;
            this.f11828 = str;
            notification.when = System.currentTimeMillis();
            this.f11838.audioStreamType = -1;
            this.f11818 = 0;
            this.f11836 = new ArrayList<>();
            this.f11817 = true;
        }

        @Deprecated
        public C2583(@InterfaceC1793 Context context) {
            this(context, (String) null);
        }
    }
}