package ඓ.ῲ.K.ᕣ.㳳;

import android.content.res.AssetFileDescriptor;
import android.content.res.Resources;
import android.net.Uri;
import android.os.ParcelFileDescriptor;
import android.util.Log;
import java.io.InputStream;
import ඓ.ῲ.K.ᕣ.C1121;
import ඓ.ῲ.K.ᕣ.㳳.AbstractC1033;

/* renamed from: ඓ.ῲ.K.ᕣ.㳳.ݜ  reason: contains not printable characters */
/* compiled from: ResourceLoader */
public class C1042<Data> implements AbstractC1033<Integer, Data> {

    /* renamed from: ῲ  reason: contains not printable characters */
    public final Resources f4482;

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

    /* renamed from: ඓ.ῲ.K.ᕣ.㳳.ݜ$ʬ  reason: contains not printable characters */
    /* compiled from: ResourceLoader */
    public static class C1043 implements AbstractC1091<Integer, InputStream> {

        /* renamed from: K  reason: contains not printable characters */
        public final Resources f4484;

        public C1043(Resources resources) {
            this.f4484 = resources;
        }

        @Override // ඓ.ῲ.K.ᕣ.㳳.AbstractC1091
        /* renamed from: K  reason: contains not printable characters */
        public AbstractC1033<Integer, InputStream> m2863(C1092 r5) {
            return new C1042(this.f4484, r5.m2953(Uri.class, InputStream.class));
        }
    }

    /* renamed from: ඓ.ῲ.K.ᕣ.㳳.ݜ$ῲ  reason: contains not printable characters */
    /* compiled from: ResourceLoader */
    public static class C1044 implements AbstractC1091<Integer, ParcelFileDescriptor> {

        /* renamed from: K  reason: contains not printable characters */
        public final Resources f4485;

        public C1044(Resources resources) {
            this.f4485 = resources;
        }

        @Override // ඓ.ῲ.K.ᕣ.㳳.AbstractC1091
        /* renamed from: K  reason: contains not printable characters */
        public AbstractC1033<Integer, ParcelFileDescriptor> m2864(C1092 r5) {
            return new C1042(this.f4485, r5.m2953(Uri.class, ParcelFileDescriptor.class));
        }
    }

    /* renamed from: ඓ.ῲ.K.ᕣ.㳳.ݜ$K  reason: contains not printable characters */
    /* compiled from: ResourceLoader */
    public static final class C1045 implements AbstractC1091<Integer, AssetFileDescriptor> {

        /* renamed from: K  reason: contains not printable characters */
        public final Resources f4486;

        public C1045(Resources resources) {
            this.f4486 = resources;
        }

        @Override // ඓ.ῲ.K.ᕣ.㳳.AbstractC1091
        /* renamed from: K  reason: contains not printable characters */
        public AbstractC1033<Integer, AssetFileDescriptor> m2865(C1092 r5) {
            return new C1042(this.f4486, r5.m2953(Uri.class, AssetFileDescriptor.class));
        }
    }

    /* renamed from: ඓ.ῲ.K.ᕣ.㳳.ݜ$㸾  reason: contains not printable characters */
    /* compiled from: ResourceLoader */
    public static class C1046 implements AbstractC1091<Integer, Uri> {

        /* renamed from: K  reason: contains not printable characters */
        public final Resources f4487;

        public C1046(Resources resources) {
            this.f4487 = resources;
        }

        @Override // ඓ.ῲ.K.ᕣ.㳳.AbstractC1091
        /* renamed from: K  reason: contains not printable characters */
        public AbstractC1033<Integer, Uri> m2866(C1092 r3) {
            return new C1042(this.f4487, C1109.f4575);
        }
    }

    public C1042(Resources resources, AbstractC1033<Uri, Data> r2) {
        this.f4482 = resources;
        this.f4483 = r2;
    }

    /* 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 m2861(Integer num, int i, int i2, C1121 r9) {
        Uri uri;
        Integer num2 = num;
        try {
            uri = Uri.parse("android.resource://" + this.f4482.getResourcePackageName(num2.intValue()) + '/' + this.f4482.getResourceTypeName(num2.intValue()) + '/' + this.f4482.getResourceEntryName(num2.intValue()));
        } catch (Resources.NotFoundException e) {
            if (Log.isLoggable("ResourceLoader", 5)) {
                Log.w("ResourceLoader", "Received invalid resource id: " + num2, e);
            }
            uri = null;
        }
        if (uri == null) {
            return null;
        }
        return this.f4483.m2849(uri, i, i2, r9);
    }

    /* 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 m2862(Integer num) {
        return true;
    }
}
