88 lines
3.0 KiB
Java
88 lines
3.0 KiB
Java
package o;
|
|
|
|
import com.airbnb.deeplinkdispatch.UrlTreeKt;
|
|
import com.bumptech.glide.load.engine.GlideException;
|
|
import java.io.IOException;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import o.RDy;
|
|
|
|
/* renamed from: o.ahN, reason: case insensitive filesystem */
|
|
/* loaded from: classes.dex */
|
|
public final class C2582ahN<DataType, ResourceType, Transcode> {
|
|
private final RDy.Sts<List<Throwable>> a;
|
|
private final List<? extends iYP<DataType, ResourceType>> b;
|
|
final yBU<ResourceType, Transcode> c;
|
|
private final String d;
|
|
private final Class<DataType> e;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: o.ahN$Sts */
|
|
/* loaded from: classes.dex */
|
|
public interface Sts<ResourceType> {
|
|
Ezi<ResourceType> e(Ezi<ResourceType> ezi);
|
|
}
|
|
|
|
public C2582ahN(Class<DataType> cls, Class<ResourceType> cls2, Class<Transcode> cls3, List<? extends iYP<DataType, ResourceType>> list, yBU<ResourceType, Transcode> ybu, RDy.Sts<List<Throwable>> sts) {
|
|
this.e = cls;
|
|
this.b = list;
|
|
this.c = ybu;
|
|
this.a = sts;
|
|
StringBuilder sb = new StringBuilder("Failed DecodePath{");
|
|
sb.append(cls.getSimpleName());
|
|
sb.append("->");
|
|
sb.append(cls2.getSimpleName());
|
|
sb.append("->");
|
|
sb.append(cls3.getSimpleName());
|
|
sb.append(UrlTreeKt.componentParamSuffix);
|
|
this.d = sb.toString();
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public final Ezi<ResourceType> a(Box<DataType> box, int i, int i2, unA una) throws GlideException {
|
|
List<Throwable> d = this.a.d();
|
|
if (d != null) {
|
|
List<Throwable> list = d;
|
|
try {
|
|
return d(box, i, i2, una, list);
|
|
} finally {
|
|
this.a.d(list);
|
|
}
|
|
}
|
|
throw new NullPointerException("Argument must not be null");
|
|
}
|
|
|
|
private Ezi<ResourceType> d(Box<DataType> box, int i, int i2, unA una, List<Throwable> list) throws GlideException {
|
|
int size = this.b.size();
|
|
Ezi<ResourceType> ezi = null;
|
|
for (int i3 = 0; i3 < size; i3++) {
|
|
iYP<DataType, ResourceType> iyp = this.b.get(i3);
|
|
try {
|
|
if (iyp.a(box.a(), una)) {
|
|
ezi = iyp.a(box.a(), i, i2, una);
|
|
}
|
|
} catch (IOException | OutOfMemoryError | RuntimeException e) {
|
|
list.add(e);
|
|
}
|
|
if (ezi != null) {
|
|
break;
|
|
}
|
|
}
|
|
if (ezi != null) {
|
|
return ezi;
|
|
}
|
|
throw new GlideException(this.d, new ArrayList(list));
|
|
}
|
|
|
|
public final String toString() {
|
|
StringBuilder sb = new StringBuilder("DecodePath{ dataClass=");
|
|
sb.append(this.e);
|
|
sb.append(", decoders=");
|
|
sb.append(this.b);
|
|
sb.append(", transcoder=");
|
|
sb.append(this.c);
|
|
sb.append(UrlTreeKt.componentParamSuffixChar);
|
|
return sb.toString();
|
|
}
|
|
}
|