package t3;

import android.R;
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.view.View;
import android.view.accessibility.AccessibilityNodeInfo;
import com.google.firebase.crashlytics.internal.metadata.UserMetadata;
import java.time.Duration;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import t3.k;

/* loaded from: classes.dex */
public class h {

    /* renamed from: a, reason: collision with root package name */
    private final AccessibilityNodeInfo f36127a;

    /* renamed from: b, reason: collision with root package name */
    public int f36128b = -1;

    /* renamed from: c, reason: collision with root package name */
    private int f36129c = -1;

    /* loaded from: classes.dex */
    public static class a {
        public static final a A;
        public static final a B;
        public static final a C;
        public static final a D;
        public static final a E;
        public static final a F;
        public static final a G;
        public static final a H;
        public static final a I;
        public static final a J;
        public static final a K;
        public static final a L;
        public static final a M;
        public static final a N;
        public static final a O;
        public static final a P;
        public static final a Q;
        public static final a R;
        public static final a S;
        public static final a T;
        public static final a U;
        public static final a V;

        /* renamed from: e, reason: collision with root package name */
        public static final a f36130e = new a(1, null);

        /* renamed from: f, reason: collision with root package name */
        public static final a f36131f = new a(2, null);

        /* renamed from: g, reason: collision with root package name */
        public static final a f36132g = new a(4, null);

        /* renamed from: h, reason: collision with root package name */
        public static final a f36133h = new a(8, null);

        /* renamed from: i, reason: collision with root package name */
        public static final a f36134i = new a(16, null);

        /* renamed from: j, reason: collision with root package name */
        public static final a f36135j = new a(32, null);

        /* renamed from: k, reason: collision with root package name */
        public static final a f36136k = new a(64, null);

        /* renamed from: l, reason: collision with root package name */
        public static final a f36137l = new a(128, null);

        /* renamed from: m, reason: collision with root package name */
        public static final a f36138m = new a(256, (CharSequence) null, k.b.class);

        /* renamed from: n, reason: collision with root package name */
        public static final a f36139n = new a(512, (CharSequence) null, k.b.class);

        /* renamed from: o, reason: collision with root package name */
        public static final a f36140o = new a(UserMetadata.MAX_ATTRIBUTE_SIZE, (CharSequence) null, k.c.class);

        /* renamed from: p, reason: collision with root package name */
        public static final a f36141p = new a(2048, (CharSequence) null, k.c.class);

        /* renamed from: q, reason: collision with root package name */
        public static final a f36142q = new a(4096, null);

        /* renamed from: r, reason: collision with root package name */
        public static final a f36143r = new a(UserMetadata.MAX_INTERNAL_KEY_SIZE, null);

        /* renamed from: s, reason: collision with root package name */
        public static final a f36144s = new a(16384, null);

        /* renamed from: t, reason: collision with root package name */
        public static final a f36145t = new a(32768, null);

        /* renamed from: u, reason: collision with root package name */
        public static final a f36146u = new a(65536, null);

        /* renamed from: v, reason: collision with root package name */
        public static final a f36147v = new a(131072, (CharSequence) null, k.g.class);

        /* renamed from: w, reason: collision with root package name */
        public static final a f36148w = new a(262144, null);

        /* renamed from: x, reason: collision with root package name */
        public static final a f36149x = new a(524288, null);

        /* renamed from: y, reason: collision with root package name */
        public static final a f36150y = new a(1048576, null);

        /* renamed from: z, reason: collision with root package name */
        public static final a f36151z = new a(2097152, (CharSequence) null, k.h.class);

        /* renamed from: a, reason: collision with root package name */
        final Object f36152a;

        /* renamed from: b, reason: collision with root package name */
        private final int f36153b;

        /* renamed from: c, reason: collision with root package name */
        private final Class f36154c;

        /* renamed from: d, reason: collision with root package name */
        protected final k f36155d;

