package a0;

import android.net.Uri;
import b0.AbstractC0399d;
import java.util.Arrays;

/* JADX INFO: loaded from: classes.dex */
public final class h {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final Uri f1940a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final byte[] f1941b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final long f1942c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final long f1943d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final long f1944e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final String f1945f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public final int f1946g;

    public h(Uri uri) {
        this(uri, 0);
    }

    public String toString() {
        return "DataSpec[" + this.f1940a + ", " + Arrays.toString(this.f1941b) + ", " + this.f1942c + ", " + this.f1943d + ", " + this.f1944e + ", " + this.f1945f + ", " + this.f1946g + "]";
    }

    public h(Uri uri, int i2) {
        this(uri, 0L, -1L, null, i2);
    }

    public h(Uri uri, long j2, long j3, String str) {
        this(uri, j2, j2, j3, str, 0);
    }

    public h(Uri uri, long j2, long j3, String str, int i2) {
        this(uri, j2, j2, j3, str, i2);
    }

    public h(Uri uri, long j2, long j3, long j4, String str, int i2) {
        this(uri, null, j2, j3, j4, str, i2);
    }

    public h(Uri uri, byte[] bArr, long j2, long j3, long j4, String str, int i2) {
        AbstractC0399d.a(j2 >= 0);
        AbstractC0399d.a(j3 >= 0);
        AbstractC0399d.a(j4 > 0 || j4 == -1);
        this.f1940a = uri;
        this.f1941b = bArr;
        this.f1942c = j2;
        this.f1943d = j3;
        this.f1944e = j4;
        this.f1945f = str;
        this.f1946g = i2;
    }
}
