141 lines
4.5 KiB
Java
141 lines
4.5 KiB
Java
|
package c.i.a.c.d2.j0;
|
||
|
|
||
|
import android.net.Uri;
|
||
|
import androidx.annotation.Nullable;
|
||
|
import c.i.a.c.i2.f0;
|
||
|
import com.airbnb.lottie.parser.AnimatableValueParser;
|
||
|
import java.util.Arrays;
|
||
|
/* compiled from: AdPlaybackState */
|
||
|
public final class a {
|
||
|
public static final a a = new a(null, new long[0], null, 0, -9223372036854775807L);
|
||
|
@Nullable
|
||
|
public final Object b = null;
|
||
|
|
||
|
/* renamed from: c reason: collision with root package name */
|
||
|
public final int f800c;
|
||
|
public final long[] d;
|
||
|
public final C0086a[] e;
|
||
|
public final long f;
|
||
|
public final long g;
|
||
|
|
||
|
/* compiled from: AdPlaybackState */
|
||
|
/* renamed from: c.i.a.c.d2.j0.a$a reason: collision with other inner class name */
|
||
|
public static final class C0086a {
|
||
|
public final int a = -1;
|
||
|
public final Uri[] b = new Uri[0];
|
||
|
|
||
|
/* renamed from: c reason: collision with root package name */
|
||
|
public final int[] f801c = new int[0];
|
||
|
public final long[] d = new long[0];
|
||
|
|
||
|
public C0086a() {
|
||
|
AnimatableValueParser.k(true);
|
||
|
}
|
||
|
|
||
|
public int a(int i) {
|
||
|
int i2 = i + 1;
|
||
|
while (true) {
|
||
|
int[] iArr = this.f801c;
|
||
|
if (i2 >= iArr.length || iArr[i2] == 0 || iArr[i2] == 1) {
|
||
|
break;
|
||
|
}
|
||
|
i2++;
|
||
|
}
|
||
|
return i2;
|
||
|
}
|
||
|
|
||
|
public boolean b() {
|
||
|
return this.a == -1 || a(-1) < this.a;
|
||
|
}
|
||
|
|
||
|
public boolean equals(@Nullable Object obj) {
|
||
|
if (this == obj) {
|
||
|
return true;
|
||
|
}
|
||
|
if (obj == null || C0086a.class != obj.getClass()) {
|
||
|
return false;
|
||
|
}
|
||
|
C0086a aVar = (C0086a) obj;
|
||
|
return this.a == aVar.a && Arrays.equals(this.b, aVar.b) && Arrays.equals(this.f801c, aVar.f801c) && Arrays.equals(this.d, aVar.d);
|
||
|
}
|
||
|
|
||
|
public int hashCode() {
|
||
|
int hashCode = Arrays.hashCode(this.f801c);
|
||
|
return Arrays.hashCode(this.d) + ((hashCode + (((this.a * 31) + Arrays.hashCode(this.b)) * 31)) * 31);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public a(@Nullable Object obj, long[] jArr, @Nullable C0086a[] aVarArr, long j, long j2) {
|
||
|
this.d = jArr;
|
||
|
this.f = j;
|
||
|
this.g = j2;
|
||
|
int length = jArr.length;
|
||
|
this.f800c = length;
|
||
|
C0086a[] aVarArr2 = new C0086a[length];
|
||
|
for (int i = 0; i < this.f800c; i++) {
|
||
|
aVarArr2[i] = new C0086a();
|
||
|
}
|
||
|
this.e = aVarArr2;
|
||
|
}
|
||
|
|
||
|
public boolean equals(@Nullable Object obj) {
|
||
|
if (this == obj) {
|
||
|
return true;
|
||
|
}
|
||
|
if (obj == null || a.class != obj.getClass()) {
|
||
|
return false;
|
||
|
}
|
||
|
a aVar = (a) obj;
|
||
|
return f0.a(this.b, aVar.b) && this.f800c == aVar.f800c && this.f == aVar.f && this.g == aVar.g && Arrays.equals(this.d, aVar.d) && Arrays.equals(this.e, aVar.e);
|
||
|
}
|
||
|
|
||
|
public int hashCode() {
|
||
|
int i = this.f800c * 31;
|
||
|
Object obj = this.b;
|
||
|
int hashCode = obj == null ? 0 : obj.hashCode();
|
||
|
return Arrays.hashCode(this.e) + ((Arrays.hashCode(this.d) + ((((((i + hashCode) * 31) + ((int) this.f)) * 31) + ((int) this.g)) * 31)) * 31);
|
||
|
}
|
||
|
|
||
|
public String toString() {
|
||
|
StringBuilder K = c.d.b.a.a.K("AdPlaybackState(adsId=");
|
||
|
K.append(this.b);
|
||
|
K.append(", adResumePositionUs=");
|
||
|
K.append(this.f);
|
||
|
K.append(", adGroups=[");
|
||
|
for (int i = 0; i < this.e.length; i++) {
|
||
|
K.append("adGroup(timeUs=");
|
||
|
K.append(this.d[i]);
|
||
|
K.append(", ads=[");
|
||
|
for (int i2 = 0; i2 < this.e[i].f801c.length; i2++) {
|
||
|
K.append("ad(state=");
|
||
|
int i3 = this.e[i].f801c[i2];
|
||
|
if (i3 == 0) {
|
||
|
K.append('_');
|
||
|
} else if (i3 == 1) {
|
||
|
K.append('R');
|
||
|
} else if (i3 == 2) {
|
||
|
K.append('S');
|
||
|
} else if (i3 == 3) {
|
||
|
K.append('P');
|
||
|
} else if (i3 != 4) {
|
||
|
K.append('?');
|
||
|
} else {
|
||
|
K.append('!');
|
||
|
}
|
||
|
K.append(", durationUs=");
|
||
|
K.append(this.e[i].d[i2]);
|
||
|
K.append(')');
|
||
|
if (i2 < this.e[i].f801c.length - 1) {
|
||
|
K.append(", ");
|
||
|
}
|
||
|
}
|
||
|
K.append("])");
|
||
|
if (i < this.e.length - 1) {
|
||
|
K.append(", ");
|
||
|
}
|
||
|
}
|
||
|
K.append("])");
|
||
|
return K.toString();
|
||
|
}
|
||
|
}
|