140 lines
4.2 KiB
Java
140 lines
4.2 KiB
Java
package c.c.a.w.b;
|
|
|
|
import android.graphics.Canvas;
|
|
import android.graphics.Matrix;
|
|
import android.graphics.Path;
|
|
import android.graphics.RectF;
|
|
import androidx.annotation.Nullable;
|
|
import c.c.a.c0.c;
|
|
import c.c.a.j;
|
|
import c.c.a.w.c.a;
|
|
import c.c.a.w.c.o;
|
|
import c.c.a.y.f;
|
|
import c.c.a.y.k.l;
|
|
import c.c.a.y.m.b;
|
|
import java.util.ArrayList;
|
|
import java.util.Collections;
|
|
import java.util.List;
|
|
import java.util.ListIterator;
|
|
import java.util.Objects;
|
|
/* compiled from: RepeaterContent */
|
|
public class p implements e, m, j, a.b, k {
|
|
public final Matrix a = new Matrix();
|
|
public final Path b = new Path();
|
|
|
|
/* renamed from: c reason: collision with root package name */
|
|
public final j f290c;
|
|
public final b d;
|
|
public final String e;
|
|
public final boolean f;
|
|
public final a<Float, Float> g;
|
|
public final a<Float, Float> h;
|
|
public final o i;
|
|
public d j;
|
|
|
|
public p(j jVar, b bVar, c.c.a.y.l.j jVar2) {
|
|
this.f290c = jVar;
|
|
this.d = bVar;
|
|
this.e = jVar2.a;
|
|
this.f = jVar2.e;
|
|
a<Float, Float> a = jVar2.b.a();
|
|
this.g = a;
|
|
bVar.e(a);
|
|
a.a.add(this);
|
|
a<Float, Float> a2 = jVar2.f320c.a();
|
|
this.h = a2;
|
|
bVar.e(a2);
|
|
a2.a.add(this);
|
|
l lVar = jVar2.d;
|
|
Objects.requireNonNull(lVar);
|
|
o oVar = new o(lVar);
|
|
this.i = oVar;
|
|
oVar.a(bVar);
|
|
oVar.b(this);
|
|
}
|
|
|
|
@Override // c.c.a.w.c.a.b
|
|
public void a() {
|
|
this.f290c.invalidateSelf();
|
|
}
|
|
|
|
@Override // c.c.a.w.b.c
|
|
public void b(List<c> list, List<c> list2) {
|
|
this.j.b(list, list2);
|
|
}
|
|
|
|
@Override // c.c.a.y.g
|
|
public void c(f fVar, int i, List<f> list, f fVar2) {
|
|
c.c.a.b0.f.f(fVar, i, list, fVar2, this);
|
|
}
|
|
|
|
@Override // c.c.a.w.b.e
|
|
public void d(RectF rectF, Matrix matrix, boolean z2) {
|
|
this.j.d(rectF, matrix, z2);
|
|
}
|
|
|
|
@Override // c.c.a.w.b.j
|
|
public void e(ListIterator<c> listIterator) {
|
|
if (this.j == null) {
|
|
while (listIterator.hasPrevious() && listIterator.previous() != this) {
|
|
}
|
|
ArrayList arrayList = new ArrayList();
|
|
while (listIterator.hasPrevious()) {
|
|
arrayList.add(listIterator.previous());
|
|
listIterator.remove();
|
|
}
|
|
Collections.reverse(arrayList);
|
|
this.j = new d(this.f290c, this.d, "Repeater", this.f, arrayList, null);
|
|
}
|
|
}
|
|
|
|
@Override // c.c.a.w.b.e
|
|
public void f(Canvas canvas, Matrix matrix, int i) {
|
|
float floatValue = this.g.e().floatValue();
|
|
float floatValue2 = this.h.e().floatValue();
|
|
float floatValue3 = this.i.m.e().floatValue() / 100.0f;
|
|
float floatValue4 = this.i.n.e().floatValue() / 100.0f;
|
|
for (int i2 = ((int) floatValue) - 1; i2 >= 0; i2--) {
|
|
this.a.set(matrix);
|
|
float f = (float) i2;
|
|
this.a.preConcat(this.i.f(f + floatValue2));
|
|
this.j.f(canvas, this.a, (int) (c.c.a.b0.f.e(floatValue3, floatValue4, f / floatValue) * ((float) i)));
|
|
}
|
|
}
|
|
|
|
/* JADX DEBUG: Multi-variable search result rejected for r3v0, resolved type: c.c.a.c0.c<T> */
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
@Override // c.c.a.y.g
|
|
public <T> void g(T t, @Nullable c<T> cVar) {
|
|
if (!this.i.c(t, cVar)) {
|
|
if (t == c.c.a.o.q) {
|
|
a<Float, Float> aVar = this.g;
|
|
c<Float> cVar2 = aVar.e;
|
|
aVar.e = cVar;
|
|
} else if (t == c.c.a.o.r) {
|
|
a<Float, Float> aVar2 = this.h;
|
|
c<Float> cVar3 = aVar2.e;
|
|
aVar2.e = cVar;
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // c.c.a.w.b.c
|
|
public String getName() {
|
|
return this.e;
|
|
}
|
|
|
|
@Override // c.c.a.w.b.m
|
|
public Path getPath() {
|
|
Path path = this.j.getPath();
|
|
this.b.reset();
|
|
float floatValue = this.g.e().floatValue();
|
|
float floatValue2 = this.h.e().floatValue();
|
|
for (int i = ((int) floatValue) - 1; i >= 0; i--) {
|
|
this.a.set(this.i.f(((float) i) + floatValue2));
|
|
this.b.addPath(path, this.a);
|
|
}
|
|
return this.b;
|
|
}
|
|
}
|