62 lines
1.6 KiB
Java
62 lines
1.6 KiB
Java
package c.i.a.c.a2;
|
|
|
|
import c.i.a.c.a2.t;
|
|
import c.i.a.c.i2.f0;
|
|
import com.airbnb.lottie.parser.AnimatableValueParser;
|
|
/* compiled from: IndexSeekMap */
|
|
public final class r implements t {
|
|
public final long[] a;
|
|
public final long[] b;
|
|
|
|
/* renamed from: c reason: collision with root package name */
|
|
public final long f757c;
|
|
public final boolean d;
|
|
|
|
public r(long[] jArr, long[] jArr2, long j) {
|
|
AnimatableValueParser.k(jArr.length == jArr2.length);
|
|
int length = jArr2.length;
|
|
boolean z2 = length > 0;
|
|
this.d = z2;
|
|
if (!z2 || jArr2[0] <= 0) {
|
|
this.a = jArr;
|
|
this.b = jArr2;
|
|
} else {
|
|
int i = length + 1;
|
|
long[] jArr3 = new long[i];
|
|
this.a = jArr3;
|
|
long[] jArr4 = new long[i];
|
|
this.b = jArr4;
|
|
System.arraycopy(jArr, 0, jArr3, 1, length);
|
|
System.arraycopy(jArr2, 0, jArr4, 1, length);
|
|
}
|
|
this.f757c = j;
|
|
}
|
|
|
|
@Override // c.i.a.c.a2.t
|
|
public boolean c() {
|
|
return this.d;
|
|
}
|
|
|
|
@Override // c.i.a.c.a2.t
|
|
public t.a h(long j) {
|
|
if (!this.d) {
|
|
return new t.a(u.a);
|
|
}
|
|
int e = f0.e(this.b, j, true, true);
|
|
long[] jArr = this.b;
|
|
long j2 = jArr[e];
|
|
long[] jArr2 = this.a;
|
|
u uVar = new u(j2, jArr2[e]);
|
|
if (j2 == j || e == jArr.length - 1) {
|
|
return new t.a(uVar);
|
|
}
|
|
int i = e + 1;
|
|
return new t.a(uVar, new u(jArr[i], jArr2[i]));
|
|
}
|
|
|
|
@Override // c.i.a.c.a2.t
|
|
public long i() {
|
|
return this.f757c;
|
|
}
|
|
}
|