        static {
            AccessibilityNodeInfo.AccessibilityAction accessibilityAction;
            AccessibilityNodeInfo.AccessibilityAction accessibilityAction2;
            AccessibilityNodeInfo.AccessibilityAction accessibilityAction3;
            AccessibilityNodeInfo.AccessibilityAction accessibilityAction4;
            AccessibilityNodeInfo.AccessibilityAction accessibilityAction5;
            AccessibilityNodeInfo.AccessibilityAction accessibilityAction6;
            AccessibilityNodeInfo.AccessibilityAction accessibilityAction7;
            AccessibilityNodeInfo.AccessibilityAction accessibilityAction8;
            int i10 = Build.VERSION.SDK_INT;
            A = new a(AccessibilityNodeInfo.AccessibilityAction.ACTION_SHOW_ON_SCREEN, R.id.accessibilityActionShowOnScreen, null, null, null);
            B = new a(AccessibilityNodeInfo.AccessibilityAction.ACTION_SCROLL_TO_POSITION, R.id.accessibilityActionScrollToPosition, null, null, k.e.class);
            C = new a(AccessibilityNodeInfo.AccessibilityAction.ACTION_SCROLL_UP, R.id.accessibilityActionScrollUp, null, null, null);
            D = new a(AccessibilityNodeInfo.AccessibilityAction.ACTION_SCROLL_LEFT, R.id.accessibilityActionScrollLeft, null, null, null);
            E = new a(AccessibilityNodeInfo.AccessibilityAction.ACTION_SCROLL_DOWN, R.id.accessibilityActionScrollDown, null, null, null);
            F = new a(AccessibilityNodeInfo.AccessibilityAction.ACTION_SCROLL_RIGHT, R.id.accessibilityActionScrollRight, null, null, null);
            G = new a(AccessibilityNodeInfo.AccessibilityAction.ACTION_PAGE_UP, R.id.accessibilityActionPageUp, null, null, null);
            H = new a(AccessibilityNodeInfo.AccessibilityAction.ACTION_PAGE_DOWN, R.id.accessibilityActionPageDown, null, null, null);
            I = new a(AccessibilityNodeInfo.AccessibilityAction.ACTION_PAGE_LEFT, R.id.accessibilityActionPageLeft, null, null, null);
            J = new a(AccessibilityNodeInfo.AccessibilityAction.ACTION_PAGE_RIGHT, R.id.accessibilityActionPageRight, null, null, null);
            K = new a(AccessibilityNodeInfo.AccessibilityAction.ACTION_CONTEXT_CLICK, R.id.accessibilityActionContextClick, null, null, null);
            L = new a(AccessibilityNodeInfo.AccessibilityAction.ACTION_SET_PROGRESS, R.id.accessibilityActionSetProgress, null, null, k.f.class);
            M = new a(AccessibilityNodeInfo.AccessibilityAction.ACTION_MOVE_WINDOW, R.id.accessibilityActionMoveWindow, null, null, k.d.class);
            N = new a(AccessibilityNodeInfo.AccessibilityAction.ACTION_SHOW_TOOLTIP, R.id.accessibilityActionShowTooltip, null, null, null);
            O = new a(AccessibilityNodeInfo.AccessibilityAction.ACTION_HIDE_TOOLTIP, R.id.accessibilityActionHideTooltip, null, null, null);
            P = new a(AccessibilityNodeInfo.AccessibilityAction.ACTION_PRESS_AND_HOLD, R.id.accessibilityActionPressAndHold, null, null, null);
            Q = new a(AccessibilityNodeInfo.AccessibilityAction.ACTION_IME_ENTER, R.id.accessibilityActionImeEnter, null, null, null);
            if (i10 >= 32) {
                accessibilityAction8 = AccessibilityNodeInfo.AccessibilityAction.ACTION_DRAG_START;
                accessibilityAction = accessibilityAction8;
            } else {
                accessibilityAction = null;
            }
            R = new a(accessibilityAction, R.id.ALT, null, null, null);
            if (i10 >= 32) {
                accessibilityAction7 = AccessibilityNodeInfo.AccessibilityAction.ACTION_DRAG_DROP;
                accessibilityAction2 = accessibilityAction7;
            } else {
                accessibilityAction2 = null;
            }
            S = new a(accessibilityAction2, R.id.CTRL, null, null, null);
            if (i10 >= 32) {
                accessibilityAction6 = AccessibilityNodeInfo.AccessibilityAction.ACTION_DRAG_CANCEL;
                accessibilityAction3 = accessibilityAction6;
            } else {
                accessibilityAction3 = null;
            }
            T = new a(accessibilityAction3, R.id.FUNCTION, null, null, null);
            if (i10 >= 33) {
                accessibilityAction5 = AccessibilityNodeInfo.AccessibilityAction.ACTION_SHOW_TEXT_SUGGESTIONS;
                accessibilityAction4 = accessibilityAction5;
            } else {
                accessibilityAction4 = null;
            }
            U = new a(accessibilityAction4, R.id.KEYCODE_0, null, null, null);
            V = new a(i10 >= 34 ? d.a() : null, R.id.KEYCODE_3D_MODE, null, null, null);
        }

