package ῲ.ᨨ.ᨨ.䃖;

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.SparseArray;
import android.view.View;
import android.view.accessibility.AccessibilityNodeInfo;
import androidx.core.R$id;
import androidx.recyclerview.widget.RecyclerView;
import com.facebook.internal.NativeProtocol;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import ῲ.ᨨ.ᨨ.䃖.AbstractC1787;

/* renamed from: ῲ.ᨨ.ᨨ.䃖.ῲ  reason: contains not printable characters */
/* compiled from: AccessibilityNodeInfoCompat */
public class C1782 {

    /* renamed from: 㸾  reason: contains not printable characters */
    public static int f6121;

    /* renamed from: ʬ  reason: contains not printable characters */
    public int f6122 = -1;

    /* renamed from: ῲ  reason: contains not printable characters */
    public int f6123 = -1;

    /* renamed from: K  reason: contains not printable characters */
    public final AccessibilityNodeInfo f6124;

    /* renamed from: ῲ.ᨨ.ᨨ.䃖.ῲ$ʬ  reason: contains not printable characters */
    /* compiled from: AccessibilityNodeInfoCompat */
    public static class C1783 {

        /* renamed from: K  reason: contains not printable characters */
        public final Object f6125;

        public C1783(Object obj) {
            this.f6125 = obj;
        }

        /* renamed from: K  reason: contains not printable characters */
        public static C1783 m4672(int i, int i2, int i3, int i4, boolean z, boolean z2) {
            int i5 = Build.VERSION.SDK_INT;
            return new C1783(AccessibilityNodeInfo.CollectionItemInfo.obtain(i, i2, i3, i4, z, z2));
        }
    }

    /* renamed from: ῲ.ᨨ.ᨨ.䃖.ῲ$ῲ  reason: contains not printable characters */
    /* compiled from: AccessibilityNodeInfoCompat */
    public static class C1784 {

        /* renamed from: K  reason: contains not printable characters */
        public final Object f6126;

        public C1784(Object obj) {
            this.f6126 = obj;
        }

        /* renamed from: K  reason: contains not printable characters */
        public static C1784 m4673(int i, int i2, boolean z, int i3) {
            int i4 = Build.VERSION.SDK_INT;
            return new C1784(AccessibilityNodeInfo.CollectionInfo.obtain(i, i2, z, i3));
        }
    }

    /* renamed from: ῲ.ᨨ.ᨨ.䃖.ῲ$K  reason: contains not printable characters */
    /* compiled from: AccessibilityNodeInfoCompat */
    public static class C1785 {

        /* renamed from: Ԕ  reason: contains not printable characters */
        public static final C1785 f6127 = new C1785(Build.VERSION.SDK_INT >= 23 ? AccessibilityNodeInfo.AccessibilityAction.ACTION_SCROLL_DOWN : null, 16908346, null, null, null);

        /* renamed from: ඓ  reason: contains not printable characters */
        public static final C1785 f6128 = new C1785(1, null);

        /* renamed from: ᕣ  reason: contains not printable characters */
        public static final C1785 f6129 = new C1785(524288, null);

        /* renamed from: ᨨ  reason: contains not printable characters */
        public static final C1785 f6130 = new C1785(8192, null);

        /* renamed from: ⁱ  reason: contains not printable characters */
        public static final C1785 f6131 = new C1785(16, null);

        /* renamed from: 㑃  reason: contains not printable characters */
        public static final C1785 f6132 = new C1785(1048576, null);

        /* renamed from: 㗗  reason: contains not printable characters */
        public static final C1785 f6133 = new C1785(Build.VERSION.SDK_INT >= 24 ? AccessibilityNodeInfo.AccessibilityAction.ACTION_SET_PROGRESS : null, 16908349, null, null, AbstractC1787.C1793.class);

        /* renamed from: 㳳  reason: contains not printable characters */
        public static final C1785 f6134 = new C1785(262144, null);

        /* renamed from: 㴹  reason: contains not printable characters */
        public static final C1785 f6135 = new C1785(2, null);

        /* renamed from: 㿎  reason: contains not printable characters */
        public static final C1785 f6136 = new C1785(RecyclerView.AbstractC0269.FLAG_APPEARED_IN_PRE_LAYOUT, null);

        /* renamed from: 䁗  reason: contains not printable characters */
        public static final C1785 f6137 = new C1785(Build.VERSION.SDK_INT >= 23 ? AccessibilityNodeInfo.AccessibilityAction.ACTION_SCROLL_UP : null, 16908344, null, null, null);

        /* renamed from: ʬ  reason: contains not printable characters */
        public final Class<? extends AbstractC1787.AbstractC1792> f6138;

