导航菜单

页面标题

页面副标题

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

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

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


package TCUcMtElLJnqSvqb7YcU.cr3JSOpoZIqsmhvmO4JX.rKwtQoMTg9U9BbR7dg96;

import TCUcMtElLJnqSvqb7YcU.TCUcMtElLJnqSvqb7YcU.InterfaceC0251;
import TCUcMtElLJnqSvqb7YcU.TCUcMtElLJnqSvqb7YcU.InterfaceC0260;
import TCUcMtElLJnqSvqb7YcU.TCUcMtElLJnqSvqb7YcU.InterfaceC0265;
import TCUcMtElLJnqSvqb7YcU.TCUcMtElLJnqSvqb7YcU.InterfaceC0269;
import TCUcMtElLJnqSvqb7YcU.TCUcMtElLJnqSvqb7YcU.InterfaceC0277;
import TCUcMtElLJnqSvqb7YcU.TCUcMtElLJnqSvqb7YcU.InterfaceC0280;
import TCUcMtElLJnqSvqb7YcU.TCUcMtElLJnqSvqb7YcU.InterfaceC0300;
import TCUcMtElLJnqSvqb7YcU.cr3JSOpoZIqsmhvmO4JX.J8XGgBmc5IbfScQDY6EG.C0814;
import TCUcMtElLJnqSvqb7YcU.cr3JSOpoZIqsmhvmO4JX.jnksI9k6J1HFuFo5YzBf.C1060;
import TCUcMtElLJnqSvqb7YcU.cr3JSOpoZIqsmhvmO4JX.jnksI9k6J1HFuFo5YzBf.ShxcOQUYV4NCnoYZ6rEG.C1026;
import TCUcMtElLJnqSvqb7YcU.cr3JSOpoZIqsmhvmO4JX.rKwtQoMTg9U9BbR7dg96.C1118;
import TCUcMtElLJnqSvqb7YcU.cr3JSOpoZIqsmhvmO4JX.t53cCoLViFIKJxicLKwJ.C1313;
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.text.SpannableStringBuilder;
import android.text.TextUtils;
import android.text.style.TextAppearanceSpan;
import android.util.SparseArray;
import android.widget.RemoteViews;
import androidx.core.R;
import androidx.core.graphics.drawable.IconCompat;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Objects;

public class C1078 {

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

    public static final int f5156 = 32;

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

    public static final String f5158 = "social";

    public static final int f5159 = -1;

    public static final int f5160 = -1;

    public static final int f5161 = 512;

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

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

    @InterfaceC0277
    public static final int f5164 = 0;

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

    public static final int f5166 = 4096;

    public static final String f5167 = "workout";

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

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

    public static final String f5170 = "sys";

    public static final String f5171 = "stopwatch";

    public static final int f5172 = -1;

    public static final String f5173 = "location_sharing";

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

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

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

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

    public static final int f5178 = 1;

    public static final int f5179 = 0;

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

    public static final int f5181 = 0;

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

    public static final int f5183 = 1;

    public static final int f5184 = 1;

    public static final String f5185 = "alarm";

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

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

    public static final int f5188 = 4;

    public static final int f5189 = 2;

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

    public static final int f5191 = 1;

    public static final String f5192 = "progress";

    public static final int f5193 = 0;

    public static final int f5194 = -1;

    public static final int f5195 = 2;

    public static final int f5196 = 2;

    public static final int f5197 = 256;

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

    public static final String f5199 = "navigation";

    public static final int f5200 = 64;

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

    public static final int f5202 = 1;

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

    public static final String f5204 = "silent";

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

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

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

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

    public static final int f5209 = 1;

    public static final String f5210 = "status";

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

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

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

    public static final String f5214 = "event";

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

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

    public static final int f5217 = 2;

    @Deprecated
    public static final int f5218 = 128;

    public static final int f5219 = 16;

    public static final String f5220 = "msg";

    public static final String f5221 = "transport";

    public static final String f5222 = "service";

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

    public static final int f5224 = 0;

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

    public static final String f5226 = "promo";

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

    public static final int f5228 = 2;

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

    public static final int f5230 = 8;

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

    public static final String f5232 = "missed_call";

    public static final String f5233 = "err";

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

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

    public static final String f5236 = "reminder";

    public static final int f5237 = 4;

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

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

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

    public static final String f5241 = "email";

    public static final String f5242 = "call";

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

    public static final int f5244 = -2;

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

    public static final String f5246 = "recommendation";

    public static abstract class AbstractC1079 {

        public CharSequence f5247;

        public boolean f5248 = false;

        public CharSequence f5249;

        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public C1090 f5250;

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

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

        @InterfaceC0265
        private static AbstractC1079 m4496(@InterfaceC0265 String str) {
            int i;
            if (str != null && (i = Build.VERSION.SDK_INT) >= 16) {
                if (str.equals(Notification.BigPictureStyle.class.getName())) {
                    return new C1091();
                }
                if (str.equals(Notification.BigTextStyle.class.getName())) {
                    return new C1107();
                }
                if (str.equals(Notification.InboxStyle.class.getName())) {
                    return new C1100();
                }
                if (i >= 24) {
                    if (str.equals(Notification.MessagingStyle.class.getName())) {
                        return new C1094();
                    }
                    if (str.equals(Notification.DecoratedCustomViewStyle.class.getName())) {
                        return new C1106();
                    }
                }
            }
            return null;
        }

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

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

        @InterfaceC0265
        public static AbstractC1079 m4499(@InterfaceC0300 Bundle bundle) {
            AbstractC1079 m4504 = m4504(bundle.getString(C1078.f5155));
            return m4504 != null ? m4504 : (bundle.containsKey(C1078.f5231) || bundle.containsKey(C1078.f5215)) ? new C1094() : bundle.containsKey(C1078.f5163) ? new C1091() : bundle.containsKey(C1078.f5212) ? new C1107() : bundle.containsKey(C1078.f5227) ? new C1100() : m4496(bundle.getString(C1078.f5234));
        }

        @InterfaceC0265
        public static AbstractC1079 m4500(@InterfaceC0300 Bundle bundle) {
            AbstractC1079 m4499 = m4499(bundle);
            if (m4499 == null) {
                return null;
            }
            try {
                m4499.mo4506(bundle);
                return m4499;
            } catch (ClassCastException unused) {
                return null;
            }
        }

        @InterfaceC0265
        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public static AbstractC1079 m4501(@InterfaceC0300 Notification notification) {
            Bundle m4488 = C1078.m4488(notification);
            if (m4488 == null) {
                return null;
            }
            return m4500(m4488);
        }

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

        private Bitmap m4503(int i, int i2, int i3) {
            return m4494(IconCompat.m13853(this.f5250.f5347, i), i2, i3);
        }

        @InterfaceC0265
        public static AbstractC1079 m4504(@InterfaceC0265 String str) {
            if (str == null) {
                return null;
            }
            str.hashCode();
            switch (str) {
                case "androidx.core.app.NotificationCompat$DecoratedCustomViewStyle":
                    return new C1106();
                case "androidx.core.app.NotificationCompat$BigPictureStyle":
                    return new C1091();
                case "androidx.core.app.NotificationCompat$InboxStyle":
                    return new C1100();
                case "androidx.core.app.NotificationCompat$BigTextStyle":
                    return new C1107();
                case "androidx.core.app.NotificationCompat$MessagingStyle":
                    return new C1094();
                default:
                    return null;
            }
        }

        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public void mo107(InterfaceC1128 interfaceC1128) {
        }

        @InterfaceC0265
        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public String mo4505() {
            return null;
        }

        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public void mo4506(@InterfaceC0300 Bundle bundle) {
            if (bundle.containsKey(C1078.f5240)) {
                this.f5249 = bundle.getCharSequence(C1078.f5240);
                this.f5248 = true;
            }
            this.f5247 = bundle.getCharSequence(C1078.f5180);
        }

        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public void mo4507(@InterfaceC0300 Bundle bundle) {
            bundle.remove(C1078.f5240);
            bundle.remove(C1078.f5180);
            bundle.remove(C1078.f5155);
        }

        @InterfaceC0265
        public Notification m4508() {
            C1090 c1090 = this.f5250;
            if (c1090 != null) {
                return c1090.m4613();
            }
            return null;
        }

        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public Bitmap m4509(int i, int i2) {
            return m4503(i, i2, 0);
        }

        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public RemoteViews mo112(InterfaceC1128 interfaceC1128) {
            return null;
        }

        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public RemoteViews mo113(InterfaceC1128 interfaceC1128) {
            return null;
        }

        @TCUcMtElLJnqSvqb7YcU.TCUcMtElLJnqSvqb7YcU.InterfaceC0300
        @TCUcMtElLJnqSvqb7YcU.TCUcMtElLJnqSvqb7YcU.InterfaceC0269({TCUcMtElLJnqSvqb7YcU.TCUcMtElLJnqSvqb7YcU.InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public android.widget.RemoteViews m4510(boolean r17, int r18, boolean r19) {
            throw new UnsupportedOperationException("Method not decompiled: TCUcMtElLJnqSvqb7YcU.cr3JSOpoZIqsmhvmO4JX.rKwtQoMTg9U9BbR7dg96.C1078.AbstractC1079.m4510(boolean, int, boolean):android.widget.RemoteViews");
        }

        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public void mo4511(@InterfaceC0300 Bundle bundle) {
            if (this.f5248) {
                bundle.putCharSequence(C1078.f5240, this.f5249);
            }
            CharSequence charSequence = this.f5247;
            if (charSequence != null) {
                bundle.putCharSequence(C1078.f5180, charSequence);
            }
            String mo4505 = mo4505();
            if (mo4505 != null) {
                bundle.putString(C1078.f5155, mo4505);
            }
        }

        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public boolean mo4512() {
            return false;
        }

        public Bitmap m4513(@InterfaceC0300 IconCompat iconCompat, int i) {
            return m4494(iconCompat, i, 0);
        }

        public void m4514(@InterfaceC0265 C1090 c1090) {
            if (this.f5250 != c1090) {
                this.f5250 = c1090;
                if (c1090 != null) {
                    c1090.m4640(this);
                }
            }
        }

        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public RemoteViews mo120(InterfaceC1128 interfaceC1128) {
            return null;
        }

        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public void m4515(RemoteViews remoteViews, RemoteViews remoteViews2) {
            m4497(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, m4495(), 0, 0);
            }
        }
    }

    public static class C1080 {

        public static final int f5251 = 4;

        public static final int f5252 = 8;

        public static final int f5253 = 9;

        public static final int f5254 = 1;

        public static final int f5255 = 10;

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

        public static final int f5257 = 0;

        public static final int f5258 = 7;

        public static final int f5259 = 5;

        public static final int f5260 = 6;

        public static final int f5261 = 3;

        public static final int f5262 = 2;

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

        @InterfaceC0265
        private IconCompat f5264;

        public boolean f5265;

        public CharSequence f5266;

        private final int f5267;

        private final C1135[] f5268;

        private final boolean f5269;

        public PendingIntent f5270;

        private final C1135[] f5271;

        public final Bundle f5272;

        @Deprecated
        public int f5273;

        private boolean f5274;

        public interface InterfaceC1081 {
            @InterfaceC0300
            C1084 mo4527(@InterfaceC0300 C1084 c1084);
        }

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

        public static final class C1084 {

            private final CharSequence f5288;

            private ArrayList<C1135> f5289;

            private int f5290;

            private boolean f5291;

            private boolean f5292;

            private final PendingIntent f5293;

            private final IconCompat f5294;

            private boolean f5295;

            private final Bundle f5296;

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

            @InterfaceC0300
            @InterfaceC0260(19)
            @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
            public static C1084 m4542(@InterfaceC0300 Notification.Action action) {
                RemoteInput[] remoteInputs;
                int i = Build.VERSION.SDK_INT;
                C1084 c1084 = (i < 23 || action.getIcon() == null) ? new C1084(action.icon, action.title, action.actionIntent) : new C1084(IconCompat.m13850(action.getIcon()), action.title, action.actionIntent);
                if (i >= 20 && (remoteInputs = action.getRemoteInputs()) != null && remoteInputs.length != 0) {
                    for (RemoteInput remoteInput : remoteInputs) {
                        c1084.m4544(C1135.m4895(remoteInput));
                    }
                }
                int i2 = Build.VERSION.SDK_INT;
                if (i2 >= 24) {
                    c1084.f5291 = action.getAllowGeneratedReplies();
                }
                if (i2 >= 28) {
                    c1084.m4545(action.getSemanticAction());
                }
                if (i2 >= 29) {
                    c1084.m4551(action.isContextual());
                }
                return c1084;
            }

            private void m4543() {
                if (this.f5295) {
                    Objects.requireNonNull(this.f5293, "Contextual Actions must contain a valid PendingIntent");
                }
            }

            @InterfaceC0300
            public C1084 m4544(@InterfaceC0265 C1135 c1135) {
                if (this.f5289 == null) {
                    this.f5289 = new ArrayList<>();
                }
                if (c1135 != null) {
                    this.f5289.add(c1135);
                }
                return this;
            }

            @InterfaceC0300
            public C1084 m4545(int i) {
                this.f5290 = i;
                return this;
            }

            @InterfaceC0300
            public Bundle m4546() {
                return this.f5296;
            }

            @InterfaceC0300
            public C1084 m4547(boolean z) {
                this.f5291 = z;
                return this;
            }

            @InterfaceC0300
            public C1084 m4548(boolean z) {
                this.f5292 = z;
                return this;
            }

