package k5;

import android.content.Context;
import android.net.Uri;
import androidx.core.graphics.drawable.IconCompat;
import androidx.slice.Slice;
import androidx.slice.SliceSpec;
import java.util.ArrayList;
import java.util.List;
import l5.d;

/* loaded from: classes.dex */
public class a extends c {

    /* renamed from: e, reason: collision with root package name */
    private l5.a f25384e;

    /* renamed from: k5.a$a, reason: collision with other inner class name */
    /* loaded from: classes.dex */
    public static class C0530a {

        /* renamed from: a, reason: collision with root package name */
        private final Uri f25385a;

        /* renamed from: b, reason: collision with root package name */
        private CharSequence f25386b;

        /* renamed from: c, reason: collision with root package name */
        private boolean f25387c;

        /* renamed from: d, reason: collision with root package name */
        private CharSequence f25388d;

        /* renamed from: e, reason: collision with root package name */
        private boolean f25389e;

        /* renamed from: f, reason: collision with root package name */
        private CharSequence f25390f;

        /* renamed from: g, reason: collision with root package name */
        private boolean f25391g;

        /* renamed from: h, reason: collision with root package name */
        private k5.b f25392h;

        /* renamed from: i, reason: collision with root package name */
        private CharSequence f25393i;

        /* renamed from: j, reason: collision with root package name */
        private int f25394j;

        public C0530a(Uri uri) {
            this.f25385a = uri;
        }

        public CharSequence a() {
            return this.f25393i;
        }

        public int b() {
            return this.f25394j;
        }

        public k5.b c() {
            return this.f25392h;
        }

        public CharSequence d() {
            return this.f25388d;
        }

        public CharSequence e() {
            return this.f25390f;
        }

        public CharSequence f() {
            return this.f25386b;
        }

        public Uri g() {
            return this.f25385a;
        }

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

        public boolean i() {
            return this.f25391g;
        }

        public boolean j() {
            return this.f25387c;
        }

        public C0530a k(CharSequence charSequence) {
            return l(charSequence, false);
        }

        public C0530a l(CharSequence charSequence, boolean z10) {
            this.f25388d = charSequence;
            this.f25389e = z10;
            return this;
        }

        public C0530a m(CharSequence charSequence) {
            return n(charSequence, false);
        }

        public C0530a n(CharSequence charSequence, boolean z10) {
            this.f25386b = charSequence;
            this.f25387c = z10;
            return this;
        }
    }

    /* loaded from: classes.dex */
    public static class b {

        /* renamed from: a, reason: collision with root package name */
        private final Uri f25395a;

        /* renamed from: c, reason: collision with root package name */
        private boolean f25397c;

        /* renamed from: d, reason: collision with root package name */
        private int f25398d;

        /* renamed from: e, reason: collision with root package name */
        private IconCompat f25399e;

        /* renamed from: f, reason: collision with root package name */
        private k5.b f25400f;

        /* renamed from: g, reason: collision with root package name */
        private k5.b f25401g;

        /* renamed from: h, reason: collision with root package name */
        private CharSequence f25402h;

        /* renamed from: i, reason: collision with root package name */
        private boolean f25403i;

        /* renamed from: j, reason: collision with root package name */
        private CharSequence f25404j;

        /* renamed from: k, reason: collision with root package name */
        private boolean f25405k;

        /* renamed from: l, reason: collision with root package name */
        private CharSequence f25406l;

        /* renamed from: q, reason: collision with root package name */
        private boolean f25411q;

        /* renamed from: b, reason: collision with root package name */
        private long f25396b = -1;

        /* renamed from: m, reason: collision with root package name */
        private int f25407m = -1;

        /* renamed from: n, reason: collision with root package name */
        private List f25408n = new ArrayList();

        /* renamed from: o, reason: collision with root package name */
        private List f25409o = new ArrayList();

        /* renamed from: p, reason: collision with root package name */
        private List f25410p = new ArrayList();

        public b(Uri uri) {
            this.f25395a = uri;
        }

        public CharSequence a() {
            return this.f25406l;
        }

        public List b() {
            return this.f25408n;
        }

        public List c() {
            return this.f25410p;
        }

        public List d() {
            return this.f25409o;
        }

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

        public k5.b f() {
            return this.f25401g;
        }

        public CharSequence g() {
            return this.f25404j;
        }

        public long h() {
            return this.f25396b;
        }

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

        public k5.b j() {
            return this.f25400f;
        }

        public IconCompat k() {
            return this.f25399e;
        }

        public int l() {
            return this.f25398d;
        }

        public Uri m() {
            return this.f25395a;
        }

        public boolean n() {
            return this.f25405k;
        }

        public boolean o() {
            return this.f25411q;
        }

        public boolean p() {
            return this.f25397c;
        }

        public boolean q() {
            return this.f25403i;
        }

        public b r(k5.b bVar) {
            this.f25401g = bVar;
            return this;
        }

        public b s(CharSequence charSequence) {
            return t(charSequence, false);
        }

        public b t(CharSequence charSequence, boolean z10) {
            this.f25404j = charSequence;
            this.f25405k = z10;
            return this;
        }

        public b u(CharSequence charSequence) {
            return v(charSequence, false);
        }

        public b v(CharSequence charSequence, boolean z10) {
            this.f25402h = charSequence;
            this.f25403i = z10;
            return this;
        }

        public b w(IconCompat iconCompat, int i10) {
            return x(iconCompat, i10, false);
        }

        public b x(IconCompat iconCompat, int i10, boolean z10) {
            this.f25400f = null;
            this.f25399e = iconCompat;
            this.f25398d = i10;
            this.f25397c = z10;
            return this;
        }
    }

    public a(Context context, Uri uri, long j10) {
        super(context, uri);
        this.f25384e.c(j10);
    }

    @Override // k5.c
    protected d e(Uri uri) {
        SliceSpec sliceSpec = j5.d.f23969b;
        if (a(sliceSpec, uri)) {
            return new l5.c(b(), sliceSpec, c());
        }
        SliceSpec sliceSpec2 = j5.d.f23968a;
        if (a(sliceSpec2, uri)) {
            return new l5.b(b(), sliceSpec2);
        }
        return null;
    }

    /* JADX WARN: Multi-variable type inference failed */
    @Override // k5.c
    void f(d dVar) {
        this.f25384e = (l5.a) dVar;
    }

    public a g(b bVar) {
        this.f25384e.e(bVar);
        return this;
    }

    public Slice h() {
        return ((d) this.f25384e).g();
    }

    public a i(int i10) {
        this.f25384e.b(i10);
        return this;
    }

    public a j(C0530a c0530a) {
        this.f25384e.d(c0530a);
        return this;
    }

    public a k(boolean z10) {
        this.f25384e.a(z10);
        return this;
    }
}