        public a(int i10, CharSequence charSequence) {
            this(null, i10, charSequence, null, null);
        }

        public a a(CharSequence charSequence, k kVar) {
            return new a(null, this.f36153b, charSequence, kVar, this.f36154c);
        }

        public int b() {
            return ((AccessibilityNodeInfo.AccessibilityAction) this.f36152a).getId();
        }

        public CharSequence c() {
            return ((AccessibilityNodeInfo.AccessibilityAction) this.f36152a).getLabel();
        }

        public boolean d(View view, Bundle bundle) {
            if (this.f36155d == null) {
                return false;
            }
            Class cls = this.f36154c;
            if (cls != null) {
                try {
                    android.support.v4.media.session.b.a(cls.getDeclaredConstructor(new Class[0]).newInstance(new Object[0]));
                    throw null;
                } catch (Exception e10) {
                    Class cls2 = this.f36154c;
                    Log.e("A11yActionCompat", "Failed to execute command with argument class ViewCommandArgument: " + (cls2 == null ? "null" : cls2.getName()), e10);
                }
            }
            return this.f36155d.a(view, null);
        }

        public boolean equals(Object obj) {
            if (obj == null || !(obj instanceof a)) {
                return false;
            }
            a aVar = (a) obj;
            Object obj2 = this.f36152a;
            return obj2 == null ? aVar.f36152a == null : obj2.equals(aVar.f36152a);
        }

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

        public String toString() {
            StringBuilder sb2 = new StringBuilder();
            sb2.append("AccessibilityActionCompat: ");
            String h10 = h.h(this.f36153b);
            if (h10.equals("ACTION_UNKNOWN") && c() != null) {
                h10 = c().toString();
            }
            sb2.append(h10);
            return sb2.toString();
        }

        public a(int i10, CharSequence charSequence, k kVar) {
            this(null, i10, charSequence, kVar, null);
        }

        a(Object obj) {
            this(obj, 0, null, null, null);
        }

        private a(int i10, CharSequence charSequence, Class cls) {
            this(null, i10, charSequence, null, cls);
        }

        a(Object obj, int i10, CharSequence charSequence, k kVar, Class cls) {
            this.f36153b = i10;
            this.f36155d = kVar;
            if (obj == null) {
                this.f36152a = new AccessibilityNodeInfo.AccessibilityAction(i10, charSequence);
            } else {
                this.f36152a = obj;
            }
            this.f36154c = cls;
        }
    }

    /* JADX INFO: Access modifiers changed from: private */
    /* loaded from: classes.dex */
    public static class b {
        public static Object a(int i10, float f10, float f11, float f12) {
            return new AccessibilityNodeInfo.RangeInfo(i10, f10, f11, f12);
        }

        public static CharSequence b(AccessibilityNodeInfo accessibilityNodeInfo) {
            return accessibilityNodeInfo.getStateDescription();
        }

        public static void c(AccessibilityNodeInfo accessibilityNodeInfo, CharSequence charSequence) {
            accessibilityNodeInfo.setStateDescription(charSequence);
        }
    }

    /* JADX INFO: Access modifiers changed from: private */
    /* loaded from: classes.dex */
    public static class c {
        public static f a(boolean z10, int i10, int i11, int i12, int i13, boolean z11, String str, String str2) {
            return new f(new AccessibilityNodeInfo.CollectionItemInfo.Builder().setHeading(z10).setColumnIndex(i10).setRowIndex(i11).setColumnSpan(i12).setRowSpan(i13).setSelected(z11).setRowTitle(str).setColumnTitle(str2).build());
        }

        public static h b(AccessibilityNodeInfo accessibilityNodeInfo, int i10, int i11) {
            return h.W0(accessibilityNodeInfo.getChild(i10, i11));
        }

        public static String c(Object obj) {
            return ((AccessibilityNodeInfo.CollectionItemInfo) obj).getColumnTitle();
        }

        public static String d(Object obj) {
            return ((AccessibilityNodeInfo.CollectionItemInfo) obj).getRowTitle();
        }

        public static AccessibilityNodeInfo.ExtraRenderingInfo e(AccessibilityNodeInfo accessibilityNodeInfo) {
            return accessibilityNodeInfo.getExtraRenderingInfo();
        }

        public static h f(AccessibilityNodeInfo accessibilityNodeInfo, int i10) {
            return h.W0(accessibilityNodeInfo.getParent(i10));
        }

