package X6FRs_4.IMuAHx_6.EuDEkJe_12.NzhupJ_29;

import X6FRs_4.IMuAHx_6.EuDEkJe_12.NzhupJ_29.IMuAHx_6;
import android.graphics.Rect;
import android.os.Build;
import android.os.Bundle;
import android.text.SpannableString;
import android.text.Spanned;
import android.text.TextUtils;
import android.text.style.ClickableSpan;
import android.util.Log;
import android.util.SparseArray;
import android.view.View;
import android.view.accessibility.AccessibilityNodeInfo;
import androidx.recyclerview.widget.RecyclerView;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.List;
/* compiled from: AccessibilityNodeInfoCompat.java */
/* loaded from: classes.dex */
public class Mqv2r_3 {
    public static int PGPF6hQ_2;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public final AccessibilityNodeInfo f380KQgRr5e_0;
    public int KQgRr5e_0 = -1;
    public int QxJ9d_1 = -1;

    /* compiled from: AccessibilityNodeInfoCompat.java */
    /* loaded from: classes.dex */
    public static class KQgRr5e_0 {
        public static final KQgRr5e_0 PGPF6hQ_2;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public final IMuAHx_6 f381KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public final Class<? extends IMuAHx_6.KQgRr5e_0> f382KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public final Object f383KQgRr5e_0;
        public static final KQgRr5e_0 KQgRr5e_0 = new KQgRr5e_0(1, null);
        public static final KQgRr5e_0 QxJ9d_1 = new KQgRr5e_0(2, null);

        static {
            new KQgRr5e_0(4, null);
            new KQgRr5e_0(8, null);
            PGPF6hQ_2 = new KQgRr5e_0(16, null);
            new KQgRr5e_0(32, null);
            new KQgRr5e_0(64, null);
            new KQgRr5e_0(RecyclerView.WGk6X_27.FLAG_IGNORE, null);
            new KQgRr5e_0(RecyclerView.WGk6X_27.FLAG_TMP_DETACHED, null, IMuAHx_6.QxJ9d_1.class);
            new KQgRr5e_0(RecyclerView.WGk6X_27.FLAG_ADAPTER_POSITION_UNKNOWN, null, IMuAHx_6.QxJ9d_1.class);
            new KQgRr5e_0(RecyclerView.WGk6X_27.FLAG_ADAPTER_FULLUPDATE, null, IMuAHx_6.PGPF6hQ_2.class);
            new KQgRr5e_0(RecyclerView.WGk6X_27.FLAG_MOVED, null, IMuAHx_6.PGPF6hQ_2.class);
            new KQgRr5e_0(RecyclerView.WGk6X_27.FLAG_APPEARED_IN_PRE_LAYOUT, null);
            new KQgRr5e_0(RecyclerView.WGk6X_27.FLAG_BOUNCED_FROM_HIDDEN_LIST, null);
            new KQgRr5e_0(RecyclerView.WGk6X_27.FLAG_SET_A11Y_ITEM_DELEGATE, null);
            new KQgRr5e_0(32768, null);
            new KQgRr5e_0(65536, null);
            new KQgRr5e_0(131072, null, IMuAHx_6.C0036IMuAHx_6.class);
            new KQgRr5e_0(262144, null);
            new KQgRr5e_0(524288, null);
            new KQgRr5e_0(1048576, null);
            new KQgRr5e_0(2097152, null, IMuAHx_6.FSaI4_7.class);
            new KQgRr5e_0(Build.VERSION.SDK_INT >= 23 ? AccessibilityNodeInfo.AccessibilityAction.ACTION_SHOW_ON_SCREEN : null, 16908342, null, null, null);
            new KQgRr5e_0(Build.VERSION.SDK_INT >= 23 ? AccessibilityNodeInfo.AccessibilityAction.ACTION_SCROLL_TO_POSITION : null, 16908343, null, null, IMuAHx_6.X6FRs_4.class);
            new KQgRr5e_0(Build.VERSION.SDK_INT >= 23 ? AccessibilityNodeInfo.AccessibilityAction.ACTION_SCROLL_UP : null, 16908344, null, null, null);
            new KQgRr5e_0(Build.VERSION.SDK_INT >= 23 ? AccessibilityNodeInfo.AccessibilityAction.ACTION_SCROLL_LEFT : null, 16908345, null, null, null);
            new KQgRr5e_0(Build.VERSION.SDK_INT >= 23 ? AccessibilityNodeInfo.AccessibilityAction.ACTION_SCROLL_DOWN : null, 16908346, null, null, null);
            new KQgRr5e_0(Build.VERSION.SDK_INT >= 23 ? AccessibilityNodeInfo.AccessibilityAction.ACTION_SCROLL_RIGHT : null, 16908347, null, null, null);
            new KQgRr5e_0(Build.VERSION.SDK_INT >= 23 ? AccessibilityNodeInfo.AccessibilityAction.ACTION_CONTEXT_CLICK : null, 16908348, null, null, null);
            new KQgRr5e_0(Build.VERSION.SDK_INT >= 24 ? AccessibilityNodeInfo.AccessibilityAction.ACTION_SET_PROGRESS : null, 16908349, null, null, IMuAHx_6.IFxWkV_5.class);
            new KQgRr5e_0(Build.VERSION.SDK_INT >= 26 ? AccessibilityNodeInfo.AccessibilityAction.ACTION_MOVE_WINDOW : null, 16908354, null, null, IMuAHx_6.Mqv2r_3.class);
            new KQgRr5e_0(Build.VERSION.SDK_INT >= 28 ? AccessibilityNodeInfo.AccessibilityAction.ACTION_SHOW_TOOLTIP : null, 16908356, null, null, null);
            new KQgRr5e_0(Build.VERSION.SDK_INT >= 28 ? AccessibilityNodeInfo.AccessibilityAction.ACTION_HIDE_TOOLTIP : null, 16908357, null, null, null);
        }

