package defpackage;

import android.content.Context;
import android.net.Uri;

/* JADX INFO: renamed from: ᵡʦᵗᵵ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C3186 implements InterfaceC0713 {

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public final Context f12093;

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final /* synthetic */ int f12094;

    public C3186(Context context, int i) {
        this.f12094 = i;
        switch (i) {
            case 1:
                this.f12093 = context.getApplicationContext();
                break;
            case 2:
                this.f12093 = context.getApplicationContext();
                break;
            default:
                this.f12093 = context;
                break;
        }
    }

    @Override // defpackage.InterfaceC0713
    /* JADX INFO: renamed from: ʽˈˋ */
    public final C0529 mo1492(Object obj, int i, int i2, C2220 c2220) {
        Long l;
        int i3 = this.f12094;
        Context context = this.f12093;
        switch (i3) {
            case 0:
                Uri uri = (Uri) obj;
                return new C0529(new C0681(uri), new C1942(context, 0, uri));
            case 1:
                Uri uri2 = (Uri) obj;
                if (i == Integer.MIN_VALUE || i2 == Integer.MIN_VALUE || i > 512 || i2 > 384) {
                    return null;
                }
                return new C0529(new C0681(uri2), C4586.m9663(context, uri2, new ᵟˑʽ(context.getContentResolver())));
            default:
                Uri uri3 = (Uri) obj;
                if (i == Integer.MIN_VALUE || i2 == Integer.MIN_VALUE || i > 512 || i2 > 384 || (l = (Long) c2220.m5809(C4672.f17751)) == null || l.longValue() != -1) {
                    return null;
                }
                return new C0529(new C0681(uri3), C4586.m9663(context, uri3, new C1014(context.getContentResolver())));
        }
    }

    @Override // defpackage.InterfaceC0713
    /* JADX INFO: renamed from: ᵲᵶᵳˈ */
    public final boolean mo1493(Object obj) {
        switch (this.f12094) {
            case 0:
                return AbstractC0683.m2459((Uri) obj);
            case 1:
                Uri uri = (Uri) obj;
                return AbstractC0683.m2459(uri) && !uri.getPathSegments().contains("video");
            default:
                Uri uri2 = (Uri) obj;
                return AbstractC0683.m2459(uri2) && uri2.getPathSegments().contains("video");
        }
    }
}
