导航菜单

页面标题

页面副标题

moonshot.企业版 v8.14.46 - C3586.java 源代码

正在查看: moonshot.企业版 v8.14.46 应用的 C3586.java JAVA 源代码文件

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


package c8sKPHc73aST6XPVbBtC.PGqkJnXjeiwrwErSxdaQ.hX79Ew6mJdJrSjlkdwnl;

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 c8sKPHc73aST6XPVbBtC.PGqkJnXjeiwrwErSxdaQ.eu1n4Vdn1yKpcNjlf7lN.C3531;
import c8sKPHc73aST6XPVbBtC.PGqkJnXjeiwrwErSxdaQ.hX79Ew6mJdJrSjlkdwnl.C3584;
import c8sKPHc73aST6XPVbBtC.PGqkJnXjeiwrwErSxdaQ.kp1AiJpjqJHu1Tcnj96z.C3714;
import c8sKPHc73aST6XPVbBtC.PGqkJnXjeiwrwErSxdaQ.kp1AiJpjqJHu1Tcnj96z.JINLt5EavtBRnNuKNNEN.C3676;
import c8sKPHc73aST6XPVbBtC.c8sKPHc73aST6XPVbBtC.InterfaceC4379;
import c8sKPHc73aST6XPVbBtC.c8sKPHc73aST6XPVbBtC.InterfaceC4392;
import c8sKPHc73aST6XPVbBtC.c8sKPHc73aST6XPVbBtC.InterfaceC4397;
import c8sKPHc73aST6XPVbBtC.c8sKPHc73aST6XPVbBtC.InterfaceC4399;
import c8sKPHc73aST6XPVbBtC.c8sKPHc73aST6XPVbBtC.InterfaceC4409;
import c8sKPHc73aST6XPVbBtC.c8sKPHc73aST6XPVbBtC.InterfaceC4417;
import c8sKPHc73aST6XPVbBtC.c8sKPHc73aST6XPVbBtC.InterfaceC4418;
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 C3586 {

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

    public static final String f12008 = "workout";

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

    public static final String f12010 = "transport";

    public static final int f12011 = -1;

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

    public static final String f12013 = "reminder";

    public static final int f12014 = 0;

    public static final int f12015 = 2;

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

    public static final String f12017 = "email";

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

    public static final String f12019 = "progress";

    public static final int f12020 = 16;

    public static final String f12021 = "recommendation";

    public static final int f12022 = -1;

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

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

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

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

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

    public static final int f12028 = -1;

    public static final String f12029 = "stopwatch";

    public static final String f12030 = "err";

    public static final String f12031 = "promo";

    public static final int f12032 = 1;

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

    public static final int f12034 = 8;

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

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

    public static final String f12037 = "location_sharing";

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

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

    public static final int f12040 = -2;

    public static final int f12041 = 4096;

    public static final int f12042 = 32;

    public static final String f12043 = "social";

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

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

    @Deprecated
    public static final int f12046 = 128;

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

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

    public static final int f12049 = 1;

    public static final int f12050 = 1;

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

    public static final int f12052 = 0;

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

    public static final int f12054 = 512;

    public static final int f12055 = 256;

    public static final String f12056 = "alarm";

    public static final int f12057 = 0;

    public static final String f12058 = "navigation";

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

    public static final int f12060 = 2;

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

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

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

    public static final int f12064 = 1;

    public static final int f12065 = -1;

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

    public static final String f12067 = "call";

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

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

    public static final int f12070 = 2;

    public static final int f12071 = 2;

    public static final String f12072 = "sys";

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

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

    public static final int f12075 = 4;

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

    public static final String f12077 = "msg";

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

    public static final String f12079 = "silent";

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

    @InterfaceC4409
    public static final int f12081 = 0;

    public static final String f12082 = "missed_call";

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

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

    public static final int f12085 = 64;

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

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

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

    public static final int f12089 = 1;

    public static final int f12090 = 1;

    public static final int f12091 = 4;

    public static final int f12092 = 2;

    public static final int f12093 = 0;

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

    public static final String f12095 = "service";

    public static final String f12096 = "event";

    public static final String f12097 = "status";

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

    public interface InterfaceC3587 {
        @InterfaceC4399
        C3604 mo17108(@InterfaceC4399 C3604 c3604);
    }

    @Retention(RetentionPolicy.SOURCE)
    @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
    public @interface InterfaceC3591 {
    }

    @Retention(RetentionPolicy.SOURCE)
    @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
    public @interface InterfaceC3592 {
    }

    public static final class C3594 {

        private static final int f12127 = 1;

        private static final int f12128 = 2;

        private IconCompat f12129;

        private PendingIntent f12130;

        private int f12131;

        private int f12132;

        private String f12133;

        private PendingIntent f12134;

        @InterfaceC4392
        private int f12135;

        public static final class C3595 {

            private int f12136;

            private PendingIntent f12137;

            private PendingIntent f12138;

            @InterfaceC4392
            private int f12139;

            private String f12140;

            private IconCompat f12141;

            private int f12142;

            @Deprecated
            public C3595() {
            }

            @InterfaceC4399
            private C3595 m17140(int i, boolean z) {
                if (z) {
                    this.f12142 = i | this.f12142;
                } else {
                    this.f12142 = (i ^ (-1)) & this.f12142;
                }
                return this;
            }

            @InterfaceC4399
            public C3595 m17141(@InterfaceC4399 PendingIntent pendingIntent) {
                if (this.f12140 != 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.f12137 = pendingIntent;
                return this;
            }

            @InterfaceC4399
            public C3595 m17142(@InterfaceC4397 PendingIntent pendingIntent) {
                this.f12138 = pendingIntent;
                return this;
            }

            @InterfaceC4399
            @SuppressLint({"SyntheticAccessor"})
            public C3594 m17143() {
                String str = this.f12140;
                if (str == null) {
                    Objects.requireNonNull(this.f12137, "Must supply pending intent or shortcut to bubble");
                }
                if (str == null) {
                    Objects.requireNonNull(this.f12141, "Must supply an icon or shortcut for the bubble");
                }
                C3594 c3594 = new C3594(this.f12137, this.f12138, this.f12141, this.f12136, this.f12139, this.f12142, str);
                c3594.m17131(this.f12142);
                return c3594;
            }

            @InterfaceC4399
            public C3595 m17144(@InterfaceC4417(unit = 0) int i) {
                this.f12136 = Math.max(i, 0);
                this.f12139 = 0;
                return this;
            }

            @InterfaceC4399
            public C3595 m17145(@InterfaceC4399 IconCompat iconCompat) {
                if (this.f12140 != 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.f12141 = iconCompat;
                return this;
            }

            @InterfaceC4399
            public C3595 m17146(boolean z) {
                m17140(1, z);
                return this;
            }

            @InterfaceC4399
            public C3595 m17147(@InterfaceC4392 int i) {
                this.f12139 = i;
                this.f12136 = 0;
                return this;
            }

            @InterfaceC4399
            public C3595 m17148(boolean z) {
                m17140(2, z);
                return this;
            }

            @InterfaceC4418(30)
            public C3595(@InterfaceC4399 String str) {
                if (TextUtils.isEmpty(str)) {
                    throw new NullPointerException("Bubble requires a non-null shortcut id");
                }
                this.f12140 = str;
            }

            public C3595(@InterfaceC4399 PendingIntent pendingIntent, @InterfaceC4399 IconCompat iconCompat) {
                Objects.requireNonNull(pendingIntent, "Bubble requires non-null pending intent");
                Objects.requireNonNull(iconCompat, "Bubbles require non-null icon");
                this.f12137 = pendingIntent;
                this.f12141 = iconCompat;
            }
        }

        @InterfaceC4418(29)
        public static class C3596 {
            private C3596() {
            }

            @InterfaceC4397
            @InterfaceC4418(29)
            public static C3594 m17149(@InterfaceC4397 Notification.BubbleMetadata bubbleMetadata) {
                if (bubbleMetadata == null || bubbleMetadata.getIntent() == null) {
                    return null;
                }
                C3595 m17148 = new C3595(bubbleMetadata.getIntent(), IconCompat.m13408(bubbleMetadata.getIcon())).m17146(bubbleMetadata.getAutoExpandBubble()).m17142(bubbleMetadata.getDeleteIntent()).m17148(bubbleMetadata.isNotificationSuppressed());
                if (bubbleMetadata.getDesiredHeight() != 0) {
                    m17148.m17144(bubbleMetadata.getDesiredHeight());
                }
                if (bubbleMetadata.getDesiredHeightResId() != 0) {
                    m17148.m17147(bubbleMetadata.getDesiredHeightResId());
                }
                return m17148.m17143();
            }

            @InterfaceC4397
            @InterfaceC4418(29)
            public static Notification.BubbleMetadata m17150(@InterfaceC4397 C3594 c3594) {
                if (c3594 == null || c3594.m17136() == null) {
                    return null;
                }
                Notification.BubbleMetadata.Builder suppressNotification = new Notification.BubbleMetadata.Builder().setIcon(c3594.m17134().m13425()).setIntent(c3594.m17136()).setDeleteIntent(c3594.m17133()).setAutoExpandBubble(c3594.m17137()).setSuppressNotification(c3594.m17139());
                if (c3594.m17135() != 0) {
                    suppressNotification.setDesiredHeight(c3594.m17135());
                }
                if (c3594.m17138() != 0) {
                    suppressNotification.setDesiredHeightResId(c3594.m17138());
                }
                return suppressNotification.build();
            }
        }

        @InterfaceC4418(30)
        public static class C3597 {
            private C3597() {
            }

            @InterfaceC4397
            @InterfaceC4418(30)
            public static C3594 m17151(@InterfaceC4397 Notification.BubbleMetadata bubbleMetadata) {
                if (bubbleMetadata == null) {
                    return null;
                }
                C3595 c3595 = bubbleMetadata.getShortcutId() != null ? new C3595(bubbleMetadata.getShortcutId()) : new C3595(bubbleMetadata.getIntent(), IconCompat.m13408(bubbleMetadata.getIcon()));
                c3595.m17146(bubbleMetadata.getAutoExpandBubble()).m17142(bubbleMetadata.getDeleteIntent()).m17148(bubbleMetadata.isNotificationSuppressed());
                if (bubbleMetadata.getDesiredHeight() != 0) {
                    c3595.m17144(bubbleMetadata.getDesiredHeight());
                }
                if (bubbleMetadata.getDesiredHeightResId() != 0) {
                    c3595.m17147(bubbleMetadata.getDesiredHeightResId());
                }
                return c3595.m17143();
            }

            @InterfaceC4397
            @InterfaceC4418(30)
            public static Notification.BubbleMetadata m17152(@InterfaceC4397 C3594 c3594) {
                if (c3594 == null) {
                    return null;
                }
                Notification.BubbleMetadata.Builder builder = c3594.m17132() != null ? new Notification.BubbleMetadata.Builder(c3594.m17132()) : new Notification.BubbleMetadata.Builder(c3594.m17136(), c3594.m17134().m13425());
                builder.setDeleteIntent(c3594.m17133()).setAutoExpandBubble(c3594.m17137()).setSuppressNotification(c3594.m17139());
                if (c3594.m17135() != 0) {
                    builder.setDesiredHeight(c3594.m17135());
                }
                if (c3594.m17138() != 0) {
                    builder.setDesiredHeightResId(c3594.m17138());
                }
                return builder.build();
            }
        }

        @InterfaceC4397
        public static C3594 m17129(@InterfaceC4397 Notification.BubbleMetadata bubbleMetadata) {
            if (bubbleMetadata == null) {
                return null;
            }
            int i = Build.VERSION.SDK_INT;
            if (i >= 30) {
                return C3597.m17151(bubbleMetadata);
            }
            if (i == 29) {
                return C3596.m17149(bubbleMetadata);
            }
            return null;
        }

        @InterfaceC4397
        public static Notification.BubbleMetadata m17130(@InterfaceC4397 C3594 c3594) {
            if (c3594 == null) {
                return null;
            }
            int i = Build.VERSION.SDK_INT;
            if (i >= 30) {
                return C3597.m17152(c3594);
            }
            if (i == 29) {
                return C3596.m17150(c3594);
            }
            return null;
        }

        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public void m17131(int i) {
            this.f12131 = i;
        }

        @InterfaceC4397
        public String m17132() {
            return this.f12133;
        }

        @InterfaceC4397
        public PendingIntent m17133() {
            return this.f12134;
        }

        @InterfaceC4397
        @SuppressLint({"InvalidNullConversion"})
        public IconCompat m17134() {
            return this.f12129;
        }

        @InterfaceC4417(unit = 0)
        public int m17135() {
            return this.f12132;
        }

        @InterfaceC4397
        @SuppressLint({"InvalidNullConversion"})
        public PendingIntent m17136() {
            return this.f12130;
        }

        public boolean m17137() {
            return (this.f12131 & 1) != 0;
        }

        @InterfaceC4392
        public int m17138() {
            return this.f12135;
        }

        public boolean m17139() {
            return (this.f12131 & 2) != 0;
        }

        private C3594(@InterfaceC4397 PendingIntent pendingIntent, @InterfaceC4397 PendingIntent pendingIntent2, @InterfaceC4397 IconCompat iconCompat, int i, @InterfaceC4392 int i2, int i3, @InterfaceC4397 String str) {
            this.f12130 = pendingIntent;
            this.f12129 = iconCompat;
            this.f12132 = i;
            this.f12135 = i2;
            this.f12134 = pendingIntent2;
            this.f12131 = i3;
            this.f12133 = str;
        }
    }

    @Retention(RetentionPolicy.SOURCE)
    @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
    public @interface InterfaceC3598 {
    }

    public static abstract class AbstractC3599 {

        public CharSequence f12143;

        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public C3604 f12144;

        public boolean f12145 = false;

        public CharSequence f12146;

        @InterfaceC4397
        private static AbstractC3599 m17153(@InterfaceC4397 String str) {
            int i;
            if (str != null && (i = Build.VERSION.SDK_INT) >= 16) {
                if (str.equals(Notification.BigPictureStyle.class.getName())) {
                    return new C3601();
                }
                if (str.equals(Notification.BigTextStyle.class.getName())) {
                    return new C3611();
                }
                if (str.equals(Notification.InboxStyle.class.getName())) {
                    return new C3610();
                }
                if (i >= 24) {
                    if (str.equals(Notification.MessagingStyle.class.getName())) {
                        return new C3614();
                    }
                    if (str.equals(Notification.DecoratedCustomViewStyle.class.getName())) {
                        return new C3612();
                    }
                }
            }
            return null;
        }

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

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

        private Bitmap m17156(int i, int i2, int i3) {
            return m17158(IconCompat.m13391(this.f12144.f12163, i), i2, i3);
        }

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

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

        @InterfaceC4397
        public static AbstractC3599 m17159(@InterfaceC4399 Bundle bundle) {
            AbstractC3599 m17162 = m17162(bundle.getString(C3586.f12035));
            return m17162 != null ? m17162 : (bundle.containsKey(C3586.f12009) || bundle.containsKey(C3586.f12087)) ? new C3614() : bundle.containsKey(C3586.f12036) ? new C3601() : bundle.containsKey(C3586.f12053) ? new C3611() : bundle.containsKey(C3586.f12026) ? new C3610() : m17153(bundle.getString(C3586.f12012));
        }

        @InterfaceC4397
        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public static AbstractC3599 m17160(@InterfaceC4399 Notification notification) {
            Bundle m17085 = C3586.m17085(notification);
            if (m17085 == null) {
                return null;
            }
            return m17161(m17085);
        }

        @InterfaceC4397
        public static AbstractC3599 m17161(@InterfaceC4399 Bundle bundle) {
            AbstractC3599 m17159 = m17159(bundle);
            if (m17159 == null) {
                return null;
            }
            try {
                m17159.mo17167(bundle);
                return m17159;
            } catch (ClassCastException unused) {
                return null;
            }
        }

        @InterfaceC4397
        public static AbstractC3599 m17162(@InterfaceC4397 String str) {
            if (str == null) {
                return null;
            }
            str.hashCode();
            switch (str) {
                case "androidx.core.app.NotificationCompat$DecoratedCustomViewStyle":
                    return new C3612();
                case "androidx.core.app.NotificationCompat$BigPictureStyle":
                    return new C3601();
                case "androidx.core.app.NotificationCompat$InboxStyle":
                    return new C3610();
                case "androidx.core.app.NotificationCompat$BigTextStyle":
                    return new C3611();
                case "androidx.core.app.NotificationCompat$MessagingStyle":
                    return new C3614();
                default:
                    return null;
            }
        }

        private Bitmap m17163(int i, int i2, int i3, int i4) {
            int i5 = R.drawable.notification_icon_background;
            if (i4 == 0) {
                i4 = 0;
            }
            Bitmap m17156 = m17156(i5, i4, i2);
            Canvas canvas = new Canvas(m17156);
            Drawable mutate = this.f12144.f12163.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 m17156;
        }

        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public RemoteViews mo14699(InterfaceC3642 interfaceC3642) {
            return null;
        }

        public Bitmap m17164(@InterfaceC4399 IconCompat iconCompat, int i) {
            return m17158(iconCompat, i, 0);
        }

        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public RemoteViews mo14701(InterfaceC3642 interfaceC3642) {
            return null;
        }

        @InterfaceC4399
        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public RemoteViews m17165(boolean z, int i, boolean z2) {
            boolean z3;
            boolean z4;
            boolean z5;
            CharSequence charSequence;
            boolean z6;
            CharSequence charSequence2;
            Resources resources = this.f12144.f12163.getResources();
            RemoteViews remoteViews = new RemoteViews(this.f12144.f12163.getPackageName(), i);
            boolean z7 = true;
            boolean z8 = this.f12144.m17219() < -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);
                }
            }
            C3604 c3604 = this.f12144;
            if (c3604.f12152 != null) {
                if (i2 >= 16) {
                    int i3 = R.id.icon;
                    remoteViews.setViewVisibility(i3, 0);
                    remoteViews.setImageViewBitmap(i3, this.f12144.f12152);
                } else {
                    remoteViews.setViewVisibility(R.id.icon, 8);
                }
                if (z && this.f12144.f12162.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) {
                        C3604 c36042 = this.f12144;
                        remoteViews.setImageViewBitmap(R.id.right_icon, m17163(c36042.f12162.icon, dimensionPixelSize, dimensionPixelSize2, c36042.m17224()));
                    } else {
                        remoteViews.setImageViewBitmap(R.id.right_icon, m17173(this.f12144.f12162.icon, -1));
                    }
                    remoteViews.setViewVisibility(R.id.right_icon, 0);
                }
            } else if (z && c3604.f12162.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);
                    C3604 c36043 = this.f12144;
                    remoteViews.setImageViewBitmap(i4, m17163(c36043.f12162.icon, dimensionPixelSize3, dimensionPixelSize4, c36043.m17224()));
                } else {
                    remoteViews.setImageViewBitmap(i4, m17173(this.f12144.f12162.icon, -1));
                }
            }
            CharSequence charSequence3 = this.f12144.f12190;
            if (charSequence3 != null) {
                remoteViews.setTextViewText(R.id.title, charSequence3);
            }
            CharSequence charSequence4 = this.f12144.f12164;
            if (charSequence4 != null) {
                remoteViews.setTextViewText(R.id.text, charSequence4);
                z3 = true;
            } else {
                z3 = false;
            }
            boolean z9 = i2 < 21 && this.f12144.f12152 != null;
            C3604 c36044 = this.f12144;
            CharSequence charSequence5 = c36044.f12179;
            if (charSequence5 != null) {
                int i5 = R.id.info;
                remoteViews.setTextViewText(i5, charSequence5);
                remoteViews.setViewVisibility(i5, 0);
            } else {
                if (c36044.f12188 <= 0) {
                    remoteViews.setViewVisibility(R.id.info, 8);
                    z4 = z3;
                    z5 = z9;
                    charSequence = this.f12144.f12176;
                    if (charSequence != null && i2 >= 16) {
                        remoteViews.setTextViewText(R.id.text, charSequence);
                        charSequence2 = this.f12144.f12164;
                        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.f12144.m17213() == 0) {
                                z7 = z5;
                            } else if (!this.f12144.f12158 || i2 < 16) {
                                int i7 = R.id.time;
                                remoteViews.setViewVisibility(i7, 0);
                                remoteViews.setLong(i7, "setTime", this.f12144.m17213());
                            } else {
                                int i8 = R.id.chronometer;
                                remoteViews.setViewVisibility(i8, 0);
                                remoteViews.setLong(i8, "setBase", this.f12144.m17213() + (SystemClock.elapsedRealtime() - System.currentTimeMillis()));
                                remoteViews.setBoolean(i8, "setStarted", true);
                                boolean z10 = this.f12144.f12173;
                                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.f12144.m17213() == 0) {
                    }
                    remoteViews.setViewVisibility(R.id.right_side, z7 ? 0 : 8);
                    remoteViews.setViewVisibility(R.id.line3, z4 ? 0 : 8);
                    return remoteViews;
                }
                if (this.f12144.f12188 > 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.f12144.f12188));
                }
                remoteViews.setViewVisibility(R.id.info, 0);
            }
            z4 = true;
            z5 = true;
            charSequence = this.f12144.f12176;
            if (charSequence != null) {
                remoteViews.setTextViewText(R.id.text, charSequence);
                charSequence2 = this.f12144.f12164;
                if (charSequence2 == null) {
                }
            }
            z6 = false;
            if (z6) {
            }
            if (this.f12144.m17213() == 0) {
            }
            remoteViews.setViewVisibility(R.id.right_side, z7 ? 0 : 8);
            remoteViews.setViewVisibility(R.id.line3, z4 ? 0 : 8);
            return remoteViews;
        }

        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public void mo17166(@InterfaceC4399 Bundle bundle) {
            if (this.f12145) {
                bundle.putCharSequence(C3586.f12047, this.f12143);
            }
            CharSequence charSequence = this.f12146;
            if (charSequence != null) {
                bundle.putCharSequence(C3586.f12073, charSequence);
            }
            String mo17169 = mo17169();
            if (mo17169 != null) {
                bundle.putString(C3586.f12035, mo17169);
            }
        }

        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public void mo17167(@InterfaceC4399 Bundle bundle) {
            if (bundle.containsKey(C3586.f12047)) {
                this.f12143 = bundle.getCharSequence(C3586.f12047);
                this.f12145 = true;
            }
            this.f12146 = bundle.getCharSequence(C3586.f12073);
        }

        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public RemoteViews mo14702(InterfaceC3642 interfaceC3642) {
            return null;
        }

        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public boolean mo17168() {
            return false;
        }

        @InterfaceC4397
        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public String mo17169() {
            return null;
        }

        @InterfaceC4397
        public Notification m17170() {
            C3604 c3604 = this.f12144;
            if (c3604 != null) {
                return c3604.m17196();
            }
            return null;
        }

        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public void mo17171(@InterfaceC4399 Bundle bundle) {
            bundle.remove(C3586.f12047);
            bundle.remove(C3586.f12073);
            bundle.remove(C3586.f12035);
        }

        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public void mo14703(InterfaceC3642 interfaceC3642) {
        }

        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public void m17172(RemoteViews remoteViews, RemoteViews remoteViews2) {
            m17157(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, m17155(), 0, 0);
            }
        }

        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public Bitmap m17173(int i, int i2) {
            return m17156(i, i2, 0);
        }

        public void m17174(@InterfaceC4397 C3604 c3604) {
            if (this.f12144 != c3604) {
                this.f12144 = c3604;
                if (c3604 != null) {
                    c3604.m17191(this);
                }
            }
        }
    }

    @Retention(RetentionPolicy.SOURCE)
    @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
    public @interface InterfaceC3600 {
    }

    public static class C3601 extends AbstractC3599 {

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

        private IconCompat f12148;

        private boolean f12149;

        private Bitmap f12150;

        @InterfaceC4418(16)
        public static class C3602 {
            private C3602() {
            }

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

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

        @InterfaceC4418(23)
        public static class C3603 {
            private C3603() {
            }

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

        public C3601() {
        }

        @InterfaceC4397
        private static IconCompat m17175(@InterfaceC4397 Parcelable parcelable) {
            if (parcelable == null) {
                return null;
            }
            if (Build.VERSION.SDK_INT >= 23 && (parcelable instanceof Icon)) {
                return IconCompat.m13408((Icon) parcelable);
            }
            if (parcelable instanceof Bitmap) {
                return IconCompat.m13404((Bitmap) parcelable);
            }
            return null;
        }

        @InterfaceC4399
        public C3601 m17176(@InterfaceC4397 CharSequence charSequence) {
            this.f12143 = C3604.m17187(charSequence);
            this.f12145 = true;
            return this;
        }

        @Override
        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public void mo17167(@InterfaceC4399 Bundle bundle) {
            super.mo17167(bundle);
            if (bundle.containsKey(C3586.f12048)) {
                this.f12148 = m17175(bundle.getParcelable(C3586.f12048));
                this.f12149 = true;
            }
            this.f12150 = (Bitmap) bundle.getParcelable(C3586.f12036);
        }

        @InterfaceC4399
        public C3601 m17177(@InterfaceC4397 CharSequence charSequence) {
            this.f12146 = C3604.m17187(charSequence);
            return this;
        }

        @InterfaceC4399
        public C3601 m17178(@InterfaceC4397 Bitmap bitmap) {
            this.f12150 = bitmap;
            return this;
        }

        @Override
        @InterfaceC4399
        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public String mo17169() {
            return f12147;
        }

        @Override
        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public void mo17171(@InterfaceC4399 Bundle bundle) {
            super.mo17171(bundle);
            bundle.remove(C3586.f12048);
            bundle.remove(C3586.f12036);
        }

        @Override
        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public void mo14703(InterfaceC3642 interfaceC3642) {
            int i = Build.VERSION.SDK_INT;
            if (i >= 16) {
                Notification.BigPictureStyle bigPicture = new Notification.BigPictureStyle(interfaceC3642.mo17493()).setBigContentTitle(this.f12146).bigPicture(this.f12150);
                if (this.f12149) {
                    IconCompat iconCompat = this.f12148;
                    if (iconCompat == null) {
                        C3602.m17180(bigPicture, null);
                    } else if (i >= 23) {
                        C3603.m17182(bigPicture, this.f12148.m13423(interfaceC3642 instanceof C3641 ? ((C3641) interfaceC3642).m17494() : null));
                    } else if (iconCompat.m13413() == 1) {
                        C3602.m17180(bigPicture, this.f12148.m13415());
                    } else {
                        C3602.m17180(bigPicture, null);
                    }
                }
                if (this.f12145) {
                    C3602.m17181(bigPicture, this.f12143);
                }
            }
        }

        @InterfaceC4399
        public C3601 m17179(@InterfaceC4397 Bitmap bitmap) {
            this.f12148 = bitmap == null ? null : IconCompat.m13404(bitmap);
            this.f12149 = true;
            return this;
        }

        public C3601(@InterfaceC4397 C3604 c3604) {
            m17174(c3604);
        }
    }

    public static class C3605 {

        public static final int f12201 = 10;

        public static final int f12202 = 3;

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

        public static final int f12204 = 2;

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

        public static final int f12206 = 9;

        public static final int f12207 = 4;

        public static final int f12208 = 6;

        public static final int f12209 = 8;

        public static final int f12210 = 7;

        public static final int f12211 = 0;

        public static final int f12212 = 5;

        public static final int f12213 = 1;

        public CharSequence f12214;

        private final boolean f12215;

        private final C3555[] f12216;

        public final Bundle f12217;

        public boolean f12218;

        public PendingIntent f12219;

        private final C3555[] f12220;

        private final int f12221;

        @InterfaceC4397
        private IconCompat f12222;

        private boolean f12223;

        @Deprecated
        public int f12224;

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

        public static final class C3607 {

            private boolean f12225;

            private final PendingIntent f12226;

            private final IconCompat f12227;

            private ArrayList<C3555> f12228;

            private boolean f12229;

            private int f12230;

            private final CharSequence f12231;

            private final Bundle f12232;

            private boolean f12233;

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

            @InterfaceC4399
            @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
            @InterfaceC4418(19)
            public static C3607 m17279(@InterfaceC4399 Notification.Action action) {
                RemoteInput[] remoteInputs;
                int i = Build.VERSION.SDK_INT;
                C3607 c3607 = (i < 23 || action.getIcon() == null) ? new C3607(action.icon, action.title, action.actionIntent) : new C3607(IconCompat.m13408(action.getIcon()), action.title, action.actionIntent);
                if (i >= 20 && (remoteInputs = action.getRemoteInputs()) != null && remoteInputs.length != 0) {
                    for (RemoteInput remoteInput : remoteInputs) {
                        c3607.m17287(C3555.m16885(remoteInput));
                    }
                }
                int i2 = Build.VERSION.SDK_INT;
                if (i2 >= 24) {
                    c3607.f12229 = action.getAllowGeneratedReplies();
                }
                if (i2 >= 28) {
                    c3607.m17281(action.getSemanticAction());
                }
                if (i2 >= 29) {
                    c3607.m17289(action.isContextual());
                }
                return c3607;
            }

            private void m17280() {
                if (this.f12233) {
                    Objects.requireNonNull(this.f12226, "Contextual Actions must contain a valid PendingIntent");
                }
            }

            @InterfaceC4399
            public C3607 m17281(int i) {
                this.f12230 = i;
                return this;
            }

            @InterfaceC4399
            public C3607 m17282(boolean z) {
                this.f12229 = z;
                return this;
            }

            @InterfaceC4399
            public C3605 m17283() {
                m17280();
                ArrayList arrayList = new ArrayList();
                ArrayList arrayList2 = new ArrayList();
                ArrayList<C3555> arrayList3 = this.f12228;
                if (arrayList3 != null) {
                    Iterator<C3555> it = arrayList3.iterator();
                    while (it.hasNext()) {
                        C3555 next = it.next();
                        if (next.m16892()) {
                            arrayList.add(next);
                        } else {
                            arrayList2.add(next);
                        }
                    }
                }
                C3555[] c3555Arr = arrayList.isEmpty() ? null : (C3555[]) arrayList.toArray(new C3555[arrayList.size()]);
                return new C3605(this.f12227, this.f12231, this.f12226, this.f12232, arrayList2.isEmpty() ? null : (C3555[]) arrayList2.toArray(new C3555[arrayList2.size()]), c3555Arr, this.f12229, this.f12230, this.f12225, this.f12233);
            }

            @InterfaceC4399
            public C3607 m17284(@InterfaceC4397 Bundle bundle) {
                if (bundle != null) {
                    this.f12232.putAll(bundle);
                }
                return this;
            }

            @InterfaceC4399
            public C3607 m17285(boolean z) {
                this.f12225 = z;
                return this;
            }

            @InterfaceC4399
            public Bundle m17286() {
                return this.f12232;
            }

            @InterfaceC4399
            public C3607 m17287(@InterfaceC4397 C3555 c3555) {
                if (this.f12228 == null) {
                    this.f12228 = new ArrayList<>();
                }
                if (c3555 != null) {
                    this.f12228.add(c3555);
                }
                return this;
            }

            @InterfaceC4399
            public C3607 m17288(@InterfaceC4399 InterfaceC3609 interfaceC3609) {
                interfaceC3609.mo17295(this);
                return this;
            }

            @InterfaceC4399
            public C3607 m17289(boolean z) {
                this.f12233 = z;
                return this;
            }

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

            public C3607(@InterfaceC4399 C3605 c3605) {
                this(c3605.m17272(), c3605.f12214, c3605.f12219, new Bundle(c3605.f12217), c3605.m17275(), c3605.m17276(), c3605.m17269(), c3605.f12218, c3605.m17273());
            }

            private C3607(@InterfaceC4397 IconCompat iconCompat, @InterfaceC4397 CharSequence charSequence, @InterfaceC4397 PendingIntent pendingIntent, @InterfaceC4399 Bundle bundle, @InterfaceC4397 C3555[] c3555Arr, boolean z, int i, boolean z2, boolean z3) {
                this.f12229 = true;
                this.f12225 = true;
                this.f12227 = iconCompat;
                this.f12231 = C3604.m17187(charSequence);
                this.f12226 = pendingIntent;
                this.f12232 = bundle;
                this.f12228 = c3555Arr == null ? null : new ArrayList<>(Arrays.asList(c3555Arr));
                this.f12229 = z;
                this.f12230 = i;
                this.f12225 = z2;
                this.f12233 = z3;
            }
        }

        public interface InterfaceC3609 {
            @InterfaceC4399
            C3607 mo17295(@InterfaceC4399 C3607 c3607);
        }

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

        @InterfaceC4397
        public CharSequence m17268() {
            return this.f12214;
        }

        public int m17269() {
            return this.f12221;
        }

        @InterfaceC4397
        public C3555[] m17270() {
            return this.f12220;
        }

        @InterfaceC4397
        public PendingIntent m17271() {
            return this.f12219;
        }

        @InterfaceC4397
        public IconCompat m17272() {
            int i;
            if (this.f12222 == null && (i = this.f12224) != 0) {
                this.f12222 = IconCompat.m13394(null, "", i);
            }
            return this.f12222;
        }

        public boolean m17273() {
            return this.f12215;
        }

        @InterfaceC4399
        public Bundle m17274() {
            return this.f12217;
        }

        @InterfaceC4397
        public C3555[] m17275() {
            return this.f12216;
        }

        public boolean m17276() {
            return this.f12223;
        }

        @Deprecated
        public int m17277() {
            return this.f12224;
        }

        public boolean m17278() {
            return this.f12218;
        }

        public static final class C3608 implements InterfaceC3609 {

            private static final int f12234 = 1;

            private static final String f12235 = "confirmLabel";

            private static final String f12236 = "flags";

            private static final int f12237 = 2;

            private static final String f12238 = "inProgressLabel";

            private static final int f12239 = 4;

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

            private static final String f12241 = "cancelLabel";

            private static final int f12242 = 1;

            private CharSequence f12243;

            private int f12244;

            private CharSequence f12245;

            private CharSequence f12246;

            public C3608() {
                this.f12244 = 1;
            }

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

            @InterfaceC4399
            @Deprecated
            public C3608 m17291(@InterfaceC4397 CharSequence charSequence) {
                this.f12245 = charSequence;
                return this;
            }

            public boolean m17292() {
                return (this.f12244 & 1) != 0;
            }

            @InterfaceC4399
            @Deprecated
            public C3608 m17293(@InterfaceC4397 CharSequence charSequence) {
                this.f12246 = charSequence;
                return this;
            }

            @InterfaceC4397
            @Deprecated
            public CharSequence m17294() {
                return this.f12245;
            }

            @Override
            @InterfaceC4399
            public C3607 mo17295(@InterfaceC4399 C3607 c3607) {
                Bundle bundle = new Bundle();
                int i = this.f12244;
                if (i != 1) {
                    bundle.putInt(f12236, i);
                }
                CharSequence charSequence = this.f12246;
                if (charSequence != null) {
                    bundle.putCharSequence(f12238, charSequence);
                }
                CharSequence charSequence2 = this.f12243;
                if (charSequence2 != null) {
                    bundle.putCharSequence(f12235, charSequence2);
                }
                CharSequence charSequence3 = this.f12245;
                if (charSequence3 != null) {
                    bundle.putCharSequence(f12241, charSequence3);
                }
                c3607.m17286().putBundle(f12240, bundle);
                return c3607;
            }

            public boolean m17296() {
                return (this.f12244 & 2) != 0;
            }

            @InterfaceC4399
            public C3608 m17297(boolean z) {
                m17290(2, z);
                return this;
            }

            @InterfaceC4399
            @Deprecated
            public C3608 m17298(@InterfaceC4397 CharSequence charSequence) {
                this.f12243 = charSequence;
                return this;
            }

            @InterfaceC4397
            @Deprecated
            public CharSequence m17299() {
                return this.f12243;
            }

            @InterfaceC4397
            @Deprecated
            public CharSequence m17300() {
                return this.f12246;
            }

            @InterfaceC4399
            public C3608 clone() {
                C3608 c3608 = new C3608();
                c3608.f12244 = this.f12244;
                c3608.f12246 = this.f12246;
                c3608.f12243 = this.f12243;
                c3608.f12245 = this.f12245;
                return c3608;
            }

            public boolean m17302() {
                return (this.f12244 & 4) != 0;
            }

            @InterfaceC4399
            public C3608 m17303(boolean z) {
                m17290(1, z);
                return this;
            }

            @InterfaceC4399
            public C3608 m17304(boolean z) {
                m17290(4, z);
                return this;
            }

            public C3608(@InterfaceC4399 C3605 c3605) {
                this.f12244 = 1;
                Bundle bundle = c3605.m17274().getBundle(f12240);
                if (bundle != null) {
                    this.f12244 = bundle.getInt(f12236, 1);
                    this.f12246 = bundle.getCharSequence(f12238);
                    this.f12243 = bundle.getCharSequence(f12235);
                    this.f12245 = bundle.getCharSequence(f12241);
                }
            }
        }

        public C3605(@InterfaceC4397 IconCompat iconCompat, @InterfaceC4397 CharSequence charSequence, @InterfaceC4397 PendingIntent pendingIntent) {
            this(iconCompat, charSequence, pendingIntent, new Bundle(), (C3555[]) null, (C3555[]) null, true, 0, true, false);
        }

        public C3605(int i, @InterfaceC4397 CharSequence charSequence, @InterfaceC4397 PendingIntent pendingIntent, @InterfaceC4397 Bundle bundle, @InterfaceC4397 C3555[] c3555Arr, @InterfaceC4397 C3555[] c3555Arr2, boolean z, int i2, boolean z2, boolean z3) {
            this(i != 0 ? IconCompat.m13394(null, "", i) : null, charSequence, pendingIntent, bundle, c3555Arr, c3555Arr2, z, i2, z2, z3);
        }

        public C3605(@InterfaceC4397 IconCompat iconCompat, @InterfaceC4397 CharSequence charSequence, @InterfaceC4397 PendingIntent pendingIntent, @InterfaceC4397 Bundle bundle, @InterfaceC4397 C3555[] c3555Arr, @InterfaceC4397 C3555[] c3555Arr2, boolean z, int i, boolean z2, boolean z3) {
            this.f12218 = true;
            this.f12222 = iconCompat;
            if (iconCompat != null && iconCompat.m13413() == 2) {
                this.f12224 = iconCompat.m13426();
            }
            this.f12214 = C3604.m17187(charSequence);
            this.f12219 = pendingIntent;
            this.f12217 = bundle == null ? new Bundle() : bundle;
            this.f12216 = c3555Arr;
            this.f12220 = c3555Arr2;
            this.f12223 = z;
            this.f12221 = i;
            this.f12218 = z2;
            this.f12215 = z3;
        }
    }

    public static class C3611 extends AbstractC3599 {

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

        private CharSequence f12250;

        public C3611() {
        }

        @Override
        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public void mo17166(@InterfaceC4399 Bundle bundle) {
            super.mo17166(bundle);
            if (Build.VERSION.SDK_INT < 21) {
                bundle.putCharSequence(C3586.f12053, this.f12250);
            }
        }

        @Override
        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public void mo17167(@InterfaceC4399 Bundle bundle) {
            super.mo17167(bundle);
            this.f12250 = bundle.getCharSequence(C3586.f12053);
        }

        @InterfaceC4399
        public C3611 m17308(@InterfaceC4397 CharSequence charSequence) {
            this.f12250 = C3604.m17187(charSequence);
            return this;
        }

        @InterfaceC4399
        public C3611 m17309(@InterfaceC4397 CharSequence charSequence) {
            this.f12143 = C3604.m17187(charSequence);
            this.f12145 = true;
            return this;
        }

        @Override
        @InterfaceC4399
        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public String mo17169() {
            return f12249;
        }

        @Override
        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public void mo17171(@InterfaceC4399 Bundle bundle) {
            super.mo17171(bundle);
            bundle.remove(C3586.f12053);
        }

        @Override
        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public void mo14703(InterfaceC3642 interfaceC3642) {
            if (Build.VERSION.SDK_INT >= 16) {
                Notification.BigTextStyle bigText = new Notification.BigTextStyle(interfaceC3642.mo17493()).setBigContentTitle(this.f12146).bigText(this.f12250);
                if (this.f12145) {
                    bigText.setSummaryText(this.f12143);
                }
            }
        }

        @InterfaceC4399
        public C3611 m17310(@InterfaceC4397 CharSequence charSequence) {
            this.f12146 = C3604.m17187(charSequence);
            return this;
        }

        public C3611(@InterfaceC4397 C3604 c3604) {
            m17174(c3604);
        }
    }

    public static class C3612 extends AbstractC3599 {

        private static final int f12251 = 3;

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

        private RemoteViews m17311(RemoteViews remoteViews, boolean z) {
            int min;
            boolean z2 = true;
            RemoteViews m17165 = m17165(true, R.layout.notification_template_custom_big, false);
            m17165.removeAllViews(R.id.actions);
            List<C3605> m17312 = m17312(this.f12144.f12187);
            if (!z || m17312 == null || (min = Math.min(m17312.size(), 3)) <= 0) {
                z2 = false;
            } else {
                for (int i = 0; i < min; i++) {
                    m17165.addView(R.id.actions, m17313(m17312.get(i)));
                }
            }
            int i2 = z2 ? 0 : 8;
            m17165.setViewVisibility(R.id.actions, i2);
            m17165.setViewVisibility(R.id.action_divider, i2);
            m17172(m17165, remoteViews);
            return m17165;
        }

        private static List<C3605> m17312(List<C3605> list) {
            if (list == null) {
                return null;
            }
            ArrayList arrayList = new ArrayList();
            for (C3605 c3605 : list) {
                if (!c3605.m17273()) {
                    arrayList.add(c3605);
                }
            }
            return arrayList;
        }

        private RemoteViews m17313(C3605 c3605) {
            boolean z = c3605.f12219 == null;
            RemoteViews remoteViews = new RemoteViews(this.f12144.f12163.getPackageName(), z ? R.layout.notification_action_tombstone : R.layout.notification_action);
            IconCompat m17272 = c3605.m17272();
            if (m17272 != null) {
                remoteViews.setImageViewBitmap(R.id.action_image, m17164(m17272, this.f12144.f12163.getResources().getColor(R.color.notification_action_color_filter)));
            }
            remoteViews.setTextViewText(R.id.action_text, c3605.f12214);
            if (!z) {
                remoteViews.setOnClickPendingIntent(R.id.action_container, c3605.f12219);
            }
            if (Build.VERSION.SDK_INT >= 15) {
                remoteViews.setContentDescription(R.id.action_container, c3605.f12214);
            }
            return remoteViews;
        }

        @Override
        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public RemoteViews mo14699(InterfaceC3642 interfaceC3642) {
            if (Build.VERSION.SDK_INT >= 24) {
                return null;
            }
            RemoteViews m17220 = this.f12144.m17220();
            if (m17220 == null) {
                m17220 = this.f12144.m17231();
            }
            if (m17220 == null) {
                return null;
            }
            return m17311(m17220, true);
        }

        @Override
        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public RemoteViews mo14701(InterfaceC3642 interfaceC3642) {
            if (Build.VERSION.SDK_INT < 24 && this.f12144.m17231() != null) {
                return m17311(this.f12144.m17231(), false);
            }
            return null;
        }

        @Override
        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public RemoteViews mo14702(InterfaceC3642 interfaceC3642) {
            if (Build.VERSION.SDK_INT >= 24) {
                return null;
            }
            RemoteViews m17195 = this.f12144.m17195();
            RemoteViews m17231 = m17195 != null ? m17195 : this.f12144.m17231();
            if (m17195 == null) {
                return null;
            }
            return m17311(m17231, true);
        }

        @Override
        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public boolean mo17168() {
            return true;
        }

        @Override
        @InterfaceC4399
        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public String mo17169() {
            return f12252;
        }

        @Override
        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public void mo14703(InterfaceC3642 interfaceC3642) {
            if (Build.VERSION.SDK_INT >= 24) {
                interfaceC3642.mo17493().setStyle(new Notification.DecoratedCustomViewStyle());
            }
        }
    }

    @Deprecated
    public C3586() {
    }

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

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

    @InterfaceC4397
    public static String m17076(@InterfaceC4399 Notification notification) {
        if (Build.VERSION.SDK_INT >= 21) {
            return notification.category;
        }
        return null;
    }

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

    @InterfaceC4397
    public static String m17078(@InterfaceC4399 Notification notification) {
        int i = Build.VERSION.SDK_INT;
        if (i >= 20) {
            return notification.getGroup();
        }
        if (i >= 19) {
            return notification.extras.getString(C3616.f12326);
        }
        if (i >= 16) {
            return C3629.m17452(notification).getString(C3616.f12326);
        }
        return null;
    }

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

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

    @InterfaceC4397
    public static C3605 m17081(@InterfaceC4399 Notification notification, int i) {
        int i2 = Build.VERSION.SDK_INT;
        if (i2 >= 20) {
            return m17099(notification.actions[i]);
        }
        if (i2 >= 19) {
            Notification.Action action = notification.actions[i];
            SparseArray sparseParcelableArray = notification.extras.getSparseParcelableArray(C3616.f12327);
            return C3629.m17456(action.icon, action.title, action.actionIntent, sparseParcelableArray != null ? (Bundle) sparseParcelableArray.get(i) : null);
        }
        if (i2 >= 16) {
            return C3629.m17457(notification, i);
        }
        return null;
    }

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

    @InterfaceC4397
    public static Notification m17083(@InterfaceC4399 Notification notification) {
        if (Build.VERSION.SDK_INT >= 21) {
            return notification.publicVersion;
        }
        return null;
    }

    @InterfaceC4397
    public static String m17084(@InterfaceC4399 Notification notification) {
        if (Build.VERSION.SDK_INT >= 26) {
            return notification.getShortcutId();
        }
        return null;
    }

    @InterfaceC4397
    public static Bundle m17085(@InterfaceC4399 Notification notification) {
        int i = Build.VERSION.SDK_INT;
        if (i >= 19) {
            return notification.extras;
        }
        if (i >= 16) {
            return C3629.m17452(notification);
        }
        return null;
    }

    @InterfaceC4399
    public static List<C3584> m17086(@InterfaceC4399 Notification notification) {
        String[] stringArray;
        ArrayList arrayList = new ArrayList();
        int i = Build.VERSION.SDK_INT;
        if (i >= 28) {
            ArrayList parcelableArrayList = notification.extras.getParcelableArrayList(f12023);
            if (parcelableArrayList != null && !parcelableArrayList.isEmpty()) {
                Iterator it = parcelableArrayList.iterator();
                while (it.hasNext()) {
                    arrayList.add(C3584.m17054((Person) it.next()));
                }
            }
        } else if (i >= 19 && (stringArray = notification.extras.getStringArray(f12083)) != null && stringArray.length != 0) {
            for (String str : stringArray) {
                arrayList.add(new C3584.C3585().m17071(str).m17068());
            }
        }
        return arrayList;
    }

    @InterfaceC4399
    public static Notification[] m17087(@InterfaceC4399 Bundle bundle, @InterfaceC4399 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;
    }

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

    @InterfaceC4397
    @InterfaceC4418(19)
    public static CharSequence m17089(@InterfaceC4399 Notification notification) {
        return notification.extras.getCharSequence(f12044);
    }

    @InterfaceC4397
    public static String m17090(@InterfaceC4399 Notification notification) {
        int i = Build.VERSION.SDK_INT;
        if (i >= 20) {
            return notification.getSortKey();
        }
        if (i >= 19) {
            return notification.extras.getString(C3616.f12325);
        }
        if (i >= 16) {
            return C3629.m17452(notification).getString(C3616.f12325);
        }
        return null;
    }

    @InterfaceC4399
    @InterfaceC4418(21)
    public static List<C3605> m17091(@InterfaceC4399 Notification notification) {
        Bundle bundle;
        Bundle bundle2;
        ArrayList arrayList = new ArrayList();
        if (Build.VERSION.SDK_INT >= 19 && (bundle = notification.extras.getBundle(C3588.f12106)) != null && (bundle2 = bundle.getBundle(C3588.f12100)) != null) {
            for (int i = 0; i < bundle2.size(); i++) {
                arrayList.add(C3629.m17454(bundle2.getBundle(Integer.toString(i))));
            }
        }
        return arrayList;
    }

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

    @InterfaceC4397
    @InterfaceC4418(19)
    public static CharSequence m17093(@InterfaceC4399 Notification notification) {
        return notification.extras.getCharSequence(f12088);
    }

    public static boolean m17094(@InterfaceC4399 Notification notification) {
        int i = Build.VERSION.SDK_INT;
        if (i >= 20) {
            return (notification.flags & 512) != 0;
        }
        if (i >= 19) {
            return notification.extras.getBoolean(C3616.f12322);
        }
        if (i >= 16) {
            return C3629.m17452(notification).getBoolean(C3616.f12322);
        }
        return false;
    }

    @InterfaceC4397
    public static C3714 m17095(@InterfaceC4399 Notification notification) {
        LocusId locusId;
        if (Build.VERSION.SDK_INT < 29 || (locusId = notification.getLocusId()) == null) {
            return null;
        }
        return C3714.m17785(locusId);
    }

    public static boolean m17096(@InterfaceC4399 Notification notification) {
        int i = Build.VERSION.SDK_INT;
        if (i >= 20) {
            return (notification.flags & 256) != 0;
        }
        if (i >= 19) {
            return notification.extras.getBoolean(C3616.f12323);
        }
        if (i >= 16) {
            return C3629.m17452(notification).getBoolean(C3616.f12323);
        }
        return false;
    }

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

    @InterfaceC4397
    public static C3594 m17098(@InterfaceC4399 Notification notification) {
        if (Build.VERSION.SDK_INT >= 29) {
            return C3594.m17129(notification.getBubbleMetadata());
        }
        return null;
    }

    @InterfaceC4399
    @InterfaceC4418(20)
    public static C3605 m17099(@InterfaceC4399 Notification.Action action) {
        C3555[] c3555Arr;
        int i;
        RemoteInput[] remoteInputs = action.getRemoteInputs();
        if (remoteInputs == null) {
            c3555Arr = null;
        } else {
            C3555[] c3555Arr2 = new C3555[remoteInputs.length];
            for (int i2 = 0; i2 < remoteInputs.length; i2++) {
                RemoteInput remoteInput = remoteInputs[i2];
                c3555Arr2[i2] = new C3555(remoteInput.getResultKey(), remoteInput.getLabel(), remoteInput.getChoices(), remoteInput.getAllowFreeFormInput(), Build.VERSION.SDK_INT >= 29 ? remoteInput.getEditChoicesBeforeSending() : 0, remoteInput.getExtras(), null);
            }
            c3555Arr = c3555Arr2;
        }
        int i3 = Build.VERSION.SDK_INT;
        boolean z = i3 >= 24 ? action.getExtras().getBoolean(C3629.f12410) || action.getAllowGeneratedReplies() : action.getExtras().getBoolean(C3629.f12410);
        boolean z2 = action.getExtras().getBoolean(C3605.f12203, true);
        int semanticAction = i3 >= 28 ? action.getSemanticAction() : action.getExtras().getInt(C3605.f12205, 0);
        boolean isContextual = i3 >= 29 ? action.isContextual() : false;
        if (i3 < 23) {
            return new C3605(action.icon, action.title, action.actionIntent, action.getExtras(), c3555Arr, (C3555[]) null, z, semanticAction, z2, isContextual);
        }
        if (action.getIcon() != null || (i = action.icon) == 0) {
            return new C3605(action.getIcon() != null ? IconCompat.m13393(action.getIcon()) : null, action.title, action.actionIntent, action.getExtras(), c3555Arr, (C3555[]) null, z, semanticAction, z2, isContextual);
        }
        return new C3605(i, action.title, action.actionIntent, action.getExtras(), c3555Arr, (C3555[]) null, z, semanticAction, z2, isContextual);
    }

    @InterfaceC4397
    @InterfaceC4418(19)
    public static CharSequence m17100(@InterfaceC4399 Notification notification) {
        return notification.extras.getCharSequence(f12045);
    }

    @InterfaceC4418(19)
    public static boolean m17101(@InterfaceC4399 Notification notification) {
        return notification.extras.getBoolean(f12025);
    }

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

    @InterfaceC4397
    public static String m17103(@InterfaceC4399 Notification notification) {
        if (Build.VERSION.SDK_INT >= 26) {
            return notification.getChannelId();
        }
        return null;
    }

    @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
    public static boolean m17104(@InterfaceC4399 Notification notification) {
        return (notification.flags & 128) != 0;
    }

    @InterfaceC4418(19)
    public static boolean m17105(@InterfaceC4399 Notification notification) {
        return notification.extras.getBoolean(f12086);
    }

    @InterfaceC4397
    @InterfaceC4418(19)
    public static CharSequence m17106(@InterfaceC4399 Notification notification) {
        return notification.extras.getCharSequence(f12033);
    }

    @InterfaceC4397
    public static CharSequence m17107(@InterfaceC4399 Notification notification) {
        if (Build.VERSION.SDK_INT >= 26) {
            return notification.getSettingsText();
        }
        return null;
    }

    public static final class C3588 implements InterfaceC3587 {

        private static final String f12099 = "text";

        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public static final String f12100 = "invisible_actions";

        private static final String f12101 = "participants";

        private static final String f12102 = "car_conversation";

        private static final String f12103 = "on_read";

        private static final String f12104 = "timestamp";

        private static final String f12105 = "messages";

        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public static final String f12106 = "android.car.EXTENSIONS";

        private static final String f12107 = "app_color";

        private static final String f12108 = "remote_input";

        private static final String f12109 = "large_icon";

        private static final String f12110 = "author";

        private static final String f12111 = "on_reply";

        private int f12112;

        private Bitmap f12113;

        private C3589 f12114;

        @Deprecated
        public static class C3589 {

            private final PendingIntent f12115;

            private final String[] f12116;

            private final long f12117;

            private final PendingIntent f12118;

            private final C3555 f12119;

            private final String[] f12120;

            public static class C3590 {

                private C3555 f12121;

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

                private long f12123;

                private PendingIntent f12124;

                private final String f12125;

                private PendingIntent f12126;

                public C3590(@InterfaceC4399 String str) {
                    this.f12125 = str;
                }

                @InterfaceC4399
                public C3590 m17124(long j) {
                    this.f12123 = j;
                    return this;
                }

                @InterfaceC4399
                public C3590 m17125(@InterfaceC4397 String str) {
                    if (str != null) {
                        this.f12122.add(str);
                    }
                    return this;
                }

                @InterfaceC4399
                public C3590 m17126(@InterfaceC4397 PendingIntent pendingIntent) {
                    this.f12124 = pendingIntent;
                    return this;
                }

                @InterfaceC4399
                public C3589 m17127() {
                    List<String> list = this.f12122;
                    return new C3589((String[]) list.toArray(new String[list.size()]), this.f12121, this.f12126, this.f12124, new String[]{this.f12125}, this.f12123);
                }

                @InterfaceC4399
                public C3590 m17128(@InterfaceC4397 PendingIntent pendingIntent, @InterfaceC4397 C3555 c3555) {
                    this.f12121 = c3555;
                    this.f12126 = pendingIntent;
                    return this;
                }
            }

            public C3589(@InterfaceC4397 String[] strArr, @InterfaceC4397 C3555 c3555, @InterfaceC4397 PendingIntent pendingIntent, @InterfaceC4397 PendingIntent pendingIntent2, @InterfaceC4397 String[] strArr2, long j) {
                this.f12116 = strArr;
                this.f12119 = c3555;
                this.f12118 = pendingIntent2;
                this.f12115 = pendingIntent;
                this.f12120 = strArr2;
                this.f12117 = j;
            }

            @InterfaceC4397
            public String m17117() {
                String[] strArr = this.f12120;
                if (strArr.length > 0) {
                    return strArr[0];
                }
                return null;
            }

            public long m17118() {
                return this.f12117;
            }

            @InterfaceC4397
            public C3555 m17119() {
                return this.f12119;
            }

            @InterfaceC4397
            public String[] m17120() {
                return this.f12120;
            }

            @InterfaceC4397
            public PendingIntent m17121() {
                return this.f12115;
            }

            @InterfaceC4397
            public String[] m17122() {
                return this.f12116;
            }

            @InterfaceC4397
            public PendingIntent m17123() {
                return this.f12118;
            }
        }

        public C3588() {
            this.f12112 = 0;
        }

        @InterfaceC4418(21)
        private static C3589 m17109(@InterfaceC4397 Bundle bundle) {
            String[] strArr;
            boolean z;
            if (bundle == null) {
                return null;
            }
            Parcelable[] parcelableArray = bundle.getParcelableArray(f12105);
            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(f12103);
            PendingIntent pendingIntent2 = (PendingIntent) bundle.getParcelable(f12111);
            RemoteInput remoteInput = (RemoteInput) bundle.getParcelable(f12108);
            String[] stringArray = bundle.getStringArray(f12101);
            if (stringArray == null || stringArray.length != 1) {
                return null;
            }
            return new C3589(strArr, remoteInput != null ? new C3555(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"));
        }

        @InterfaceC4418(21)
        private static Bundle m17110(@InterfaceC4399 C3589 c3589) {
            Bundle bundle = new Bundle();
            String str = (c3589.m17120() == null || c3589.m17120().length <= 1) ? null : c3589.m17120()[0];
            int length = c3589.m17122().length;
            Parcelable[] parcelableArr = new Parcelable[length];
            for (int i = 0; i < length; i++) {
                Bundle bundle2 = new Bundle();
                bundle2.putString("text", c3589.m17122()[i]);
                bundle2.putString(f12110, str);
                parcelableArr[i] = bundle2;
            }
            bundle.putParcelableArray(f12105, parcelableArr);
            C3555 m17119 = c3589.m17119();
            if (m17119 != null) {
                bundle.putParcelable(f12108, new RemoteInput.Builder(m17119.m16889()).setLabel(m17119.m16891()).setChoices(m17119.m16888()).setAllowFreeFormInput(m17119.m16890()).addExtras(m17119.m16895()).build());
            }
            bundle.putParcelable(f12111, c3589.m17121());
            bundle.putParcelable(f12103, c3589.m17123());
            bundle.putStringArray(f12101, c3589.m17120());
            bundle.putLong("timestamp", c3589.m17118());
            return bundle;
        }

        @InterfaceC4399
        public C3588 m17111(@InterfaceC4397 Bitmap bitmap) {
            this.f12113 = bitmap;
            return this;
        }

        @InterfaceC4409
        public int m17112() {
            return this.f12112;
        }

        @Override
        @InterfaceC4399
        public C3604 mo17108(@InterfaceC4399 C3604 c3604) {
            if (Build.VERSION.SDK_INT < 21) {
                return c3604;
            }
            Bundle bundle = new Bundle();
            Bitmap bitmap = this.f12113;
            if (bitmap != null) {
                bundle.putParcelable(f12109, bitmap);
            }
            int i = this.f12112;
            if (i != 0) {
                bundle.putInt(f12107, i);
            }
            C3589 c3589 = this.f12114;
            if (c3589 != null) {
                bundle.putBundle(f12102, m17110(c3589));
            }
            c3604.m17230().putBundle(f12106, bundle);
            return c3604;
        }

        @InterfaceC4397
        public Bitmap m17113() {
            return this.f12113;
        }

        @InterfaceC4399
        public C3588 m17114(@InterfaceC4409 int i) {
            this.f12112 = i;
            return this;
        }

        @InterfaceC4397
        @Deprecated
        public C3589 m17115() {
            return this.f12114;
        }

        @InterfaceC4399
        @Deprecated
        public C3588 m17116(@InterfaceC4397 C3589 c3589) {
            this.f12114 = c3589;
            return this;
        }

        public C3588(@InterfaceC4399 Notification notification) {
            this.f12112 = 0;
            if (Build.VERSION.SDK_INT < 21) {
                return;
            }
            Bundle bundle = C3586.m17085(notification) == null ? null : C3586.m17085(notification).getBundle(f12106);
            if (bundle != null) {
                this.f12113 = (Bitmap) bundle.getParcelable(f12109);
                this.f12112 = bundle.getInt(f12107, 0);
                this.f12114 = m17109(bundle.getBundle(f12102));
            }
        }
    }

    public static class C3610 extends AbstractC3599 {

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

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

        public C3610() {
        }

        @Override
        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public void mo17167(@InterfaceC4399 Bundle bundle) {
            super.mo17167(bundle);
            this.f12248.clear();
            if (bundle.containsKey(C3586.f12026)) {
                Collections.addAll(this.f12248, bundle.getCharSequenceArray(C3586.f12026));
            }
        }

        @InterfaceC4399
        public C3610 m17305(@InterfaceC4397 CharSequence charSequence) {
            if (charSequence != null) {
                this.f12248.add(C3604.m17187(charSequence));
            }
            return this;
        }

        @InterfaceC4399
        public C3610 m17306(@InterfaceC4397 CharSequence charSequence) {
            this.f12143 = C3604.m17187(charSequence);
            this.f12145 = true;
            return this;
        }

        @Override
        @InterfaceC4399
        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public String mo17169() {
            return f12247;
        }

        @Override
        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public void mo17171(@InterfaceC4399 Bundle bundle) {
            super.mo17171(bundle);
            bundle.remove(C3586.f12026);
        }

        @Override
        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public void mo14703(InterfaceC3642 interfaceC3642) {
            if (Build.VERSION.SDK_INT >= 16) {
                Notification.InboxStyle bigContentTitle = new Notification.InboxStyle(interfaceC3642.mo17493()).setBigContentTitle(this.f12146);
                if (this.f12145) {
                    bigContentTitle.setSummaryText(this.f12143);
                }
                Iterator<CharSequence> it = this.f12248.iterator();
                while (it.hasNext()) {
                    bigContentTitle.addLine(it.next());
                }
            }
        }

        @InterfaceC4399
        public C3610 m17307(@InterfaceC4397 CharSequence charSequence) {
            this.f12146 = C3604.m17187(charSequence);
            return this;
        }

        public C3610(@InterfaceC4397 C3604 c3604) {
            m17174(c3604);
        }
    }

    public static class C3614 extends AbstractC3599 {

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

        public static final int f12302 = 25;

        @InterfaceC4397
        private CharSequence f12303;

        private C3584 f12305;

        @InterfaceC4397
        private Boolean f12307;

        private final List<C3615> f12306 = new ArrayList();

        private final List<C3615> f12304 = new ArrayList();

        public C3614() {
        }

        private boolean m17361() {
            for (int size = this.f12306.size() - 1; size >= 0; size--) {
                C3615 c3615 = this.f12306.get(size);
                if (c3615.m17387() != null && c3615.m17387().m17058() == null) {
                    return true;
                }
            }
            return false;
        }

        @InterfaceC4397
        public static C3614 m17362(@InterfaceC4399 Notification notification) {
            AbstractC3599 m17160 = AbstractC3599.m17160(notification);
            if (m17160 instanceof C3614) {
                return (C3614) m17160;
            }
            return null;
        }

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

        private CharSequence m17364(@InterfaceC4399 C3615 c3615) {
            C3531 m16801 = C3531.m16801();
            SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder();
            boolean z = Build.VERSION.SDK_INT >= 21;
            int i = z ? -16777216 : -1;
            CharSequence m17058 = c3615.m17387() == null ? "" : c3615.m17387().m17058();
            if (TextUtils.isEmpty(m17058)) {
                m17058 = this.f12305.m17058();
                if (z && this.f12144.m17224() != 0) {
                    i = this.f12144.m17224();
                }
            }
            CharSequence m16819 = m16801.m16819(m17058);
            spannableStringBuilder.append(m16819);
            spannableStringBuilder.setSpan(m17363(i), spannableStringBuilder.length() - m16819.length(), spannableStringBuilder.length(), 33);
            spannableStringBuilder.append((CharSequence) "  ").append(m16801.m16819(c3615.m17390() != null ? c3615.m17390() : ""));
            return spannableStringBuilder;
        }

        @InterfaceC4397
        private C3615 m17365() {
            for (int size = this.f12306.size() - 1; size >= 0; size--) {
                C3615 c3615 = this.f12306.get(size);
                if (c3615.m17387() != null && !TextUtils.isEmpty(c3615.m17387().m17058())) {
                    return c3615;
                }
            }
            if (this.f12306.isEmpty()) {
                return null;
            }
            return this.f12306.get(r0.size() - 1);
        }

        @Override
        public void mo17166(@InterfaceC4399 Bundle bundle) {
            super.mo17166(bundle);
            bundle.putCharSequence(C3586.f12009, this.f12305.m17058());
            bundle.putBundle(C3586.f12087, this.f12305.m17066());
            bundle.putCharSequence(C3586.f12063, this.f12303);
            if (this.f12303 != null && this.f12307.booleanValue()) {
                bundle.putCharSequence(C3586.f12007, this.f12303);
            }
            if (!this.f12306.isEmpty()) {
                bundle.putParcelableArray(C3586.f12038, C3615.m17378(this.f12306));
            }
            if (!this.f12304.isEmpty()) {
                bundle.putParcelableArray(C3586.f12080, C3615.m17378(this.f12304));
            }
            Boolean bool = this.f12307;
            if (bool != null) {
                bundle.putBoolean(C3586.f12094, bool.booleanValue());
            }
        }

        @Override
        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public void mo17167(@InterfaceC4399 Bundle bundle) {
            super.mo17167(bundle);
            this.f12306.clear();
            if (bundle.containsKey(C3586.f12087)) {
                this.f12305 = C3584.m17055(bundle.getBundle(C3586.f12087));
            } else {
                this.f12305 = new C3584.C3585().m17069(bundle.getString(C3586.f12009)).m17068();
            }
            CharSequence charSequence = bundle.getCharSequence(C3586.f12007);
            this.f12303 = charSequence;
            if (charSequence == null) {
                this.f12303 = bundle.getCharSequence(C3586.f12063);
            }
            Parcelable[] parcelableArray = bundle.getParcelableArray(C3586.f12038);
            if (parcelableArray != null) {
                this.f12306.addAll(C3615.m17379(parcelableArray));
            }
            Parcelable[] parcelableArray2 = bundle.getParcelableArray(C3586.f12080);
            if (parcelableArray2 != null) {
                this.f12304.addAll(C3615.m17379(parcelableArray2));
            }
            if (bundle.containsKey(C3586.f12094)) {
                this.f12307 = Boolean.valueOf(bundle.getBoolean(C3586.f12094));
            }
        }

        @InterfaceC4399
        public C3614 m17366(@InterfaceC4397 C3615 c3615) {
            if (c3615 != null) {
                this.f12304.add(c3615);
                if (this.f12304.size() > 25) {
                    this.f12304.remove(0);
                }
            }
            return this;
        }

        public boolean m17367() {
            C3604 c3604 = this.f12144;
            if (c3604 != null && c3604.f12163.getApplicationInfo().targetSdkVersion < 28 && this.f12307 == null) {
                return this.f12303 != null;
            }
            Boolean bool = this.f12307;
            if (bool != null) {
                return bool.booleanValue();
            }
            return false;
        }

        @InterfaceC4399
        @Deprecated
        public C3614 m17368(@InterfaceC4397 CharSequence charSequence, long j, @InterfaceC4397 CharSequence charSequence2) {
            this.f12306.add(new C3615(charSequence, j, new C3584.C3585().m17069(charSequence2).m17068()));
            if (this.f12306.size() > 25) {
                this.f12306.remove(0);
            }
            return this;
        }

        @InterfaceC4399
        public C3614 m17369(@InterfaceC4397 CharSequence charSequence, long j, @InterfaceC4397 C3584 c3584) {
            m17374(new C3615(charSequence, j, c3584));
            return this;
        }

        @InterfaceC4397
        public CharSequence m17370() {
            return this.f12303;
        }

        @InterfaceC4397
        @Deprecated
        public CharSequence m17371() {
            return this.f12305.m17058();
        }

        @InterfaceC4399
        public C3584 m17372() {
            return this.f12305;
        }

        @InterfaceC4399
        public List<C3615> m17373() {
            return this.f12304;
        }

        @Override
        @InterfaceC4399
        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public String mo17169() {
            return f12301;
        }

        @Override
        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public void mo17171(@InterfaceC4399 Bundle bundle) {
            super.mo17171(bundle);
            bundle.remove(C3586.f12087);
            bundle.remove(C3586.f12009);
            bundle.remove(C3586.f12007);
            bundle.remove(C3586.f12063);
            bundle.remove(C3586.f12038);
            bundle.remove(C3586.f12080);
            bundle.remove(C3586.f12094);
        }

        @Override
        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public void mo14703(InterfaceC3642 interfaceC3642) {
            m17377(m17367());
            int i = Build.VERSION.SDK_INT;
            if (i >= 24) {
                Notification.MessagingStyle messagingStyle = i >= 28 ? new Notification.MessagingStyle(this.f12305.m17060()) : new Notification.MessagingStyle(this.f12305.m17058());
                Iterator<C3615> it = this.f12306.iterator();
                while (it.hasNext()) {
                    messagingStyle.addMessage(it.next().m17389());
                }
                if (Build.VERSION.SDK_INT >= 26) {
                    Iterator<C3615> it2 = this.f12304.iterator();
                    while (it2.hasNext()) {
                        messagingStyle.addHistoricMessage(it2.next().m17389());
                    }
                }
                if (this.f12307.booleanValue() || Build.VERSION.SDK_INT >= 28) {
                    messagingStyle.setConversationTitle(this.f12303);
                }
                if (Build.VERSION.SDK_INT >= 28) {
                    messagingStyle.setGroupConversation(this.f12307.booleanValue());
                }
                messagingStyle.setBuilder(interfaceC3642.mo17493());
                return;
            }
            C3615 m17365 = m17365();
            if (this.f12303 != null && this.f12307.booleanValue()) {
                interfaceC3642.mo17493().setContentTitle(this.f12303);
            } else if (m17365 != null) {
                interfaceC3642.mo17493().setContentTitle("");
                if (m17365.m17387() != null) {
                    interfaceC3642.mo17493().setContentTitle(m17365.m17387().m17058());
                }
            }
            if (m17365 != null) {
                interfaceC3642.mo17493().setContentText(this.f12303 != null ? m17364(m17365) : m17365.m17390());
            }
            if (i >= 16) {
                SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder();
                boolean z = this.f12303 != null || m17361();
                for (int size = this.f12306.size() - 1; size >= 0; size--) {
                    C3615 c3615 = this.f12306.get(size);
                    CharSequence m17364 = z ? m17364(c3615) : c3615.m17390();
                    if (size != this.f12306.size() - 1) {
                        spannableStringBuilder.insert(0, (CharSequence) "\n");
                    }
                    spannableStringBuilder.insert(0, m17364);
                }
                new Notification.BigTextStyle(interfaceC3642.mo17493()).setBigContentTitle(null).bigText(spannableStringBuilder);
            }
        }

        @InterfaceC4399
        public C3614 m17374(@InterfaceC4397 C3615 c3615) {
            if (c3615 != null) {
                this.f12306.add(c3615);
                if (this.f12306.size() > 25) {
                    this.f12306.remove(0);
                }
            }
            return this;
        }

        @InterfaceC4399
        public C3614 m17375(@InterfaceC4397 CharSequence charSequence) {
            this.f12303 = charSequence;
            return this;
        }

        @InterfaceC4399
        public List<C3615> m17376() {
            return this.f12306;
        }

        @InterfaceC4399
        public C3614 m17377(boolean z) {
            this.f12307 = Boolean.valueOf(z);
            return this;
        }

        @Deprecated
        public C3614(@InterfaceC4399 CharSequence charSequence) {
            this.f12305 = new C3584.C3585().m17069(charSequence).m17068();
        }

        public static final class C3615 {

            public static final String f12308 = "type";

            public static final String f12309 = "time";

            public static final String f12310 = "sender_person";

            public static final String f12311 = "uri";

            public static final String f12312 = "text";

            public static final String f12313 = "extras";

            public static final String f12314 = "sender";

            public static final String f12315 = "person";

            @InterfaceC4397
            private final C3584 f12316;

            private final CharSequence f12317;

            @InterfaceC4397
            private Uri f12318;

            private Bundle f12319;

            private final long f12320;

            @InterfaceC4397
            private String f12321;

            public C3615(@InterfaceC4397 CharSequence charSequence, long j, @InterfaceC4397 C3584 c3584) {
                this.f12319 = new Bundle();
                this.f12317 = charSequence;
                this.f12320 = j;
                this.f12316 = c3584;
            }

            @InterfaceC4399
            public static Bundle[] m17378(@InterfaceC4399 List<C3615> list) {
                Bundle[] bundleArr = new Bundle[list.size()];
                int size = list.size();
                for (int i = 0; i < size; i++) {
                    bundleArr[i] = list.get(i).m17381();
                }
                return bundleArr;
            }

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

            @InterfaceC4397
            public static C3615 m17380(@InterfaceC4399 Bundle bundle) {
                try {
                    if (bundle.containsKey("text") && bundle.containsKey("time")) {
                        C3615 c3615 = new C3615(bundle.getCharSequence("text"), bundle.getLong("time"), bundle.containsKey(f12315) ? C3584.m17055(bundle.getBundle(f12315)) : (!bundle.containsKey(f12310) || Build.VERSION.SDK_INT < 28) ? bundle.containsKey("sender") ? new C3584.C3585().m17069(bundle.getCharSequence("sender")).m17068() : null : C3584.m17054((Person) bundle.getParcelable(f12310)));
                        if (bundle.containsKey("type") && bundle.containsKey(f12311)) {
                            c3615.m17385(bundle.getString("type"), (Uri) bundle.getParcelable(f12311));
                        }
                        if (bundle.containsKey(f12313)) {
                            c3615.m17386().putAll(bundle.getBundle(f12313));
                        }
                        return c3615;
                    }
                } catch (ClassCastException unused) {
                }
                return null;
            }

            @InterfaceC4399
            private Bundle m17381() {
                Bundle bundle = new Bundle();
                CharSequence charSequence = this.f12317;
                if (charSequence != null) {
                    bundle.putCharSequence("text", charSequence);
                }
                bundle.putLong("time", this.f12320);
                C3584 c3584 = this.f12316;
                if (c3584 != null) {
                    bundle.putCharSequence("sender", c3584.m17058());
                    if (Build.VERSION.SDK_INT >= 28) {
                        bundle.putParcelable(f12310, this.f12316.m17060());
                    } else {
                        bundle.putBundle(f12315, this.f12316.m17066());
                    }
                }
                String str = this.f12321;
                if (str != null) {
                    bundle.putString("type", str);
                }
                Uri uri = this.f12318;
                if (uri != null) {
                    bundle.putParcelable(f12311, uri);
                }
                Bundle bundle2 = this.f12319;
                if (bundle2 != null) {
                    bundle.putBundle(f12313, bundle2);
                }
                return bundle;
            }

            public long m17382() {
                return this.f12320;
            }

            @InterfaceC4397
            @Deprecated
            public CharSequence m17383() {
                C3584 c3584 = this.f12316;
                if (c3584 == null) {
                    return null;
                }
                return c3584.m17058();
            }

            @InterfaceC4397
            public Uri m17384() {
                return this.f12318;
            }

            @InterfaceC4399
            public C3615 m17385(@InterfaceC4397 String str, @InterfaceC4397 Uri uri) {
                this.f12321 = str;
                this.f12318 = uri;
                return this;
            }

            @InterfaceC4399
            public Bundle m17386() {
                return this.f12319;
            }

            @InterfaceC4397
            public C3584 m17387() {
                return this.f12316;
            }

            @InterfaceC4397
            public String m17388() {
                return this.f12321;
            }

            @InterfaceC4399
            @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
            @InterfaceC4418(24)
            public Notification.MessagingStyle.Message m17389() {
                Notification.MessagingStyle.Message message;
                C3584 m17387 = m17387();
                if (Build.VERSION.SDK_INT >= 28) {
                    message = new Notification.MessagingStyle.Message(m17390(), m17382(), m17387 != null ? m17387.m17060() : null);
                } else {
                    message = new Notification.MessagingStyle.Message(m17390(), m17382(), m17387 != null ? m17387.m17058() : null);
                }
                if (m17388() != null) {
                    message.setData(m17388(), m17384());
                }
                return message;
            }

            @InterfaceC4397
            public CharSequence m17390() {
                return this.f12317;
            }

            @Deprecated
            public C3615(@InterfaceC4397 CharSequence charSequence, long j, @InterfaceC4397 CharSequence charSequence2) {
                this(charSequence, j, new C3584.C3585().m17069(charSequence2).m17068());
            }
        }

        public C3614(@InterfaceC4399 C3584 c3584) {
            if (!TextUtils.isEmpty(c3584.m17058())) {
                this.f12305 = c3584;
                return;
            }
            throw new IllegalArgumentException("User's name must not be empty.");
        }
    }

    public static final class C3613 implements InterfaceC3587 {

        private static final int f12253 = 8388613;

        @Deprecated
        public static final int f12254 = 0;

        private static final String f12255 = "bridgeTag";

        private static final String f12256 = "contentIconGravity";

        public static final int f12257 = -1;

        @Deprecated
        public static final int f12258 = -1;

        private static final int f12259 = 32;

        private static final int f12260 = 1;

        private static final String f12261 = "actions";

        private static final String f12262 = "displayIntent";

        private static final int f12263 = 80;

        private static final int f12264 = 64;

        private static final int f12265 = 1;

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

        @Deprecated
        public static final int f12267 = 5;

        @Deprecated
        public static final int f12268 = 0;

        private static final String f12269 = "contentIcon";

        private static final String f12270 = "background";

        @Deprecated
        public static final int f12271 = 2;

        private static final String f12272 = "customSizePreset";

        private static final String f12273 = "dismissalId";

        private static final String f12274 = "hintScreenTimeout";

        private static final String f12275 = "customContentHeight";

        @Deprecated
        public static final int f12276 = 4;

        @Deprecated
        public static final int f12277 = 3;

        private static final int f12278 = 2;

        private static final String f12279 = "pages";

        private static final int f12280 = 8;

        private static final String f12281 = "gravity";

        @Deprecated
        public static final int f12282 = 1;

        private static final int f12283 = 4;

        private static final String f12284 = "contentActionIndex";

        private static final String f12285 = "flags";

        private static final int f12286 = 16;

        private int f12287;

        private int f12288;

        private PendingIntent f12289;

        private ArrayList<C3605> f12290;

        private int f12291;

        private String f12292;

        private int f12293;

        private ArrayList<Notification> f12294;

        private int f12295;

        private int f12296;

        private int f12297;

        private Bitmap f12298;

        private int f12299;

        private String f12300;

        public C3613() {
            this.f12290 = new ArrayList<>();
            this.f12296 = 1;
            this.f12294 = new ArrayList<>();
            this.f12295 = 8388613;
            this.f12288 = -1;
            this.f12299 = 0;
            this.f12293 = 80;
        }

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

        @InterfaceC4418(20)
        private static Notification.Action m17315(C3605 c3605) {
            Notification.Action.Builder builder;
            int i = Build.VERSION.SDK_INT;
            if (i >= 23) {
                IconCompat m17272 = c3605.m17272();
                builder = new Notification.Action.Builder(m17272 == null ? null : m17272.m13425(), c3605.m17268(), c3605.m17271());
            } else {
                IconCompat m172722 = c3605.m17272();
                builder = new Notification.Action.Builder((m172722 == null || m172722.m13413() != 2) ? 0 : m172722.m13426(), c3605.m17268(), c3605.m17271());
            }
            Bundle bundle = c3605.m17274() != null ? new Bundle(c3605.m17274()) : new Bundle();
            bundle.putBoolean(C3629.f12410, c3605.m17276());
            if (i >= 24) {
                builder.setAllowGeneratedReplies(c3605.m17276());
            }
            builder.addExtras(bundle);
            C3555[] m17275 = c3605.m17275();
            if (m17275 != null) {
                for (RemoteInput remoteInput : C3555.m16882(m17275)) {
                    builder.addRemoteInput(remoteInput);
                }
            }
            return builder.build();
        }

        @InterfaceC4399
        public List<C3605> m17316() {
            return this.f12290;
        }

        @InterfaceC4399
        @Deprecated
        public C3613 m17317(boolean z) {
            m17314(4, z);
            return this;
        }

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

        @InterfaceC4399
        public C3613 clone() {
            C3613 c3613 = new C3613();
            c3613.f12290 = new ArrayList<>(this.f12290);
            c3613.f12296 = this.f12296;
            c3613.f12289 = this.f12289;
            c3613.f12294 = new ArrayList<>(this.f12294);
            c3613.f12298 = this.f12298;
            c3613.f12291 = this.f12291;
            c3613.f12295 = this.f12295;
            c3613.f12288 = this.f12288;
            c3613.f12299 = this.f12299;
            c3613.f12287 = this.f12287;
            c3613.f12293 = this.f12293;
            c3613.f12297 = this.f12297;
            c3613.f12300 = this.f12300;
            c3613.f12292 = this.f12292;
            return c3613;
        }

        @InterfaceC4399
        public C3613 m17320(@InterfaceC4397 String str) {
            this.f12300 = str;
            return this;
        }

        @InterfaceC4399
        public C3613 m17321(@InterfaceC4397 String str) {
            this.f12292 = str;
            return this;
        }

        @Deprecated
        public int m17322() {
            return this.f12295;
        }

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

        @InterfaceC4399
        public C3613 m17324(@InterfaceC4399 List<C3605> list) {
            this.f12290.addAll(list);
            return this;
        }

        @InterfaceC4399
        public C3613 m17325(boolean z) {
            m17314(64, z);
            return this;
        }

        @InterfaceC4399
        @Deprecated
        public C3613 m17326(int i) {
            this.f12297 = i;
            return this;
        }

        @Override
        @InterfaceC4399
        public C3604 mo17108(@InterfaceC4399 C3604 c3604) {
            Bundle bundle = new Bundle();
            if (!this.f12290.isEmpty()) {
                if (Build.VERSION.SDK_INT >= 16) {
                    ArrayList<? extends Parcelable> arrayList = new ArrayList<>(this.f12290.size());
                    Iterator<C3605> it = this.f12290.iterator();
                    while (it.hasNext()) {
                        C3605 next = it.next();
                        int i = Build.VERSION.SDK_INT;
                        if (i >= 20) {
                            arrayList.add(m17315(next));
                        } else if (i >= 16) {
                            arrayList.add(C3629.m17445(next));
                        }
                    }
                    bundle.putParcelableArrayList(f12261, arrayList);
                } else {
                    bundle.putParcelableArrayList(f12261, null);
                }
            }
            int i2 = this.f12296;
            if (i2 != 1) {
                bundle.putInt(f12285, i2);
            }
            PendingIntent pendingIntent = this.f12289;
            if (pendingIntent != null) {
                bundle.putParcelable(f12262, pendingIntent);
            }
            if (!this.f12294.isEmpty()) {
                ArrayList<Notification> arrayList2 = this.f12294;
                bundle.putParcelableArray(f12279, (Parcelable[]) arrayList2.toArray(new Notification[arrayList2.size()]));
            }
            Bitmap bitmap = this.f12298;
            if (bitmap != null) {
                bundle.putParcelable(f12270, bitmap);
            }
            int i3 = this.f12291;
            if (i3 != 0) {
                bundle.putInt(f12269, i3);
            }
            int i4 = this.f12295;
            if (i4 != 8388613) {
                bundle.putInt(f12256, i4);
            }
            int i5 = this.f12288;
            if (i5 != -1) {
                bundle.putInt(f12284, i5);
            }
            int i6 = this.f12299;
            if (i6 != 0) {
                bundle.putInt(f12272, i6);
            }
            int i7 = this.f12287;
            if (i7 != 0) {
                bundle.putInt(f12275, i7);
            }
            int i8 = this.f12293;
            if (i8 != 80) {
                bundle.putInt(f12281, i8);
            }
            int i9 = this.f12297;
            if (i9 != 0) {
                bundle.putInt(f12274, i9);
            }
            String str = this.f12300;
            if (str != null) {
                bundle.putString(f12273, str);
            }
            String str2 = this.f12292;
            if (str2 != null) {
                bundle.putString(f12255, str2);
            }
            c3604.m17230().putBundle(f12266, bundle);
            return c3604;
        }

        @InterfaceC4399
        public C3613 m17327() {
            this.f12290.clear();
            return this;
        }

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

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

        @Deprecated
        public int m17330() {
            return this.f12291;
        }

        @InterfaceC4399
        public C3613 m17331(boolean z) {
            m17314(8, z);
            return this;
        }

        @InterfaceC4399
        @Deprecated
        public C3613 m17332(boolean z) {
            m17314(2, z);
            return this;
        }

        @InterfaceC4399
        @Deprecated
        public C3613 m17333(@InterfaceC4397 PendingIntent pendingIntent) {
            this.f12289 = pendingIntent;
            return this;
        }

        public boolean m17334() {
            return (this.f12296 & 64) != 0;
        }

        @Deprecated
        public int m17335() {
            return this.f12293;
        }

        public boolean m17336() {
            return (this.f12296 & 1) != 0;
        }

        @InterfaceC4399
        @Deprecated
        public C3613 m17337(@InterfaceC4397 Bitmap bitmap) {
            this.f12298 = bitmap;
            return this;
        }

        public boolean m17338() {
            return (this.f12296 & 8) != 0;
        }

        @Deprecated
        public int m17339() {
            return this.f12299;
        }

        @InterfaceC4399
        @Deprecated
        public C3613 m17340(int i) {
            this.f12291 = i;
            return this;
        }

        @InterfaceC4399
        @Deprecated
        public C3613 m17341(int i) {
            this.f12299 = i;
            return this;
        }

        @InterfaceC4397
        @Deprecated
        public Bitmap m17342() {
            return this.f12298;
        }

        @InterfaceC4399
        @Deprecated
        public C3613 m17343(int i) {
            this.f12287 = i;
            return this;
        }

        @InterfaceC4399
        @Deprecated
        public C3613 m17344(int i) {
            this.f12295 = i;
            return this;
        }

        @InterfaceC4397
        @Deprecated
        public PendingIntent m17345() {
            return this.f12289;
        }

        @InterfaceC4397
        public String m17346() {
            return this.f12300;
        }

        @InterfaceC4399
        @Deprecated
        public C3613 m17347(@InterfaceC4399 Notification notification) {
            this.f12294.add(notification);
            return this;
        }

        @InterfaceC4399
        @Deprecated
        public C3613 m17348() {
            this.f12294.clear();
            return this;
        }

        @InterfaceC4399
        public C3613 m17349(@InterfaceC4399 C3605 c3605) {
            this.f12290.add(c3605);
            return this;
        }

        @InterfaceC4397
        public String m17350() {
            return this.f12292;
        }

        @InterfaceC4399
        @Deprecated
        public List<Notification> m17351() {
            return this.f12294;
        }

        @InterfaceC4399
        @Deprecated
        public C3613 m17352(@InterfaceC4399 List<Notification> list) {
            this.f12294.addAll(list);
            return this;
        }

        @InterfaceC4399
        @Deprecated
        public C3613 m17353(boolean z) {
            m17314(32, z);
            return this;
        }

        @InterfaceC4399
        public C3613 m17354(boolean z) {
            m17314(1, z);
            return this;
        }

        @Deprecated
        public int m17355() {
            return this.f12287;
        }

        @InterfaceC4399
        @Deprecated
        public C3613 m17356(int i) {
            this.f12293 = i;
            return this;
        }

        @InterfaceC4399
        public C3613 m17357(int i) {
            this.f12288 = i;
            return this;
        }

        public int m17358() {
            return this.f12288;
        }

        @Deprecated
        public int m17359() {
            return this.f12297;
        }

        @InterfaceC4399
        @Deprecated
        public C3613 m17360(boolean z) {
            m17314(16, z);
            return this;
        }

        public C3613(@InterfaceC4399 Notification notification) {
            this.f12290 = new ArrayList<>();
            this.f12296 = 1;
            this.f12294 = new ArrayList<>();
            this.f12295 = 8388613;
            this.f12288 = -1;
            this.f12299 = 0;
            this.f12293 = 80;
            Bundle m17085 = C3586.m17085(notification);
            Bundle bundle = m17085 != null ? m17085.getBundle(f12266) : null;
            if (bundle != null) {
                ArrayList parcelableArrayList = bundle.getParcelableArrayList(f12261);
                if (Build.VERSION.SDK_INT >= 16 && parcelableArrayList != null) {
                    int size = parcelableArrayList.size();
                    C3605[] c3605Arr = new C3605[size];
                    for (int i = 0; i < size; i++) {
                        int i2 = Build.VERSION.SDK_INT;
                        if (i2 >= 20) {
                            c3605Arr[i] = C3586.m17099((Notification.Action) parcelableArrayList.get(i));
                        } else if (i2 >= 16) {
                            c3605Arr[i] = C3629.m17454((Bundle) parcelableArrayList.get(i));
                        }
                    }
                    Collections.addAll(this.f12290, c3605Arr);
                }
                this.f12296 = bundle.getInt(f12285, 1);
                this.f12289 = (PendingIntent) bundle.getParcelable(f12262);
                Notification[] m17087 = C3586.m17087(bundle, f12279);
                if (m17087 != null) {
                    Collections.addAll(this.f12294, m17087);
                }
                this.f12298 = (Bitmap) bundle.getParcelable(f12270);
                this.f12291 = bundle.getInt(f12269);
                this.f12295 = bundle.getInt(f12256, 8388613);
                this.f12288 = bundle.getInt(f12284, -1);
                this.f12299 = bundle.getInt(f12272, 0);
                this.f12287 = bundle.getInt(f12275);
                this.f12293 = bundle.getInt(f12281, 80);
                this.f12297 = bundle.getInt(f12274);
                this.f12300 = bundle.getString(f12273);
                this.f12292 = bundle.getString(f12255);
            }
        }
    }

    public static class C3604 {

        private static final int f12151 = 5120;

        public Bitmap f12152;

        public boolean f12153;

        public int f12154;

        public PendingIntent f12155;

        public String f12156;

        public Bundle f12157;

        public boolean f12158;

        public boolean f12159;

        @InterfaceC4399
        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public ArrayList<C3584> f12160;

        public boolean f12161;

        public Notification f12162;

        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public Context f12163;

        public CharSequence f12164;

        public boolean f12165;

        public boolean f12166;

        public boolean f12167;

        public Icon f12168;

        public C3594 f12169;

        public int f12170;

        public String f12171;

        public int f12172;

        public boolean f12173;

        public String f12174;

        public boolean f12175;

        public CharSequence f12176;

        public int f12177;

        public RemoteViews f12178;

        public CharSequence f12179;

        public RemoteViews f12180;

        public Notification f12181;

        public CharSequence[] f12182;

        public CharSequence f12183;

        public String f12184;

        public ArrayList<C3605> f12185;

        public PendingIntent f12186;

        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public ArrayList<C3605> f12187;

        public int f12188;

        public boolean f12189;

        public CharSequence f12190;

        public RemoteViews f12191;

        public long f12192;

        @Deprecated
        public ArrayList<String> f12193;

        public RemoteViews f12194;

        public AbstractC3599 f12195;

        public C3714 f12196;

        public int f12197;

        public int f12198;

        public String f12199;

        public int f12200;

        @InterfaceC4418(19)
        public C3604(@InterfaceC4399 Context context, @InterfaceC4399 Notification notification) {
            this(context, C3586.m17103(notification));
            ArrayList parcelableArrayList;
            Bundle bundle = notification.extras;
            AbstractC3599 m17160 = AbstractC3599.m17160(notification);
            m17257(C3586.m17106(notification)).m17235(C3586.m17100(notification)).m17197(C3586.m17093(notification)).m17245(C3586.m17089(notification)).m17239(C3586.m17107(notification)).m17191(m17160).m17218(notification.contentIntent).m17204(C3586.m17078(notification)).m17251(C3586.m17094(notification)).m17188(C3586.m17095(notification)).m17210(notification.when).m17250(C3586.m17101(notification)).m17266(C3586.m17105(notification)).m17223(C3586.m17102(notification)).m17237(C3586.m17079(notification)).m17263(C3586.m17075(notification)).m17258(C3586.m17096(notification)).m17242(notification.largeIcon).m17222(C3586.m17082(notification)).m17259(C3586.m17076(notification)).m17199(C3586.m17098(notification)).m17252(notification.number).m17264(notification.tickerText).m17218(notification.contentIntent).m17207(notification.deleteIntent).m17254(notification.fullScreenIntent, C3586.m17104(notification)).m17211(notification.sound, notification.audioStreamType).m17189(notification.vibrate).m17190(notification.ledARGB, notification.ledOnMS, notification.ledOffMS).m17215(notification.defaults).m17243(notification.priority).m17255(C3586.m17074(notification)).m17216(C3586.m17092(notification)).m17260(C3586.m17083(notification)).m17200(C3586.m17090(notification)).m17202(C3586.m17077(notification)).m17241(C3586.m17084(notification)).m17253(bundle.getInt(C3586.f12039), bundle.getInt(C3586.f12016), bundle.getBoolean(C3586.f12061)).m17246(C3586.m17097(notification)).m17212(notification.icon, notification.iconLevel).m17205(m17185(notification, m17160));
            if (Build.VERSION.SDK_INT >= 23) {
                this.f12168 = notification.getSmallIcon();
            }
            Notification.Action[] actionArr = notification.actions;
            if (actionArr != null && actionArr.length != 0) {
                for (Notification.Action action : actionArr) {
                    m17240(C3605.C3607.m17279(action).m17283());
                }
            }
            if (Build.VERSION.SDK_INT >= 21) {
                List<C3605> m17091 = C3586.m17091(notification);
                if (!m17091.isEmpty()) {
                    Iterator<C3605> it = m17091.iterator();
                    while (it.hasNext()) {
                        m17247(it.next());
                    }
                }
            }
            String[] stringArray = notification.extras.getStringArray(C3586.f12083);
            if (stringArray != null && stringArray.length != 0) {
                for (String str : stringArray) {
                    m17238(str);
                }
            }
            if (Build.VERSION.SDK_INT >= 28 && (parcelableArrayList = notification.extras.getParcelableArrayList(C3586.f12023)) != null && !parcelableArrayList.isEmpty()) {
                Iterator it2 = parcelableArrayList.iterator();
                while (it2.hasNext()) {
                    m17209(C3584.m17054((Person) it2.next()));
                }
            }
            int i = Build.VERSION.SDK_INT;
            if (i >= 24 && bundle.containsKey(C3586.f12076)) {
                m17229(bundle.getBoolean(C3586.f12076));
            }
            if (i < 26 || !bundle.containsKey(C3586.f12098)) {
                return;
            }
            m17228(bundle.getBoolean(C3586.f12098));
        }

        @InterfaceC4397
        private Bitmap m17183(@InterfaceC4397 Bitmap bitmap) {
            if (bitmap == null || Build.VERSION.SDK_INT >= 27) {
                return bitmap;
            }
            Resources resources = this.f12163.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);
        }

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

        @InterfaceC4397
        @InterfaceC4418(19)
        private static Bundle m17185(@InterfaceC4399 Notification notification, @InterfaceC4397 AbstractC3599 abstractC3599) {
            if (notification.extras == null) {
                return null;
            }
            Bundle bundle = new Bundle(notification.extras);
            bundle.remove(C3586.f12033);
            bundle.remove(C3586.f12045);
            bundle.remove(C3586.f12088);
            bundle.remove(C3586.f12044);
            bundle.remove(C3586.f12066);
            bundle.remove(C3586.f12024);
            bundle.remove(C3586.f12025);
            bundle.remove(C3586.f12016);
            bundle.remove(C3586.f12039);
            bundle.remove(C3586.f12061);
            bundle.remove(C3586.f12076);
            bundle.remove(C3586.f12098);
            bundle.remove(C3586.f12023);
            bundle.remove(C3586.f12083);
            bundle.remove(C3616.f12325);
            bundle.remove(C3616.f12326);
            bundle.remove(C3616.f12322);
            bundle.remove(C3616.f12323);
            bundle.remove(C3616.f12327);
            Bundle bundle2 = bundle.getBundle(C3588.f12106);
            if (bundle2 != null) {
                Bundle bundle3 = new Bundle(bundle2);
                bundle3.remove(C3588.f12100);
                bundle.putBundle(C3588.f12106, bundle3);
            }
            if (abstractC3599 != null) {
                abstractC3599.mo17171(bundle);
            }
            return bundle;
        }

        private boolean m17186() {
            AbstractC3599 abstractC3599 = this.f12195;
            return abstractC3599 == null || !abstractC3599.mo17168();
        }

        @InterfaceC4397
        public static CharSequence m17187(@InterfaceC4397 CharSequence charSequence) {
            return (charSequence != null && charSequence.length() > f12151) ? charSequence.subSequence(0, f12151) : charSequence;
        }

        @InterfaceC4399
        public C3604 m17188(@InterfaceC4397 C3714 c3714) {
            this.f12196 = c3714;
            return this;
        }

        @InterfaceC4399
        public C3604 m17189(@InterfaceC4397 long[] jArr) {
            this.f12162.vibrate = jArr;
            return this;
        }

        @InterfaceC4399
        public C3604 m17190(@InterfaceC4409 int i, int i2, int i3) {
            Notification notification = this.f12162;
            notification.ledARGB = i;
            notification.ledOnMS = i2;
            notification.ledOffMS = i3;
            notification.flags = ((i2 == 0 || i3 == 0) ? 0 : 1) | (notification.flags & (-2));
            return this;
        }

        @InterfaceC4399
        public C3604 m17191(@InterfaceC4397 AbstractC3599 abstractC3599) {
            if (this.f12195 != abstractC3599) {
                this.f12195 = abstractC3599;
                if (abstractC3599 != null) {
                    abstractC3599.m17174(this);
                }
            }
            return this;
        }

        @InterfaceC4399
        public C3604 m17192() {
            this.f12185.clear();
            Bundle bundle = this.f12157.getBundle(C3588.f12106);
            if (bundle != null) {
                Bundle bundle2 = new Bundle(bundle);
                bundle2.remove(C3588.f12100);
                this.f12157.putBundle(C3588.f12106, bundle2);
            }
            return this;
        }

        @InterfaceC4399
        public C3604 m17193(@InterfaceC4397 Bundle bundle) {
            this.f12157 = bundle;
            return this;
        }

        @InterfaceC4399
        @Deprecated
        public C3604 m17194(@InterfaceC4397 CharSequence charSequence, @InterfaceC4397 RemoteViews remoteViews) {
            this.f12162.tickerText = m17187(charSequence);
            this.f12191 = remoteViews;
            return this;
        }

        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public RemoteViews m17195() {
            return this.f12178;
        }

        @InterfaceC4399
        public Notification m17196() {
            return new C3641(this).m17492();
        }

        @InterfaceC4399
        public C3604 m17197(@InterfaceC4397 CharSequence charSequence) {
            this.f12179 = m17187(charSequence);
            return this;
        }

        @InterfaceC4399
        public C3604 m17198(boolean z) {
            this.f12153 = z;
            return this;
        }

        @InterfaceC4399
        public C3604 m17199(@InterfaceC4397 C3594 c3594) {
            this.f12169 = c3594;
            return this;
        }

        @InterfaceC4399
        public C3604 m17200(@InterfaceC4397 String str) {
            this.f12199 = str;
            return this;
        }

        @InterfaceC4399
        public C3604 m17201(@InterfaceC4399 InterfaceC3587 interfaceC3587) {
            interfaceC3587.mo17108(this);
            return this;
        }

        @InterfaceC4399
        public C3604 m17202(long j) {
            this.f12192 = j;
            return this;
        }

        @InterfaceC4399
        @Deprecated
        public Notification m17203() {
            return m17196();
        }

        @InterfaceC4399
        public C3604 m17204(@InterfaceC4397 String str) {
            this.f12171 = str;
            return this;
        }

        @InterfaceC4399
        public C3604 m17205(@InterfaceC4397 Bundle bundle) {
            if (bundle != null) {
                Bundle bundle2 = this.f12157;
                if (bundle2 == null) {
                    this.f12157 = new Bundle(bundle);
                } else {
                    bundle2.putAll(bundle);
                }
            }
            return this;
        }

        @InterfaceC4399
        public C3604 m17206(@InterfaceC4397 RemoteViews remoteViews) {
            this.f12178 = remoteViews;
            return this;
        }

        @InterfaceC4399
        public C3604 m17207(@InterfaceC4397 PendingIntent pendingIntent) {
            this.f12162.deleteIntent = pendingIntent;
            return this;
        }

        @InterfaceC4399
        public C3604 m17208(int i, @InterfaceC4397 CharSequence charSequence, @InterfaceC4397 PendingIntent pendingIntent) {
            this.f12187.add(new C3605(i, charSequence, pendingIntent));
            return this;
        }

        @InterfaceC4399
        public C3604 m17209(@InterfaceC4397 C3584 c3584) {
            if (c3584 != null) {
                this.f12160.add(c3584);
            }
            return this;
        }

        @InterfaceC4399
        public C3604 m17210(long j) {
            this.f12162.when = j;
            return this;
        }

        @InterfaceC4399
        public C3604 m17211(@InterfaceC4397 Uri uri, int i) {
            Notification notification = this.f12162;
            notification.sound = uri;
            notification.audioStreamType = i;
            if (Build.VERSION.SDK_INT >= 21) {
                notification.audioAttributes = new AudioAttributes.Builder().setContentType(4).setLegacyStreamType(i).build();
            }
            return this;
        }

        @InterfaceC4399
        public C3604 m17212(int i, int i2) {
            Notification notification = this.f12162;
            notification.icon = i;
            notification.iconLevel = i2;
            return this;
        }

        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public long m17213() {
            if (this.f12167) {
                return this.f12162.when;
            }
            return 0L;
        }

        @InterfaceC4397
        @SuppressLint({"BuilderSetStyle"})
        public RemoteViews m17214() {
            RemoteViews mo14702;
            int i = Build.VERSION.SDK_INT;
            if (i < 21) {
                return null;
            }
            if (this.f12178 != null && m17186()) {
                return this.f12178;
            }
            C3641 c3641 = new C3641(this);
            AbstractC3599 abstractC3599 = this.f12195;
            if (abstractC3599 != null && (mo14702 = abstractC3599.mo14702(c3641)) != null) {
                return mo14702;
            }
            Notification m17492 = c3641.m17492();
            return i >= 24 ? Notification.Builder.recoverBuilder(this.f12163, m17492).createHeadsUpContentView() : m17492.headsUpContentView;
        }

        @InterfaceC4399
        public C3604 m17215(int i) {
            Notification notification = this.f12162;
            notification.defaults = i;
            if ((i & 4) != 0) {
                notification.flags |= 1;
            }
            return this;
        }

        @InterfaceC4399
        public C3604 m17216(int i) {
            this.f12177 = i;
            return this;
        }

        @InterfaceC4399
        @Deprecated
        public C3604 m17217() {
            this.f12153 = true;
            return this;
        }

        @InterfaceC4399
        public C3604 m17218(@InterfaceC4397 PendingIntent pendingIntent) {
            this.f12186 = pendingIntent;
            return this;
        }

        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public int m17219() {
            return this.f12198;
        }

        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public RemoteViews m17220() {
            return this.f12180;
        }

        @InterfaceC4399
        public C3604 m17221(@InterfaceC4397 Uri uri) {
            Notification notification = this.f12162;
            notification.sound = uri;
            notification.audioStreamType = -1;
            if (Build.VERSION.SDK_INT >= 21) {
                notification.audioAttributes = new AudioAttributes.Builder().setContentType(4).setUsage(5).build();
            }
            return this;
        }

        @InterfaceC4399
        public C3604 m17222(int i) {
            this.f12170 = i;
            return this;
        }

        @InterfaceC4399
        public C3604 m17223(boolean z) {
            m17184(16, z);
            return this;
        }

        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        @InterfaceC4409
        public int m17224() {
            return this.f12197;
        }

        @InterfaceC4399
        public C3604 m17225(@InterfaceC4399 String str) {
            this.f12156 = str;
            return this;
        }

        @InterfaceC4399
        public C3604 m17226(@InterfaceC4397 RemoteViews remoteViews) {
            this.f12162.contentView = remoteViews;
            return this;
        }

        @InterfaceC4399
        public C3604 m17227() {
            this.f12160.clear();
            this.f12193.clear();
            return this;
        }

        @InterfaceC4399
        public C3604 m17228(boolean z) {
            this.f12189 = z;
            this.f12175 = true;
            return this;
        }

        @InterfaceC4399
        @InterfaceC4418(24)
        public C3604 m17229(boolean z) {
            this.f12173 = z;
            m17230().putBoolean(C3586.f12076, z);
            return this;
        }

        @InterfaceC4399
        public Bundle m17230() {
            if (this.f12157 == null) {
                this.f12157 = new Bundle();
            }
            return this.f12157;
        }

        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public RemoteViews m17231() {
            return this.f12194;
        }

        @InterfaceC4399
        @InterfaceC4418(23)
        public C3604 m17232(@InterfaceC4399 IconCompat iconCompat) {
            this.f12168 = iconCompat.m13423(this.f12163);
            return this;
        }

        @InterfaceC4399
        public C3604 m17233(@InterfaceC4397 C3676 c3676) {
            if (c3676 == null) {
                return this;
            }
            this.f12184 = c3676.m17590();
            if (this.f12196 == null) {
                if (c3676.m17599() != null) {
                    this.f12196 = c3676.m17599();
                } else if (c3676.m17590() != null) {
                    this.f12196 = new C3714(c3676.m17590());
                }
            }
            if (this.f12190 == null) {
                m17257(c3676.m17591());
            }
            return this;
        }

        @InterfaceC4399
        public C3604 m17234(int i) {
            this.f12200 = i;
            return this;
        }

        @InterfaceC4399
        public C3604 m17235(@InterfaceC4397 CharSequence charSequence) {
            this.f12164 = m17187(charSequence);
            return this;
        }

        @InterfaceC4399
        @InterfaceC4418(21)
        public C3604 m17236(int i, @InterfaceC4397 CharSequence charSequence, @InterfaceC4397 PendingIntent pendingIntent) {
            this.f12185.add(new C3605(i, charSequence, pendingIntent));
            return this;
        }

        @InterfaceC4399
        public C3604 m17237(boolean z) {
            m17184(8, z);
            return this;
        }

        @InterfaceC4399
        @Deprecated
        public C3604 m17238(@InterfaceC4397 String str) {
            if (str != null && !str.isEmpty()) {
                this.f12193.add(str);
            }
            return this;
        }

        @InterfaceC4399
        public C3604 m17239(@InterfaceC4397 CharSequence charSequence) {
            this.f12183 = m17187(charSequence);
            return this;
        }

        @InterfaceC4399
        public C3604 m17240(@InterfaceC4397 C3605 c3605) {
            if (c3605 != null) {
                this.f12187.add(c3605);
            }
            return this;
        }

        @InterfaceC4399
        public C3604 m17241(@InterfaceC4397 String str) {
            this.f12184 = str;
            return this;
        }

        @InterfaceC4399
        public C3604 m17242(@InterfaceC4397 Bitmap bitmap) {
            this.f12152 = m17183(bitmap);
            return this;
        }

        @InterfaceC4399
        public C3604 m17243(int i) {
            this.f12198 = i;
            return this;
        }

        @InterfaceC4397
        @SuppressLint({"BuilderSetStyle"})
        public RemoteViews m17244() {
            RemoteViews mo14699;
            int i = Build.VERSION.SDK_INT;
            if (i < 16) {
                return null;
            }
            if (this.f12180 != null && m17186()) {
                return this.f12180;
            }
            C3641 c3641 = new C3641(this);
            AbstractC3599 abstractC3599 = this.f12195;
            if (abstractC3599 != null && (mo14699 = abstractC3599.mo14699(c3641)) != null) {
                return mo14699;
            }
            Notification m17492 = c3641.m17492();
            return i >= 24 ? Notification.Builder.recoverBuilder(this.f12163, m17492).createBigContentView() : m17492.bigContentView;
        }

        @InterfaceC4399
        public C3604 m17245(@InterfaceC4397 CharSequence charSequence) {
            this.f12176 = m17187(charSequence);
            return this;
        }

        @InterfaceC4399
        public C3604 m17246(boolean z) {
            this.f12161 = z;
            return this;
        }

        @InterfaceC4399
        @InterfaceC4418(21)
        public C3604 m17247(@InterfaceC4397 C3605 c3605) {
            if (c3605 != null) {
                this.f12185.add(c3605);
            }
            return this;
        }

        @InterfaceC4399
        public C3604 m17248() {
            this.f12187.clear();
            return this;
        }

        @InterfaceC4399
        public C3604 m17249(@InterfaceC4397 RemoteViews remoteViews) {
            this.f12180 = remoteViews;
            return this;
        }

        @InterfaceC4399
        public C3604 m17250(boolean z) {
            this.f12167 = z;
            return this;
        }

        @InterfaceC4399
        public C3604 m17251(boolean z) {
            this.f12165 = z;
            return this;
        }

        @InterfaceC4399
        public C3604 m17252(int i) {
            this.f12188 = i;
            return this;
        }

        @InterfaceC4399
        public C3604 m17253(int i, int i2, boolean z) {
            this.f12172 = i;
            this.f12154 = i2;
            this.f12159 = z;
            return this;
        }

        @InterfaceC4399
        public C3604 m17254(@InterfaceC4397 PendingIntent pendingIntent, boolean z) {
            this.f12155 = pendingIntent;
            m17184(128, z);
            return this;
        }

        @InterfaceC4399
        public C3604 m17255(@InterfaceC4409 int i) {
            this.f12197 = i;
            return this;
        }

        @InterfaceC4397
        @InterfaceC4379({InterfaceC4379.EnumC4380.LIBRARY_GROUP_PREFIX})
        public C3594 m17256() {
            return this.f12169;
        }

        @InterfaceC4399
        public C3604 m17257(@InterfaceC4397 CharSequence charSequence) {
            this.f12190 = m17187(charSequence);
            return this;
        }

        @InterfaceC4399
        public C3604 m17258(boolean z) {
            this.f12166 = z;
            return this;
        }

        @InterfaceC4399
        public C3604 m17259(@InterfaceC4397 String str) {
            this.f12174 = str;
            return this;
        }

        @InterfaceC4399
        public C3604 m17260(@InterfaceC4397 Notification notification) {
            this.f12181 = notification;
            return this;
        }

        @InterfaceC4397
        @SuppressLint({"BuilderSetStyle"})
        public RemoteViews m17261() {
            RemoteViews mo14701;
            if (this.f12194 != null && m17186()) {
                return this.f12194;
            }
            C3641 c3641 = new C3641(this);
            AbstractC3599 abstractC3599 = this.f12195;
            if (abstractC3599 != null && (mo14701 = abstractC3599.mo14701(c3641)) != null) {
                return mo14701;
            }
            Notification m17492 = c3641.m17492();
            return Build.VERSION.SDK_INT >= 24 ? Notification.Builder.recoverBuilder(this.f12163, m17492).createContentView() : m17492.contentView;
        }

        @InterfaceC4399
        public C3604 m17262(@InterfaceC4397 CharSequence[] charSequenceArr) {
            this.f12182 = charSequenceArr;
            return this;
        }

        @InterfaceC4399
        public C3604 m17263(boolean z) {
            m17184(2, z);
            return this;
        }

        @InterfaceC4399
        public C3604 m17264(@InterfaceC4397 CharSequence charSequence) {
            this.f12162.tickerText = m17187(charSequence);
            return this;
        }

        @InterfaceC4399
        public C3604 m17265(int i) {
            this.f12162.icon = i;
            return this;
        }

        @InterfaceC4399
        public C3604 m17266(boolean z) {
            this.f12158 = z;
            return this;
        }

        @InterfaceC4399
        public C3604 m17267(@InterfaceC4397 RemoteViews remoteViews) {
            this.f12194 = remoteViews;
            return this;
        }

        public C3604(@InterfaceC4399 Context context, @InterfaceC4399 String str) {
            this.f12187 = new ArrayList<>();
            this.f12160 = new ArrayList<>();
            this.f12185 = new ArrayList<>();
            this.f12167 = true;
            this.f12166 = false;
            this.f12197 = 0;
            this.f12177 = 0;
            this.f12170 = 0;
            this.f12200 = 0;
            Notification notification = new Notification();
            this.f12162 = notification;
            this.f12163 = context;
            this.f12156 = str;
            notification.when = System.currentTimeMillis();
            this.f12162.audioStreamType = -1;
            this.f12198 = 0;
            this.f12193 = new ArrayList<>();
            this.f12161 = true;
        }

        @Deprecated
        public C3604(@InterfaceC4399 Context context) {
            this(context, (String) null);
        }
    }
}