        public KQgRr5e_0(int i, CharSequence charSequence) {
            this(null, i, charSequence, null, null);
        }

        public int KQgRr5e_0() {
            if (Build.VERSION.SDK_INT >= 21) {
                return ((AccessibilityNodeInfo.AccessibilityAction) this.f383KQgRr5e_0).getId();
            }
            return 0;
        }

        public KQgRr5e_0(int i, CharSequence charSequence, Class<? extends IMuAHx_6.KQgRr5e_0> cls) {
            this(null, i, charSequence, null, cls);
        }

        public KQgRr5e_0(Object obj, int i, CharSequence charSequence, IMuAHx_6 iMuAHx_6, Class<? extends IMuAHx_6.KQgRr5e_0> cls) {
            this.f381KQgRr5e_0 = iMuAHx_6;
            if (Build.VERSION.SDK_INT >= 21 && obj == null) {
                this.f383KQgRr5e_0 = new AccessibilityNodeInfo.AccessibilityAction(i, charSequence);
            } else {
                this.f383KQgRr5e_0 = obj;
            }
            this.f382KQgRr5e_0 = cls;
        }

        public boolean KQgRr5e_0(View view, Bundle bundle) {
            IMuAHx_6.KQgRr5e_0 newInstance;
            if (this.f381KQgRr5e_0 != null) {
                IMuAHx_6.KQgRr5e_0 kQgRr5e_0 = null;
                Class<? extends IMuAHx_6.KQgRr5e_0> cls = this.f382KQgRr5e_0;
                if (cls != null) {
                    try {
                        newInstance = cls.getDeclaredConstructor(new Class[0]).newInstance(new Object[0]);
                    } catch (Exception e) {
                        e = e;
                    }
                    try {
                        newInstance.KQgRr5e_0(bundle);
                        kQgRr5e_0 = newInstance;
                    } catch (Exception e2) {
                        e = e2;
                        kQgRr5e_0 = newInstance;
                        Class<? extends IMuAHx_6.KQgRr5e_0> cls2 = this.f382KQgRr5e_0;
                        String name = cls2 == null ? "null" : cls2.getName();
                        Log.e("A11yActionCompat", "Failed to execute command with argument class ViewCommandArgument: " + name, e);
                        return this.f381KQgRr5e_0.KQgRr5e_0(view, kQgRr5e_0);
                    }
                }
                return this.f381KQgRr5e_0.KQgRr5e_0(view, kQgRr5e_0);
            }
            return false;
        }
    }

    /* compiled from: AccessibilityNodeInfoCompat.java */
    /* loaded from: classes.dex */
    public static class PGPF6hQ_2 {
        public final Object KQgRr5e_0;

        public PGPF6hQ_2(Object obj) {
            this.KQgRr5e_0 = obj;
        }

        public static PGPF6hQ_2 KQgRr5e_0(int i, int i2, int i3, int i4, boolean z, boolean z2) {
            int i5 = Build.VERSION.SDK_INT;
            if (i5 >= 21) {
                return new PGPF6hQ_2(AccessibilityNodeInfo.CollectionItemInfo.obtain(i, i2, i3, i4, z, z2));
            }
            if (i5 >= 19) {
                return new PGPF6hQ_2(AccessibilityNodeInfo.CollectionItemInfo.obtain(i, i2, i3, i4, z));
            }
            return new PGPF6hQ_2(null);
        }
    }

