package o; import android.content.res.AssetFileDescriptor; import android.net.Uri; import android.os.ParcelFileDescriptor; import android.text.TextUtils; import java.io.File; import java.io.InputStream; import o.SCe; /* loaded from: classes.dex */ public final class sCx implements SCe { private final SCe d; @Override // o.SCe public final /* bridge */ /* synthetic */ boolean d(String str) { return true; } @Override // o.SCe public final /* synthetic */ SCe.IeS e(String str, int i, int i2, unA una) { Uri fromFile; String str2 = str; if (TextUtils.isEmpty(str2)) { fromFile = null; } else if (str2.charAt(0) != '/') { Uri parse = Uri.parse(str2); fromFile = parse.getScheme() == null ? Uri.fromFile(new File(str2)) : parse; } else { fromFile = Uri.fromFile(new File(str2)); } if (fromFile == null || !this.d.d(fromFile)) { return null; } return this.d.e(fromFile, i, i2, una); } public sCx(SCe sCe) { this.d = sCe; } /* loaded from: classes.dex */ public static class HBt implements rIx { @Override // o.rIx public final SCe c(Vzp vzp) { return new sCx(vzp.b(Uri.class, InputStream.class)); } } /* loaded from: classes.dex */ public static class LWm implements rIx { @Override // o.rIx public final SCe c(Vzp vzp) { return new sCx(vzp.b(Uri.class, ParcelFileDescriptor.class)); } } /* loaded from: classes.dex */ public static final class IeS implements rIx { @Override // o.rIx public final SCe c(Vzp vzp) { return new sCx(vzp.b(Uri.class, AssetFileDescriptor.class)); } } }