package p138.p145.p146.p151.p158.p159;

import android.content.Context;
import android.net.Uri;
import java.io.InputStream;
import p000.p001.p002.p003.p004.C0567;
import p138.p145.p146.p151.C2848;
import p138.p145.p146.p151.p152.p153.C2878;
import p138.p145.p146.p151.p158.C3036;
import p138.p145.p146.p151.p158.InterfaceC3028;
import p138.p145.p146.p151.p158.InterfaceC3030;
import p138.p145.p146.p173.C3226;

/* JADX INFO: renamed from: ދ.ؠ.֏.ތ.ދ.ޖ.ހ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public class C3064 implements InterfaceC3028<Uri, InputStream> {

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final Context f9247;

    /* JADX INFO: renamed from: ދ.ؠ.֏.ތ.ދ.ޖ.ހ$֏, reason: contains not printable characters */
    public static class C3065 implements InterfaceC3030<Uri, InputStream> {

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public final Context f9248;

        public C3065(Context context) {
            this.f9248 = context;
        }

        @Override // p138.p145.p146.p151.p158.InterfaceC3030
        /* JADX INFO: renamed from: ֏ */
        public InterfaceC3028<Uri, InputStream> mo2521(C3036 c3036) {
            return new C3064(this.f9248);
        }

        @Override // p138.p145.p146.p151.p158.InterfaceC3030
        /* JADX INFO: renamed from: ֏ */
        public void mo2522() {
        }
    }

    public C3064(Context context) {
        this.f9247 = context.getApplicationContext();
    }

    @Override // p138.p145.p146.p151.p158.InterfaceC3028
    /* JADX INFO: renamed from: ֏ */
    public InterfaceC3028.C3029<InputStream> mo2519(Uri uri, int i, int i2, C2848 c2848) {
        Uri uri2 = uri;
        if (!C0567.m1899(i, i2)) {
            return null;
        }
        C3226 c3226 = new C3226(uri2);
        Context context = this.f9247;
        return new InterfaceC3028.C3029<>(c3226, C2878.m4998(context, uri2, new C2878.C2879(context.getContentResolver())));
    }

    @Override // p138.p145.p146.p151.p158.InterfaceC3028
    /* JADX INFO: renamed from: ֏ */
    public boolean mo2520(Uri uri) {
        Uri uri2 = uri;
        return C0567.m1901(uri2) && !uri2.getPathSegments().contains("video");
    }
}