            @InterfaceC0300
            public C1080 m4549() {
                m4543();
                ArrayList arrayList = new ArrayList();
                ArrayList arrayList2 = new ArrayList();
                ArrayList<C1135> arrayList3 = this.f5289;
                if (arrayList3 != null) {
                    Iterator<C1135> it = arrayList3.iterator();
                    while (it.hasNext()) {
                        C1135 next = it.next();
                        if (next.m4901()) {
                            arrayList.add(next);
                        } else {
                            arrayList2.add(next);
                        }
                    }
                }
                C1135[] c1135Arr = arrayList.isEmpty() ? null : (C1135[]) arrayList.toArray(new C1135[arrayList.size()]);
                return new C1080(this.f5294, this.f5288, this.f5293, this.f5296, arrayList2.isEmpty() ? null : (C1135[]) arrayList2.toArray(new C1135[arrayList2.size()]), c1135Arr, this.f5291, this.f5290, this.f5292, this.f5295);
            }

            @InterfaceC0300
            public C1084 m4550(@InterfaceC0265 Bundle bundle) {
                if (bundle != null) {
                    this.f5296.putAll(bundle);
                }
                return this;
            }

            @InterfaceC0300
            public C1084 m4551(boolean z) {
                this.f5295 = z;
                return this;
            }

            @InterfaceC0300
            public C1084 m4552(@InterfaceC0300 InterfaceC1081 interfaceC1081) {
                interfaceC1081.mo4527(this);
                return this;
            }

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

            public C1084(@InterfaceC0300 C1080 c1080) {
                this(c1080.m4517(), c1080.f5266, c1080.f5270, new Bundle(c1080.f5272), c1080.m4519(), c1080.m4516(), c1080.m4521(), c1080.f5265, c1080.m4522());
            }

            private C1084(@InterfaceC0265 IconCompat iconCompat, @InterfaceC0265 CharSequence charSequence, @InterfaceC0265 PendingIntent pendingIntent, @InterfaceC0300 Bundle bundle, @InterfaceC0265 C1135[] c1135Arr, boolean z, int i, boolean z2, boolean z3) {
                this.f5291 = true;
                this.f5292 = true;
                this.f5294 = iconCompat;
                this.f5288 = C1090.m4581(charSequence);
                this.f5293 = pendingIntent;
                this.f5296 = bundle;
                this.f5289 = c1135Arr == null ? null : new ArrayList<>(Arrays.asList(c1135Arr));
                this.f5291 = z;
                this.f5290 = i;
                this.f5292 = z2;
                this.f5295 = z3;
            }
        }

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

        public boolean m4516() {
            return this.f5274;
        }

        @InterfaceC0265
        public IconCompat m4517() {
            int i;
            if (this.f5264 == null && (i = this.f5273) != 0) {
                this.f5264 = IconCompat.m13866(null, "", i);
            }
            return this.f5264;
        }

        @InterfaceC0265
        public CharSequence m4518() {
            return this.f5266;
        }

        @InterfaceC0265
        public C1135[] m4519() {
            return this.f5271;
        }

        @InterfaceC0300
        public Bundle m4520() {
            return this.f5272;
        }

        public int m4521() {
            return this.f5267;
        }

        public boolean m4522() {
            return this.f5269;
        }

        @InterfaceC0265
        public C1135[] m4523() {
            return this.f5268;
        }

        @InterfaceC0265
        public PendingIntent m4524() {
            return this.f5270;
        }

        public boolean m4525() {
            return this.f5265;
        }

        @Deprecated
        public int m4526() {
            return this.f5273;
        }

        public static final class C1082 implements InterfaceC1081 {

            private static final String f5275 = "flags";

            private static final int f5276 = 1;

            private static final String f5277 = "inProgressLabel";

            private static final int f5278 = 1;

            private static final String f5279 = "confirmLabel";

            private static final int f5280 = 2;

            private static final int f5281 = 4;

            private static final String f5282 = "cancelLabel";

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

            private CharSequence f5284;

            private CharSequence f5285;

            private CharSequence f5286;

            private int f5287;

            public C1082() {
                this.f5287 = 1;
            }

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

            @InterfaceC0300
            public C1082 clone() {
                C1082 c1082 = new C1082();
                c1082.f5287 = this.f5287;
                c1082.f5284 = this.f5284;
                c1082.f5286 = this.f5286;
                c1082.f5285 = this.f5285;
                return c1082;
            }

            public boolean m4530() {
                return (this.f5287 & 2) != 0;
            }

            @InterfaceC0300
            @Deprecated
            public C1082 m4531(@InterfaceC0265 CharSequence charSequence) {
                this.f5285 = charSequence;
                return this;
            }

            @InterfaceC0265
            @Deprecated
            public CharSequence m4532() {
                return this.f5284;
            }

            @InterfaceC0265
            @Deprecated
            public CharSequence m4533() {
                return this.f5286;
            }

            @InterfaceC0300
            public C1082 m4534(boolean z) {
                m4528(4, z);
                return this;
            }

            public boolean m4535() {
                return (this.f5287 & 1) != 0;
            }

            @InterfaceC0300
            @Deprecated
            public C1082 m4536(@InterfaceC0265 CharSequence charSequence) {
                this.f5286 = charSequence;
                return this;
            }

            @InterfaceC0265
            @Deprecated
            public CharSequence m4537() {
                return this.f5285;
            }

            @Override
            @InterfaceC0300
            public C1084 mo4527(@InterfaceC0300 C1084 c1084) {
                Bundle bundle = new Bundle();
                int i = this.f5287;
                if (i != 1) {
                    bundle.putInt(f5275, i);
                }
                CharSequence charSequence = this.f5284;
                if (charSequence != null) {
                    bundle.putCharSequence(f5277, charSequence);
                }
                CharSequence charSequence2 = this.f5286;
                if (charSequence2 != null) {
                    bundle.putCharSequence(f5279, charSequence2);
                }
                CharSequence charSequence3 = this.f5285;
                if (charSequence3 != null) {
                    bundle.putCharSequence(f5282, charSequence3);
                }
                c1084.m4546().putBundle(f5283, bundle);
                return c1084;
            }

            @InterfaceC0300
            @Deprecated
            public C1082 m4538(@InterfaceC0265 CharSequence charSequence) {
                this.f5284 = charSequence;
                return this;
            }

            @InterfaceC0300
            public C1082 m4539(boolean z) {
                m4528(2, z);
                return this;
            }

            @InterfaceC0300
            public C1082 m4540(boolean z) {
                m4528(1, z);
                return this;
            }

            public boolean m4541() {
                return (this.f5287 & 4) != 0;
            }

            public C1082(@InterfaceC0300 C1080 c1080) {
                this.f5287 = 1;
                Bundle bundle = c1080.m4520().getBundle(f5283);
                if (bundle != null) {
                    this.f5287 = bundle.getInt(f5275, 1);
                    this.f5284 = bundle.getCharSequence(f5277);
                    this.f5286 = bundle.getCharSequence(f5279);
                    this.f5285 = bundle.getCharSequence(f5282);
                }
            }
        }

        public C1080(@InterfaceC0265 IconCompat iconCompat, @InterfaceC0265 CharSequence charSequence, @InterfaceC0265 PendingIntent pendingIntent) {
            this(iconCompat, charSequence, pendingIntent, new Bundle(), (C1135[]) null, (C1135[]) null, true, 0, true, false);
        }

        public C1080(int i, @InterfaceC0265 CharSequence charSequence, @InterfaceC0265 PendingIntent pendingIntent, @InterfaceC0265 Bundle bundle, @InterfaceC0265 C1135[] c1135Arr, @InterfaceC0265 C1135[] c1135Arr2, boolean z, int i2, boolean z2, boolean z3) {
            this(i != 0 ? IconCompat.m13866(null, "", i) : null, charSequence, pendingIntent, bundle, c1135Arr, c1135Arr2, z, i2, z2, z3);
        }

        public C1080(@InterfaceC0265 IconCompat iconCompat, @InterfaceC0265 CharSequence charSequence, @InterfaceC0265 PendingIntent pendingIntent, @InterfaceC0265 Bundle bundle, @InterfaceC0265 C1135[] c1135Arr, @InterfaceC0265 C1135[] c1135Arr2, boolean z, int i, boolean z2, boolean z3) {
            this.f5265 = true;
            this.f5264 = iconCompat;
            if (iconCompat != null && iconCompat.m13870() == 2) {
                this.f5273 = iconCompat.m13879();
            }
            this.f5266 = C1090.m4581(charSequence);
            this.f5270 = pendingIntent;
            this.f5272 = bundle == null ? new Bundle() : bundle;
            this.f5271 = c1135Arr;
            this.f5268 = c1135Arr2;
            this.f5274 = z;
            this.f5267 = i;
            this.f5265 = z2;
            this.f5269 = z3;
        }
    }

    public static final class C1085 {

        private static final int f5297 = 1;

        private static final int f5298 = 2;

        private PendingIntent f5299;

        private int f5300;

        private String f5301;

        private int f5302;

        private IconCompat f5303;

        private PendingIntent f5304;

        @InterfaceC0251
        private int f5305;

        @InterfaceC0260(30)
        public static class C1086 {
            private C1086() {
            }

            @InterfaceC0265
            @InterfaceC0260(30)
            public static Notification.BubbleMetadata m4564(@InterfaceC0265 C1085 c1085) {
                if (c1085 == null) {
                    return null;
                }
                Notification.BubbleMetadata.Builder builder = c1085.m4560() != null ? new Notification.BubbleMetadata.Builder(c1085.m4560()) : new Notification.BubbleMetadata.Builder(c1085.m4558(), c1085.m4556().m13871());
                builder.setDeleteIntent(c1085.m4561()).setAutoExpandBubble(c1085.m4555()).setSuppressNotification(c1085.m4562());
                if (c1085.m4559() != 0) {
                    builder.setDesiredHeight(c1085.m4559());
                }
                if (c1085.m4563() != 0) {
                    builder.setDesiredHeightResId(c1085.m4563());
                }
                return builder.build();
            }

            @InterfaceC0265
            @InterfaceC0260(30)
            public static C1085 m4565(@InterfaceC0265 Notification.BubbleMetadata bubbleMetadata) {
                if (bubbleMetadata == null) {
                    return null;
                }
                C1087 c1087 = bubbleMetadata.getShortcutId() != null ? new C1087(bubbleMetadata.getShortcutId()) : new C1087(bubbleMetadata.getIntent(), IconCompat.m13850(bubbleMetadata.getIcon()));
                c1087.m4567(bubbleMetadata.getAutoExpandBubble()).m4571(bubbleMetadata.getDeleteIntent()).m4573(bubbleMetadata.isNotificationSuppressed());
                if (bubbleMetadata.getDesiredHeight() != 0) {
                    c1087.m4569(bubbleMetadata.getDesiredHeight());
                }
                if (bubbleMetadata.getDesiredHeightResId() != 0) {
                    c1087.m4574(bubbleMetadata.getDesiredHeightResId());
                }
                return c1087.m4572();
            }
        }

        public static final class C1087 {

            private IconCompat f5306;

            private PendingIntent f5307;

            private String f5308;

            @InterfaceC0251
            private int f5309;

            private int f5310;

            private PendingIntent f5311;

            private int f5312;

            @Deprecated
            public C1087() {
            }

            @InterfaceC0300
            private C1087 m4566(int i, boolean z) {
                if (z) {
                    this.f5312 = i | this.f5312;
                } else {
                    this.f5312 = (i ^ (-1)) & this.f5312;
                }
                return this;
            }

            @InterfaceC0300
            public C1087 m4567(boolean z) {
                m4566(1, z);
                return this;
            }