        /* renamed from: ῲ  reason: contains not printable characters */
        public final int f6139;

        /* renamed from: K  reason: contains not printable characters */
        public final Object f6140;

        /* renamed from: 㸾  reason: contains not printable characters */
        public final AbstractC1787 f6141;

        static {
            AccessibilityNodeInfo.AccessibilityAction accessibilityAction = null;
            new C1785(4, null);
            new C1785(8, null);
            new C1785(32, null);
            new C1785(64, null);
            new C1785(128, null);
            new C1785(256, null, AbstractC1787.C1790.class);
            new C1785(512, null, AbstractC1787.C1790.class);
            new C1785(RecyclerView.AbstractC0269.FLAG_ADAPTER_FULLUPDATE, null, AbstractC1787.C1788.class);
            new C1785(RecyclerView.AbstractC0269.FLAG_MOVED, null, AbstractC1787.C1788.class);
            new C1785(16384, null);
            new C1785(32768, null);
            new C1785(NativeProtocol.MESSAGE_GET_ACCESS_TOKEN_REQUEST, null);
            new C1785(131072, null, AbstractC1787.C1791.class);
            new C1785(2097152, null, AbstractC1787.C1795.class);
            new C1785(Build.VERSION.SDK_INT >= 23 ? AccessibilityNodeInfo.AccessibilityAction.ACTION_SHOW_ON_SCREEN : null, 16908342, null, null, null);
            new C1785(Build.VERSION.SDK_INT >= 23 ? AccessibilityNodeInfo.AccessibilityAction.ACTION_SCROLL_TO_POSITION : null, 16908343, null, null, AbstractC1787.C1789.class);
            new C1785(Build.VERSION.SDK_INT >= 23 ? AccessibilityNodeInfo.AccessibilityAction.ACTION_SCROLL_LEFT : null, 16908345, null, null, null);
            new C1785(Build.VERSION.SDK_INT >= 23 ? AccessibilityNodeInfo.AccessibilityAction.ACTION_SCROLL_RIGHT : null, 16908347, null, null, null);
            new C1785(Build.VERSION.SDK_INT >= 29 ? AccessibilityNodeInfo.AccessibilityAction.ACTION_PAGE_UP : null, 16908358, null, null, null);
            new C1785(Build.VERSION.SDK_INT >= 29 ? AccessibilityNodeInfo.AccessibilityAction.ACTION_PAGE_DOWN : null, 16908359, null, null, null);
            new C1785(Build.VERSION.SDK_INT >= 29 ? AccessibilityNodeInfo.AccessibilityAction.ACTION_PAGE_LEFT : null, 16908360, null, null, null);
            new C1785(Build.VERSION.SDK_INT >= 29 ? AccessibilityNodeInfo.AccessibilityAction.ACTION_PAGE_RIGHT : null, 16908361, null, null, null);
            new C1785(Build.VERSION.SDK_INT >= 23 ? AccessibilityNodeInfo.AccessibilityAction.ACTION_CONTEXT_CLICK : null, 16908348, null, null, null);
            new C1785(Build.VERSION.SDK_INT >= 26 ? AccessibilityNodeInfo.AccessibilityAction.ACTION_MOVE_WINDOW : null, 16908354, null, null, AbstractC1787.C1794.class);
            new C1785(Build.VERSION.SDK_INT >= 28 ? AccessibilityNodeInfo.AccessibilityAction.ACTION_SHOW_TOOLTIP : null, 16908356, null, null, null);
            new C1785(Build.VERSION.SDK_INT >= 28 ? AccessibilityNodeInfo.AccessibilityAction.ACTION_HIDE_TOOLTIP : null, 16908357, null, null, null);
            new C1785(Build.VERSION.SDK_INT >= 30 ? AccessibilityNodeInfo.AccessibilityAction.ACTION_PRESS_AND_HOLD : null, 16908362, null, null, null);
            if (Build.VERSION.SDK_INT >= 30) {
                accessibilityAction = AccessibilityNodeInfo.AccessibilityAction.ACTION_IME_ENTER;
            }
            new C1785(accessibilityAction, 16908372, null, null, null);
        }

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

        public boolean equals(Object obj) {
            if (obj == null || !(obj instanceof C1785)) {
                return false;
            }
            C1785 k = (C1785) obj;
            Object obj2 = this.f6140;
            if (obj2 == null) {
                if (k.f6140 != null) {
                    return false;
                }
                return true;
            } else if (!obj2.equals(k.f6140)) {
                return false;
            } else {
                return true;
            }
        }