    /* compiled from: AccessibilityNodeInfoCompat.java */
    /* loaded from: classes.dex */
    public static class QxJ9d_1 {
        public final Object KQgRr5e_0;

        public QxJ9d_1(Object obj) {
            this.KQgRr5e_0 = obj;
        }

        public static QxJ9d_1 KQgRr5e_0(int i, int i2, boolean z, int i3) {
            int i4 = Build.VERSION.SDK_INT;
            if (i4 >= 21) {
                return new QxJ9d_1(AccessibilityNodeInfo.CollectionInfo.obtain(i, i2, z, i3));
            }
            if (i4 >= 19) {
                return new QxJ9d_1(AccessibilityNodeInfo.CollectionInfo.obtain(i, i2, z));
            }
            return new QxJ9d_1(null);
        }
    }

    public Mqv2r_3(AccessibilityNodeInfo accessibilityNodeInfo) {
        this.f380KQgRr5e_0 = accessibilityNodeInfo;
    }

    public static Mqv2r_3 KQgRr5e_0(AccessibilityNodeInfo accessibilityNodeInfo) {
        return new Mqv2r_3(accessibilityNodeInfo);
    }

    public static String KQgRr5e_0(int i) {
        if (i != 1) {
            if (i != 2) {
                switch (i) {
                    case 4:
                        return "ACTION_SELECT";
                    case 8:
                        return "ACTION_CLEAR_SELECTION";
                    case 16:
                        return "ACTION_CLICK";
                    case 32:
                        return "ACTION_LONG_CLICK";
                    case 64:
                        return "ACTION_ACCESSIBILITY_FOCUS";
                    case RecyclerView.WGk6X_27.FLAG_IGNORE /* 128 */:
                        return "ACTION_CLEAR_ACCESSIBILITY_FOCUS";
                    case RecyclerView.WGk6X_27.FLAG_TMP_DETACHED /* 256 */:
                        return "ACTION_NEXT_AT_MOVEMENT_GRANULARITY";
                    case RecyclerView.WGk6X_27.FLAG_ADAPTER_POSITION_UNKNOWN /* 512 */:
                        return "ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY";
                    case RecyclerView.WGk6X_27.FLAG_ADAPTER_FULLUPDATE /* 1024 */:
                        return "ACTION_NEXT_HTML_ELEMENT";
                    case RecyclerView.WGk6X_27.FLAG_MOVED /* 2048 */:
                        return "ACTION_PREVIOUS_HTML_ELEMENT";
                    case RecyclerView.WGk6X_27.FLAG_APPEARED_IN_PRE_LAYOUT /* 4096 */:
                        return "ACTION_SCROLL_FORWARD";
                    case RecyclerView.WGk6X_27.FLAG_BOUNCED_FROM_HIDDEN_LIST /* 8192 */:
                        return "ACTION_SCROLL_BACKWARD";
                    case RecyclerView.WGk6X_27.FLAG_SET_A11Y_ITEM_DELEGATE /* 16384 */:
                        return "ACTION_COPY";
                    case 32768:
                        return "ACTION_PASTE";
                    case 65536:
                        return "ACTION_CUT";
                    case 131072:
                        return "ACTION_SET_SELECTION";
                    default:
                        return "ACTION_UNKNOWN";
                }
            }
            return "ACTION_CLEAR_FOCUS";
        }
        return "ACTION_FOCUS";
    }

    public boolean EuDEkJe_12() {
        if (Build.VERSION.SDK_INT >= 16) {
            return this.f380KQgRr5e_0.isVisibleToUser();
        }
        return false;
    }

    public boolean FSaI4_7() {
        return this.f380KQgRr5e_0.isFocused();
    }

    public boolean IFxWkV_5() {
        return this.f380KQgRr5e_0.isEnabled();
    }

    public boolean IMuAHx_6() {
        return this.f380KQgRr5e_0.isFocusable();
    }

    public void JZJr_16(boolean z) {
        if (Build.VERSION.SDK_INT >= 16) {
            this.f380KQgRr5e_0.setVisibleToUser(z);
        }
    }

    public boolean KNBe_11() {
        return this.f380KQgRr5e_0.isSelected();
    }

    public void LGe8pk_15(boolean z) {
        if (Build.VERSION.SDK_INT >= 26) {
            this.f380KQgRr5e_0.setShowingHintText(z);
        } else {
            KQgRr5e_0(4, z);
        }
    }

