104 lines
2.9 KiB
Java
104 lines
2.9 KiB
Java
|
package o;
|
||
|
|
||
|
import android.content.res.AssetFileDescriptor;
|
||
|
import android.content.res.Resources;
|
||
|
import android.net.Uri;
|
||
|
import android.os.ParcelFileDescriptor;
|
||
|
import java.io.InputStream;
|
||
|
import o.SCe;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class lYS<Data> implements SCe<Integer, Data> {
|
||
|
private final SCe<Uri, Data> b;
|
||
|
private final Resources e;
|
||
|
|
||
|
@Override // o.SCe
|
||
|
public final /* bridge */ /* synthetic */ boolean d(Integer num) {
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
@Override // o.SCe
|
||
|
public final /* synthetic */ SCe.IeS e(Integer num, int i, int i2, unA una) {
|
||
|
Uri Ev_ = Ev_(num);
|
||
|
if (Ev_ == null) {
|
||
|
return null;
|
||
|
}
|
||
|
return this.b.e(Ev_, i, i2, una);
|
||
|
}
|
||
|
|
||
|
public lYS(Resources resources, SCe<Uri, Data> sCe) {
|
||
|
this.e = resources;
|
||
|
this.b = sCe;
|
||
|
}
|
||
|
|
||
|
private Uri Ev_(Integer num) {
|
||
|
try {
|
||
|
StringBuilder sb = new StringBuilder("android.resource://");
|
||
|
sb.append(this.e.getResourcePackageName(num.intValue()));
|
||
|
sb.append('/');
|
||
|
sb.append(this.e.getResourceTypeName(num.intValue()));
|
||
|
sb.append('/');
|
||
|
sb.append(this.e.getResourceEntryName(num.intValue()));
|
||
|
return Uri.parse(sb.toString());
|
||
|
} catch (Resources.NotFoundException unused) {
|
||
|
return null;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public static class HBt implements rIx<Integer, InputStream> {
|
||
|
private final Resources d;
|
||
|
|
||
|
public HBt(Resources resources) {
|
||
|
this.d = resources;
|
||
|
}
|
||
|
|
||
|
@Override // o.rIx
|
||
|
public final SCe<Integer, InputStream> c(Vzp vzp) {
|
||
|
return new lYS(this.d, vzp.b(Uri.class, InputStream.class));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public static class LWm implements rIx<Integer, ParcelFileDescriptor> {
|
||
|
private final Resources b;
|
||
|
|
||
|
public LWm(Resources resources) {
|
||
|
this.b = resources;
|
||
|
}
|
||
|
|
||
|
@Override // o.rIx
|
||
|
public final SCe<Integer, ParcelFileDescriptor> c(Vzp vzp) {
|
||
|
return new lYS(this.b, vzp.b(Uri.class, ParcelFileDescriptor.class));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public static final class IeS implements rIx<Integer, AssetFileDescriptor> {
|
||
|
private final Resources d;
|
||
|
|
||
|
public IeS(Resources resources) {
|
||
|
this.d = resources;
|
||
|
}
|
||
|
|
||
|
@Override // o.rIx
|
||
|
public final SCe<Integer, AssetFileDescriptor> c(Vzp vzp) {
|
||
|
return new lYS(this.d, vzp.b(Uri.class, AssetFileDescriptor.class));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public static class RVV implements rIx<Integer, Uri> {
|
||
|
private final Resources d;
|
||
|
|
||
|
public RVV(Resources resources) {
|
||
|
this.d = resources;
|
||
|
}
|
||
|
|
||
|
@Override // o.rIx
|
||
|
public final SCe<Integer, Uri> c(Vzp vzp) {
|
||
|
return new lYS(this.d, WHP.b());
|
||
|
}
|
||
|
}
|
||
|
}
|