        public int hashCode() {
            Object obj = this.f6140;
            if (obj != null) {
                return obj.hashCode();
            }
            return 0;
        }

        /* renamed from: K  reason: contains not printable characters */
        public int m4674() {
            int i = Build.VERSION.SDK_INT;
            return ((AccessibilityNodeInfo.AccessibilityAction) this.f6140).getId();
        }

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

        public C1785(Object obj, int i, CharSequence charSequence, AbstractC1787 r4, Class<? extends AbstractC1787.AbstractC1792> cls) {
            this.f6139 = i;
            this.f6141 = r4;
            int i2 = Build.VERSION.SDK_INT;
            if (obj == null) {
                this.f6140 = new AccessibilityNodeInfo.AccessibilityAction(i, charSequence);
            } else {
                this.f6140 = obj;
            }
            this.f6138 = cls;
        }
    }

    public C1782(AccessibilityNodeInfo accessibilityNodeInfo) {
        this.f6124 = accessibilityNodeInfo;
    }

    /* renamed from: K  reason: contains not printable characters */
    public static String m4645(int i) {
        if (i == 1) {
            return "ACTION_FOCUS";
        }
        if (i == 2) {
            return "ACTION_CLEAR_FOCUS";
        }
        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 128:
                return "ACTION_CLEAR_ACCESSIBILITY_FOCUS";
            case 256:
                return "ACTION_NEXT_AT_MOVEMENT_GRANULARITY";
            case 512:
                return "ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY";
            case RecyclerView.AbstractC0269.FLAG_ADAPTER_FULLUPDATE:
                return "ACTION_NEXT_HTML_ELEMENT";
            case RecyclerView.AbstractC0269.FLAG_MOVED:
                return "ACTION_PREVIOUS_HTML_ELEMENT";
            case RecyclerView.AbstractC0269.FLAG_APPEARED_IN_PRE_LAYOUT:
                return "ACTION_SCROLL_FORWARD";
            case 8192:
                return "ACTION_SCROLL_BACKWARD";
            case 16384:
                return "ACTION_COPY";
            case 32768:
                return "ACTION_PASTE";
            case NativeProtocol.MESSAGE_GET_ACCESS_TOKEN_REQUEST:
                return "ACTION_CUT";
            case 131072:
                return "ACTION_SET_SELECTION";
            case 262144:
                return "ACTION_EXPAND";
            case 524288:
                return "ACTION_COLLAPSE";
            case 2097152:
                return "ACTION_SET_TEXT";
            case 16908354:
                return "ACTION_MOVE_WINDOW";
            case 16908372:
                return "ACTION_IME_ENTER";
            default:
                switch (i) {
                    case 16908342:
                        return "ACTION_SHOW_ON_SCREEN";
                    case 16908343:
                        return "ACTION_SCROLL_TO_POSITION";
                    case 16908344:
                        return "ACTION_SCROLL_UP";
                    case 16908345:
                        return "ACTION_SCROLL_LEFT";
                    case 16908346:
                        return "ACTION_SCROLL_DOWN";
                    case 16908347:
                        return "ACTION_SCROLL_RIGHT";
                    case 16908348:
                        return "ACTION_CONTEXT_CLICK";
                    case 16908349:
                        return "ACTION_SET_PROGRESS";
                    default:
                        switch (i) {
                            case 16908356:
                                return "ACTION_SHOW_TOOLTIP";
                            case 16908357:
                                return "ACTION_HIDE_TOOLTIP";
                            case 16908358:
                                return "ACTION_PAGE_UP";
                            case 16908359:
                                return "ACTION_PAGE_DOWN";
                            case 16908360:
                                return "ACTION_PAGE_LEFT";
                            case 16908361:
                                return "ACTION_PAGE_RIGHT";
                            case 16908362:
                                return "ACTION_PRESS_AND_HOLD";
                            default:
                                return "ACTION_UNKNOWN";
                        }
                }
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public static C1782 m4646(C1782 r1) {
        return new C1782(AccessibilityNodeInfo.obtain(r1.f6124));
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || !(obj instanceof C1782)) {
            return false;
        }
        C1782 r5 = (C1782) obj;
        AccessibilityNodeInfo accessibilityNodeInfo = this.f6124;
        if (accessibilityNodeInfo == null) {
            if (r5.f6124 != null) {
                return false;
            }
        } else if (!accessibilityNodeInfo.equals(r5.f6124)) {
            return false;
        }
        return this.f6122 == r5.f6122 && this.f6123 == r5.f6123;
    }

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

