122 lines
3.1 KiB
Java
122 lines
3.1 KiB
Java
package c.i.a.c.h2;
|
|
|
|
import android.net.Uri;
|
|
import androidx.annotation.Nullable;
|
|
import com.airbnb.lottie.parser.AnimatableValueParser;
|
|
import java.util.Collections;
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
/* compiled from: DataSpec */
|
|
public final class l {
|
|
public final Uri a;
|
|
public final long b;
|
|
|
|
/* renamed from: c reason: collision with root package name */
|
|
public final int f882c;
|
|
@Nullable
|
|
public final byte[] d;
|
|
public final Map<String, String> e;
|
|
public final long f;
|
|
public final long g;
|
|
@Nullable
|
|
public final String h;
|
|
public final int i;
|
|
@Nullable
|
|
public final Object j;
|
|
|
|
/* compiled from: DataSpec */
|
|
public static final class b {
|
|
@Nullable
|
|
public Uri a;
|
|
public long b;
|
|
|
|
/* renamed from: c reason: collision with root package name */
|
|
public int f883c;
|
|
@Nullable
|
|
public byte[] d;
|
|
public Map<String, String> e;
|
|
public long f;
|
|
public long g;
|
|
@Nullable
|
|
public String h;
|
|
public int i;
|
|
@Nullable
|
|
public Object j;
|
|
|
|
public b(l lVar, a aVar) {
|
|
this.a = lVar.a;
|
|
this.b = lVar.b;
|
|
this.f883c = lVar.f882c;
|
|
this.d = lVar.d;
|
|
this.e = lVar.e;
|
|
this.f = lVar.f;
|
|
this.g = lVar.g;
|
|
this.h = lVar.h;
|
|
this.i = lVar.i;
|
|
this.j = lVar.j;
|
|
}
|
|
|
|
public l a() {
|
|
AnimatableValueParser.I(this.a, "The uri must be set.");
|
|
return new l(this.a, this.b, this.f883c, this.d, this.e, this.f, this.g, this.h, this.i, this.j);
|
|
}
|
|
}
|
|
|
|
public l(Uri uri, long j, int i, @Nullable byte[] bArr, Map<String, String> map, long j2, long j3, @Nullable String str, int i2, @Nullable Object obj) {
|
|
byte[] bArr2 = bArr;
|
|
boolean z2 = true;
|
|
AnimatableValueParser.k(j + j2 >= 0);
|
|
AnimatableValueParser.k(j2 >= 0);
|
|
if (j3 <= 0 && j3 != -1) {
|
|
z2 = false;
|
|
}
|
|
AnimatableValueParser.k(z2);
|
|
this.a = uri;
|
|
this.b = j;
|
|
this.f882c = i;
|
|
this.d = (bArr2 == null || bArr2.length == 0) ? null : bArr2;
|
|
this.e = Collections.unmodifiableMap(new HashMap(map));
|
|
this.f = j2;
|
|
this.g = j3;
|
|
this.h = str;
|
|
this.i = i2;
|
|
this.j = obj;
|
|
}
|
|
|
|
public static String b(int i) {
|
|
if (i == 1) {
|
|
return "GET";
|
|
}
|
|
if (i == 2) {
|
|
return "POST";
|
|
}
|
|
if (i == 3) {
|
|
return "HEAD";
|
|
}
|
|
throw new IllegalStateException();
|
|
}
|
|
|
|
public b a() {
|
|
return new b(this, null);
|
|
}
|
|
|
|
public boolean c(int i) {
|
|
return (this.i & i) == i;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder K = c.d.b.a.a.K("DataSpec[");
|
|
K.append(b(this.f882c));
|
|
K.append(" ");
|
|
K.append(this.a);
|
|
K.append(", ");
|
|
K.append(this.f);
|
|
K.append(", ");
|
|
K.append(this.g);
|
|
K.append(", ");
|
|
K.append(this.h);
|
|
K.append(", ");
|
|
return c.d.b.a.a.w(K, this.i, "]");
|
|
}
|
|
}
|