        public static String g(AccessibilityNodeInfo accessibilityNodeInfo) {
            return accessibilityNodeInfo.getUniqueId();
        }

        public static boolean h(AccessibilityNodeInfo accessibilityNodeInfo) {
            return accessibilityNodeInfo.isTextSelectable();
        }

        public static void i(AccessibilityNodeInfo accessibilityNodeInfo, boolean z10) {
            accessibilityNodeInfo.setTextSelectable(z10);
        }

        public static void j(AccessibilityNodeInfo accessibilityNodeInfo, String str) {
            accessibilityNodeInfo.setUniqueId(str);
        }
    }

    /* JADX INFO: Access modifiers changed from: private */
    /* loaded from: classes.dex */
    public static class d {
        public static AccessibilityNodeInfo.AccessibilityAction a() {
            return AccessibilityNodeInfo.AccessibilityAction.ACTION_SCROLL_IN_DIRECTION;
        }

        public static void b(AccessibilityNodeInfo accessibilityNodeInfo, Rect rect) {
            accessibilityNodeInfo.getBoundsInWindow(rect);
        }

        public static CharSequence c(AccessibilityNodeInfo accessibilityNodeInfo) {
            return accessibilityNodeInfo.getContainerTitle();
        }

        public static long d(AccessibilityNodeInfo accessibilityNodeInfo) {
            return accessibilityNodeInfo.getMinDurationBetweenContentChanges().toMillis();
        }

        public static boolean e(AccessibilityNodeInfo accessibilityNodeInfo) {
            return accessibilityNodeInfo.hasRequestInitialAccessibilityFocus();
        }

        public static boolean f(AccessibilityNodeInfo accessibilityNodeInfo) {
            return accessibilityNodeInfo.isAccessibilityDataSensitive();
        }

        public static void g(AccessibilityNodeInfo accessibilityNodeInfo, boolean z10) {
            accessibilityNodeInfo.setAccessibilityDataSensitive(z10);
        }

        public static void h(AccessibilityNodeInfo accessibilityNodeInfo, Rect rect) {
            accessibilityNodeInfo.setBoundsInWindow(rect);
        }

        public static void i(AccessibilityNodeInfo accessibilityNodeInfo, CharSequence charSequence) {
            accessibilityNodeInfo.setContainerTitle(charSequence);
        }

        public static void j(AccessibilityNodeInfo accessibilityNodeInfo, long j10) {
            accessibilityNodeInfo.setMinDurationBetweenContentChanges(Duration.ofMillis(j10));
        }

        public static void k(AccessibilityNodeInfo accessibilityNodeInfo, View view, boolean z10) {
            accessibilityNodeInfo.setQueryFromAppProcessEnabled(view, z10);
        }

        public static void l(AccessibilityNodeInfo accessibilityNodeInfo, boolean z10) {
            accessibilityNodeInfo.setRequestInitialAccessibilityFocus(z10);
        }
    }

    /* loaded from: classes.dex */
    public static class e {

        /* renamed from: a, reason: collision with root package name */
        final Object f36156a;

        e(Object obj) {
            this.f36156a = obj;
        }

        public static e a(int i10, int i11, boolean z10, int i12) {
            return new e(AccessibilityNodeInfo.CollectionInfo.obtain(i10, i11, z10, i12));
        }
    }

    /* loaded from: classes.dex */
    public static class f {

        /* renamed from: a, reason: collision with root package name */
        final Object f36157a;

        f(Object obj) {
            this.f36157a = obj;
        }

        public static f a(int i10, int i11, int i12, int i13, boolean z10, boolean z11) {
            return new f(AccessibilityNodeInfo.CollectionItemInfo.obtain(i10, i11, i12, i13, z10, z11));
        }
    }

    /* loaded from: classes.dex */
    public static class g {

        /* renamed from: a, reason: collision with root package name */
        final Object f36158a;

        g(Object obj) {
            this.f36158a = obj;
        }

        public static g a(int i10, float f10, float f11, float f12) {
            return new g(AccessibilityNodeInfo.RangeInfo.obtain(i10, f10, f11, f12));
        }
    }

    public h(Object obj) {
        this.f36127a = (AccessibilityNodeInfo) obj;
    }

    private boolean C() {
        return !f("androidx.view.accessibility.AccessibilityNodeInfoCompat.SPANS_START_KEY").isEmpty();
    }

    public static h U() {
        return V0(AccessibilityNodeInfo.obtain());
    }

    public static h V(View view) {
        return V0(AccessibilityNodeInfo.obtain(view));
    }

