package androidx.core.app;

import android.app.Notification;
import android.app.PendingIntent;
import android.content.Context;
import android.graphics.Bitmap;
import android.os.Build;
import android.os.Bundle;
import android.widget.RemoteViews;
import java.util.ArrayList;

/* JADX INFO: compiled from: NotificationCompat.java */
/* JADX INFO: loaded from: classes.dex */
public class b {

    /* JADX INFO: compiled from: NotificationCompat.java */
    public static class a {

        /* JADX INFO: renamed from: a, reason: collision with root package name */
        final Bundle f717a;

        /* JADX INFO: renamed from: b, reason: collision with root package name */
        private final e[] f718b;

        /* JADX INFO: renamed from: c, reason: collision with root package name */
        private final e[] f719c;

        /* JADX INFO: renamed from: d, reason: collision with root package name */
        private boolean f720d;

        /* JADX INFO: renamed from: e, reason: collision with root package name */
        boolean f721e;

        /* JADX INFO: renamed from: f, reason: collision with root package name */
        private final int f722f;

        /* JADX INFO: renamed from: g, reason: collision with root package name */
        public int f723g;
        public CharSequence h;
        public PendingIntent i;

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

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

        public e[] c() {
            return this.f719c;
        }

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

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

        public e[] f() {
            return this.f718b;
        }

        public int g() {
            return this.f722f;
        }

        public boolean h() {
            return this.f721e;
        }

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

    /* JADX INFO: renamed from: androidx.core.app.b$b, reason: collision with other inner class name */
    /* JADX INFO: compiled from: NotificationCompat.java */
    public static class C0025b {
        String A;
        Bundle B;
        Notification E;
        RemoteViews F;
        RemoteViews G;
        RemoteViews H;
        String I;
        String K;
        long L;
        Notification N;

        @Deprecated
        public ArrayList<String> O;

        /* JADX INFO: renamed from: a, reason: collision with root package name */
        public Context f724a;

        /* JADX INFO: renamed from: d, reason: collision with root package name */
        CharSequence f727d;

        /* JADX INFO: renamed from: e, reason: collision with root package name */
        CharSequence f728e;

        /* JADX INFO: renamed from: f, reason: collision with root package name */
        PendingIntent f729f;

        /* JADX INFO: renamed from: g, reason: collision with root package name */
        PendingIntent f730g;
        RemoteViews h;
        Bitmap i;
        CharSequence j;
        int k;
        int l;
        boolean n;
        c o;
        CharSequence p;
        CharSequence[] q;
        int r;
        int s;
        boolean t;
        String u;
        boolean v;
        String w;
        boolean y;
        boolean z;

        /* JADX INFO: renamed from: b, reason: collision with root package name */
        public ArrayList<a> f725b = new ArrayList<>();

        /* JADX INFO: renamed from: c, reason: collision with root package name */
        ArrayList<a> f726c = new ArrayList<>();
        boolean m = true;
        boolean x = false;
        int C = 0;
        int D = 0;
        int J = 0;
        int M = 0;

        public C0025b(Context context, String str) {
            Notification notification = new Notification();
            this.N = notification;
            this.f724a = context;
            this.I = str;
            notification.when = System.currentTimeMillis();
            this.N.audioStreamType = -1;
            this.l = 0;
            this.O = new ArrayList<>();
        }

        protected static CharSequence c(CharSequence charSequence) {
            return (charSequence != null && charSequence.length() > 5120) ? charSequence.subSequence(0, 5120) : charSequence;
        }

        public Notification a() {
            return new androidx.core.app.c(this).b();
        }

        public Bundle b() {
            if (this.B == null) {
                this.B = new Bundle();
            }
            return this.B;
        }

        public C0025b d(CharSequence charSequence) {
            this.f728e = c(charSequence);
            return this;
        }

        public C0025b e(CharSequence charSequence) {
            this.f727d = c(charSequence);
            return this;
        }

        public C0025b f(int i) {
            this.N.icon = i;
            return this;
        }
    }

    /* JADX INFO: compiled from: NotificationCompat.java */
    public static abstract class c {
    }

    public static Bundle a(Notification notification) {
        int i = Build.VERSION.SDK_INT;
        if (i >= 19) {
            return notification.extras;
        }
        if (i >= 16) {
            return d.c(notification);
        }
        return null;
    }
}