            @InterfaceC0300
            public C1087 m4568(@InterfaceC0300 IconCompat iconCompat) {
                if (this.f5308 != 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.f5306 = iconCompat;
                return this;
            }

            @InterfaceC0300
            public C1087 m4569(@InterfaceC0280(unit = 0) int i) {
                this.f5310 = Math.max(i, 0);
                this.f5309 = 0;
                return this;
            }

            @InterfaceC0300
            public C1087 m4570(@InterfaceC0300 PendingIntent pendingIntent) {
                if (this.f5308 != 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.f5311 = pendingIntent;
                return this;
            }

            @InterfaceC0300
            public C1087 m4571(@InterfaceC0265 PendingIntent pendingIntent) {
                this.f5307 = pendingIntent;
                return this;
            }

            @InterfaceC0300
            @SuppressLint({"SyntheticAccessor"})
            public C1085 m4572() {
                String str = this.f5308;
                if (str == null) {
                    Objects.requireNonNull(this.f5311, "Must supply pending intent or shortcut to bubble");
                }
                if (str == null) {
                    Objects.requireNonNull(this.f5306, "Must supply an icon or shortcut for the bubble");
                }
                C1085 c1085 = new C1085(this.f5311, this.f5307, this.f5306, this.f5310, this.f5309, this.f5312, str);
                c1085.m4557(this.f5312);
                return c1085;
            }

            @InterfaceC0300
            public C1087 m4573(boolean z) {
                m4566(2, z);
                return this;
            }

            @InterfaceC0300
            public C1087 m4574(@InterfaceC0251 int i) {
                this.f5309 = i;
                this.f5310 = 0;
                return this;
            }

            @InterfaceC0260(30)
            public C1087(@InterfaceC0300 String str) {
                if (TextUtils.isEmpty(str)) {
                    throw new NullPointerException("Bubble requires a non-null shortcut id");
                }
                this.f5308 = str;
            }

            public C1087(@InterfaceC0300 PendingIntent pendingIntent, @InterfaceC0300 IconCompat iconCompat) {
                Objects.requireNonNull(pendingIntent, "Bubble requires non-null pending intent");
                Objects.requireNonNull(iconCompat, "Bubbles require non-null icon");
                this.f5311 = pendingIntent;
                this.f5306 = iconCompat;
            }
        }

        @InterfaceC0260(29)
        public static class C1088 {
            private C1088() {
            }

            @InterfaceC0265
            @InterfaceC0260(29)
            public static Notification.BubbleMetadata m4575(@InterfaceC0265 C1085 c1085) {
                if (c1085 == null || c1085.m4558() == null) {
                    return null;
                }
                Notification.BubbleMetadata.Builder suppressNotification = new Notification.BubbleMetadata.Builder().setIcon(c1085.m4556().m13871()).setIntent(c1085.m4558()).setDeleteIntent(c1085.m4561()).setAutoExpandBubble(c1085.m4555()).setSuppressNotification(c1085.m4562());
                if (c1085.m4559() != 0) {
                    suppressNotification.setDesiredHeight(c1085.m4559());
                }
                if (c1085.m4563() != 0) {
                    suppressNotification.setDesiredHeightResId(c1085.m4563());
                }
                return suppressNotification.build();
            }

            @InterfaceC0265
            @InterfaceC0260(29)
            public static C1085 m4576(@InterfaceC0265 Notification.BubbleMetadata bubbleMetadata) {
                if (bubbleMetadata == null || bubbleMetadata.getIntent() == null) {
                    return null;
                }
                C1087 m4573 = new C1087(bubbleMetadata.getIntent(), IconCompat.m13850(bubbleMetadata.getIcon())).m4567(bubbleMetadata.getAutoExpandBubble()).m4571(bubbleMetadata.getDeleteIntent()).m4573(bubbleMetadata.isNotificationSuppressed());
                if (bubbleMetadata.getDesiredHeight() != 0) {
                    m4573.m4569(bubbleMetadata.getDesiredHeight());
                }
                if (bubbleMetadata.getDesiredHeightResId() != 0) {
                    m4573.m4574(bubbleMetadata.getDesiredHeightResId());
                }
                return m4573.m4572();
            }
        }

        @InterfaceC0265
        public static Notification.BubbleMetadata m4553(@InterfaceC0265 C1085 c1085) {
            if (c1085 == null) {
                return null;
            }
            int i = Build.VERSION.SDK_INT;
            if (i >= 30) {
                return C1086.m4564(c1085);
            }
            if (i == 29) {
                return C1088.m4575(c1085);
            }
            return null;
        }

        @InterfaceC0265
        public static C1085 m4554(@InterfaceC0265 Notification.BubbleMetadata bubbleMetadata) {
            if (bubbleMetadata == null) {
                return null;
            }
            int i = Build.VERSION.SDK_INT;
            if (i >= 30) {
                return C1086.m4565(bubbleMetadata);
            }
            if (i == 29) {
                return C1088.m4576(bubbleMetadata);
            }
            return null;
        }

        public boolean m4555() {
            return (this.f5300 & 1) != 0;
        }

        @InterfaceC0265
        @SuppressLint({"InvalidNullConversion"})
        public IconCompat m4556() {
            return this.f5303;
        }

        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public void m4557(int i) {
            this.f5300 = i;
        }

        @InterfaceC0265
        @SuppressLint({"InvalidNullConversion"})
        public PendingIntent m4558() {
            return this.f5304;
        }

        @InterfaceC0280(unit = 0)
        public int m4559() {
            return this.f5302;
        }

        @InterfaceC0265
        public String m4560() {
            return this.f5301;
        }

        @InterfaceC0265
        public PendingIntent m4561() {
            return this.f5299;
        }

        public boolean m4562() {
            return (this.f5300 & 2) != 0;
        }

        @InterfaceC0251
        public int m4563() {
            return this.f5305;
        }

        private C1085(@InterfaceC0265 PendingIntent pendingIntent, @InterfaceC0265 PendingIntent pendingIntent2, @InterfaceC0265 IconCompat iconCompat, int i, @InterfaceC0251 int i2, int i3, @InterfaceC0265 String str) {
            this.f5304 = pendingIntent;
            this.f5303 = iconCompat;
            this.f5302 = i;
            this.f5305 = i2;
            this.f5299 = pendingIntent2;
            this.f5300 = i3;
            this.f5301 = str;
        }
    }

    public interface InterfaceC1089 {
        @InterfaceC0300
        C1090 mo4577(@InterfaceC0300 C1090 c1090);
    }

    public static class C1091 extends AbstractC1079 {

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

        private IconCompat f5364;

        private boolean f5365;

        private Bitmap f5366;

        @InterfaceC0260(23)
        public static class C1092 {
            private C1092() {
            }

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

        @InterfaceC0260(16)
        public static class C1093 {
            private C1093() {
            }

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

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

        public C1091() {
        }

        @InterfaceC0265
        private static IconCompat m4663(@InterfaceC0265 Parcelable parcelable) {
            if (parcelable == null) {
                return null;
            }
            if (Build.VERSION.SDK_INT >= 23 && (parcelable instanceof Icon)) {
                return IconCompat.m13850((Icon) parcelable);
            }
            if (parcelable instanceof Bitmap) {
                return IconCompat.m13855((Bitmap) parcelable);
            }
            return null;
        }

        @Override
        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public void mo107(InterfaceC1128 interfaceC1128) {
            int i = Build.VERSION.SDK_INT;
            if (i >= 16) {
                Notification.BigPictureStyle bigPicture = new Notification.BigPictureStyle(interfaceC1128.mo4868()).setBigContentTitle(this.f5247).bigPicture(this.f5366);
                if (this.f5365) {
                    IconCompat iconCompat = this.f5364;
                    if (iconCompat == null) {
                        C1093.m4670(bigPicture, null);
                    } else if (i >= 23) {
                        C1092.m4668(bigPicture, this.f5364.m13869(interfaceC1128 instanceof C1145 ? ((C1145) interfaceC1128).m4953() : null));
                    } else if (iconCompat.m13870() == 1) {
                        C1093.m4670(bigPicture, this.f5364.m13874());
                    } else {
                        C1093.m4670(bigPicture, null);
                    }
                }
                if (this.f5248) {
                    C1093.m4669(bigPicture, this.f5249);
                }
            }
        }

        @Override
        @InterfaceC0300
        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public String mo4505() {
            return f5363;
        }

        @InterfaceC0300
        public C1091 m4664(@InterfaceC0265 CharSequence charSequence) {
            this.f5249 = C1090.m4581(charSequence);
            this.f5248 = true;
            return this;
        }

        @InterfaceC0300
        public C1091 m4665(@InterfaceC0265 Bitmap bitmap) {
            this.f5364 = bitmap == null ? null : IconCompat.m13855(bitmap);
            this.f5365 = true;
            return this;
        }

        @Override
        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public void mo4506(@InterfaceC0300 Bundle bundle) {
            super.mo4506(bundle);
            if (bundle.containsKey(C1078.f5182)) {
                this.f5364 = m4663(bundle.getParcelable(C1078.f5182));
                this.f5365 = true;
            }
            this.f5366 = (Bitmap) bundle.getParcelable(C1078.f5163);
        }

        @Override
        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public void mo4507(@InterfaceC0300 Bundle bundle) {
            super.mo4507(bundle);
            bundle.remove(C1078.f5182);
            bundle.remove(C1078.f5163);
        }

        @InterfaceC0300
        public C1091 m4666(@InterfaceC0265 Bitmap bitmap) {
            this.f5366 = bitmap;
            return this;
        }

        @InterfaceC0300
        public C1091 m4667(@InterfaceC0265 CharSequence charSequence) {
            this.f5247 = C1090.m4581(charSequence);
            return this;
        }

        public C1091(@InterfaceC0265 C1090 c1090) {
            m4514(c1090);
        }
    }

    @Retention(RetentionPolicy.SOURCE)
    @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
    public @interface InterfaceC1099 {
    }

    @Retention(RetentionPolicy.SOURCE)
    @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
    public @interface InterfaceC1101 {
    }

    @Retention(RetentionPolicy.SOURCE)
    @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
    public @interface InterfaceC1104 {
    }

    @Retention(RetentionPolicy.SOURCE)
    @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
    public @interface InterfaceC1105 {
    }

    public static class C1106 extends AbstractC1079 {

        private static final int f5466 = 3;

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

        private RemoteViews m4771(C1080 c1080) {
            boolean z = c1080.f5270 == null;
            RemoteViews remoteViews = new RemoteViews(this.f5250.f5347.getPackageName(), z ? R.layout.notification_action_tombstone : R.layout.notification_action);
            IconCompat m4517 = c1080.m4517();
            if (m4517 != null) {
                remoteViews.setImageViewBitmap(R.id.action_image, m4513(m4517, this.f5250.f5347.getResources().getColor(R.color.notification_action_color_filter)));
            }
            remoteViews.setTextViewText(R.id.action_text, c1080.f5266);
            if (!z) {
                remoteViews.setOnClickPendingIntent(R.id.action_container, c1080.f5270);
            }
            if (Build.VERSION.SDK_INT >= 15) {
                remoteViews.setContentDescription(R.id.action_container, c1080.f5266);
            }
            return remoteViews;
        }

        private RemoteViews m4772(RemoteViews remoteViews, boolean z) {
            int min;
            boolean z2 = true;
            RemoteViews m4510 = m4510(true, R.layout.notification_template_custom_big, false);
            m4510.removeAllViews(R.id.actions);
            List<C1080> m4773 = m4773(this.f5250.f5316);
            if (!z || m4773 == null || (min = Math.min(m4773.size(), 3)) <= 0) {
                z2 = false;
            } else {
                for (int i = 0; i < min; i++) {
                    m4510.addView(R.id.actions, m4771(m4773.get(i)));
                }
            }
            int i2 = z2 ? 0 : 8;
            m4510.setViewVisibility(R.id.actions, i2);
            m4510.setViewVisibility(R.id.action_divider, i2);
            m4515(m4510, remoteViews);
            return m4510;
        }

        private static List<C1080> m4773(List<C1080> list) {
            if (list == null) {
                return null;
            }
            ArrayList arrayList = new ArrayList();
            for (C1080 c1080 : list) {
                if (!c1080.m4522()) {
                    arrayList.add(c1080);
                }
            }
            return arrayList;
        }

        @Override
        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public void mo107(InterfaceC1128 interfaceC1128) {
            if (Build.VERSION.SDK_INT >= 24) {
                interfaceC1128.mo4868().setStyle(new Notification.DecoratedCustomViewStyle());
            }
        }

        @Override
        @InterfaceC0300
        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public String mo4505() {
            return f5467;
        }

        @Override
        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public RemoteViews mo112(InterfaceC1128 interfaceC1128) {
            if (Build.VERSION.SDK_INT >= 24) {
                return null;
            }
            RemoteViews m4583 = this.f5250.m4583();
            if (m4583 == null) {
                m4583 = this.f5250.m4620();
            }
            if (m4583 == null) {
                return null;
            }
            return m4772(m4583, true);
        }

        @Override
        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public RemoteViews mo113(InterfaceC1128 interfaceC1128) {
            if (Build.VERSION.SDK_INT < 24 && this.f5250.m4620() != null) {
                return m4772(this.f5250.m4620(), false);
            }
            return null;
        }

        @Override
        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public boolean mo4512() {
            return true;
        }

        @Override
        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public RemoteViews mo120(InterfaceC1128 interfaceC1128) {
            if (Build.VERSION.SDK_INT >= 24) {
                return null;
            }
            RemoteViews m4617 = this.f5250.m4617();
            RemoteViews m4620 = m4617 != null ? m4617 : this.f5250.m4620();
            if (m4617 == null) {
                return null;
            }
            return m4772(m4620, true);
        }
    }

    public static class C1107 extends AbstractC1079 {

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

        private CharSequence f5469;

        public C1107() {
        }

        @Override
        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public void mo107(InterfaceC1128 interfaceC1128) {
            if (Build.VERSION.SDK_INT >= 16) {
                Notification.BigTextStyle bigText = new Notification.BigTextStyle(interfaceC1128.mo4868()).setBigContentTitle(this.f5247).bigText(this.f5469);
                if (this.f5248) {
                    bigText.setSummaryText(this.f5249);
                }
            }
        }

        @Override
        @InterfaceC0300
        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public String mo4505() {
            return f5468;
        }

        @InterfaceC0300
        public C1107 m4774(@InterfaceC0265 CharSequence charSequence) {
            this.f5247 = C1090.m4581(charSequence);
            return this;
        }

        @Override
        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public void mo4506(@InterfaceC0300 Bundle bundle) {
            super.mo4506(bundle);
            this.f5469 = bundle.getCharSequence(C1078.f5212);
        }

        @Override
        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public void mo4507(@InterfaceC0300 Bundle bundle) {
            super.mo4507(bundle);
            bundle.remove(C1078.f5212);
        }

        @InterfaceC0300
        public C1107 m4775(@InterfaceC0265 CharSequence charSequence) {
            this.f5469 = C1090.m4581(charSequence);
            return this;
        }

        @InterfaceC0300
        public C1107 m4776(@InterfaceC0265 CharSequence charSequence) {
            this.f5249 = C1090.m4581(charSequence);
            this.f5248 = true;
            return this;
        }

        @Override
        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public void mo4511(@InterfaceC0300 Bundle bundle) {
            super.mo4511(bundle);
            if (Build.VERSION.SDK_INT < 21) {
                bundle.putCharSequence(C1078.f5212, this.f5469);
            }
        }

        public C1107(@InterfaceC0265 C1090 c1090) {
            m4514(c1090);
        }
    }

    @Deprecated
    public C1078() {
    }

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

