package android.support.v4.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 v {

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

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

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

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

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

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

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

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

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

        public z[] c() {
            return this.f635c;
        }

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

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

        public z[] f() {
            return this.f634b;
        }

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

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

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

    /* JADX INFO: compiled from: NotificationCompat.java */
    public static class b {
        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 f639a;

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

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

        /* JADX INFO: renamed from: f, reason: collision with root package name */
        PendingIntent f644f;
        PendingIntent g;
        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> f640b = new ArrayList<>();

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

        public b(Context context, String str) {
            Notification notification = new Notification();
            this.N = notification;
            this.f639a = 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 w(this).b();
        }

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

        public b d(CharSequence charSequence) {
            this.f643e = c(charSequence);
            return this;
        }

        public b e(CharSequence charSequence) {
            this.f642d = c(charSequence);
            return this;
        }

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

    /* JADX INFO: compiled from: NotificationCompat.java */
    public static abstract class c {
        public abstract void a(Bundle bundle);

        public abstract void b(u uVar);

        public abstract RemoteViews c(u uVar);

        public abstract RemoteViews d(u uVar);

        public abstract RemoteViews e(u uVar);
    }

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