package d.h.b;

import android.app.Notification;
import android.app.PendingIntent;
import android.content.Context;
import android.os.Bundle;
import java.util.ArrayList;
import java.util.Objects;

/* JADX INFO: loaded from: classes.dex */
public class l {
    public Context a;

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

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public CharSequence f2603f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public PendingIntent f2604g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public int f2605h;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public int f2607j;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public int f2608k;

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    public boolean f2609l;

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public Bundle f2610m;

    /* JADX INFO: renamed from: o, reason: collision with root package name */
    public String f2612o;

    /* JADX INFO: renamed from: p, reason: collision with root package name */
    public boolean f2613p;

    /* JADX INFO: renamed from: q, reason: collision with root package name */
    public Notification f2614q;

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    @Deprecated
    public ArrayList<String> f2615r;

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public ArrayList<p> f2600c = new ArrayList<>();

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public ArrayList<k> f2601d = new ArrayList<>();

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    public boolean f2606i = true;

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public int f2611n = 0;

    public l(Context context, String str) {
        Notification notification = new Notification();
        this.f2614q = notification;
        this.a = context;
        this.f2612o = str;
        notification.when = System.currentTimeMillis();
        this.f2614q.audioStreamType = -1;
        this.f2605h = 0;
        this.f2615r = new ArrayList<>();
        this.f2613p = true;
    }

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

    public Notification a() {
        m mVar = new m(this);
        Objects.requireNonNull(mVar.f2616b);
        Notification notificationBuild = mVar.a.build();
        Objects.requireNonNull(mVar.f2616b);
        return notificationBuild;
    }

    public l c(CharSequence charSequence) {
        this.f2603f = b(charSequence);
        return this;
    }

    public l d(CharSequence charSequence) {
        this.f2602e = b(charSequence);
        return this;
    }

    public final void e(int i2, boolean z2) {
        Notification notification;
        int i3;
        if (z2) {
            notification = this.f2614q;
            i3 = i2 | notification.flags;
        } else {
            notification = this.f2614q;
            i3 = (~i2) & notification.flags;
        }
        notification.flags = i3;
    }

    public l f(int i2, int i3, boolean z2) {
        this.f2607j = i2;
        this.f2608k = i3;
        this.f2609l = z2;
        return this;
    }
}