    public static h V0(AccessibilityNodeInfo accessibilityNodeInfo) {
        return new h(accessibilityNodeInfo);
    }

    public static h W(h hVar) {
        return V0(AccessibilityNodeInfo.obtain(hVar.f36127a));
    }

    static h W0(Object obj) {
        if (obj != null) {
            return new h(obj);
        }
        return null;
    }

    private List f(String str) {
        ArrayList<Integer> integerArrayList = this.f36127a.getExtras().getIntegerArrayList(str);
        if (integerArrayList != null) {
            return integerArrayList;
        }
        ArrayList<Integer> arrayList = new ArrayList<>();
        this.f36127a.getExtras().putIntegerArrayList(str, arrayList);
        return arrayList;
    }

    static String h(int i10) {
        if (i10 == 1) {
            return "ACTION_FOCUS";
        }
        if (i10 == 2) {
            return "ACTION_CLEAR_FOCUS";
        }
        switch (i10) {
            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 UserMetadata.MAX_ATTRIBUTE_SIZE /* 1024 */:
                return "ACTION_NEXT_HTML_ELEMENT";
            case 2048:
                return "ACTION_PREVIOUS_HTML_ELEMENT";
            case 4096:
                return "ACTION_SCROLL_FORWARD";
            case UserMetadata.MAX_INTERNAL_KEY_SIZE /* 8192 */:
                return "ACTION_SCROLL_BACKWARD";
            case 16384:
                return "ACTION_COPY";
            case 32768:
                return "ACTION_PASTE";
            case 65536:
                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 R.id.accessibilityActionMoveWindow:
                return "ACTION_MOVE_WINDOW";
            case R.id.KEYCODE_3D_MODE:
                return "ACTION_SCROLL_IN_DIRECTION";
            default:
                switch (i10) {
                    case R.id.accessibilityActionShowOnScreen:
                        return "ACTION_SHOW_ON_SCREEN";
                    case R.id.accessibilityActionScrollToPosition:
                        return "ACTION_SCROLL_TO_POSITION";
                    case R.id.accessibilityActionScrollUp:
                        return "ACTION_SCROLL_UP";
                    case R.id.accessibilityActionScrollLeft:
                        return "ACTION_SCROLL_LEFT";
                    case R.id.accessibilityActionScrollDown:
                        return "ACTION_SCROLL_DOWN";
                    case R.id.accessibilityActionScrollRight:
                        return "ACTION_SCROLL_RIGHT";
                    case R.id.accessibilityActionContextClick:
                        return "ACTION_CONTEXT_CLICK";
                    case R.id.accessibilityActionSetProgress:
                        return "ACTION_SET_PROGRESS";
                    default:
                        switch (i10) {
                            case R.id.accessibilityActionShowTooltip:
                                return "ACTION_SHOW_TOOLTIP";
                            case R.id.accessibilityActionHideTooltip:
                                return "ACTION_HIDE_TOOLTIP";
                            case R.id.accessibilityActionPageUp:
                                return "ACTION_PAGE_UP";
                            case R.id.accessibilityActionPageDown:
                                return "ACTION_PAGE_DOWN";
                            case R.id.accessibilityActionPageLeft:
                                return "ACTION_PAGE_LEFT";
                            case R.id.accessibilityActionPageRight:
                                return "ACTION_PAGE_RIGHT";
                            case R.id.accessibilityActionPressAndHold:
                                return "ACTION_PRESS_AND_HOLD";
                            default:
                                switch (i10) {
                                    case R.id.accessibilityActionImeEnter:
                                        return "ACTION_IME_ENTER";
                                    case R.id.ALT:
                                        return "ACTION_DRAG_START";
                                    case R.id.CTRL:
                                        return "ACTION_DRAG_DROP";
                                    case R.id.FUNCTION:
                                        return "ACTION_DRAG_CANCEL";
                                    default:
                                        return "ACTION_UNKNOWN";
                                }
                        }
                }
        }
    }

    private boolean j(int i10) {
        Bundle t10 = t();
        return t10 != null && (t10.getInt("androidx.view.accessibility.AccessibilityNodeInfoCompat.BOOLEAN_PROPERTY_KEY", 0) & i10) == i10;
    }

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

    public String A() {
        return Build.VERSION.SDK_INT >= 33 ? c.g(this.f36127a) : this.f36127a.getExtras().getString("androidx.view.accessibility.AccessibilityNodeInfoCompat.UNIQUE_ID_KEY");
    }