    public String toString() {
        List list;
        StringBuilder sb = new StringBuilder();
        sb.append(super.toString());
        Rect rect = new Rect();
        this.f6124.getBoundsInParent(rect);
        sb.append("; boundsInParent: " + rect);
        this.f6124.getBoundsInScreen(rect);
        sb.append("; boundsInScreen: " + rect);
        sb.append("; packageName: ");
        sb.append(m4649());
        sb.append("; className: ");
        sb.append(m4652());
        sb.append("; text: ");
        sb.append(m4669());
        sb.append("; contentDescription: ");
        sb.append(m4647());
        sb.append("; viewId: ");
        int i = Build.VERSION.SDK_INT;
        sb.append(this.f6124.getViewIdResourceName());
        sb.append("; checkable: ");
        sb.append(this.f6124.isCheckable());
        sb.append("; checked: ");
        sb.append(this.f6124.isChecked());
        sb.append("; focusable: ");
        sb.append(m4651());
        sb.append("; focused: ");
        sb.append(m4668());
        sb.append("; selected: ");
        sb.append(m4667());
        sb.append("; clickable: ");
        sb.append(m4657());
        sb.append("; longClickable: ");
        sb.append(m4650());
        sb.append("; enabled: ");
        sb.append(m4671());
        sb.append("; password: ");
        sb.append(this.f6124.isPassword());
        sb.append("; scrollable: " + this.f6124.isScrollable());
        sb.append("; [");
        int i2 = Build.VERSION.SDK_INT;
        List<AccessibilityNodeInfo.AccessibilityAction> actionList = this.f6124.getActionList();
        if (actionList != null) {
            list = new ArrayList();
            int size = actionList.size();
            for (int i3 = 0; i3 < size; i3++) {
                list.add(new C1785(actionList.get(i3), 0, null, null, null));
            }
        } else {
            list = Collections.emptyList();
        }
        for (int i4 = 0; i4 < list.size(); i4++) {
            C1785 k = (C1785) list.get(i4);
            String r4 = m4645(k.m4674());
            if (r4.equals("ACTION_UNKNOWN")) {
                int i5 = Build.VERSION.SDK_INT;
                if (((AccessibilityNodeInfo.AccessibilityAction) k.f6140).getLabel() != null) {
                    int i6 = Build.VERSION.SDK_INT;
                    r4 = ((AccessibilityNodeInfo.AccessibilityAction) k.f6140).getLabel().toString();
                }
            }
            sb.append(r4);
            if (i4 != list.size() - 1) {
                sb.append(", ");
            }
        }
        sb.append("]");
        return sb.toString();
    }

    /* renamed from: ʬ  reason: contains not printable characters */
    public void m4648(boolean z) {
        int i = Build.VERSION.SDK_INT;
        this.f6124.setVisibleToUser(z);
    }

    /* renamed from: ඓ  reason: contains not printable characters */
    public CharSequence m4649() {
        return this.f6124.getPackageName();
    }

    /* renamed from: ᕣ  reason: contains not printable characters */
    public boolean m4650() {
        return this.f6124.isLongClickable();
    }

