package ඓ.ῲ.K.ᕣ.㳳;

import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.text.TextUtils;
import com.bumptech.glide.Priority;
import com.bumptech.glide.load.DataSource;
import java.io.File;
import java.io.FileNotFoundException;
import ඓ.ῲ.K.ؿ.C0821;
import ඓ.ῲ.K.ᕣ.C1121;
import ඓ.ῲ.K.ᕣ.㳳.AbstractC1033;
import ඓ.ῲ.K.ᕣ.㿎.AbstractC1146;
import ඓ.K.K.K.C1293;
import ῲ.ᨨ.㳳.C1841;

/* renamed from: ඓ.ῲ.K.ᕣ.㳳.ᕣ  reason: contains not printable characters */
/* compiled from: MediaStoreFileLoader */
public final class C1074 implements AbstractC1033<Uri, File> {

    /* renamed from: K  reason: contains not printable characters */
    public final Context f4534;

    /* renamed from: ඓ.ῲ.K.ᕣ.㳳.ᕣ$K  reason: contains not printable characters */
    /* compiled from: MediaStoreFileLoader */
    public static final class C1076 implements AbstractC1091<Uri, File> {

        /* renamed from: K  reason: contains not printable characters */
        public final Context f4538;

        public C1076(Context context) {
            this.f4538 = context;
        }

        @Override // ඓ.ῲ.K.ᕣ.㳳.AbstractC1091
        /* renamed from: K  reason: contains not printable characters */
        public AbstractC1033<Uri, File> m2924(C1092 r2) {
            return new C1074(this.f4538);
        }
    }

    public C1074(Context context) {
        this.f4534 = context;
    }

    /* Return type fixed from 'ඓ.ῲ.K.ᕣ.㳳.Ԕ$K' to match base method */
    /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, int, int, ඓ.ῲ.K.ᕣ.㸾] */
    @Override // ඓ.ῲ.K.ᕣ.㳳.AbstractC1033
    /* renamed from: K  reason: contains not printable characters */
    public AbstractC1033.C1034<File> m2918(Uri uri, int i, int i2, C1121 r5) {
        Uri uri2 = uri;
        return new AbstractC1033.C1034(new C0821(uri2), new C1075(this.f4534, uri2));
    }

    /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
    @Override // ඓ.ῲ.K.ᕣ.㳳.AbstractC1033
    /* renamed from: K  reason: contains not printable characters */
    public boolean m2919(Uri uri) {
        return C1841.m4801(uri);
    }

    /* renamed from: ඓ.ῲ.K.ᕣ.㳳.ᕣ$ῲ  reason: contains not printable characters */
    /* compiled from: MediaStoreFileLoader */
    public static class C1075 implements AbstractC1146<File> {

        /* renamed from: 㸾  reason: contains not printable characters */
        public static final String[] f4535 = {"_data"};

        /* renamed from: ʬ  reason: contains not printable characters */
        public final Uri f4536;

        /* renamed from: ῲ  reason: contains not printable characters */
        public final Context f4537;

        public C1075(Context context, Uri uri) {
            this.f4537 = context;
            this.f4536 = uri;
        }

        @Override // ඓ.ῲ.K.ᕣ.㿎.AbstractC1146
        public void cancel() {
        }

        @Override // ඓ.ῲ.K.ᕣ.㿎.AbstractC1146
        /* renamed from: ʬ  reason: contains not printable characters */
        public DataSource m2920() {
            return DataSource.LOCAL;
        }

        @Override // ඓ.ῲ.K.ᕣ.㿎.AbstractC1146
        /* renamed from: ῲ  reason: contains not printable characters */
        public void m2921() {
        }

        @Override // ඓ.ῲ.K.ᕣ.㿎.AbstractC1146
        /* renamed from: K  reason: contains not printable characters */
        public void m2923(Priority priority, AbstractC1146.AbstractC1147<? super File> k) {
            Cursor query = this.f4537.getContentResolver().query(this.f4536, f4535, null, null, null);
            String str = null;
            if (query != null) {
                try {
                    if (query.moveToFirst()) {
                        str = query.getString(query.getColumnIndexOrThrow("_data"));
                    }
                } finally {
                    query.close();
                }
            }
            if (TextUtils.isEmpty(str)) {
                StringBuilder r0 = C1293.m3416("Failed to find file path for: ");
                r0.append(this.f4536);
                k.m3068((Exception) new FileNotFoundException(r0.toString()));
                return;
            }
            k.m3069(new File(str));
        }

        @Override // ඓ.ῲ.K.ᕣ.㿎.AbstractC1146
        /* renamed from: K  reason: contains not printable characters */
        public Class<File> m2922() {
            return File.class;
        }
    }
}
