package p029j0;

import android.content.ClipDescription;
import android.net.Uri;
import android.os.Build;
import android.view.inputmethod.InputContentInfo;

/* renamed from: j0.k */
/* loaded from: classes.dex */
public final class C1264k {

    /* renamed from: a */
    public final InterfaceC1267c f2951a;

    /* renamed from: j0.k$a */
    /* loaded from: classes.dex */
    public static final class C1265a implements InterfaceC1267c {

        /* renamed from: a */
        public final InputContentInfo f2952a;

        public C1265a(Uri uri, ClipDescription clipDescription, Uri uri2) {
            this.f2952a = new InputContentInfo(uri, clipDescription, uri2);
        }

        public C1265a(Object obj) {
            this.f2952a = (InputContentInfo) obj;
        }

        @Override // p029j0.C1264k.InterfaceC1267c
        /* renamed from: a */
        public void mo1754a() {
            this.f2952a.requestPermission();
        }

        @Override // p029j0.C1264k.InterfaceC1267c
        /* renamed from: b */
        public Uri mo1753b() {
            Uri linkUri;
            linkUri = this.f2952a.getLinkUri();
            return linkUri;
        }

        @Override // p029j0.C1264k.InterfaceC1267c
        /* renamed from: c */
        public ClipDescription mo1752c() {
            ClipDescription description;
            description = this.f2952a.getDescription();
            return description;
        }

        @Override // p029j0.C1264k.InterfaceC1267c
        /* renamed from: d */
        public Object mo1751d() {
            return this.f2952a;
        }

        @Override // p029j0.C1264k.InterfaceC1267c
        /* renamed from: e */
        public Uri mo1750e() {
            Uri contentUri;
            contentUri = this.f2952a.getContentUri();
            return contentUri;
        }
    }

    /* renamed from: j0.k$b */
    /* loaded from: classes.dex */
    public static final class C1266b implements InterfaceC1267c {

        /* renamed from: a */
        public final Uri f2953a;

        /* renamed from: b */
        public final ClipDescription f2954b;

        /* renamed from: c */
        public final Uri f2955c;

        public C1266b(Uri uri, ClipDescription clipDescription, Uri uri2) {
            this.f2953a = uri;
            this.f2954b = clipDescription;
            this.f2955c = uri2;
        }

        @Override // p029j0.C1264k.InterfaceC1267c
        /* renamed from: a */
        public void mo1754a() {
        }

        @Override // p029j0.C1264k.InterfaceC1267c
        /* renamed from: b */
        public Uri mo1753b() {
            return this.f2955c;
        }

        @Override // p029j0.C1264k.InterfaceC1267c
        /* renamed from: c */
        public ClipDescription mo1752c() {
            return this.f2954b;
        }

        @Override // p029j0.C1264k.InterfaceC1267c
        /* renamed from: d */
        public Object mo1751d() {
            return null;
        }

        @Override // p029j0.C1264k.InterfaceC1267c
        /* renamed from: e */
        public Uri mo1750e() {
            return this.f2953a;
        }
    }

    /* renamed from: j0.k$c */
    /* loaded from: classes.dex */
    public interface InterfaceC1267c {
        /* renamed from: a */
        void mo1754a();

        /* renamed from: b */
        Uri mo1753b();

        /* renamed from: c */
        ClipDescription mo1752c();

        /* renamed from: d */
        Object mo1751d();

        /* renamed from: e */
        Uri mo1750e();
    }

    public C1264k(Uri uri, ClipDescription clipDescription, Uri uri2) {
        this.f2951a = Build.VERSION.SDK_INT >= 25 ? new C1265a(uri, clipDescription, uri2) : new C1266b(uri, clipDescription, uri2);
    }

    public C1264k(InterfaceC1267c interfaceC1267c) {
        this.f2951a = interfaceC1267c;
    }

    /* renamed from: f */
    public static C1264k m1755f(Object obj) {
        if (obj != null && Build.VERSION.SDK_INT >= 25) {
            return new C1264k(new C1265a(obj));
        }
        return null;
    }

    /* renamed from: a */
    public Uri m1760a() {
        return this.f2951a.mo1750e();
    }

    /* renamed from: b */
    public ClipDescription m1759b() {
        return this.f2951a.mo1752c();
    }

    /* renamed from: c */
    public Uri m1758c() {
        return this.f2951a.mo1753b();
    }

    /* renamed from: d */
    public void m1757d() {
        this.f2951a.mo1754a();
    }

    /* renamed from: e */
    public Object m1756e() {
        return this.f2951a.mo1751d();
    }
}