    /* renamed from: ᨨ  reason: contains not printable characters */
    public boolean m4651() {
        return this.f6124.isFocusable();
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public boolean m4656(C1785 k) {
        int i = Build.VERSION.SDK_INT;
        return this.f6124.removeAction((AccessibilityNodeInfo.AccessibilityAction) k.f6140);
    }

    /* renamed from: ⁱ  reason: contains not printable characters */
    public boolean m4657() {
        return this.f6124.isClickable();
    }

    /* renamed from: 㑃  reason: contains not printable characters */
    public boolean m4667() {
        return this.f6124.isSelected();
    }

    /* renamed from: 㳳  reason: contains not printable characters */
    public boolean m4668() {
        return this.f6124.isFocused();
    }

    /* renamed from: 㴹  reason: contains not printable characters */
    public CharSequence m4669() {
        if (!(!m4660("androidx.view.accessibility.AccessibilityNodeInfoCompat.SPANS_START_KEY").isEmpty())) {
            return this.f6124.getText();
        }
        List<Integer> r0 = m4660("androidx.view.accessibility.AccessibilityNodeInfoCompat.SPANS_START_KEY");
        List<Integer> r1 = m4660("androidx.view.accessibility.AccessibilityNodeInfoCompat.SPANS_END_KEY");
        List<Integer> r2 = m4660("androidx.view.accessibility.AccessibilityNodeInfoCompat.SPANS_FLAGS_KEY");
        List<Integer> r3 = m4660("androidx.view.accessibility.AccessibilityNodeInfoCompat.SPANS_ID_KEY");
        SpannableString spannableString = new SpannableString(TextUtils.substring(this.f6124.getText(), 0, this.f6124.getText().length()));
        for (int i = 0; i < r0.size(); i++) {
            spannableString.setSpan(new C1786(r3.get(i).intValue(), this, m4670().getInt("androidx.view.accessibility.AccessibilityNodeInfoCompat.SPANS_ACTION_ID_KEY")), r0.get(i).intValue(), r1.get(i).intValue(), r2.get(i).intValue());
        }
        return spannableString;
    }

    /* renamed from: 㸾  reason: contains not printable characters */
    public Bundle m4670() {
        int i = Build.VERSION.SDK_INT;
        return this.f6124.getExtras();
    }

    /* renamed from: 㿎  reason: contains not printable characters */
    public boolean m4671() {
        return this.f6124.isEnabled();
    }

    /* renamed from: ʬ  reason: contains not printable characters */
    public CharSequence m4647() {
        return this.f6124.getContentDescription();
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public void m4653(View view) {
        this.f6123 = -1;
        this.f6124.setParent(view);
    }

    /* renamed from: K  reason: contains not printable characters */
    public int m4658() {
        return this.f6124.getActions();
    }

    /* renamed from: K  reason: contains not printable characters */
    public final List<Integer> m4660(String str) {
        int i = Build.VERSION.SDK_INT;
        ArrayList<Integer> integerArrayList = this.f6124.getExtras().getIntegerArrayList(str);
        if (integerArrayList != null) {
            return integerArrayList;
        }
        ArrayList<Integer> arrayList = new ArrayList<>();
        this.f6124.getExtras().putIntegerArrayList(str, arrayList);
        return arrayList;
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public CharSequence m4652() {
        return this.f6124.getClassName();
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public static ClickableSpan[] m4644(CharSequence charSequence) {
        if (charSequence instanceof Spanned) {
            return (ClickableSpan[]) ((Spanned) charSequence).getSpans(0, charSequence.length(), ClickableSpan.class);
        }
        return null;
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public void m4654(Object obj) {
        AccessibilityNodeInfo.CollectionItemInfo collectionItemInfo;
        int i = Build.VERSION.SDK_INT;
        AccessibilityNodeInfo accessibilityNodeInfo = this.f6124;
        if (obj == null) {
            collectionItemInfo = null;
        } else {
            collectionItemInfo = (AccessibilityNodeInfo.CollectionItemInfo) ((C1783) obj).f6125;
        }
        accessibilityNodeInfo.setCollectionItemInfo(collectionItemInfo);
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m4664(C1785 k) {
        int i = Build.VERSION.SDK_INT;
        this.f6124.addAction((AccessibilityNodeInfo.AccessibilityAction) k.f6140);
    }

    /* renamed from: K  reason: contains not printable characters */
    public boolean m4666(int i, Bundle bundle) {
        int i2 = Build.VERSION.SDK_INT;
        return this.f6124.performAction(i, bundle);
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public void m4655(boolean z) {
        int i = Build.VERSION.SDK_INT;
        this.f6124.setDismissable(z);
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m4665(boolean z) {
        int i = Build.VERSION.SDK_INT;
        this.f6124.setAccessibilityFocused(z);
    }

    /* renamed from: K  reason: contains not printable characters */
    public final SparseArray<WeakReference<ClickableSpan>> m4659(View view) {
        return (SparseArray) view.getTag(R$id.tag_accessibility_clickable_spans);
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m4663(Object obj) {
        AccessibilityNodeInfo.CollectionInfo collectionInfo;
        int i = Build.VERSION.SDK_INT;
        AccessibilityNodeInfo accessibilityNodeInfo = this.f6124;
        if (obj == null) {
            collectionInfo = null;
        } else {
            collectionInfo = (AccessibilityNodeInfo.CollectionInfo) ((C1784) obj).f6126;
        }
        accessibilityNodeInfo.setCollectionInfo(collectionInfo);
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m4662(CharSequence charSequence) {
        if (Build.VERSION.SDK_INT >= 26) {
            this.f6124.setHintText(charSequence);
        } else {
            this.f6124.getExtras().putCharSequence("androidx.view.accessibility.AccessibilityNodeInfoCompat.HINT_TEXT_KEY", charSequence);
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public final void m4661(int i, boolean z) {
        Bundle r0 = m4670();
        if (r0 != null) {
            int i2 = r0.getInt("androidx.view.accessibility.AccessibilityNodeInfoCompat.BOOLEAN_PROPERTY_KEY", 0) & (~i);
            if (!z) {
                i = 0;
            }
            r0.putInt("androidx.view.accessibility.AccessibilityNodeInfoCompat.BOOLEAN_PROPERTY_KEY", i | i2);
        }
    }
}
