package ඓ.ῲ.K.ᕣ.㳳;

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 ඓ.ῲ.K.ᕣ.C1121;
import ඓ.ῲ.K.ᕣ.㳳.AbstractC1033;

/* renamed from: ඓ.ῲ.K.ᕣ.㳳.Ԛ  reason: contains not printable characters */
/* compiled from: StringLoader */
public class C1035<Data> implements AbstractC1033<String, Data> {

    /* renamed from: K  reason: contains not printable characters */
    public final AbstractC1033<Uri, Data> f4477;

    /* renamed from: ඓ.ῲ.K.ᕣ.㳳.Ԛ$ʬ  reason: contains not printable characters */
    /* compiled from: StringLoader */
    public static class C1036 implements AbstractC1091<String, InputStream> {
        @Override // ඓ.ῲ.K.ᕣ.㳳.AbstractC1091
        /* renamed from: K  reason: contains not printable characters */
        public AbstractC1033<String, InputStream> m2854(C1092 r4) {
            return new C1035(r4.m2953(Uri.class, InputStream.class));
        }
    }

    /* renamed from: ඓ.ῲ.K.ᕣ.㳳.Ԛ$ῲ  reason: contains not printable characters */
    /* compiled from: StringLoader */
    public static class C1037 implements AbstractC1091<String, ParcelFileDescriptor> {
        @Override // ඓ.ῲ.K.ᕣ.㳳.AbstractC1091
        /* renamed from: K  reason: contains not printable characters */
        public AbstractC1033<String, ParcelFileDescriptor> m2855(C1092 r4) {
            return new C1035(r4.m2953(Uri.class, ParcelFileDescriptor.class));
        }
    }

    /* renamed from: ඓ.ῲ.K.ᕣ.㳳.Ԛ$K  reason: contains not printable characters */
    /* compiled from: StringLoader */
    public static final class C1038 implements AbstractC1091<String, AssetFileDescriptor> {
        @Override // ඓ.ῲ.K.ᕣ.㳳.AbstractC1091
        /* renamed from: K  reason: contains not printable characters */
        public AbstractC1033<String, AssetFileDescriptor> m2856(C1092 r4) {
            return new C1035(r4.m2953(Uri.class, AssetFileDescriptor.class));
        }
    }

    public C1035(AbstractC1033<Uri, Data> r1) {
        this.f4477 = r1;
    }

    /* 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 m2852(String str, int i, int i2, C1121 r7) {
        Uri uri;
        String str2 = str;
        if (TextUtils.isEmpty(str2)) {
            uri = null;
        } else if (str2.charAt(0) == '/') {
            uri = m2851(str2);
        } else {
            Uri parse = Uri.parse(str2);
            uri = parse.getScheme() == null ? m2851(str2) : parse;
        }
        if (uri == null || !this.f4477.m2850(uri)) {
            return null;
        }
        return this.f4477.m2849(uri, i, i2, r7);
    }

    /* 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 m2853(String str) {
        return true;
    }

    /* renamed from: K  reason: contains not printable characters */
    public static Uri m2851(String str) {
        return Uri.fromFile(new File(str));
    }
}