    public void A0(CharSequence charSequence) {
        this.f36127a.setPaneTitle(charSequence);
    }

    public String B() {
        return this.f36127a.getViewIdResourceName();
    }

    public void B0(View view) {
        this.f36128b = -1;
        this.f36127a.setParent(view);
    }

    public void C0(View view, int i10) {
        this.f36128b = i10;
        this.f36127a.setParent(view, i10);
    }

    public boolean D() {
        return Build.VERSION.SDK_INT >= 34 ? d.f(this.f36127a) : j(64);
    }

    public void D0(boolean z10) {
        this.f36127a.setPassword(z10);
    }

    public boolean E() {
        return this.f36127a.isCheckable();
    }

    public void E0(g gVar) {
        this.f36127a.setRangeInfo((AccessibilityNodeInfo.RangeInfo) gVar.f36158a);
    }

    public boolean F() {
        return this.f36127a.isChecked();
    }

    public void F0(CharSequence charSequence) {
        this.f36127a.getExtras().putCharSequence("AccessibilityNodeInfo.roleDescription", charSequence);
    }

    public boolean G() {
        return this.f36127a.isClickable();
    }

    public void G0(boolean z10) {
        this.f36127a.setScreenReaderFocusable(z10);
    }

    public boolean H() {
        return this.f36127a.isContextClickable();
    }

    public void H0(boolean z10) {
        this.f36127a.setScrollable(z10);
    }

    public boolean I() {
        return this.f36127a.isEnabled();
    }

    public void I0(boolean z10) {
        this.f36127a.setSelected(z10);
    }

    public boolean J() {
        return this.f36127a.isFocusable();
    }

    public void J0(boolean z10) {
        this.f36127a.setShowingHintText(z10);
    }

    public boolean K() {
        return this.f36127a.isFocused();
    }

    public void K0(View view, int i10) {
        this.f36129c = i10;
        this.f36127a.setSource(view, i10);
    }

    public boolean L() {
        return j(67108864);
    }

    public void L0(CharSequence charSequence) {
        b.c(this.f36127a, charSequence);
    }

    public boolean M() {
        return this.f36127a.isImportantForAccessibility();
    }

    public void M0(CharSequence charSequence) {
        this.f36127a.setText(charSequence);
    }

    public boolean N() {
        return this.f36127a.isLongClickable();
    }

    public void N0(int i10, int i11) {
        this.f36127a.setTextSelection(i10, i11);
    }

    public boolean O() {
        return this.f36127a.isPassword();
    }

    public void O0(View view) {
        this.f36127a.setTraversalAfter(view);
    }

    public boolean P() {
        return this.f36127a.isScrollable();
    }

    public void P0(View view, int i10) {
        this.f36127a.setTraversalAfter(view, i10);
    }

    public boolean Q() {
        return this.f36127a.isSelected();
    }

    public void Q0(View view) {
        this.f36127a.setTraversalBefore(view);
    }

    public boolean R() {
        return this.f36127a.isShowingHintText();
    }

    public void R0(View view, int i10) {
        this.f36127a.setTraversalBefore(view, i10);
    }

    public boolean S() {
        return Build.VERSION.SDK_INT >= 33 ? c.h(this.f36127a) : j(8388608);
    }

    public void S0(String str) {
        this.f36127a.setViewIdResourceName(str);
    }

    public boolean T() {
        return this.f36127a.isVisibleToUser();
    }

    public void T0(boolean z10) {
        this.f36127a.setVisibleToUser(z10);
    }

    public AccessibilityNodeInfo U0() {
        return this.f36127a;
    }

    public boolean X(int i10, Bundle bundle) {
        return this.f36127a.performAction(i10, bundle);
    }

    public void Y() {
    }

    public boolean Z(a aVar) {
        return this.f36127a.removeAction((AccessibilityNodeInfo.AccessibilityAction) aVar.f36152a);
    }

    public void a(int i10) {
        this.f36127a.addAction(i10);
    }

    public void a0(boolean z10) {
        this.f36127a.setAccessibilityFocused(z10);
    }

    public void b(a aVar) {
        this.f36127a.addAction((AccessibilityNodeInfo.AccessibilityAction) aVar.f36152a);
    }

    public void b0(List list) {
        this.f36127a.setAvailableExtraData(list);
    }

    public void c(View view) {
        this.f36127a.addChild(view);
    }

    public void c0(Rect rect) {
        this.f36127a.setBoundsInParent(rect);
    }

    public void d(View view, int i10) {
        this.f36127a.addChild(view, i10);
    }

