119 lines
3.5 KiB
Java
119 lines
3.5 KiB
Java
package o;
|
|
|
|
import com.bumptech.glide.Registry;
|
|
import java.util.ArrayList;
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import o.RunnableC3281aua;
|
|
import o.SCe;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* loaded from: classes.dex */
|
|
public final class LTe<Transcode> {
|
|
Fqf a;
|
|
LHy b;
|
|
boolean c;
|
|
int d;
|
|
RunnableC3281aua.IeS e;
|
|
boolean f;
|
|
Class<?> g;
|
|
unA h;
|
|
Object i;
|
|
EnumC3495ayd j;
|
|
Map<Class<?>, wfh<?>> k;
|
|
int l;
|
|
Class<Transcode> m;
|
|
InterfaceC2545agd n;
|
|
private boolean q;
|
|
private boolean s;
|
|
private final List<SCe.IeS<?>> r = new ArrayList();
|
|
|
|
/* renamed from: o, reason: collision with root package name */
|
|
private final List<InterfaceC2545agd> f8251o = new ArrayList();
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public final void c() {
|
|
this.a = null;
|
|
this.i = null;
|
|
this.n = null;
|
|
this.g = null;
|
|
this.m = null;
|
|
this.h = null;
|
|
this.j = null;
|
|
this.k = null;
|
|
this.b = null;
|
|
this.r.clear();
|
|
this.s = false;
|
|
this.f8251o.clear();
|
|
this.q = false;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public final <Z> wfh<Z> b(Class<Z> cls) {
|
|
wfh<Z> wfhVar = (wfh) this.k.get(cls);
|
|
if (wfhVar == null) {
|
|
Iterator<Map.Entry<Class<?>, wfh<?>>> it = this.k.entrySet().iterator();
|
|
while (true) {
|
|
if (!it.hasNext()) {
|
|
break;
|
|
}
|
|
Map.Entry<Class<?>, wfh<?>> next = it.next();
|
|
if (next.getKey().isAssignableFrom(cls)) {
|
|
wfhVar = (wfh) next.getValue();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
if (wfhVar != null) {
|
|
return wfhVar;
|
|
}
|
|
if (this.k.isEmpty() && this.f) {
|
|
StringBuilder sb = new StringBuilder("Missing transformation for ");
|
|
sb.append(cls);
|
|
sb.append(". If you wish to ignore unknown resource types, use the optional transformation methods.");
|
|
throw new IllegalArgumentException(sb.toString());
|
|
}
|
|
return tiJ.e();
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public final List<SCe.IeS<?>> b() {
|
|
if (!this.s) {
|
|
this.s = true;
|
|
this.r.clear();
|
|
List b = this.a.j.c().b((Registry) this.i);
|
|
int size = b.size();
|
|
for (int i = 0; i < size; i++) {
|
|
SCe.IeS<?> e = ((SCe) b.get(i)).e(this.i, this.l, this.d, this.h);
|
|
if (e != null) {
|
|
this.r.add(e);
|
|
}
|
|
}
|
|
}
|
|
return this.r;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public final List<InterfaceC2545agd> d() {
|
|
if (!this.q) {
|
|
this.q = true;
|
|
this.f8251o.clear();
|
|
List<SCe.IeS<?>> b = b();
|
|
int size = b.size();
|
|
for (int i = 0; i < size; i++) {
|
|
SCe.IeS<?> ieS = b.get(i);
|
|
if (!this.f8251o.contains(ieS.e)) {
|
|
this.f8251o.add(ieS.e);
|
|
}
|
|
for (int i2 = 0; i2 < ieS.a.size(); i2++) {
|
|
if (!this.f8251o.contains(ieS.a.get(i2))) {
|
|
this.f8251o.add(ieS.a.get(i2));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return this.f8251o;
|
|
}
|
|
}
|