package o; import android.content.Context; import android.database.Cursor; import android.net.Uri; import android.text.TextUtils; import java.io.File; import java.io.FileNotFoundException; import o.InterfaceC12232euN; import o.SCe; /* loaded from: classes.dex */ public final class FiA implements SCe { private final Context b; @Override // o.SCe public final /* synthetic */ boolean d(Uri uri) { return C15604gzZ.DL_(uri); } @Override // o.SCe public final /* synthetic */ SCe.IeS e(Uri uri, int i, int i2, unA una) { Uri uri2 = uri; return new SCe.IeS<>(new xBn(uri2), new HBt(this.b, uri2)); } public FiA(Context context) { this.b = context; } /* loaded from: classes.dex */ static class HBt implements InterfaceC12232euN { private static final String[] e = {"_data"}; private final Uri a; private final Context c; @Override // o.InterfaceC12232euN public final void a() { } @Override // o.InterfaceC12232euN public final void e() { } HBt(Context context, Uri uri) { this.c = context; this.a = uri; } @Override // o.InterfaceC12232euN public final void c(EnumC3495ayd enumC3495ayd, InterfaceC12232euN.IeS ieS) { Cursor query = this.c.getContentResolver().query(this.a, e, null, null, null); if (query != null) { try { r0 = query.moveToFirst() ? query.getString(query.getColumnIndexOrThrow("_data")) : null; } finally { query.close(); } } if (TextUtils.isEmpty(r0)) { StringBuilder sb = new StringBuilder("Failed to find file path for: "); sb.append(this.a); ieS.a((Exception) new FileNotFoundException(sb.toString())); return; } ieS.a((InterfaceC12232euN.IeS) new File(r0)); } @Override // o.InterfaceC12232euN public final Class c() { return File.class; } @Override // o.InterfaceC12232euN public final pNW d() { return pNW.LOCAL; } } /* loaded from: classes.dex */ public static final class LWm implements rIx { private final Context b; public LWm(Context context) { this.b = context; } @Override // o.rIx public final SCe c(Vzp vzp) { return new FiA(this.b); } } }