    @InterfaceC0300
    @InterfaceC0260(20)
    public static C1080 m4461(@InterfaceC0300 Notification.Action action) {
        C1135[] c1135Arr;
        int i;
        RemoteInput[] remoteInputs = action.getRemoteInputs();
        if (remoteInputs == null) {
            c1135Arr = null;
        } else {
            C1135[] c1135Arr2 = new C1135[remoteInputs.length];
            for (int i2 = 0; i2 < remoteInputs.length; i2++) {
                RemoteInput remoteInput = remoteInputs[i2];
                c1135Arr2[i2] = new C1135(remoteInput.getResultKey(), remoteInput.getLabel(), remoteInput.getChoices(), remoteInput.getAllowFreeFormInput(), Build.VERSION.SDK_INT >= 29 ? remoteInput.getEditChoicesBeforeSending() : 0, remoteInput.getExtras(), null);
            }
            c1135Arr = c1135Arr2;
        }
        int i3 = Build.VERSION.SDK_INT;
        boolean z = i3 >= 24 ? action.getExtras().getBoolean(C1142.f5641) || action.getAllowGeneratedReplies() : action.getExtras().getBoolean(C1142.f5641);
        boolean z2 = action.getExtras().getBoolean(C1080.f5256, true);
        int semanticAction = i3 >= 28 ? action.getSemanticAction() : action.getExtras().getInt(C1080.f5263, 0);
        boolean isContextual = i3 >= 29 ? action.isContextual() : false;
        if (i3 < 23) {
            return new C1080(action.icon, action.title, action.actionIntent, action.getExtras(), c1135Arr, (C1135[]) null, z, semanticAction, z2, isContextual);
        }
        if (action.getIcon() != null || (i = action.icon) == 0) {
            return new C1080(action.getIcon() != null ? IconCompat.m13864(action.getIcon()) : null, action.title, action.actionIntent, action.getExtras(), c1135Arr, (C1135[]) null, z, semanticAction, z2, isContextual);
        }
        return new C1080(i, action.title, action.actionIntent, action.getExtras(), c1135Arr, (C1135[]) null, z, semanticAction, z2, isContextual);
    }

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

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

    @InterfaceC0265
    public static C1060 m4464(@InterfaceC0300 Notification notification) {
        LocusId locusId;
        if (Build.VERSION.SDK_INT < 29 || (locusId = notification.getLocusId()) == null) {
            return null;
        }
        return C1060.m4398(locusId);
    }

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

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

    @InterfaceC0260(19)
    public static boolean m4467(@InterfaceC0300 Notification notification) {
        return notification.extras.getBoolean(f5187);
    }

    @InterfaceC0265
    public static Notification m4468(@InterfaceC0300 Notification notification) {
        if (Build.VERSION.SDK_INT >= 21) {
            return notification.publicVersion;
        }
        return null;
    }

    @InterfaceC0265
    public static C1085 m4469(@InterfaceC0300 Notification notification) {
        if (Build.VERSION.SDK_INT >= 29) {
            return C1085.m4554(notification.getBubbleMetadata());
        }
        return null;
    }

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

    @InterfaceC0265
    @InterfaceC0260(19)
    public static CharSequence m4471(@InterfaceC0300 Notification notification) {
        return notification.extras.getCharSequence(f5208);
    }

    @InterfaceC0265
    public static String m4472(@InterfaceC0300 Notification notification) {
        if (Build.VERSION.SDK_INT >= 21) {
            return notification.category;
        }
        return null;
    }

    @InterfaceC0265
    @InterfaceC0260(19)
    public static CharSequence m4473(@InterfaceC0300 Notification notification) {
        return notification.extras.getCharSequence(f5238);
    }

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

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

    @InterfaceC0265
    @InterfaceC0260(19)
    public static CharSequence m4476(@InterfaceC0300 Notification notification) {
        return notification.extras.getCharSequence(f5211);
    }

    public static boolean m4477(@InterfaceC0300 Notification notification) {
        int i = Build.VERSION.SDK_INT;
        if (i >= 20) {
            return (notification.flags & 256) != 0;
        }
        if (i >= 19) {
            return notification.extras.getBoolean(C1155.f5674);
        }
        if (i >= 16) {
            return C1142.m4928(notification).getBoolean(C1155.f5674);
        }
        return false;
    }

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

    @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
    public static boolean m4479(@InterfaceC0300 Notification notification) {
        return (notification.flags & 128) != 0;
    }

    @InterfaceC0265
    public static String m4480(@InterfaceC0300 Notification notification) {
        if (Build.VERSION.SDK_INT >= 26) {
            return notification.getShortcutId();
        }
        return null;
    }

    @InterfaceC0265
    public static String m4481(@InterfaceC0300 Notification notification) {
        int i = Build.VERSION.SDK_INT;
        if (i >= 20) {
            return notification.getSortKey();
        }
        if (i >= 19) {
            return notification.extras.getString(C1155.f5672);
        }
        if (i >= 16) {
            return C1142.m4928(notification).getString(C1155.f5672);
        }
        return null;
    }

    public static boolean m4482(@InterfaceC0300 Notification notification) {
        int i = Build.VERSION.SDK_INT;
        if (i >= 20) {
            return (notification.flags & 512) != 0;
        }
        if (i >= 19) {
            return notification.extras.getBoolean(C1155.f5673);
        }
        if (i >= 16) {
            return C1142.m4928(notification).getBoolean(C1155.f5673);
        }
        return false;
    }

    @InterfaceC0265
    public static C1080 m4483(@InterfaceC0300 Notification notification, int i) {
        int i2 = Build.VERSION.SDK_INT;
        if (i2 >= 20) {
            return m4461(notification.actions[i]);
        }
        if (i2 >= 19) {
            Notification.Action action = notification.actions[i];
            SparseArray sparseParcelableArray = notification.extras.getSparseParcelableArray(C1155.f5675);
            return C1142.m4929(action.icon, action.title, action.actionIntent, sparseParcelableArray != null ? (Bundle) sparseParcelableArray.get(i) : null);
        }
        if (i2 >= 16) {
            return C1142.m4935(notification, i);
        }
        return null;
    }

    @InterfaceC0300
    @InterfaceC0260(21)
    public static List<C1080> m4484(@InterfaceC0300 Notification notification) {
        Bundle bundle;
        Bundle bundle2;
        ArrayList arrayList = new ArrayList();
        if (Build.VERSION.SDK_INT >= 19 && (bundle = notification.extras.getBundle(C1096.f5392)) != null && (bundle2 = bundle.getBundle(C1096.f5394)) != null) {
            for (int i = 0; i < bundle2.size(); i++) {
                arrayList.add(C1142.m4924(bundle2.getBundle(Integer.toString(i))));
            }
        }
        return arrayList;
    }

    @InterfaceC0265
    public static String m4485(@InterfaceC0300 Notification notification) {
        int i = Build.VERSION.SDK_INT;
        if (i >= 20) {
            return notification.getGroup();
        }
        if (i >= 19) {
            return notification.extras.getString(C1155.f5670);
        }
        if (i >= 16) {
            return C1142.m4928(notification).getString(C1155.f5670);
        }
        return null;
    }

    @InterfaceC0265
    @InterfaceC0260(19)
    public static CharSequence m4486(@InterfaceC0300 Notification notification) {
        return notification.extras.getCharSequence(f5225);
    }

    @InterfaceC0265
    public static CharSequence m4487(@InterfaceC0300 Notification notification) {
        if (Build.VERSION.SDK_INT >= 26) {
            return notification.getSettingsText();
        }
        return null;
    }

    @InterfaceC0265
    public static Bundle m4488(@InterfaceC0300 Notification notification) {
        int i = Build.VERSION.SDK_INT;
        if (i >= 19) {
            return notification.extras;
        }
        if (i >= 16) {
            return C1142.m4928(notification);
        }
        return null;
    }

    @InterfaceC0265
    public static String m4489(@InterfaceC0300 Notification notification) {
        if (Build.VERSION.SDK_INT >= 26) {
            return notification.getChannelId();
        }
        return null;
    }

    @InterfaceC0260(19)
    public static boolean m4490(@InterfaceC0300 Notification notification) {
        return notification.extras.getBoolean(f5168);
    }

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

    @InterfaceC0300
    public static List<C1118> m4492(@InterfaceC0300 Notification notification) {
        String[] stringArray;
        ArrayList arrayList = new ArrayList();
        int i = Build.VERSION.SDK_INT;
        if (i >= 28) {
            ArrayList parcelableArrayList = notification.extras.getParcelableArrayList(f5177);
            if (parcelableArrayList != null && !parcelableArrayList.isEmpty()) {
                Iterator it = parcelableArrayList.iterator();
                while (it.hasNext()) {
                    arrayList.add(C1118.m4829((Person) it.next()));
                }
            }
        } else if (i >= 19 && (stringArray = notification.extras.getStringArray(f5223)) != null && stringArray.length != 0) {
            for (String str : stringArray) {
                arrayList.add(new C1118.C1119().m4843(str).m4846());
            }
        }
        return arrayList;
    }

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

    public static final class C1096 implements InterfaceC1089 {

        private static final String f5388 = "timestamp";

        private static final String f5389 = "car_conversation";

        private static final String f5390 = "text";

        private static final String f5391 = "app_color";

        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public static final String f5392 = "android.car.EXTENSIONS";

        private static final String f5393 = "on_reply";

        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public static final String f5394 = "invisible_actions";

        private static final String f5395 = "messages";

        private static final String f5396 = "remote_input";

        private static final String f5397 = "participants";

        private static final String f5398 = "on_read";

        private static final String f5399 = "author";

        private static final String f5400 = "large_icon";

        private C1097 f5401;

        private int f5402;

        private Bitmap f5403;

        @Deprecated
        public static class C1097 {

            private final C1135 f5404;

            private final long f5405;

            private final PendingIntent f5406;

            private final PendingIntent f5407;

            private final String[] f5408;

            private final String[] f5409;

            public static class C1098 {

                private final String f5410;

                private long f5411;

                private PendingIntent f5412;

                private C1135 f5413;

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

                private PendingIntent f5415;

                public C1098(@InterfaceC0300 String str) {
                    this.f5410 = str;
                }

                @InterfaceC0300
                public C1097 m4716() {
                    List<String> list = this.f5414;
                    return new C1097((String[]) list.toArray(new String[list.size()]), this.f5413, this.f5415, this.f5412, new String[]{this.f5410}, this.f5411);
                }

                @InterfaceC0300
                public C1098 m4717(@InterfaceC0265 PendingIntent pendingIntent) {
                    this.f5412 = pendingIntent;
                    return this;
                }

                @InterfaceC0300
                public C1098 m4718(long j) {
                    this.f5411 = j;
                    return this;
                }

                @InterfaceC0300
                public C1098 m4719(@InterfaceC0265 String str) {
                    if (str != null) {
                        this.f5414.add(str);
                    }
                    return this;
                }

                @InterfaceC0300
                public C1098 m4720(@InterfaceC0265 PendingIntent pendingIntent, @InterfaceC0265 C1135 c1135) {
                    this.f5413 = c1135;
                    this.f5415 = pendingIntent;
                    return this;
                }
            }

            public C1097(@InterfaceC0265 String[] strArr, @InterfaceC0265 C1135 c1135, @InterfaceC0265 PendingIntent pendingIntent, @InterfaceC0265 PendingIntent pendingIntent2, @InterfaceC0265 String[] strArr2, long j) {
                this.f5408 = strArr;
                this.f5404 = c1135;
                this.f5406 = pendingIntent2;
                this.f5407 = pendingIntent;
                this.f5409 = strArr2;
                this.f5405 = j;
            }

            @InterfaceC0265
            public String[] m4709() {
                return this.f5408;
            }

            @InterfaceC0265
            public C1135 m4710() {
                return this.f5404;
            }

            @InterfaceC0265
            public PendingIntent m4711() {
                return this.f5407;
            }

            @InterfaceC0265
            public String[] m4712() {
                return this.f5409;
            }

            @InterfaceC0265
            public String m4713() {
                String[] strArr = this.f5409;
                if (strArr.length > 0) {
                    return strArr[0];
                }
                return null;
            }

            public long m4714() {
                return this.f5405;
            }

            @InterfaceC0265
            public PendingIntent m4715() {
                return this.f5406;
            }
        }

        public C1096() {
            this.f5402 = 0;
        }

        @InterfaceC0260(21)
        private static Bundle m4701(@InterfaceC0300 C1097 c1097) {
            Bundle bundle = new Bundle();
            String str = (c1097.m4712() == null || c1097.m4712().length <= 1) ? null : c1097.m4712()[0];
            int length = c1097.m4709().length;
            Parcelable[] parcelableArr = new Parcelable[length];
            for (int i = 0; i < length; i++) {
                Bundle bundle2 = new Bundle();
                bundle2.putString("text", c1097.m4709()[i]);
                bundle2.putString(f5399, str);
                parcelableArr[i] = bundle2;
            }
            bundle.putParcelableArray(f5395, parcelableArr);
            C1135 m4710 = c1097.m4710();
            if (m4710 != null) {
                bundle.putParcelable(f5396, new RemoteInput.Builder(m4710.m4902()).setLabel(m4710.m4903()).setChoices(m4710.m4899()).setAllowFreeFormInput(m4710.m4896()).addExtras(m4710.m4898()).build());
            }
            bundle.putParcelable(f5393, c1097.m4711());
            bundle.putParcelable(f5398, c1097.m4715());
            bundle.putStringArray(f5397, c1097.m4712());
            bundle.putLong("timestamp", c1097.m4714());
            return bundle;
        }