    public void d0(Rect rect) {
        this.f36127a.setBoundsInScreen(rect);
    }

    public void e(CharSequence charSequence, View view) {
    }

    public void e0(boolean z10) {
        this.f36127a.setCheckable(z10);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || !(obj instanceof h)) {
            return false;
        }
        h hVar = (h) obj;
        AccessibilityNodeInfo accessibilityNodeInfo = this.f36127a;
        if (accessibilityNodeInfo == null) {
            if (hVar.f36127a != null) {
                return false;
            }
        } else if (!accessibilityNodeInfo.equals(hVar.f36127a)) {
            return false;
        }
        return this.f36129c == hVar.f36129c && this.f36128b == hVar.f36128b;
    }

    public void f0(boolean z10) {
        this.f36127a.setChecked(z10);
    }

    public List g() {
        List<AccessibilityNodeInfo.AccessibilityAction> actionList = this.f36127a.getActionList();
        if (actionList == null) {
            return Collections.emptyList();
        }
        ArrayList arrayList = new ArrayList();
        int size = actionList.size();
        for (int i10 = 0; i10 < size; i10++) {
            arrayList.add(new a(actionList.get(i10)));
        }
        return arrayList;
    }

    public void g0(CharSequence charSequence) {
        this.f36127a.setClassName(charSequence);
    }

    public void h0(boolean z10) {
        this.f36127a.setClickable(z10);
    }

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

    public int i() {
        return this.f36127a.getActions();
    }

    public void i0(Object obj) {
        this.f36127a.setCollectionInfo(obj == null ? null : (AccessibilityNodeInfo.CollectionInfo) ((e) obj).f36156a);
    }

    public void j0(Object obj) {
        this.f36127a.setCollectionItemInfo(obj == null ? null : (AccessibilityNodeInfo.CollectionItemInfo) ((f) obj).f36157a);
    }

    public void k(Rect rect) {
        this.f36127a.getBoundsInParent(rect);
    }

    public void k0(CharSequence charSequence) {
        this.f36127a.setContentDescription(charSequence);
    }

    public void l(Rect rect) {
        this.f36127a.getBoundsInScreen(rect);
    }

    public void l0(boolean z10) {
        this.f36127a.setContentInvalid(z10);
    }

    public void m(Rect rect) {
        if (Build.VERSION.SDK_INT >= 34) {
            d.b(this.f36127a, rect);
            return;
        }
        Rect rect2 = (Rect) this.f36127a.getExtras().getParcelable("androidx.view.accessibility.AccessibilityNodeInfoCompat.BOUNDS_IN_WINDOW_KEY");
        if (rect2 != null) {
            rect.set(rect2.left, rect2.top, rect2.right, rect2.bottom);
        }
    }

    public void m0(boolean z10) {
        this.f36127a.setDismissable(z10);
    }

    public int n() {
        return this.f36127a.getChildCount();
    }

    public void n0(boolean z10) {
        this.f36127a.setEditable(z10);
    }

    public CharSequence o() {
        return this.f36127a.getClassName();
    }

    public void o0(boolean z10) {
        this.f36127a.setEnabled(z10);
    }

    public void p0(CharSequence charSequence) {
        this.f36127a.setError(charSequence);
    }

    public CharSequence q() {
        return Build.VERSION.SDK_INT >= 34 ? d.c(this.f36127a) : this.f36127a.getExtras().getCharSequence("androidx.view.accessibility.AccessibilityNodeInfoCompat.CONTAINER_TITLE_KEY");
    }

    public void q0(boolean z10) {
        this.f36127a.setFocusable(z10);
    }

    public CharSequence r() {
        return this.f36127a.getContentDescription();
    }

    public void r0(boolean z10) {
        this.f36127a.setFocused(z10);
    }

    public CharSequence s() {
        return this.f36127a.getError();
    }

    public void s0(boolean z10) {
        this.f36127a.setHeading(z10);
    }

    public Bundle t() {
        return this.f36127a.getExtras();
    }

    public void t0(CharSequence charSequence) {
        this.f36127a.setHintText(charSequence);
    }

    public String toString() {
        StringBuilder sb2 = new StringBuilder();
        sb2.append(super.toString());
        Rect rect = new Rect();
        k(rect);
        sb2.append("; boundsInParent: " + rect);
        l(rect);
        sb2.append("; boundsInScreen: " + rect);
        m(rect);
        sb2.append("; boundsInWindow: " + rect);
        sb2.append("; packageName: ");
        sb2.append(w());
        sb2.append("; className: ");
        sb2.append(o());
        sb2.append("; text: ");
        sb2.append(y());
        sb2.append("; error: ");
        sb2.append(s());
        sb2.append("; maxTextLength: ");
        sb2.append(u());
        sb2.append("; stateDescription: ");
        sb2.append(x());
        sb2.append("; contentDescription: ");
        sb2.append(r());
        sb2.append("; tooltipText: ");
        sb2.append(z());
        sb2.append("; viewIdResName: ");
        sb2.append(B());
        sb2.append("; uniqueId: ");
        sb2.append(A());
        sb2.append("; checkable: ");
        sb2.append(E());
        sb2.append("; checked: ");
        sb2.append(F());
        sb2.append("; focusable: ");
        sb2.append(J());
        sb2.append("; focused: ");
        sb2.append(K());
        sb2.append("; selected: ");
        sb2.append(Q());
        sb2.append("; clickable: ");
        sb2.append(G());
        sb2.append("; longClickable: ");
        sb2.append(N());
        sb2.append("; contextClickable: ");
        sb2.append(H());
        sb2.append("; enabled: ");
        sb2.append(I());
        sb2.append("; password: ");
        sb2.append(O());
        sb2.append("; scrollable: " + P());
        sb2.append("; containerTitle: ");
        sb2.append(q());
        sb2.append("; granularScrollingSupported: ");
        sb2.append(L());
        sb2.append("; importantForAccessibility: ");
        sb2.append(M());
        sb2.append("; visible: ");
        sb2.append(T());
        sb2.append("; isTextSelectable: ");
        sb2.append(S());
        sb2.append("; accessibilityDataSensitive: ");
        sb2.append(D());
        sb2.append("; [");
        List g10 = g();
        for (int i10 = 0; i10 < g10.size(); i10++) {
            a aVar = (a) g10.get(i10);
            String h10 = h(aVar.b());
            if (h10.equals("ACTION_UNKNOWN") && aVar.c() != null) {
                h10 = aVar.c().toString();
            }
            sb2.append(h10);
            if (i10 != g10.size() - 1) {
                sb2.append(", ");
            }
        }
        sb2.append("]");
        return sb2.toString();
    }

    public int u() {
        return this.f36127a.getMaxTextLength();
    }

    public void u0(boolean z10) {
        this.f36127a.setImportantForAccessibility(z10);
    }

    public int v() {
        return this.f36127a.getMovementGranularities();
    }

    public void v0(View view) {
        this.f36127a.setLabelFor(view);
    }

    public CharSequence w() {
        return this.f36127a.getPackageName();
    }

    public void w0(boolean z10) {
        this.f36127a.setLongClickable(z10);
    }

    public CharSequence x() {
        return b.b(this.f36127a);
    }

    public void x0(int i10) {
        this.f36127a.setMaxTextLength(i10);
    }

    public CharSequence y() {
        if (!C()) {
            return this.f36127a.getText();
        }
        List f10 = f("androidx.view.accessibility.AccessibilityNodeInfoCompat.SPANS_START_KEY");
        List f11 = f("androidx.view.accessibility.AccessibilityNodeInfoCompat.SPANS_END_KEY");
        List f12 = f("androidx.view.accessibility.AccessibilityNodeInfoCompat.SPANS_FLAGS_KEY");
        List f13 = f("androidx.view.accessibility.AccessibilityNodeInfoCompat.SPANS_ID_KEY");
        SpannableString spannableString = new SpannableString(TextUtils.substring(this.f36127a.getText(), 0, this.f36127a.getText().length()));
        for (int i10 = 0; i10 < f10.size(); i10++) {
            spannableString.setSpan(new t3.a(((Integer) f13.get(i10)).intValue(), this, t().getInt("androidx.view.accessibility.AccessibilityNodeInfoCompat.SPANS_ACTION_ID_KEY")), ((Integer) f10.get(i10)).intValue(), ((Integer) f11.get(i10)).intValue(), ((Integer) f12.get(i10)).intValue());
        }
        return spannableString;
    }

    public void y0(int i10) {
        this.f36127a.setMovementGranularities(i10);
    }

    public CharSequence z() {
        return this.f36127a.getTooltipText();
    }

    public void z0(CharSequence charSequence) {
        this.f36127a.setPackageName(charSequence);
    }

    private h(AccessibilityNodeInfo accessibilityNodeInfo) {
        this.f36127a = accessibilityNodeInfo;
    }
}