    public void Mqv2r_3(View view) {
        this.QxJ9d_1 = -1;
        this.f380KQgRr5e_0.setSource(view);
    }

    public boolean Nm6q_10() {
        return this.f380KQgRr5e_0.isScrollable();
    }

    public void PGPF6hQ_2(View view, int i) {
        this.QxJ9d_1 = i;
        if (Build.VERSION.SDK_INT >= 16) {
            this.f380KQgRr5e_0.setSource(view, i);
        }
    }

    public int QxJ9d_1() {
        return this.f380KQgRr5e_0.getChildCount();
    }

    public void WwEq_13(boolean z) {
        this.f380KQgRr5e_0.setScrollable(z);
    }

    public boolean X6FRs_4() {
        return this.f380KQgRr5e_0.isClickable();
    }

    public void Xgtqvk_8(boolean z) {
        this.f380KQgRr5e_0.setFocusable(z);
    }

    public void XnFJ5_9(boolean z) {
        this.f380KQgRr5e_0.setFocused(z);
    }

    public void YghfZG_14(boolean z) {
        this.f380KQgRr5e_0.setSelected(z);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj != null && Mqv2r_3.class == obj.getClass()) {
            Mqv2r_3 mqv2r_3 = (Mqv2r_3) obj;
            AccessibilityNodeInfo accessibilityNodeInfo = this.f380KQgRr5e_0;
            if (accessibilityNodeInfo == null) {
                if (mqv2r_3.f380KQgRr5e_0 != null) {
                    return false;
                }
            } else if (!accessibilityNodeInfo.equals(mqv2r_3.f380KQgRr5e_0)) {
                return false;
            }
            return this.QxJ9d_1 == mqv2r_3.QxJ9d_1 && this.KQgRr5e_0 == mqv2r_3.KQgRr5e_0;
        }
        return false;
    }

    public int hashCode() {
        AccessibilityNodeInfo accessibilityNodeInfo = this.f380KQgRr5e_0;
        if (accessibilityNodeInfo == null) {
            return 0;
        }
        return accessibilityNodeInfo.hashCode();
    }

    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(super.toString());
        Rect rect = new Rect();
        KQgRr5e_0(rect);
        sb.append("; boundsInParent: " + rect);
        QxJ9d_1(rect);
        sb.append("; boundsInScreen: " + rect);
        sb.append("; packageName: ");
        sb.append(m235PGPF6hQ_2());
        sb.append("; className: ");
        sb.append(m226KQgRr5e_0());
        sb.append("; text: ");
        sb.append(Mqv2r_3());
        sb.append("; contentDescription: ");
        sb.append(m237QxJ9d_1());
        sb.append("; viewId: ");
        sb.append(m227KQgRr5e_0());
        sb.append("; checkable: ");
        sb.append(m236PGPF6hQ_2());
        sb.append("; checked: ");
        sb.append(m234Mqv2r_3());
        sb.append("; focusable: ");
        sb.append(IMuAHx_6());
        sb.append("; focused: ");
        sb.append(FSaI4_7());
        sb.append("; selected: ");
        sb.append(KNBe_11());
        sb.append("; clickable: ");
        sb.append(X6FRs_4());
        sb.append("; longClickable: ");
        sb.append(Xgtqvk_8());
        sb.append("; enabled: ");
        sb.append(IFxWkV_5());
        sb.append("; password: ");
        sb.append(XnFJ5_9());
        sb.append("; scrollable: " + Nm6q_10());
        sb.append("; [");
        int m222KQgRr5e_0 = m222KQgRr5e_0();
        while (m222KQgRr5e_0 != 0) {
            int numberOfTrailingZeros = 1 << Integer.numberOfTrailingZeros(m222KQgRr5e_0);
            m222KQgRr5e_0 &= numberOfTrailingZeros ^ (-1);
            sb.append(KQgRr5e_0(numberOfTrailingZeros));
            if (m222KQgRr5e_0 != 0) {
                sb.append(", ");
            }
        }
        sb.append("]");
        return sb.toString();
    }

    public void FSaI4_7(boolean z) {
        this.f380KQgRr5e_0.setEnabled(z);
    }

    public void IFxWkV_5(boolean z) {
        if (Build.VERSION.SDK_INT >= 19) {
            this.f380KQgRr5e_0.setContentInvalid(z);
        }
    }

    public void IMuAHx_6(CharSequence charSequence) {
        this.f380KQgRr5e_0.setText(charSequence);
    }

    public void KNBe_11(boolean z) {
        this.f380KQgRr5e_0.setLongClickable(z);
    }

    /* renamed from: KQgRr5e_0  reason: collision with other method in class */
    public AccessibilityNodeInfo m225KQgRr5e_0() {
        return this.f380KQgRr5e_0;
    }

    public void Nm6q_10(boolean z) {
        if (Build.VERSION.SDK_INT >= 28) {
            this.f380KQgRr5e_0.setHeading(z);
        } else {
            KQgRr5e_0(2, z);
        }
    }

    public void QxJ9d_1(int i) {
        if (Build.VERSION.SDK_INT >= 16) {
            this.f380KQgRr5e_0.setMovementGranularities(i);
        }
    }

    public void X6FRs_4(boolean z) {
        this.f380KQgRr5e_0.setClickable(z);
    }

    public boolean Xgtqvk_8() {
        return this.f380KQgRr5e_0.isLongClickable();
    }

    public boolean XnFJ5_9() {
        return this.f380KQgRr5e_0.isPassword();
    }

    public static Mqv2r_3 KQgRr5e_0(View view) {
        return KQgRr5e_0(AccessibilityNodeInfo.obtain(view));
    }

    public void EuDEkJe_12(boolean z) {
        if (Build.VERSION.SDK_INT >= 28) {
            this.f380KQgRr5e_0.setScreenReaderFocusable(z);
        } else {
            KQgRr5e_0(1, z);
        }
    }

    public void IMuAHx_6(boolean z) {
        if (Build.VERSION.SDK_INT >= 19) {
            this.f380KQgRr5e_0.setDismissable(z);
        }
    }

    public void Mqv2r_3(Rect rect) {
        this.f380KQgRr5e_0.setBoundsInScreen(rect);
    }

    public void X6FRs_4(CharSequence charSequence) {
        this.f380KQgRr5e_0.setPackageName(charSequence);
    }

    public static Mqv2r_3 KQgRr5e_0() {
        return KQgRr5e_0(AccessibilityNodeInfo.obtain());
    }

    public void IFxWkV_5(CharSequence charSequence) {
        int i = Build.VERSION.SDK_INT;
        if (i >= 28) {
            this.f380KQgRr5e_0.setPaneTitle(charSequence);
        } else if (i >= 19) {
            this.f380KQgRr5e_0.getExtras().putCharSequence("androidx.view.accessibility.AccessibilityNodeInfoCompat.PANE_TITLE_KEY", charSequence);
        }
    }

    /* renamed from: Mqv2r_3  reason: collision with other method in class */
    public boolean m234Mqv2r_3() {
        return this.f380KQgRr5e_0.isChecked();
    }

    public int PGPF6hQ_2() {
        if (Build.VERSION.SDK_INT >= 16) {
            return this.f380KQgRr5e_0.getMovementGranularities();
        }
        return 0;
    }

    public void QxJ9d_1(View view, int i) {
        this.KQgRr5e_0 = i;
        if (Build.VERSION.SDK_INT >= 16) {
            this.f380KQgRr5e_0.setParent(view, i);
        }
    }

    public static Mqv2r_3 KQgRr5e_0(Mqv2r_3 mqv2r_3) {
        return KQgRr5e_0(AccessibilityNodeInfo.obtain(mqv2r_3.f380KQgRr5e_0));
    }

    public void Mqv2r_3(boolean z) {
        this.f380KQgRr5e_0.setChecked(z);
    }

    /* renamed from: KQgRr5e_0  reason: collision with other method in class */
    public void m230KQgRr5e_0(View view) {
        this.f380KQgRr5e_0.addChild(view);
    }

    public CharSequence Mqv2r_3() {
        if (m232KQgRr5e_0()) {
            List<Integer> KQgRr5e_02 = KQgRr5e_0("androidx.view.accessibility.AccessibilityNodeInfoCompat.SPANS_START_KEY");
            List<Integer> KQgRr5e_03 = KQgRr5e_0("androidx.view.accessibility.AccessibilityNodeInfoCompat.SPANS_END_KEY");
            List<Integer> KQgRr5e_04 = KQgRr5e_0("androidx.view.accessibility.AccessibilityNodeInfoCompat.SPANS_FLAGS_KEY");
            List<Integer> KQgRr5e_05 = KQgRr5e_0("androidx.view.accessibility.AccessibilityNodeInfoCompat.SPANS_ID_KEY");
            SpannableString spannableString = new SpannableString(TextUtils.substring(this.f380KQgRr5e_0.getText(), 0, this.f380KQgRr5e_0.getText().length()));
            for (int i = 0; i < KQgRr5e_02.size(); i++) {
                spannableString.setSpan(new X6FRs_4.IMuAHx_6.EuDEkJe_12.NzhupJ_29.KQgRr5e_0(KQgRr5e_05.get(i).intValue(), this, m223KQgRr5e_0().getInt("androidx.view.accessibility.AccessibilityNodeInfoCompat.SPANS_ACTION_ID_KEY")), KQgRr5e_02.get(i).intValue(), KQgRr5e_03.get(i).intValue(), KQgRr5e_04.get(i).intValue());
            }
            return spannableString;
        }
        return this.f380KQgRr5e_0.getText();
    }

    public void PGPF6hQ_2(View view) {
        this.KQgRr5e_0 = -1;
        this.f380KQgRr5e_0.setParent(view);
    }

    public void KQgRr5e_0(View view, int i) {
        if (Build.VERSION.SDK_INT >= 16) {
            this.f380KQgRr5e_0.addChild(view, i);
        }
    }

    public void QxJ9d_1(Rect rect) {
        this.f380KQgRr5e_0.getBoundsInScreen(rect);
    }

    public void PGPF6hQ_2(Rect rect) {
        this.f380KQgRr5e_0.setBoundsInParent(rect);
    }

    /* renamed from: QxJ9d_1  reason: collision with other method in class */
    public boolean m240QxJ9d_1() {
        if (Build.VERSION.SDK_INT >= 16) {
            return this.f380KQgRr5e_0.isAccessibilityFocused();
        }
        return false;
    }

    /* renamed from: KQgRr5e_0  reason: collision with other method in class */
    public int m222KQgRr5e_0() {
        return this.f380KQgRr5e_0.getActions();
    }

    /* renamed from: PGPF6hQ_2  reason: collision with other method in class */
    public boolean m236PGPF6hQ_2() {
        return this.f380KQgRr5e_0.isCheckable();
    }

    /* renamed from: KQgRr5e_0  reason: collision with other method in class */
    public void m229KQgRr5e_0(int i) {
        this.f380KQgRr5e_0.addAction(i);
    }

    public void PGPF6hQ_2(boolean z) {
        this.f380KQgRr5e_0.setCheckable(z);
    }

    public final SparseArray<WeakReference<ClickableSpan>> QxJ9d_1(View view) {
        return (SparseArray) view.getTag(X6FRs_4.IMuAHx_6.QxJ9d_1.tag_accessibility_clickable_spans);
    }

    public final List<Integer> KQgRr5e_0(String str) {
        if (Build.VERSION.SDK_INT < 19) {
            return new ArrayList();
        }
        ArrayList<Integer> integerArrayList = this.f380KQgRr5e_0.getExtras().getIntegerArrayList(str);
        if (integerArrayList == null) {
            ArrayList<Integer> arrayList = new ArrayList<>();
            this.f380KQgRr5e_0.getExtras().putIntegerArrayList(str, arrayList);
            return arrayList;
        }
        return integerArrayList;
    }

    /* renamed from: PGPF6hQ_2  reason: collision with other method in class */
    public CharSequence m235PGPF6hQ_2() {
        return this.f380KQgRr5e_0.getPackageName();
    }

    /* renamed from: QxJ9d_1  reason: collision with other method in class */
    public final void m239QxJ9d_1(View view) {
        SparseArray<WeakReference<ClickableSpan>> QxJ9d_12 = QxJ9d_1(view);
        if (QxJ9d_12 != null) {
            ArrayList arrayList = new ArrayList();
            for (int i = 0; i < QxJ9d_12.size(); i++) {
                if (QxJ9d_12.valueAt(i).get() == null) {
                    arrayList.add(Integer.valueOf(i));
                }
            }
            for (int i2 = 0; i2 < arrayList.size(); i2++) {
                QxJ9d_12.remove(((Integer) arrayList.get(i2)).intValue());
            }
        }
    }

    public void PGPF6hQ_2(CharSequence charSequence) {
        if (Build.VERSION.SDK_INT >= 21) {
            this.f380KQgRr5e_0.setError(charSequence);
        }
    }

    public void KQgRr5e_0(KQgRr5e_0 kQgRr5e_0) {
        if (Build.VERSION.SDK_INT >= 21) {
            this.f380KQgRr5e_0.addAction((AccessibilityNodeInfo.AccessibilityAction) kQgRr5e_0.f383KQgRr5e_0);
        }
    }

    /* renamed from: QxJ9d_1  reason: collision with other method in class */
    public CharSequence m237QxJ9d_1() {
        return this.f380KQgRr5e_0.getContentDescription();
    }

    /* renamed from: KQgRr5e_0  reason: collision with other method in class */
    public boolean m233KQgRr5e_0(KQgRr5e_0 kQgRr5e_0) {
        if (Build.VERSION.SDK_INT >= 21) {
            return this.f380KQgRr5e_0.removeAction((AccessibilityNodeInfo.AccessibilityAction) kQgRr5e_0.f383KQgRr5e_0);
        }
        return false;
    }

    public void QxJ9d_1(CharSequence charSequence) {
        this.f380KQgRr5e_0.setContentDescription(charSequence);
    }

    public void Mqv2r_3(CharSequence charSequence) {
        int i = Build.VERSION.SDK_INT;
        if (i >= 26) {
            this.f380KQgRr5e_0.setHintText(charSequence);
        } else if (i >= 19) {
            this.f380KQgRr5e_0.getExtras().putCharSequence("androidx.view.accessibility.AccessibilityNodeInfoCompat.HINT_TEXT_KEY", charSequence);
        }
    }

    /* renamed from: QxJ9d_1  reason: collision with other method in class */
    public void m238QxJ9d_1() {
        this.f380KQgRr5e_0.recycle();
    }

    public boolean KQgRr5e_0(int i, Bundle bundle) {
        if (Build.VERSION.SDK_INT >= 16) {
            return this.f380KQgRr5e_0.performAction(i, bundle);
        }
        return false;
    }

    public void QxJ9d_1(Object obj) {
        if (Build.VERSION.SDK_INT >= 19) {
            this.f380KQgRr5e_0.setCollectionItemInfo(obj == null ? null : (AccessibilityNodeInfo.CollectionItemInfo) ((PGPF6hQ_2) obj).KQgRr5e_0);
        }
    }

    public void KQgRr5e_0(Rect rect) {
        this.f380KQgRr5e_0.getBoundsInParent(rect);
    }

    public void QxJ9d_1(boolean z) {
        if (Build.VERSION.SDK_INT >= 19) {
            this.f380KQgRr5e_0.setCanOpenPopup(z);
        }
    }

    public void KQgRr5e_0(boolean z) {
        if (Build.VERSION.SDK_INT >= 16) {
            this.f380KQgRr5e_0.setAccessibilityFocused(z);
        }
    }

    /* renamed from: KQgRr5e_0  reason: collision with other method in class */
    public CharSequence m226KQgRr5e_0() {
        return this.f380KQgRr5e_0.getClassName();
    }

    /* renamed from: KQgRr5e_0  reason: collision with other method in class */
    public void m231KQgRr5e_0(CharSequence charSequence) {
        this.f380KQgRr5e_0.setClassName(charSequence);
    }

    public void KQgRr5e_0(CharSequence charSequence, View view) {
        int i = Build.VERSION.SDK_INT;
        if (i < 19 || i >= 26) {
            return;
        }
        m228KQgRr5e_0();
        m239QxJ9d_1(view);
        ClickableSpan[] KQgRr5e_02 = KQgRr5e_0(charSequence);
        if (KQgRr5e_02 == null || KQgRr5e_02.length <= 0) {
            return;
        }
        m223KQgRr5e_0().putInt("androidx.view.accessibility.AccessibilityNodeInfoCompat.SPANS_ACTION_ID_KEY", X6FRs_4.IMuAHx_6.QxJ9d_1.accessibility_action_clickable_span);
        SparseArray<WeakReference<ClickableSpan>> m224KQgRr5e_0 = m224KQgRr5e_0(view);
        for (int i2 = 0; KQgRr5e_02 != null && i2 < KQgRr5e_02.length; i2++) {
            int KQgRr5e_03 = KQgRr5e_0(KQgRr5e_02[i2], m224KQgRr5e_0);
            m224KQgRr5e_0.put(KQgRr5e_03, new WeakReference<>(KQgRr5e_02[i2]));
            KQgRr5e_0(KQgRr5e_02[i2], (Spanned) charSequence, KQgRr5e_03);
        }
    }

    /* renamed from: KQgRr5e_0  reason: collision with other method in class */
    public final SparseArray<WeakReference<ClickableSpan>> m224KQgRr5e_0(View view) {
        SparseArray<WeakReference<ClickableSpan>> QxJ9d_12 = QxJ9d_1(view);
        if (QxJ9d_12 == null) {
            SparseArray<WeakReference<ClickableSpan>> sparseArray = new SparseArray<>();
            view.setTag(X6FRs_4.IMuAHx_6.QxJ9d_1.tag_accessibility_clickable_spans, sparseArray);
            return sparseArray;
        }
        return QxJ9d_12;
    }

    public static ClickableSpan[] KQgRr5e_0(CharSequence charSequence) {
        if (charSequence instanceof Spanned) {
            return (ClickableSpan[]) ((Spanned) charSequence).getSpans(0, charSequence.length(), ClickableSpan.class);
        }
        return null;
    }

    public final int KQgRr5e_0(ClickableSpan clickableSpan, SparseArray<WeakReference<ClickableSpan>> sparseArray) {
        if (sparseArray != null) {
            for (int i = 0; i < sparseArray.size(); i++) {
                if (clickableSpan.equals(sparseArray.valueAt(i).get())) {
                    return sparseArray.keyAt(i);
                }
            }
        }
        int i2 = PGPF6hQ_2;
        PGPF6hQ_2 = i2 + 1;
        return i2;
    }

    /* renamed from: KQgRr5e_0  reason: collision with other method in class */
    public final boolean m232KQgRr5e_0() {
        return !KQgRr5e_0("androidx.view.accessibility.AccessibilityNodeInfoCompat.SPANS_START_KEY").isEmpty();
    }

    /* renamed from: KQgRr5e_0  reason: collision with other method in class */
    public final void m228KQgRr5e_0() {
        if (Build.VERSION.SDK_INT >= 19) {
            this.f380KQgRr5e_0.getExtras().remove("androidx.view.accessibility.AccessibilityNodeInfoCompat.SPANS_START_KEY");
            this.f380KQgRr5e_0.getExtras().remove("androidx.view.accessibility.AccessibilityNodeInfoCompat.SPANS_END_KEY");
            this.f380KQgRr5e_0.getExtras().remove("androidx.view.accessibility.AccessibilityNodeInfoCompat.SPANS_FLAGS_KEY");
            this.f380KQgRr5e_0.getExtras().remove("androidx.view.accessibility.AccessibilityNodeInfoCompat.SPANS_ID_KEY");
        }
    }

    public final void KQgRr5e_0(ClickableSpan clickableSpan, Spanned spanned, int i) {
        KQgRr5e_0("androidx.view.accessibility.AccessibilityNodeInfoCompat.SPANS_START_KEY").add(Integer.valueOf(spanned.getSpanStart(clickableSpan)));
        KQgRr5e_0("androidx.view.accessibility.AccessibilityNodeInfoCompat.SPANS_END_KEY").add(Integer.valueOf(spanned.getSpanEnd(clickableSpan)));
        KQgRr5e_0("androidx.view.accessibility.AccessibilityNodeInfoCompat.SPANS_FLAGS_KEY").add(Integer.valueOf(spanned.getSpanFlags(clickableSpan)));
        KQgRr5e_0("androidx.view.accessibility.AccessibilityNodeInfoCompat.SPANS_ID_KEY").add(Integer.valueOf(i));
    }

    /* renamed from: KQgRr5e_0  reason: collision with other method in class */
    public String m227KQgRr5e_0() {
        if (Build.VERSION.SDK_INT >= 18) {
            return this.f380KQgRr5e_0.getViewIdResourceName();
        }
        return null;
    }

    public void KQgRr5e_0(Object obj) {
        if (Build.VERSION.SDK_INT >= 19) {
            this.f380KQgRr5e_0.setCollectionInfo(obj == null ? null : (AccessibilityNodeInfo.CollectionInfo) ((QxJ9d_1) obj).KQgRr5e_0);
        }
    }

    /* renamed from: KQgRr5e_0  reason: collision with other method in class */
    public Bundle m223KQgRr5e_0() {
        if (Build.VERSION.SDK_INT >= 19) {
            return this.f380KQgRr5e_0.getExtras();
        }
        return new Bundle();
    }

    public final void KQgRr5e_0(int i, boolean z) {
        Bundle m223KQgRr5e_0 = m223KQgRr5e_0();
        if (m223KQgRr5e_0 != null) {
            int i2 = m223KQgRr5e_0.getInt("androidx.view.accessibility.AccessibilityNodeInfoCompat.BOOLEAN_PROPERTY_KEY", 0) & (i ^ (-1));
            if (!z) {
                i = 0;
            }
            m223KQgRr5e_0.putInt("androidx.view.accessibility.AccessibilityNodeInfoCompat.BOOLEAN_PROPERTY_KEY", i | i2);
        }
    }
}