        @InterfaceC0260(21)
        private static C1097 m4702(@InterfaceC0265 Bundle bundle) {
            String[] strArr;
            boolean z;
            if (bundle == null) {
                return null;
            }
            Parcelable[] parcelableArray = bundle.getParcelableArray(f5395);
            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(f5398);
            PendingIntent pendingIntent2 = (PendingIntent) bundle.getParcelable(f5393);
            RemoteInput remoteInput = (RemoteInput) bundle.getParcelable(f5396);
            String[] stringArray = bundle.getStringArray(f5397);
            if (stringArray == null || stringArray.length != 1) {
                return null;
            }
            return new C1097(strArr, remoteInput != null ? new C1135(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"));
        }

        @InterfaceC0300
        public C1096 m4703(@InterfaceC0277 int i) {
            this.f5402 = i;
            return this;
        }

        @InterfaceC0265
        public Bitmap m4704() {
            return this.f5403;
        }

        @InterfaceC0300
        public C1096 m4705(@InterfaceC0265 Bitmap bitmap) {
            this.f5403 = bitmap;
            return this;
        }

        @InterfaceC0277
        public int m4706() {
            return this.f5402;
        }

        @Override
        @InterfaceC0300
        public C1090 mo4577(@InterfaceC0300 C1090 c1090) {
            if (Build.VERSION.SDK_INT < 21) {
                return c1090;
            }
            Bundle bundle = new Bundle();
            Bitmap bitmap = this.f5403;
            if (bitmap != null) {
                bundle.putParcelable(f5400, bitmap);
            }
            int i = this.f5402;
            if (i != 0) {
                bundle.putInt(f5391, i);
            }
            C1097 c1097 = this.f5401;
            if (c1097 != null) {
                bundle.putBundle(f5389, m4701(c1097));
            }
            c1090.m4588().putBundle(f5392, bundle);
            return c1090;
        }

        @InterfaceC0300
        @Deprecated
        public C1096 m4707(@InterfaceC0265 C1097 c1097) {
            this.f5401 = c1097;
            return this;
        }

        @InterfaceC0265
        @Deprecated
        public C1097 m4708() {
            return this.f5401;
        }

        public C1096(@InterfaceC0300 Notification notification) {
            this.f5402 = 0;
            if (Build.VERSION.SDK_INT < 21) {
                return;
            }
            Bundle bundle = C1078.m4488(notification) == null ? null : C1078.m4488(notification).getBundle(f5392);
            if (bundle != null) {
                this.f5403 = (Bitmap) bundle.getParcelable(f5400);
                this.f5402 = bundle.getInt(f5391, 0);
                this.f5401 = m4702(bundle.getBundle(f5389));
            }
        }
    }

    public static class C1100 extends AbstractC1079 {

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

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

        public C1100() {
        }

        @Override
        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public void mo107(InterfaceC1128 interfaceC1128) {
            if (Build.VERSION.SDK_INT >= 16) {
                Notification.InboxStyle bigContentTitle = new Notification.InboxStyle(interfaceC1128.mo4868()).setBigContentTitle(this.f5247);
                if (this.f5248) {
                    bigContentTitle.setSummaryText(this.f5249);
                }
                Iterator<CharSequence> it = this.f5417.iterator();
                while (it.hasNext()) {
                    bigContentTitle.addLine(it.next());
                }
            }
        }

        @Override
        @InterfaceC0300
        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public String mo4505() {
            return f5416;
        }

        @InterfaceC0300
        public C1100 m4721(@InterfaceC0265 CharSequence charSequence) {
            this.f5247 = C1090.m4581(charSequence);
            return this;
        }

        @Override
        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public void mo4506(@InterfaceC0300 Bundle bundle) {
            super.mo4506(bundle);
            this.f5417.clear();
            if (bundle.containsKey(C1078.f5227)) {
                Collections.addAll(this.f5417, bundle.getCharSequenceArray(C1078.f5227));
            }
        }

        @Override
        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public void mo4507(@InterfaceC0300 Bundle bundle) {
            super.mo4507(bundle);
            bundle.remove(C1078.f5227);
        }

        @InterfaceC0300
        public C1100 m4722(@InterfaceC0265 CharSequence charSequence) {
            if (charSequence != null) {
                this.f5417.add(C1090.m4581(charSequence));
            }
            return this;
        }

        @InterfaceC0300
        public C1100 m4723(@InterfaceC0265 CharSequence charSequence) {
            this.f5249 = C1090.m4581(charSequence);
            this.f5248 = true;
            return this;
        }

        public C1100(@InterfaceC0265 C1090 c1090) {
            m4514(c1090);
        }
    }

    public static class C1094 extends AbstractC1079 {

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

        public static final int f5368 = 25;

        private C1118 f5370;

        @InterfaceC0265
        private CharSequence f5371;

        @InterfaceC0265
        private Boolean f5372;

        private final List<C1095> f5373 = new ArrayList();

        private final List<C1095> f5369 = new ArrayList();

        public C1094() {
        }

        @InterfaceC0265
        public static C1094 m4671(@InterfaceC0300 Notification notification) {
            AbstractC1079 m4501 = AbstractC1079.m4501(notification);
            if (m4501 instanceof C1094) {
                return (C1094) m4501;
            }
            return null;
        }

        private CharSequence m4672(@InterfaceC0300 C1095 c1095) {
            C0814 m3598 = C0814.m3598();
            SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder();
            boolean z = Build.VERSION.SDK_INT >= 21;
            int i = z ? C1313.f6219 : -1;
            CharSequence m4830 = c1095.m4694() == null ? "" : c1095.m4694().m4830();
            if (TextUtils.isEmpty(m4830)) {
                m4830 = this.f5370.m4830();
                if (z && this.f5250.m4637() != 0) {
                    i = this.f5250.m4637();
                }
            }
            CharSequence m3605 = m3598.m3605(m4830);
            spannableStringBuilder.append(m3605);
            spannableStringBuilder.setSpan(m4674(i), spannableStringBuilder.length() - m3605.length(), spannableStringBuilder.length(), 33);
            spannableStringBuilder.append((CharSequence) "  ").append(m3598.m3605(c1095.m4700() != null ? c1095.m4700() : ""));
            return spannableStringBuilder;
        }

        private boolean m4673() {
            for (int size = this.f5373.size() - 1; size >= 0; size--) {
                C1095 c1095 = this.f5373.get(size);
                if (c1095.m4694() != null && c1095.m4694().m4830() == null) {
                    return true;
                }
            }
            return false;
        }

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

        @InterfaceC0265
        private C1095 m4675() {
            for (int size = this.f5373.size() - 1; size >= 0; size--) {
                C1095 c1095 = this.f5373.get(size);
                if (c1095.m4694() != null && !TextUtils.isEmpty(c1095.m4694().m4830())) {
                    return c1095;
                }
            }
            if (this.f5373.isEmpty()) {
                return null;
            }
            return this.f5373.get(r0.size() - 1);
        }

        @Override
        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public void mo107(InterfaceC1128 interfaceC1128) {
            m4680(m4686());
            int i = Build.VERSION.SDK_INT;
            if (i >= 24) {
                Notification.MessagingStyle messagingStyle = i >= 28 ? new Notification.MessagingStyle(this.f5370.m4836()) : new Notification.MessagingStyle(this.f5370.m4830());
                Iterator<C1095> it = this.f5373.iterator();
                while (it.hasNext()) {
                    messagingStyle.addMessage(it.next().m4698());
                }
                if (Build.VERSION.SDK_INT >= 26) {
                    Iterator<C1095> it2 = this.f5369.iterator();
                    while (it2.hasNext()) {
                        messagingStyle.addHistoricMessage(it2.next().m4698());
                    }
                }
                if (this.f5372.booleanValue() || Build.VERSION.SDK_INT >= 28) {
                    messagingStyle.setConversationTitle(this.f5371);
                }
                if (Build.VERSION.SDK_INT >= 28) {
                    messagingStyle.setGroupConversation(this.f5372.booleanValue());
                }
                messagingStyle.setBuilder(interfaceC1128.mo4868());
                return;
            }
            C1095 m4675 = m4675();
            if (this.f5371 != null && this.f5372.booleanValue()) {
                interfaceC1128.mo4868().setContentTitle(this.f5371);
            } else if (m4675 != null) {
                interfaceC1128.mo4868().setContentTitle("");
                if (m4675.m4694() != null) {
                    interfaceC1128.mo4868().setContentTitle(m4675.m4694().m4830());
                }
            }
            if (m4675 != null) {
                interfaceC1128.mo4868().setContentText(this.f5371 != null ? m4672(m4675) : m4675.m4700());
            }
            if (i >= 16) {
                SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder();
                boolean z = this.f5371 != null || m4673();
                for (int size = this.f5373.size() - 1; size >= 0; size--) {
                    C1095 c1095 = this.f5373.get(size);
                    CharSequence m4672 = z ? m4672(c1095) : c1095.m4700();
                    if (size != this.f5373.size() - 1) {
                        spannableStringBuilder.insert(0, (CharSequence) "\n");
                    }
                    spannableStringBuilder.insert(0, m4672);
                }
                new Notification.BigTextStyle(interfaceC1128.mo4868()).setBigContentTitle(null).bigText(spannableStringBuilder);
            }
        }

        @Override
        @InterfaceC0300
        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public String mo4505() {
            return f5367;
        }

        @InterfaceC0300
        public C1094 m4676(@InterfaceC0265 CharSequence charSequence) {
            this.f5371 = charSequence;
            return this;
        }

        @InterfaceC0300
        public List<C1095> m4677() {
            return this.f5373;
        }

        @InterfaceC0300
        public C1094 m4678(@InterfaceC0265 C1095 c1095) {
            if (c1095 != null) {
                this.f5373.add(c1095);
                if (this.f5373.size() > 25) {
                    this.f5373.remove(0);
                }
            }
            return this;
        }

        @InterfaceC0265
        @Deprecated
        public CharSequence m4679() {
            return this.f5370.m4830();
        }

        @Override
        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public void mo4506(@InterfaceC0300 Bundle bundle) {
            super.mo4506(bundle);
            this.f5373.clear();
            if (bundle.containsKey(C1078.f5215)) {
                this.f5370 = C1118.m4827(bundle.getBundle(C1078.f5215));
            } else {
                this.f5370 = new C1118.C1119().m4842(bundle.getString(C1078.f5231)).m4846();
            }
            CharSequence charSequence = bundle.getCharSequence(C1078.f5235);
            this.f5371 = charSequence;
            if (charSequence == null) {
                this.f5371 = bundle.getCharSequence(C1078.f5203);
            }
            Parcelable[] parcelableArray = bundle.getParcelableArray(C1078.f5169);
            if (parcelableArray != null) {
                this.f5373.addAll(C1095.m4688(parcelableArray));
            }
            Parcelable[] parcelableArray2 = bundle.getParcelableArray(C1078.f5243);
            if (parcelableArray2 != null) {
                this.f5369.addAll(C1095.m4688(parcelableArray2));
            }
            if (bundle.containsKey(C1078.f5205)) {
                this.f5372 = Boolean.valueOf(bundle.getBoolean(C1078.f5205));
            }
        }

        @Override
        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public void mo4507(@InterfaceC0300 Bundle bundle) {
            super.mo4507(bundle);
            bundle.remove(C1078.f5215);
            bundle.remove(C1078.f5231);
            bundle.remove(C1078.f5235);
            bundle.remove(C1078.f5203);
            bundle.remove(C1078.f5169);
            bundle.remove(C1078.f5243);
            bundle.remove(C1078.f5205);
        }

        @InterfaceC0300
        public C1094 m4680(boolean z) {
            this.f5372 = Boolean.valueOf(z);
            return this;
        }

        @InterfaceC0300
        public C1094 m4681(@InterfaceC0265 C1095 c1095) {
            if (c1095 != null) {
                this.f5369.add(c1095);
                if (this.f5369.size() > 25) {
                    this.f5369.remove(0);
                }
            }
            return this;
        }

        @InterfaceC0300
        public C1094 m4682(@InterfaceC0265 CharSequence charSequence, long j, @InterfaceC0265 C1118 c1118) {
            m4678(new C1095(charSequence, j, c1118));
            return this;
        }

        @InterfaceC0300
        public List<C1095> m4683() {
            return this.f5369;
        }

        @Override
        public void mo4511(@InterfaceC0300 Bundle bundle) {
            super.mo4511(bundle);
            bundle.putCharSequence(C1078.f5231, this.f5370.m4830());
            bundle.putBundle(C1078.f5215, this.f5370.m4834());
            bundle.putCharSequence(C1078.f5203, this.f5371);
            if (this.f5371 != null && this.f5372.booleanValue()) {
                bundle.putCharSequence(C1078.f5235, this.f5371);
            }
            if (!this.f5373.isEmpty()) {
                bundle.putParcelableArray(C1078.f5169, C1095.m4690(this.f5373));
            }
            if (!this.f5369.isEmpty()) {
                bundle.putParcelableArray(C1078.f5243, C1095.m4690(this.f5369));
            }
            Boolean bool = this.f5372;
            if (bool != null) {
                bundle.putBoolean(C1078.f5205, bool.booleanValue());
            }
        }

        @InterfaceC0300
        @Deprecated
        public C1094 m4684(@InterfaceC0265 CharSequence charSequence, long j, @InterfaceC0265 CharSequence charSequence2) {
            this.f5373.add(new C1095(charSequence, j, new C1118.C1119().m4842(charSequence2).m4846()));
            if (this.f5373.size() > 25) {
                this.f5373.remove(0);
            }
            return this;
        }

        @InterfaceC0300
        public C1118 m4685() {
            return this.f5370;
        }

        public boolean m4686() {
            C1090 c1090 = this.f5250;
            if (c1090 != null && c1090.f5347.getApplicationInfo().targetSdkVersion < 28 && this.f5372 == null) {
                return this.f5371 != null;
            }
            Boolean bool = this.f5372;
            if (bool != null) {
                return bool.booleanValue();
            }
            return false;
        }

        @InterfaceC0265
        public CharSequence m4687() {
            return this.f5371;
        }

        @Deprecated
        public C1094(@InterfaceC0300 CharSequence charSequence) {
            this.f5370 = new C1118.C1119().m4842(charSequence).m4846();
        }

        public static final class C1095 {

            public static final String f5374 = "type";

            public static final String f5375 = "text";

            public static final String f5376 = "person";

            public static final String f5377 = "time";

            public static final String f5378 = "uri";

            public static final String f5379 = "extras";

            public static final String f5380 = "sender_person";

            public static final String f5381 = "sender";

            private final long f5382;

            @InterfaceC0265
            private Uri f5383;

            private Bundle f5384;

            @InterfaceC0265
            private final C1118 f5385;

            private final CharSequence f5386;

            @InterfaceC0265
            private String f5387;

            public C1095(@InterfaceC0265 CharSequence charSequence, long j, @InterfaceC0265 C1118 c1118) {
                this.f5384 = new Bundle();
                this.f5386 = charSequence;
                this.f5382 = j;
                this.f5385 = c1118;
            }

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

            @InterfaceC0300
            private Bundle m4689() {
                Bundle bundle = new Bundle();
                CharSequence charSequence = this.f5386;
                if (charSequence != null) {
                    bundle.putCharSequence(f5375, charSequence);
                }
                bundle.putLong("time", this.f5382);
                C1118 c1118 = this.f5385;
                if (c1118 != null) {
                    bundle.putCharSequence(f5381, c1118.m4830());
                    if (Build.VERSION.SDK_INT >= 28) {
                        bundle.putParcelable(f5380, this.f5385.m4836());
                    } else {
                        bundle.putBundle(f5376, this.f5385.m4834());
                    }
                }
                String str = this.f5387;
                if (str != null) {
                    bundle.putString("type", str);
                }
                Uri uri = this.f5383;
                if (uri != null) {
                    bundle.putParcelable(f5378, uri);
                }
                Bundle bundle2 = this.f5384;
                if (bundle2 != null) {
                    bundle.putBundle(f5379, bundle2);
                }
                return bundle;
            }

            @InterfaceC0300
            public static Bundle[] m4690(@InterfaceC0300 List<C1095> list) {
                Bundle[] bundleArr = new Bundle[list.size()];
                int size = list.size();
                for (int i = 0; i < size; i++) {
                    bundleArr[i] = list.get(i).m4689();
                }
                return bundleArr;
            }

            @InterfaceC0265
            public static C1095 m4691(@InterfaceC0300 Bundle bundle) {
                try {
                    if (bundle.containsKey(f5375) && bundle.containsKey("time")) {
                        C1095 c1095 = new C1095(bundle.getCharSequence(f5375), bundle.getLong("time"), bundle.containsKey(f5376) ? C1118.m4827(bundle.getBundle(f5376)) : (!bundle.containsKey(f5380) || Build.VERSION.SDK_INT < 28) ? bundle.containsKey(f5381) ? new C1118.C1119().m4842(bundle.getCharSequence(f5381)).m4846() : null : C1118.m4829((Person) bundle.getParcelable(f5380)));
                        if (bundle.containsKey("type") && bundle.containsKey(f5378)) {
                            c1095.m4697(bundle.getString("type"), (Uri) bundle.getParcelable(f5378));
                        }
                        if (bundle.containsKey(f5379)) {
                            c1095.m4695().putAll(bundle.getBundle(f5379));
                        }
                        return c1095;
                    }
                } catch (ClassCastException unused) {
                }
                return null;
            }

            @InterfaceC0265
            public String m4692() {
                return this.f5387;
            }

            public long m4693() {
                return this.f5382;
            }

            @InterfaceC0265
            public C1118 m4694() {
                return this.f5385;
            }

            @InterfaceC0300
            public Bundle m4695() {
                return this.f5384;
            }

            @InterfaceC0265
            @Deprecated
            public CharSequence m4696() {
                C1118 c1118 = this.f5385;
                if (c1118 == null) {
                    return null;
                }
                return c1118.m4830();
            }

            @InterfaceC0300
            public C1095 m4697(@InterfaceC0265 String str, @InterfaceC0265 Uri uri) {
                this.f5387 = str;
                this.f5383 = uri;
                return this;
            }

            @InterfaceC0300
            @InterfaceC0260(24)
            @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
            public Notification.MessagingStyle.Message m4698() {
                Notification.MessagingStyle.Message message;
                C1118 m4694 = m4694();
                if (Build.VERSION.SDK_INT >= 28) {
                    message = new Notification.MessagingStyle.Message(m4700(), m4693(), m4694 != null ? m4694.m4836() : null);
                } else {
                    message = new Notification.MessagingStyle.Message(m4700(), m4693(), m4694 != null ? m4694.m4830() : null);
                }
                if (m4692() != null) {
                    message.setData(m4692(), m4699());
                }
                return message;
            }

            @InterfaceC0265
            public Uri m4699() {
                return this.f5383;
            }

            @InterfaceC0265
            public CharSequence m4700() {
                return this.f5386;
            }

            @Deprecated
            public C1095(@InterfaceC0265 CharSequence charSequence, long j, @InterfaceC0265 CharSequence charSequence2) {
                this(charSequence, j, new C1118.C1119().m4842(charSequence2).m4846());
            }
        }

        public C1094(@InterfaceC0300 C1118 c1118) {
            if (!TextUtils.isEmpty(c1118.m4830())) {
                this.f5370 = c1118;
                return;
            }
            throw new IllegalArgumentException("User's name must not be empty.");
        }
    }

    public static final class C1102 implements InterfaceC1089 {

        private static final int f5418 = 80;

        @Deprecated
        public static final int f5419 = 0;

        @Deprecated
        public static final int f5420 = 4;

        private static final int f5421 = 8;

        private static final int f5422 = 64;

        private static final String f5423 = "contentIconGravity";

        @Deprecated
        public static final int f5424 = 5;

        private static final int f5425 = 4;

        private static final String f5426 = "gravity";

        private static final String f5427 = "pages";

        private static final String f5428 = "dismissalId";

        private static final String f5429 = "actions";

        private static final int f5430 = 32;

        @Deprecated
        public static final int f5431 = 0;

        @Deprecated
        public static final int f5432 = -1;

        @Deprecated
        public static final int f5433 = 3;

        @Deprecated
        public static final int f5434 = 1;

        private static final int f5435 = 16;

        private static final String f5436 = "bridgeTag";

        private static final String f5437 = "displayIntent";

        private static final String f5438 = "background";

        private static final String f5439 = "customContentHeight";

        private static final int f5440 = 2;

        @Deprecated
        public static final int f5441 = 2;

        public static final int f5442 = -1;

        private static final String f5443 = "contentIcon";

        private static final int f5444 = 1;

        private static final String f5445 = "flags";

        private static final String f5446 = "hintScreenTimeout";

        private static final int f5447 = 8388613;

        private static final String f5448 = "contentActionIndex";

        private static final int f5449 = 1;

        private static final String f5450 = "customSizePreset";

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

        private int f5452;

        private int f5453;

        private int f5454;

        private int f5455;

        private ArrayList<Notification> f5456;

        private String f5457;

        private int f5458;

        private int f5459;

        private int f5460;

        private PendingIntent f5461;

        private ArrayList<C1080> f5462;

        private String f5463;

        private int f5464;

        private Bitmap f5465;

        public C1102() {
            this.f5462 = new ArrayList<>();
            this.f5452 = 1;
            this.f5456 = new ArrayList<>();
            this.f5455 = 8388613;
            this.f5458 = -1;
            this.f5464 = 0;
            this.f5459 = 80;
        }

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

        @InterfaceC0260(20)
        private static Notification.Action m4725(C1080 c1080) {
            Notification.Action.Builder builder;
            int i = Build.VERSION.SDK_INT;
            if (i >= 23) {
                IconCompat m4517 = c1080.m4517();
                builder = new Notification.Action.Builder(m4517 == null ? null : m4517.m13871(), c1080.m4518(), c1080.m4524());
            } else {
                IconCompat m45172 = c1080.m4517();
                builder = new Notification.Action.Builder((m45172 == null || m45172.m13870() != 2) ? 0 : m45172.m13879(), c1080.m4518(), c1080.m4524());
            }
            Bundle bundle = c1080.m4520() != null ? new Bundle(c1080.m4520()) : new Bundle();
            bundle.putBoolean(C1142.f5641, c1080.m4516());
            if (i >= 24) {
                builder.setAllowGeneratedReplies(c1080.m4516());
            }
            builder.addExtras(bundle);
            C1135[] m4519 = c1080.m4519();
            if (m4519 != null) {
                for (RemoteInput remoteInput : C1135.m4888(m4519)) {
                    builder.addRemoteInput(remoteInput);
                }
            }
            return builder.build();
        }

        @InterfaceC0300
        public C1102 m4726(boolean z) {
            m4724(8, z);
            return this;
        }

        public boolean m4727() {
            return (this.f5452 & 1) != 0;
        }

        @InterfaceC0300
        public C1102 m4728(@InterfaceC0300 C1080 c1080) {
            this.f5462.add(c1080);
            return this;
        }

        @InterfaceC0300
        public C1102 m4729() {
            this.f5462.clear();
            return this;
        }

        @InterfaceC0300
        public List<C1080> m4730() {
            return this.f5462;
        }

        @InterfaceC0265
        @Deprecated
        public PendingIntent m4731() {
            return this.f5461;
        }

        @InterfaceC0300
        @Deprecated
        public C1102 m4732(boolean z) {
            m4724(32, z);
            return this;
        }

        @InterfaceC0300
        @Deprecated
        public C1102 m4733(boolean z) {
            m4724(2, z);
            return this;
        }

        @InterfaceC0300
        public C1102 m4734(@InterfaceC0265 String str) {
            this.f5463 = str;
            return this;
        }

        @Deprecated
        public int m4735() {
            return this.f5459;
        }

        @InterfaceC0300
        @Deprecated
        public C1102 m4736(int i) {
            this.f5459 = i;
            return this;
        }

        @InterfaceC0300
        public C1102 m4737(boolean z) {
            m4724(1, z);
            return this;
        }

        @InterfaceC0300
        @Deprecated
        public List<Notification> m4738() {
            return this.f5456;
        }

        @InterfaceC0300
        @Deprecated
        public C1102 m4739(int i) {
            this.f5464 = i;
            return this;
        }

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

        @InterfaceC0300
        @Deprecated
        public C1102 m4741() {
            this.f5456.clear();
            return this;
        }

        @InterfaceC0300
        @Deprecated
        public C1102 m4742(@InterfaceC0300 Notification notification) {
            this.f5456.add(notification);
            return this;
        }

        @InterfaceC0300
        public C1102 m4743(boolean z) {
            m4724(64, z);
            return this;
        }

        public int m4744() {
            return this.f5458;
        }

        @InterfaceC0300
        public C1102 clone() {
            C1102 c1102 = new C1102();
            c1102.f5462 = new ArrayList<>(this.f5462);
            c1102.f5452 = this.f5452;
            c1102.f5461 = this.f5461;
            c1102.f5456 = new ArrayList<>(this.f5456);
            c1102.f5465 = this.f5465;
            c1102.f5453 = this.f5453;
            c1102.f5455 = this.f5455;
            c1102.f5458 = this.f5458;
            c1102.f5464 = this.f5464;
            c1102.f5454 = this.f5454;
            c1102.f5459 = this.f5459;
            c1102.f5460 = this.f5460;
            c1102.f5457 = this.f5457;
            c1102.f5463 = this.f5463;
            return c1102;
        }

        @InterfaceC0265
        @Deprecated
        public Bitmap m4746() {
            return this.f5465;
        }

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

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

        @InterfaceC0265
        public String m4749() {
            return this.f5463;
        }

        @InterfaceC0265
        public String m4750() {
            return this.f5457;
        }

        @InterfaceC0300
        public C1102 m4751(@InterfaceC0300 List<C1080> list) {
            this.f5462.addAll(list);
            return this;
        }

        @Deprecated
        public int m4752() {
            return this.f5454;
        }

        @InterfaceC0300
        @Deprecated
        public C1102 m4753(boolean z) {
            m4724(16, z);
            return this;
        }

        @InterfaceC0300
        public C1102 m4754(@InterfaceC0265 String str) {
            this.f5457 = str;
            return this;
        }

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

        public boolean m4756() {
            return (this.f5452 & 8) != 0;
        }

        @InterfaceC0300
        @Deprecated
        public C1102 m4757(int i) {
            this.f5455 = i;
            return this;
        }

        @Override
        @InterfaceC0300
        public C1090 mo4577(@InterfaceC0300 C1090 c1090) {
            Bundle bundle = new Bundle();
            if (!this.f5462.isEmpty()) {
                if (Build.VERSION.SDK_INT >= 16) {
                    ArrayList<? extends Parcelable> arrayList = new ArrayList<>(this.f5462.size());
                    Iterator<C1080> it = this.f5462.iterator();
                    while (it.hasNext()) {
                        C1080 next = it.next();
                        int i = Build.VERSION.SDK_INT;
                        if (i >= 20) {
                            arrayList.add(m4725(next));
                        } else if (i >= 16) {
                            arrayList.add(C1142.m4923(next));
                        }
                    }
                    bundle.putParcelableArrayList(f5429, arrayList);
                } else {
                    bundle.putParcelableArrayList(f5429, null);
                }
            }
            int i2 = this.f5452;
            if (i2 != 1) {
                bundle.putInt(f5445, i2);
            }
            PendingIntent pendingIntent = this.f5461;
            if (pendingIntent != null) {
                bundle.putParcelable(f5437, pendingIntent);
            }
            if (!this.f5456.isEmpty()) {
                ArrayList<Notification> arrayList2 = this.f5456;
                bundle.putParcelableArray(f5427, (Parcelable[]) arrayList2.toArray(new Notification[arrayList2.size()]));
            }
            Bitmap bitmap = this.f5465;
            if (bitmap != null) {
                bundle.putParcelable(f5438, bitmap);
            }
            int i3 = this.f5453;
            if (i3 != 0) {
                bundle.putInt(f5443, i3);
            }
            int i4 = this.f5455;
            if (i4 != 8388613) {
                bundle.putInt(f5423, i4);
            }
            int i5 = this.f5458;
            if (i5 != -1) {
                bundle.putInt(f5448, i5);
            }
            int i6 = this.f5464;
            if (i6 != 0) {
                bundle.putInt(f5450, i6);
            }
            int i7 = this.f5454;
            if (i7 != 0) {
                bundle.putInt(f5439, i7);
            }
            int i8 = this.f5459;
            if (i8 != 80) {
                bundle.putInt(f5426, i8);
            }
            int i9 = this.f5460;
            if (i9 != 0) {
                bundle.putInt(f5446, i9);
            }
            String str = this.f5457;
            if (str != null) {
                bundle.putString(f5428, str);
            }
            String str2 = this.f5463;
            if (str2 != null) {
                bundle.putString(f5436, str2);
            }
            c1090.m4588().putBundle(f5451, bundle);
            return c1090;
        }

        @Deprecated
        public int m4758() {
            return this.f5464;
        }

        @Deprecated
        public int m4759() {
            return this.f5455;
        }

        @InterfaceC0300
        @Deprecated
        public C1102 m4760(@InterfaceC0265 Bitmap bitmap) {
            this.f5465 = bitmap;
            return this;
        }

        @InterfaceC0300
        @Deprecated
        public C1102 m4761(int i) {
            this.f5460 = i;
            return this;
        }

        @Deprecated
        public int m4762() {
            return this.f5460;
        }

        @InterfaceC0300
        @Deprecated
        public C1102 m4763(int i) {
            this.f5454 = i;
            return this;
        }

        @Deprecated
        public int m4764() {
            return this.f5453;
        }

        @InterfaceC0300
        @Deprecated
        public C1102 m4765(boolean z) {
            m4724(4, z);
            return this;
        }

        @InterfaceC0300
        public C1102 m4766(int i) {
            this.f5458 = i;
            return this;
        }

        @InterfaceC0300
        @Deprecated
        public C1102 m4767(@InterfaceC0265 PendingIntent pendingIntent) {
            this.f5461 = pendingIntent;
            return this;
        }

        @InterfaceC0300
        @Deprecated
        public C1102 m4768(int i) {
            this.f5453 = i;
            return this;
        }

        public boolean m4769() {
            return (this.f5452 & 64) != 0;
        }

        @InterfaceC0300
        @Deprecated
        public C1102 m4770(@InterfaceC0300 List<Notification> list) {
            this.f5456.addAll(list);
            return this;
        }

        public C1102(@InterfaceC0300 Notification notification) {
            this.f5462 = new ArrayList<>();
            this.f5452 = 1;
            this.f5456 = new ArrayList<>();
            this.f5455 = 8388613;
            this.f5458 = -1;
            this.f5464 = 0;
            this.f5459 = 80;
            Bundle m4488 = C1078.m4488(notification);
            Bundle bundle = m4488 != null ? m4488.getBundle(f5451) : null;
            if (bundle != null) {
                ArrayList parcelableArrayList = bundle.getParcelableArrayList(f5429);
                if (Build.VERSION.SDK_INT >= 16 && parcelableArrayList != null) {
                    int size = parcelableArrayList.size();
                    C1080[] c1080Arr = new C1080[size];
                    for (int i = 0; i < size; i++) {
                        int i2 = Build.VERSION.SDK_INT;
                        if (i2 >= 20) {
                            c1080Arr[i] = C1078.m4461((Notification.Action) parcelableArrayList.get(i));
                        } else if (i2 >= 16) {
                            c1080Arr[i] = C1142.m4924((Bundle) parcelableArrayList.get(i));
                        }
                    }
                    Collections.addAll(this.f5462, c1080Arr);
                }
                this.f5452 = bundle.getInt(f5445, 1);
                this.f5461 = (PendingIntent) bundle.getParcelable(f5437);
                Notification[] m4466 = C1078.m4466(bundle, f5427);
                if (m4466 != null) {
                    Collections.addAll(this.f5456, m4466);
                }
                this.f5465 = (Bitmap) bundle.getParcelable(f5438);
                this.f5453 = bundle.getInt(f5443);
                this.f5455 = bundle.getInt(f5423, 8388613);
                this.f5458 = bundle.getInt(f5448, -1);
                this.f5464 = bundle.getInt(f5450, 0);
                this.f5454 = bundle.getInt(f5439);
                this.f5459 = bundle.getInt(f5426, 80);
                this.f5460 = bundle.getInt(f5446);
                this.f5457 = bundle.getString(f5428);
                this.f5463 = bundle.getString(f5436);
            }
        }
    }

    public static class C1090 {

        private static final int f5313 = 5120;

        public Icon f5314;

        public boolean f5315;

        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public ArrayList<C1080> f5316;

        public CharSequence f5317;

        public Bitmap f5318;

        public CharSequence[] f5319;

        public long f5320;

        public C1085 f5321;

        public Bundle f5322;

        public int f5323;

        public C1060 f5324;

        public RemoteViews f5325;

        public boolean f5326;

        public RemoteViews f5327;

        public boolean f5328;

        public PendingIntent f5329;

        public ArrayList<C1080> f5330;

        public boolean f5331;

        public int f5332;

        public PendingIntent f5333;

        public CharSequence f5334;

        public int f5335;

        public boolean f5336;

        public int f5337;

        public CharSequence f5338;

        @InterfaceC0300
        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public ArrayList<C1118> f5339;

        public AbstractC1079 f5340;

        public int f5341;

        public String f5342;

        public boolean f5343;

        public boolean f5344;

        public Notification f5345;

        public String f5346;

        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public Context f5347;

        public CharSequence f5348;

        public boolean f5349;

        @Deprecated
        public ArrayList<String> f5350;

        public String f5351;

        public Notification f5352;

        public String f5353;

        public RemoteViews f5354;

        public boolean f5355;

        public boolean f5356;

        public RemoteViews f5357;

        public int f5358;

        public int f5359;

        public int f5360;

        public String f5361;

        public CharSequence f5362;

        @InterfaceC0260(19)
        public C1090(@InterfaceC0300 Context context, @InterfaceC0300 Notification notification) {
            this(context, C1078.m4489(notification));
            ArrayList parcelableArrayList;
            Bundle bundle = notification.extras;
            AbstractC1079 m4501 = AbstractC1079.m4501(notification);
            m4594(C1078.m4471(notification)).m4633(C1078.m4476(notification)).m4629(C1078.m4473(notification)).m4596(C1078.m4486(notification)).m4598(C1078.m4487(notification)).m4640(m4501).m4655(notification.contentIntent).m4603(C1078.m4485(notification)).m4614(C1078.m4482(notification)).m4651(C1078.m4464(notification)).m4597(notification.when).m4639(C1078.m4467(notification)).m4630(C1078.m4490(notification)).m4631(C1078.m4493(notification)).m4626(C1078.m4475(notification)).m4627(C1078.m4474(notification)).m4635(C1078.m4477(notification)).m4628(notification.largeIcon).m4643(C1078.m4462(notification)).m4654(C1078.m4472(notification)).m4592(C1078.m4469(notification)).m4659(notification.number).m4641(notification.tickerText).m4655(notification.contentIntent).m4645(notification.deleteIntent).m4642(notification.fullScreenIntent, C1078.m4479(notification)).m4649(notification.sound, notification.audioStreamType).m4593(notification.vibrate).m4648(notification.ledARGB, notification.ledOnMS, notification.ledOffMS).m4590(notification.defaults).m4601(notification.priority).m4602(C1078.m4463(notification)).m4599(C1078.m4491(notification)).m4625(C1078.m4468(notification)).m4616(C1078.m4481(notification)).m4662(C1078.m4465(notification)).m4658(C1078.m4480(notification)).m4591(bundle.getInt(C1078.f5239), bundle.getInt(C1078.f5207), bundle.getBoolean(C1078.f5213)).m4605(C1078.m4470(notification)).m4644(notification.icon, notification.iconLevel).m4621(m4579(notification, m4501));
            if (Build.VERSION.SDK_INT >= 23) {
                this.f5314 = notification.getSmallIcon();
            }
            Notification.Action[] actionArr = notification.actions;
            if (actionArr != null && actionArr.length != 0) {
                for (Notification.Action action : actionArr) {
                    m4584(C1080.C1084.m4542(action).m4549());
                }
            }
            if (Build.VERSION.SDK_INT >= 21) {
                List<C1080> m4484 = C1078.m4484(notification);
                if (!m4484.isEmpty()) {
                    Iterator<C1080> it = m4484.iterator();
                    while (it.hasNext()) {
                        m4661(it.next());
                    }
                }
            }
            String[] stringArray = notification.extras.getStringArray(C1078.f5223);
            if (stringArray != null && stringArray.length != 0) {
                for (String str : stringArray) {
                    m4608(str);
                }
            }
            if (Build.VERSION.SDK_INT >= 28 && (parcelableArrayList = notification.extras.getParcelableArrayList(C1078.f5177)) != null && !parcelableArrayList.isEmpty()) {
                Iterator it2 = parcelableArrayList.iterator();
                while (it2.hasNext()) {
                    m4586(C1118.m4829((Person) it2.next()));
                }
            }
            int i = Build.VERSION.SDK_INT;
            if (i >= 24 && bundle.containsKey(C1078.f5162)) {
                m4632(bundle.getBoolean(C1078.f5162));
            }
            if (i < 26 || !bundle.containsKey(C1078.f5201)) {
                return;
            }
            m4646(bundle.getBoolean(C1078.f5201));
        }

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

        @InterfaceC0265
        @InterfaceC0260(19)
        private static Bundle m4579(@InterfaceC0300 Notification notification, @InterfaceC0265 AbstractC1079 abstractC1079) {
            if (notification.extras == null) {
                return null;
            }
            Bundle bundle = new Bundle(notification.extras);
            bundle.remove(C1078.f5208);
            bundle.remove(C1078.f5211);
            bundle.remove(C1078.f5238);
            bundle.remove(C1078.f5225);
            bundle.remove(C1078.f5157);
            bundle.remove(C1078.f5198);
            bundle.remove(C1078.f5187);
            bundle.remove(C1078.f5207);
            bundle.remove(C1078.f5239);
            bundle.remove(C1078.f5213);
            bundle.remove(C1078.f5162);
            bundle.remove(C1078.f5201);
            bundle.remove(C1078.f5177);
            bundle.remove(C1078.f5223);
            bundle.remove(C1155.f5672);
            bundle.remove(C1155.f5670);
            bundle.remove(C1155.f5673);
            bundle.remove(C1155.f5674);
            bundle.remove(C1155.f5675);
            Bundle bundle2 = bundle.getBundle(C1096.f5392);
            if (bundle2 != null) {
                Bundle bundle3 = new Bundle(bundle2);
                bundle3.remove(C1096.f5394);
                bundle.putBundle(C1096.f5392, bundle3);
            }
            if (abstractC1079 != null) {
                abstractC1079.mo4507(bundle);
            }
            return bundle;
        }

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

        @InterfaceC0265
        public static CharSequence m4581(@InterfaceC0265 CharSequence charSequence) {
            return (charSequence != null && charSequence.length() > f5313) ? charSequence.subSequence(0, f5313) : charSequence;
        }

        private boolean m4582() {
            AbstractC1079 abstractC1079 = this.f5340;
            return abstractC1079 == null || !abstractC1079.mo4512();
        }

        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public RemoteViews m4583() {
            return this.f5354;
        }

        @InterfaceC0300
        public C1090 m4584(@InterfaceC0265 C1080 c1080) {
            if (c1080 != null) {
                this.f5316.add(c1080);
            }
            return this;
        }

        @InterfaceC0300
        public C1090 m4585(@InterfaceC0265 Uri uri) {
            Notification notification = this.f5352;
            notification.sound = uri;
            notification.audioStreamType = -1;
            if (Build.VERSION.SDK_INT >= 21) {
                notification.audioAttributes = new AudioAttributes.Builder().setContentType(4).setUsage(5).build();
            }
            return this;
        }

        @InterfaceC0300
        public C1090 m4586(@InterfaceC0265 C1118 c1118) {
            if (c1118 != null) {
                this.f5339.add(c1118);
            }
            return this;
        }

        @InterfaceC0300
        public C1090 m4587() {
            this.f5330.clear();
            Bundle bundle = this.f5322.getBundle(C1096.f5392);
            if (bundle != null) {
                Bundle bundle2 = new Bundle(bundle);
                bundle2.remove(C1096.f5394);
                this.f5322.putBundle(C1096.f5392, bundle2);
            }
            return this;
        }

        @InterfaceC0300
        public Bundle m4588() {
            if (this.f5322 == null) {
                this.f5322 = new Bundle();
            }
            return this.f5322;
        }

        @InterfaceC0300
        public C1090 m4589(@InterfaceC0265 RemoteViews remoteViews) {
            this.f5354 = remoteViews;
            return this;
        }

        @InterfaceC0300
        public C1090 m4590(int i) {
            Notification notification = this.f5352;
            notification.defaults = i;
            if ((i & 4) != 0) {
                notification.flags |= 1;
            }
            return this;
        }

        @InterfaceC0300
        public C1090 m4591(int i, int i2, boolean z) {
            this.f5323 = i;
            this.f5335 = i2;
            this.f5336 = z;
            return this;
        }

        @InterfaceC0300
        public C1090 m4592(@InterfaceC0265 C1085 c1085) {
            this.f5321 = c1085;
            return this;
        }

        @InterfaceC0300
        public C1090 m4593(@InterfaceC0265 long[] jArr) {
            this.f5352.vibrate = jArr;
            return this;
        }

        @InterfaceC0300
        public C1090 m4594(@InterfaceC0265 CharSequence charSequence) {
            this.f5362 = m4581(charSequence);
            return this;
        }

        @InterfaceC0300
        @Deprecated
        public C1090 m4595() {
            this.f5356 = true;
            return this;
        }

        @InterfaceC0300
        public C1090 m4596(@InterfaceC0265 CharSequence charSequence) {
            this.f5348 = m4581(charSequence);
            return this;
        }

        @InterfaceC0300
        public C1090 m4597(long j) {
            this.f5352.when = j;
            return this;
        }

        @InterfaceC0300
        public C1090 m4598(@InterfaceC0265 CharSequence charSequence) {
            this.f5338 = m4581(charSequence);
            return this;
        }

        @InterfaceC0300
        public C1090 m4599(int i) {
            this.f5360 = i;
            return this;
        }

        @InterfaceC0300
        public C1090 m4600(int i) {
            this.f5341 = i;
            return this;
        }

        @InterfaceC0300
        public C1090 m4601(int i) {
            this.f5332 = i;
            return this;
        }

        @InterfaceC0300
        public C1090 m4602(@InterfaceC0277 int i) {
            this.f5358 = i;
            return this;
        }

        @InterfaceC0300
        public C1090 m4603(@InterfaceC0265 String str) {
            this.f5361 = str;
            return this;
        }

        @InterfaceC0300
        public C1090 m4604(@InterfaceC0265 CharSequence[] charSequenceArr) {
            this.f5319 = charSequenceArr;
            return this;
        }

        @InterfaceC0300
        public C1090 m4605(boolean z) {
            this.f5331 = z;
            return this;
        }

        @InterfaceC0300
        public C1090 m4606(@InterfaceC0265 RemoteViews remoteViews) {
            this.f5352.contentView = remoteViews;
            return this;
        }

        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public long m4607() {
            if (this.f5355) {
                return this.f5352.when;
            }
            return 0L;
        }

        @InterfaceC0300
        @Deprecated
        public C1090 m4608(@InterfaceC0265 String str) {
            if (str != null && !str.isEmpty()) {
                this.f5350.add(str);
            }
            return this;
        }

        @InterfaceC0300
        @InterfaceC0260(23)
        public C1090 m4609(@InterfaceC0300 IconCompat iconCompat) {
            this.f5314 = iconCompat.m13869(this.f5347);
            return this;
        }

        @InterfaceC0300
        @InterfaceC0260(21)
        public C1090 m4610(int i, @InterfaceC0265 CharSequence charSequence, @InterfaceC0265 PendingIntent pendingIntent) {
            this.f5330.add(new C1080(i, charSequence, pendingIntent));
            return this;
        }

        @InterfaceC0300
        public C1090 m4611(@InterfaceC0265 RemoteViews remoteViews) {
            this.f5327 = remoteViews;
            return this;
        }

        @InterfaceC0265
        @SuppressLint({"BuilderSetStyle"})
        public RemoteViews m4612() {
            RemoteViews mo113;
            if (this.f5325 != null && m4582()) {
                return this.f5325;
            }
            C1145 c1145 = new C1145(this);
            AbstractC1079 abstractC1079 = this.f5340;
            if (abstractC1079 != null && (mo113 = abstractC1079.mo113(c1145)) != null) {
                return mo113;
            }
            Notification m4955 = c1145.m4955();
            return Build.VERSION.SDK_INT >= 24 ? Notification.Builder.recoverBuilder(this.f5347, m4955).createContentView() : m4955.contentView;
        }

        @InterfaceC0300
        public Notification m4613() {
            return new C1145(this).m4955();
        }

        @InterfaceC0300
        public C1090 m4614(boolean z) {
            this.f5328 = z;
            return this;
        }

        @InterfaceC0300
        public C1090 m4615() {
            this.f5339.clear();
            this.f5350.clear();
            return this;
        }

        @InterfaceC0300
        public C1090 m4616(@InterfaceC0265 String str) {
            this.f5353 = str;
            return this;
        }

        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public RemoteViews m4617() {
            return this.f5327;
        }

        @InterfaceC0300
        @Deprecated
        public Notification m4618() {
            return m4613();
        }

        @InterfaceC0265
        @SuppressLint({"BuilderSetStyle"})
        public RemoteViews m4619() {
            RemoteViews mo112;
            int i = Build.VERSION.SDK_INT;
            if (i < 16) {
                return null;
            }
            if (this.f5354 != null && m4582()) {
                return this.f5354;
            }
            C1145 c1145 = new C1145(this);
            AbstractC1079 abstractC1079 = this.f5340;
            if (abstractC1079 != null && (mo112 = abstractC1079.mo112(c1145)) != null) {
                return mo112;
            }
            Notification m4955 = c1145.m4955();
            return i >= 24 ? Notification.Builder.recoverBuilder(this.f5347, m4955).createBigContentView() : m4955.bigContentView;
        }

        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public RemoteViews m4620() {
            return this.f5325;
        }

        @InterfaceC0300
        public C1090 m4621(@InterfaceC0265 Bundle bundle) {
            if (bundle != null) {
                Bundle bundle2 = this.f5322;
                if (bundle2 == null) {
                    this.f5322 = new Bundle(bundle);
                } else {
                    bundle2.putAll(bundle);
                }
            }
            return this;
        }

        @InterfaceC0300
        public C1090 m4622(@InterfaceC0265 C1026 c1026) {
            if (c1026 == null) {
                return this;
            }
            this.f5346 = c1026.m4238();
            if (this.f5324 == null) {
                if (c1026.m4258() != null) {
                    this.f5324 = c1026.m4258();
                } else if (c1026.m4238() != null) {
                    this.f5324 = new C1060(c1026.m4238());
                }
            }
            if (this.f5362 == null) {
                m4594(c1026.m4248());
            }
            return this;
        }

        @InterfaceC0265
        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public C1085 m4623() {
            return this.f5321;
        }

        @InterfaceC0300
        public C1090 m4624(@InterfaceC0265 RemoteViews remoteViews) {
            this.f5325 = remoteViews;
            return this;
        }

        @InterfaceC0300
        public C1090 m4625(@InterfaceC0265 Notification notification) {
            this.f5345 = notification;
            return this;
        }

        @InterfaceC0300
        public C1090 m4626(boolean z) {
            m4578(8, z);
            return this;
        }

        @InterfaceC0300
        public C1090 m4627(boolean z) {
            m4578(2, z);
            return this;
        }

        @InterfaceC0300
        public C1090 m4628(@InterfaceC0265 Bitmap bitmap) {
            this.f5318 = m4580(bitmap);
            return this;
        }

        @InterfaceC0300
        public C1090 m4629(@InterfaceC0265 CharSequence charSequence) {
            this.f5334 = m4581(charSequence);
            return this;
        }

        @InterfaceC0300
        public C1090 m4630(boolean z) {
            this.f5349 = z;
            return this;
        }

        @InterfaceC0300
        public C1090 m4631(boolean z) {
            m4578(16, z);
            return this;
        }

        @InterfaceC0300
        @InterfaceC0260(24)
        public C1090 m4632(boolean z) {
            this.f5315 = z;
            m4588().putBoolean(C1078.f5162, z);
            return this;
        }

        @InterfaceC0300
        public C1090 m4633(@InterfaceC0265 CharSequence charSequence) {
            this.f5317 = m4581(charSequence);
            return this;
        }

        @InterfaceC0300
        public C1090 m4634(int i) {
            this.f5352.icon = i;
            return this;
        }

        @InterfaceC0300
        public C1090 m4635(boolean z) {
            this.f5343 = z;
            return this;
        }

        @InterfaceC0300
        public C1090 m4636(int i, @InterfaceC0265 CharSequence charSequence, @InterfaceC0265 PendingIntent pendingIntent) {
            this.f5316.add(new C1080(i, charSequence, pendingIntent));
            return this;
        }

        @InterfaceC0277
        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public int m4637() {
            return this.f5358;
        }

        @InterfaceC0300
        public C1090 m4638(@InterfaceC0300 InterfaceC1089 interfaceC1089) {
            interfaceC1089.mo4577(this);
            return this;
        }

        @InterfaceC0300
        public C1090 m4639(boolean z) {
            this.f5355 = z;
            return this;
        }

        @InterfaceC0300
        public C1090 m4640(@InterfaceC0265 AbstractC1079 abstractC1079) {
            if (this.f5340 != abstractC1079) {
                this.f5340 = abstractC1079;
                if (abstractC1079 != null) {
                    abstractC1079.m4514(this);
                }
            }
            return this;
        }

        @InterfaceC0300
        public C1090 m4641(@InterfaceC0265 CharSequence charSequence) {
            this.f5352.tickerText = m4581(charSequence);
            return this;
        }

        @InterfaceC0300
        public C1090 m4642(@InterfaceC0265 PendingIntent pendingIntent, boolean z) {
            this.f5333 = pendingIntent;
            m4578(128, z);
            return this;
        }

        @InterfaceC0300
        public C1090 m4643(int i) {
            this.f5359 = i;
            return this;
        }

        @InterfaceC0300
        public C1090 m4644(int i, int i2) {
            Notification notification = this.f5352;
            notification.icon = i;
            notification.iconLevel = i2;
            return this;
        }

        @InterfaceC0300
        public C1090 m4645(@InterfaceC0265 PendingIntent pendingIntent) {
            this.f5352.deleteIntent = pendingIntent;
            return this;
        }

        @InterfaceC0300
        public C1090 m4646(boolean z) {
            this.f5326 = z;
            this.f5344 = true;
            return this;
        }

        @InterfaceC0265
        @SuppressLint({"BuilderSetStyle"})
        public RemoteViews m4647() {
            RemoteViews mo120;
            int i = Build.VERSION.SDK_INT;
            if (i < 21) {
                return null;
            }
            if (this.f5327 != null && m4582()) {
                return this.f5327;
            }
            C1145 c1145 = new C1145(this);
            AbstractC1079 abstractC1079 = this.f5340;
            if (abstractC1079 != null && (mo120 = abstractC1079.mo120(c1145)) != null) {
                return mo120;
            }
            Notification m4955 = c1145.m4955();
            return i >= 24 ? Notification.Builder.recoverBuilder(this.f5347, m4955).createHeadsUpContentView() : m4955.headsUpContentView;
        }

        @InterfaceC0300
        public C1090 m4648(@InterfaceC0277 int i, int i2, int i3) {
            Notification notification = this.f5352;
            notification.ledARGB = i;
            notification.ledOnMS = i2;
            notification.ledOffMS = i3;
            notification.flags = ((i2 == 0 || i3 == 0) ? 0 : 1) | (notification.flags & (-2));
            return this;
        }

        @InterfaceC0300
        public C1090 m4649(@InterfaceC0265 Uri uri, int i) {
            Notification notification = this.f5352;
            notification.sound = uri;
            notification.audioStreamType = i;
            if (Build.VERSION.SDK_INT >= 21) {
                notification.audioAttributes = new AudioAttributes.Builder().setContentType(4).setLegacyStreamType(i).build();
            }
            return this;
        }

        @InterfaceC0300
        public C1090 m4650(@InterfaceC0265 Bundle bundle) {
            this.f5322 = bundle;
            return this;
        }

        @InterfaceC0300
        public C1090 m4651(@InterfaceC0265 C1060 c1060) {
            this.f5324 = c1060;
            return this;
        }

        @InterfaceC0300
        @Deprecated
        public C1090 m4652(@InterfaceC0265 CharSequence charSequence, @InterfaceC0265 RemoteViews remoteViews) {
            this.f5352.tickerText = m4581(charSequence);
            this.f5357 = remoteViews;
            return this;
        }

        @InterfaceC0300
        public C1090 m4653() {
            this.f5316.clear();
            return this;
        }

        @InterfaceC0300
        public C1090 m4654(@InterfaceC0265 String str) {
            this.f5351 = str;
            return this;
        }

        @InterfaceC0300
        public C1090 m4655(@InterfaceC0265 PendingIntent pendingIntent) {
            this.f5329 = pendingIntent;
            return this;
        }

        @InterfaceC0300
        public C1090 m4656(@InterfaceC0300 String str) {
            this.f5342 = str;
            return this;
        }

        @InterfaceC0300
        public C1090 m4657(boolean z) {
            this.f5356 = z;
            return this;
        }

        @InterfaceC0300
        public C1090 m4658(@InterfaceC0265 String str) {
            this.f5346 = str;
            return this;
        }

        @InterfaceC0300
        public C1090 m4659(int i) {
            this.f5337 = i;
            return this;
        }

        @InterfaceC0269({InterfaceC0269.EnumC0270.LIBRARY_GROUP_PREFIX})
        public int m4660() {
            return this.f5332;
        }

        @InterfaceC0300
        @InterfaceC0260(21)
        public C1090 m4661(@InterfaceC0265 C1080 c1080) {
            if (c1080 != null) {
                this.f5330.add(c1080);
            }
            return this;
        }

        @InterfaceC0300
        public C1090 m4662(long j) {
            this.f5320 = j;
            return this;
        }

        public C1090(@InterfaceC0300 Context context, @InterfaceC0300 String str) {
            this.f5316 = new ArrayList<>();
            this.f5339 = new ArrayList<>();
            this.f5330 = new ArrayList<>();
            this.f5355 = true;
            this.f5343 = false;
            this.f5358 = 0;
            this.f5360 = 0;
            this.f5359 = 0;
            this.f5341 = 0;
            Notification notification = new Notification();
            this.f5352 = notification;
            this.f5347 = context;
            this.f5342 = str;
            notification.when = System.currentTimeMillis();
            this.f5352.audioStreamType = -1;
            this.f5332 = 0;
            this.f5350 = new ArrayList<>();
            this.f5331 = true;
        }

        @Deprecated
        public C1090(@InterfaceC0300 Context context) {
            this(context, (String) null);
        }
    }
}