package defpackage;

import android.content.ClipData;
import android.net.Uri;
import android.os.Bundle;
import android.view.ContentInfo;
import java.util.Locale;

/* renamed from: ᵪˎˎ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C3883 implements InterfaceC1657, InterfaceC3895 {

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public Uri f14434;

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public Bundle f14435;

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public int f14436;

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final /* synthetic */ int f14437 = 0;

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public ClipData f14438;

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public int f14439;

    public /* synthetic */ C3883() {
    }

    public C3883(C3883 c3883) {
        ClipData clipData = c3883.f14438;
        clipData.getClass();
        this.f14438 = clipData;
        int i = c3883.f14436;
        if (i < 0) {
            Locale locale = Locale.US;
            ᵹˉᵞ.ˌᵜᵹᵩ("source is out of range of [0, 5] (too low)");
            throw null;
        }
        if (i > 5) {
            Locale locale2 = Locale.US;
            ᵹˉᵞ.ˌᵜᵹᵩ("source is out of range of [0, 5] (too high)");
            throw null;
        }
        this.f14436 = i;
        int i2 = c3883.f14439;
        if ((i2 & 1) == i2) {
            this.f14439 = i2;
            this.f14434 = c3883.f14434;
            this.f14435 = c3883.f14435;
            return;
        }
        throw new IllegalArgumentException("Requested flags 0x" + Integer.toHexString(i2) + ", but only 0x" + Integer.toHexString(1) + " are allowed");
    }

    @Override // defpackage.InterfaceC1657
    public C1848 build() {
        return new C1848(new C3883(this));
    }

    @Override // defpackage.InterfaceC1657
    public void setExtras(Bundle bundle) {
        this.f14435 = bundle;
    }

    public String toString() {
        String str;
        switch (this.f14437) {
            case 1:
                Uri uri = this.f14434;
                StringBuilder sb = new StringBuilder("ContentInfoCompat{clip=");
                sb.append(this.f14438.getDescription());
                sb.append(", source=");
                int i = this.f14436;
                sb.append(i != 0 ? i != 1 ? i != 2 ? i != 3 ? i != 4 ? i != 5 ? String.valueOf(i) : "SOURCE_PROCESS_TEXT" : "SOURCE_AUTOFILL" : "SOURCE_DRAG_AND_DROP" : "SOURCE_INPUT_METHOD" : "SOURCE_CLIPBOARD" : "SOURCE_APP");
                sb.append(", flags=");
                int i2 = this.f14439;
                sb.append((i2 & 1) != 0 ? "FLAG_CONVERT_TO_PLAIN_TEXT" : String.valueOf(i2));
                if (uri == null) {
                    str = "";
                } else {
                    str = ", hasLinkUri(" + uri.toString().length() + ")";
                }
                sb.append(str);
                return AbstractC1327.m4107(sb, this.f14435 != null ? ", hasExtras" : "", "}");
            default:
                return super.toString();
        }
    }

    @Override // defpackage.InterfaceC3895
    /* renamed from: ˇʼʤˎ */
    public int mo6674() {
        return this.f14439;
    }

    @Override // defpackage.InterfaceC3895
    /* renamed from: ˏˋٴ */
    public ContentInfo mo6676() {
        return null;
    }

    @Override // defpackage.InterfaceC1657
    /* renamed from: ˏᵙ */
    public void mo4714(Uri uri) {
        this.f14434 = uri;
    }

    @Override // defpackage.InterfaceC3895
    /* renamed from: ᵥᵯˎ */
    public int mo6677() {
        return this.f14436;
    }

    @Override // defpackage.InterfaceC3895
    /* renamed from: ᵴᵳ */
    public ClipData mo6678() {
        return this.f14438;
    }

    @Override // defpackage.InterfaceC1657
    /* renamed from: ᵻᵢﹳᵰ */
    public void mo4715(int i) {
        this.f14439 = i;
    }
}
