what-the-bank/sources/androidx/core/view/accessibility/AccessibilityNodeInfoCompat...

1016 lines
39 KiB
Java

package androidx.core.view.accessibility;
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.view.View;
import android.view.accessibility.AccessibilityNodeInfo;
import androidx.core.view.accessibility.AccessibilityViewCommand;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import o.C17488xFm;
import o.CDz;
import org.bouncycastle.asn1.cmp.PKIFailureInfo;
/* loaded from: classes.dex */
public class AccessibilityNodeInfoCompat {
public int a = -1;
private int c = -1;
private final AccessibilityNodeInfo d;
/* loaded from: classes.dex */
public static class RangeInfoCompat {
}
/* loaded from: classes.dex */
public static final class TouchDelegateInfoCompat {
}
public void a(CharSequence charSequence, View view) {
}
/* loaded from: classes.dex */
public static class AccessibilityActionCompat {
public static final AccessibilityActionCompat A;
public static final AccessibilityActionCompat B;
public static final AccessibilityActionCompat C;
public static final AccessibilityActionCompat D;
public static final AccessibilityActionCompat E;
public static final AccessibilityActionCompat F;
public static final AccessibilityActionCompat G;
public static final AccessibilityActionCompat H;
public static final AccessibilityActionCompat I;
public static final AccessibilityActionCompat J;
public static final AccessibilityActionCompat K;
public static final AccessibilityActionCompat L;
public static final AccessibilityActionCompat M;
public static final AccessibilityActionCompat N;
public static final AccessibilityActionCompat O;
public static final AccessibilityActionCompat R;
public static final AccessibilityActionCompat S;
private static int W = 0;
private static int X = 1;
public static final AccessibilityActionCompat a;
public static final AccessibilityActionCompat b;
public static final AccessibilityActionCompat c;
public static final AccessibilityActionCompat d;
public static final AccessibilityActionCompat e;
public static final AccessibilityActionCompat f;
public static final AccessibilityActionCompat g;
public static final AccessibilityActionCompat h;
public static final AccessibilityActionCompat i;
public static final AccessibilityActionCompat j;
public static final AccessibilityActionCompat k;
public static final AccessibilityActionCompat l;
public static final AccessibilityActionCompat m;
public static final AccessibilityActionCompat n;
/* renamed from: o, reason: collision with root package name */
public static final AccessibilityActionCompat f6387o;
public static final AccessibilityActionCompat p;
public static final AccessibilityActionCompat q;
public static final AccessibilityActionCompat r;
public static final AccessibilityActionCompat s;
public static final AccessibilityActionCompat t;
public static final AccessibilityActionCompat u;
public static final AccessibilityActionCompat v;
public static final AccessibilityActionCompat w;
public static final AccessibilityActionCompat x;
public static final AccessibilityActionCompat y;
public static final AccessibilityActionCompat z;
protected final AccessibilityViewCommand P;
final Object Q;
private final Class<? extends AccessibilityViewCommand.HBt> U;
private final int V;
static void a() {
}
static {
AccessibilityNodeInfo.AccessibilityAction accessibilityAction;
AccessibilityNodeInfo.AccessibilityAction accessibilityAction2;
AccessibilityNodeInfo.AccessibilityAction accessibilityAction3;
AccessibilityNodeInfo.AccessibilityAction accessibilityAction4;
AccessibilityNodeInfo.AccessibilityAction accessibilityAction5;
AccessibilityNodeInfo.AccessibilityAction accessibilityAction6;
AccessibilityNodeInfo.AccessibilityAction accessibilityAction7;
a();
AccessibilityNodeInfo.AccessibilityAction accessibilityAction8 = null;
k = new AccessibilityActionCompat(1, null);
a = new AccessibilityActionCompat(2, null);
M = new AccessibilityActionCompat(4, null);
d = new AccessibilityActionCompat(8, null);
e = new AccessibilityActionCompat(16, null);
p = new AccessibilityActionCompat(32, null);
c = new AccessibilityActionCompat(64, null);
b = new AccessibilityActionCompat(128, null);
q = new AccessibilityActionCompat(256, (CharSequence) null, (Class<? extends AccessibilityViewCommand.HBt>) AccessibilityViewCommand.Sts.class);
z = new AccessibilityActionCompat(512, (CharSequence) null, (Class<? extends AccessibilityViewCommand.HBt>) AccessibilityViewCommand.Sts.class);
w = new AccessibilityActionCompat(1024, (CharSequence) null, (Class<? extends AccessibilityViewCommand.HBt>) AccessibilityViewCommand.RVV.class);
A = new AccessibilityActionCompat(2048, (CharSequence) null, (Class<? extends AccessibilityViewCommand.HBt>) AccessibilityViewCommand.RVV.class);
I = new AccessibilityActionCompat(4096, null);
C = new AccessibilityActionCompat(8192, null);
g = new AccessibilityActionCompat(16384, null);
D = new AccessibilityActionCompat(32768, null);
i = new AccessibilityActionCompat(65536, null);
K = new AccessibilityActionCompat(131072, (CharSequence) null, (Class<? extends AccessibilityViewCommand.HBt>) AccessibilityViewCommand.tOB.class);
f6387o = new AccessibilityActionCompat(262144, null);
j = new AccessibilityActionCompat(524288, null);
h = new AccessibilityActionCompat(PKIFailureInfo.badCertTemplate, null);
J = new AccessibilityActionCompat(PKIFailureInfo.badSenderNonce, (CharSequence) null, (Class<? extends AccessibilityViewCommand.HBt>) AccessibilityViewCommand.saX.class);
R = new AccessibilityActionCompat(AccessibilityNodeInfo.AccessibilityAction.ACTION_SHOW_ON_SCREEN, R.id.accessibilityActionShowOnScreen, null, null, null);
E = new AccessibilityActionCompat(AccessibilityNodeInfo.AccessibilityAction.ACTION_SCROLL_TO_POSITION, R.id.accessibilityActionScrollToPosition, null, null, AccessibilityViewCommand.IeS.class);
L = new AccessibilityActionCompat(AccessibilityNodeInfo.AccessibilityAction.ACTION_SCROLL_UP, R.id.accessibilityActionScrollUp, null, null, null);
G = new AccessibilityActionCompat(AccessibilityNodeInfo.AccessibilityAction.ACTION_SCROLL_LEFT, R.id.accessibilityActionScrollLeft, null, null, null);
F = new AccessibilityActionCompat(AccessibilityNodeInfo.AccessibilityAction.ACTION_SCROLL_DOWN, R.id.accessibilityActionScrollDown, null, null, null);
H = new AccessibilityActionCompat(AccessibilityNodeInfo.AccessibilityAction.ACTION_SCROLL_RIGHT, R.id.accessibilityActionScrollRight, null, null, null);
if (Build.VERSION.SDK_INT >= 29) {
accessibilityAction = AccessibilityNodeInfo.AccessibilityAction.ACTION_PAGE_UP;
} else {
int i2 = 2 % 2;
accessibilityAction = null;
}
y = new AccessibilityActionCompat(accessibilityAction, R.id.accessibilityActionPageUp, null, null, null);
v = new AccessibilityActionCompat(Build.VERSION.SDK_INT >= 29 ? AccessibilityNodeInfo.AccessibilityAction.ACTION_PAGE_DOWN : null, R.id.accessibilityActionPageDown, null, null, null);
if (Build.VERSION.SDK_INT >= 29) {
accessibilityAction2 = AccessibilityNodeInfo.AccessibilityAction.ACTION_PAGE_LEFT;
} else {
int i3 = W + 121;
X = i3 % 128;
int i4 = i3 % 2;
int i5 = 2 % 2;
accessibilityAction2 = null;
}
u = new AccessibilityActionCompat(accessibilityAction2, R.id.accessibilityActionPageLeft, null, null, null);
if (Build.VERSION.SDK_INT >= 29) {
int i6 = X + 37;
W = i6 % 128;
int i7 = i6 % 2;
accessibilityAction3 = AccessibilityNodeInfo.AccessibilityAction.ACTION_PAGE_RIGHT;
} else {
accessibilityAction3 = null;
}
x = new AccessibilityActionCompat(accessibilityAction3, R.id.accessibilityActionPageRight, null, null, null);
f = new AccessibilityActionCompat(AccessibilityNodeInfo.AccessibilityAction.ACTION_CONTEXT_CLICK, R.id.accessibilityActionContextClick, null, null, null);
N = new AccessibilityActionCompat(AccessibilityNodeInfo.AccessibilityAction.ACTION_SET_PROGRESS, R.id.accessibilityActionSetProgress, null, null, AccessibilityViewCommand.ojQ.class);
s = new AccessibilityActionCompat(AccessibilityNodeInfo.AccessibilityAction.ACTION_MOVE_WINDOW, R.id.accessibilityActionMoveWindow, null, null, AccessibilityViewCommand.LWm.class);
if (Build.VERSION.SDK_INT >= 28) {
AccessibilityNodeInfo.AccessibilityAction accessibilityAction9 = AccessibilityNodeInfo.AccessibilityAction.ACTION_SHOW_TOOLTIP;
int i8 = W + 121;
X = i8 % 128;
if (i8 % 2 == 0) {
int i9 = 2 / 3;
} else {
int i10 = 2 % 2;
}
accessibilityAction4 = accessibilityAction9;
} else {
accessibilityAction4 = null;
}
O = new AccessibilityActionCompat(accessibilityAction4, R.id.accessibilityActionShowTooltip, null, null, null);
if (Build.VERSION.SDK_INT >= 28) {
accessibilityAction5 = AccessibilityNodeInfo.AccessibilityAction.ACTION_HIDE_TOOLTIP;
} else {
int i11 = 2 % 2;
accessibilityAction5 = null;
}
r = new AccessibilityActionCompat(accessibilityAction5, R.id.accessibilityActionHideTooltip, null, null, null);
B = new AccessibilityActionCompat(Build.VERSION.SDK_INT >= 30 ? AccessibilityNodeInfo.AccessibilityAction.ACTION_PRESS_AND_HOLD : null, R.id.accessibilityActionPressAndHold, null, null, null);
if (Build.VERSION.SDK_INT >= 30) {
int i12 = X + 111;
W = i12 % 128;
if (i12 % 2 != 0) {
AccessibilityNodeInfo.AccessibilityAction accessibilityAction10 = AccessibilityNodeInfo.AccessibilityAction.ACTION_IME_ENTER;
throw null;
}
accessibilityAction6 = AccessibilityNodeInfo.AccessibilityAction.ACTION_IME_ENTER;
} else {
accessibilityAction6 = null;
}
t = new AccessibilityActionCompat(accessibilityAction6, R.id.accessibilityActionImeEnter, null, null, null);
n = new AccessibilityActionCompat(Build.VERSION.SDK_INT >= 32 ? AccessibilityNodeInfo.AccessibilityAction.ACTION_DRAG_START : null, R.id.ALT, null, null, null);
m = new AccessibilityActionCompat(Build.VERSION.SDK_INT >= 32 ? AccessibilityNodeInfo.AccessibilityAction.ACTION_DRAG_DROP : null, R.id.CTRL, null, null, null);
if (Build.VERSION.SDK_INT >= 32) {
accessibilityAction7 = AccessibilityNodeInfo.AccessibilityAction.ACTION_DRAG_CANCEL;
} else {
int i13 = X + 119;
W = i13 % 128;
int i14 = i13 % 2;
int i15 = 2 % 2;
accessibilityAction7 = null;
}
l = new AccessibilityActionCompat(accessibilityAction7, R.id.FUNCTION, null, null, null);
if (Build.VERSION.SDK_INT >= 33) {
int i16 = X + 31;
W = i16 % 128;
if (i16 % 2 != 0) {
accessibilityAction8 = AccessibilityNodeInfo.AccessibilityAction.ACTION_SHOW_TEXT_SUGGESTIONS;
int i17 = 4 / 0;
} else {
accessibilityAction8 = AccessibilityNodeInfo.AccessibilityAction.ACTION_SHOW_TEXT_SUGGESTIONS;
}
}
S = new AccessibilityActionCompat(accessibilityAction8, R.id.KEYCODE_0, null, null, null);
}
public AccessibilityActionCompat(int i2, CharSequence charSequence) {
this(null, i2, charSequence, null, null);
}
public AccessibilityActionCompat(int i2, CharSequence charSequence, AccessibilityViewCommand accessibilityViewCommand) {
this(null, i2, charSequence, accessibilityViewCommand, null);
}
AccessibilityActionCompat(Object obj) {
this(obj, 0, null, null, null);
}
private AccessibilityActionCompat(int i2, CharSequence charSequence, Class<? extends AccessibilityViewCommand.HBt> cls) {
this(null, i2, charSequence, null, cls);
}
AccessibilityActionCompat(Object obj, int i2, CharSequence charSequence, AccessibilityViewCommand accessibilityViewCommand, Class<? extends AccessibilityViewCommand.HBt> cls) {
int i3;
this.V = i2;
this.P = accessibilityViewCommand;
if (obj == null) {
this.Q = new AccessibilityNodeInfo.AccessibilityAction(i2, charSequence);
i3 = X + 29;
} else {
this.Q = obj;
i3 = X + 79;
}
W = i3 % 128;
int i4 = i3 % 2;
int i5 = 2 % 2;
this.U = cls;
}
public int c() {
int i2 = 2 % 2;
int i3 = W + 125;
X = i3 % 128;
int i4 = i3 % 2;
int id = ((AccessibilityNodeInfo.AccessibilityAction) this.Q).getId();
int i5 = W + 83;
X = i5 % 128;
if (i5 % 2 != 0) {
return id;
}
throw null;
}
public CharSequence b() {
int i2 = 2 % 2;
int i3 = X + 45;
W = i3 % 128;
int i4 = i3 % 2;
CharSequence label = ((AccessibilityNodeInfo.AccessibilityAction) this.Q).getLabel();
int i5 = X + 57;
W = i5 % 128;
if (i5 % 2 == 0) {
return label;
}
Object obj = null;
obj.hashCode();
throw null;
}
/* JADX WARN: Code restructure failed: missing block: B:10:0x0044, code lost:
return r3.P.d(r4);
*/
/* JADX WARN: Code restructure failed: missing block: B:12:0x001f, code lost:
r0 = r0.getDeclaredConstructor(new java.lang.Class[0]).newInstance(new java.lang.Object[0]);
*/
/* JADX WARN: Code restructure failed: missing block: B:13:0x002d, code lost:
r0 = androidx.core.view.accessibility.AccessibilityNodeInfoCompat.AccessibilityActionCompat.W + 61;
androidx.core.view.accessibility.AccessibilityNodeInfoCompat.AccessibilityActionCompat.X = r0 % 128;
r0 = r0 % 2;
*/
/* JADX WARN: Code restructure failed: missing block: B:16:0x0039, code lost:
if (r3.U == null) goto L15;
*/
/* JADX WARN: Code restructure failed: missing block: B:17:0x003b, code lost:
android.graphics.Color.alpha(0);
*/
/* JADX WARN: Code restructure failed: missing block: B:19:0x0019, code lost:
if (r3.P != null) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x0014, code lost:
if (r3.P != null) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:5:0x0045, code lost:
return false;
*/
/* JADX WARN: Code restructure failed: missing block: B:7:0x001b, code lost:
r0 = r3.U;
*/
/* JADX WARN: Code restructure failed: missing block: B:8:0x001d, code lost:
if (r0 == null) goto L16;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public boolean uc_(android.view.View r4, android.os.Bundle r5) {
/*
r3 = this;
r5 = 2
int r0 = r5 % r5
int r0 = androidx.core.view.accessibility.AccessibilityNodeInfoCompat.AccessibilityActionCompat.W
int r0 = r0 + 47
int r1 = r0 % 128
androidx.core.view.accessibility.AccessibilityNodeInfoCompat.AccessibilityActionCompat.X = r1
int r0 = r0 % r5
r1 = 0
if (r0 != 0) goto L17
androidx.core.view.accessibility.AccessibilityViewCommand r0 = r3.P
r2 = 93
int r2 = r2 / r1
if (r0 == 0) goto L45
goto L1b
L17:
androidx.core.view.accessibility.AccessibilityViewCommand r0 = r3.P
if (r0 == 0) goto L45
L1b:
java.lang.Class<? extends androidx.core.view.accessibility.AccessibilityViewCommand$HBt> r0 = r3.U
if (r0 == 0) goto L3e
java.lang.Class[] r2 = new java.lang.Class[r1] // Catch: java.lang.Exception -> L37
java.lang.reflect.Constructor r0 = r0.getDeclaredConstructor(r2) // Catch: java.lang.Exception -> L37
java.lang.Object[] r2 = new java.lang.Object[r1] // Catch: java.lang.Exception -> L37
java.lang.Object r0 = r0.newInstance(r2) // Catch: java.lang.Exception -> L37
androidx.core.view.accessibility.AccessibilityViewCommand$HBt r0 = (androidx.core.view.accessibility.AccessibilityViewCommand.HBt) r0 // Catch: java.lang.Exception -> L37
int r0 = androidx.core.view.accessibility.AccessibilityNodeInfoCompat.AccessibilityActionCompat.W
int r0 = r0 + 61
int r1 = r0 % 128
androidx.core.view.accessibility.AccessibilityNodeInfoCompat.AccessibilityActionCompat.X = r1
int r0 = r0 % r5
goto L3e
L37:
java.lang.Class<? extends androidx.core.view.accessibility.AccessibilityViewCommand$HBt> r5 = r3.U
if (r5 != 0) goto L3e
android.graphics.Color.alpha(r1)
L3e:
androidx.core.view.accessibility.AccessibilityViewCommand r5 = r3.P
boolean r4 = r5.d(r4)
return r4
L45:
return r1
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.core.view.accessibility.AccessibilityNodeInfoCompat.AccessibilityActionCompat.uc_(android.view.View, android.os.Bundle):boolean");
}
public AccessibilityActionCompat d(CharSequence charSequence, AccessibilityViewCommand accessibilityViewCommand) {
int i2 = 2 % 2;
AccessibilityActionCompat accessibilityActionCompat = new AccessibilityActionCompat(null, this.V, charSequence, accessibilityViewCommand, this.U);
int i3 = W + 31;
X = i3 % 128;
int i4 = i3 % 2;
return accessibilityActionCompat;
}
public int hashCode() {
int i2 = 2 % 2;
Object obj = this.Q;
int i3 = 0;
if (obj != null) {
int i4 = W + 71;
X = i4 % 128;
if (i4 % 2 == 0) {
int i5 = 27 / 0;
i3 = obj.hashCode();
} else {
i3 = obj.hashCode();
}
} else {
int i6 = W + 71;
X = i6 % 128;
int i7 = i6 % 2;
}
int i8 = X + 99;
W = i8 % 128;
if (i8 % 2 == 0) {
return i3;
}
Object obj2 = null;
obj2.hashCode();
throw null;
}
public boolean equals(Object obj) {
int i2 = 2 % 2;
if (obj != null) {
if (obj instanceof AccessibilityActionCompat) {
AccessibilityActionCompat accessibilityActionCompat = (AccessibilityActionCompat) obj;
Object obj2 = this.Q;
if (obj2 != null) {
return obj2.equals(accessibilityActionCompat.Q);
}
int i3 = W;
int i4 = i3 + 93;
X = i4 % 128;
if (i4 % 2 == 0) {
Object obj3 = accessibilityActionCompat.Q;
Object obj4 = null;
obj4.hashCode();
throw null;
}
if (accessibilityActionCompat.Q == null) {
return true;
}
int i5 = i3 + 103;
X = i5 % 128;
if (i5 % 2 == 0) {
int i6 = 40 / 0;
}
return false;
}
int i7 = X + 29;
W = i7 % 128;
int i8 = i7 % 2;
return false;
}
int i9 = X + 107;
int i10 = i9 % 128;
W = i10;
int i11 = i9 % 2;
int i12 = i10 + 3;
X = i12 % 128;
int i13 = i12 % 2;
return false;
}
}
/* loaded from: classes.dex */
public static class CollectionInfoCompat {
final Object a;
public static CollectionInfoCompat e(int i, int i2, boolean z, int i3) {
return new CollectionInfoCompat(AccessibilityNodeInfo.CollectionInfo.obtain(i, i2, z, i3));
}
CollectionInfoCompat(Object obj) {
this.a = obj;
}
}
/* loaded from: classes.dex */
public static class CollectionItemInfoCompat {
final Object a;
public static CollectionItemInfoCompat c(int i, int i2, int i3, int i4, boolean z, boolean z2) {
return new CollectionItemInfoCompat(AccessibilityNodeInfo.CollectionItemInfo.obtain(i, i2, i3, i4, z, z2));
}
CollectionItemInfoCompat(Object obj) {
this.a = obj;
}
}
private AccessibilityNodeInfoCompat(AccessibilityNodeInfo accessibilityNodeInfo) {
this.d = accessibilityNodeInfo;
}
public static AccessibilityNodeInfoCompat tU_(AccessibilityNodeInfo accessibilityNodeInfo) {
return new AccessibilityNodeInfoCompat(accessibilityNodeInfo);
}
public static AccessibilityNodeInfoCompat d(View view) {
return tU_(AccessibilityNodeInfo.obtain(view));
}
public static AccessibilityNodeInfoCompat b() {
return tU_(AccessibilityNodeInfo.obtain());
}
public static AccessibilityNodeInfoCompat b(AccessibilityNodeInfoCompat accessibilityNodeInfoCompat) {
return tU_(AccessibilityNodeInfo.obtain(accessibilityNodeInfoCompat.d));
}
public void c(View view, int i) {
this.c = i;
this.d.setSource(view, i);
}
public int a() {
return this.d.getChildCount();
}
public void a(View view, int i) {
this.d.addChild(view, i);
}
@Deprecated
public int e() {
return this.d.getActions();
}
public void d(int i) {
this.d.addAction(i);
}
private List<Integer> a(String str) {
ArrayList<Integer> integerArrayList = this.d.getExtras().getIntegerArrayList(str);
if (integerArrayList != null) {
return integerArrayList;
}
ArrayList<Integer> arrayList = new ArrayList<>();
this.d.getExtras().putIntegerArrayList(str, arrayList);
return arrayList;
}
public void e(AccessibilityActionCompat accessibilityActionCompat) {
this.d.addAction((AccessibilityNodeInfo.AccessibilityAction) accessibilityActionCompat.Q);
}
public boolean a(AccessibilityActionCompat accessibilityActionCompat) {
return this.d.removeAction((AccessibilityNodeInfo.AccessibilityAction) accessibilityActionCompat.Q);
}
public boolean tY_(int i, Bundle bundle) {
return this.d.performAction(i, bundle);
}
public void b(View view) {
this.a = -1;
this.d.setParent(view);
}
public void b(View view, int i) {
this.a = i;
this.d.setParent(view, i);
}
@Deprecated
public void tV_(Rect rect) {
this.d.getBoundsInParent(rect);
}
@Deprecated
public void tZ_(Rect rect) {
this.d.setBoundsInParent(rect);
}
public void tW_(Rect rect) {
this.d.getBoundsInScreen(rect);
}
public void ua_(Rect rect) {
this.d.setBoundsInScreen(rect);
}
public boolean n() {
return this.d.isCheckable();
}
public void c(boolean z) {
this.d.setCheckable(z);
}
public boolean o() {
return this.d.isChecked();
}
public void a(boolean z) {
this.d.setChecked(z);
}
public boolean r() {
return this.d.isFocusable();
}
public void f(boolean z) {
this.d.setFocusable(z);
}
public boolean t() {
return this.d.isFocused();
}
public void j(boolean z) {
this.d.setFocused(z);
}
public void l(boolean z) {
this.d.setVisibleToUser(z);
}
public void e(boolean z) {
this.d.setAccessibilityFocused(z);
}
public boolean w() {
return this.d.isSelected();
}
public boolean m() {
return this.d.isClickable();
}
public void d(boolean z) {
this.d.setClickable(z);
}
public boolean q() {
return this.d.isLongClickable();
}
public boolean k() {
return this.d.isEnabled();
}
public void g(boolean z) {
this.d.setEnabled(z);
}
public boolean s() {
return this.d.isPassword();
}
public boolean p() {
return this.d.isScrollable();
}
public void n(boolean z) {
this.d.setScrollable(z);
}
public CharSequence g() {
return this.d.getPackageName();
}
public void f(CharSequence charSequence) {
this.d.setPackageName(charSequence);
}
public CharSequence c() {
return this.d.getClassName();
}
public void e(CharSequence charSequence) {
this.d.setClassName(charSequence);
}
public CharSequence i() {
if (y()) {
List<Integer> a = a("androidx.view.accessibility.AccessibilityNodeInfoCompat.SPANS_START_KEY");
List<Integer> a2 = a("androidx.view.accessibility.AccessibilityNodeInfoCompat.SPANS_END_KEY");
List<Integer> a3 = a("androidx.view.accessibility.AccessibilityNodeInfoCompat.SPANS_FLAGS_KEY");
List<Integer> a4 = a("androidx.view.accessibility.AccessibilityNodeInfoCompat.SPANS_ID_KEY");
SpannableString spannableString = new SpannableString(TextUtils.substring(this.d.getText(), 0, this.d.getText().length()));
for (int i = 0; i < a.size(); i++) {
spannableString.setSpan(new CDz(a4.get(i).intValue(), this, tX_().getInt("androidx.view.accessibility.AccessibilityNodeInfoCompat.SPANS_ACTION_ID_KEY")), a.get(i).intValue(), a2.get(i).intValue(), a3.get(i).intValue());
}
return spannableString;
}
return this.d.getText();
}
public void g(CharSequence charSequence) {
this.d.setText(charSequence);
}
public static ClickableSpan[] tT_(CharSequence charSequence) {
if (charSequence instanceof Spanned) {
return (ClickableSpan[]) ((Spanned) charSequence).getSpans(0, charSequence.length(), ClickableSpan.class);
}
return null;
}
private boolean y() {
return !a("androidx.view.accessibility.AccessibilityNodeInfoCompat.SPANS_START_KEY").isEmpty();
}
public CharSequence j() {
return this.d.getContentDescription();
}
public void d(CharSequence charSequence) {
this.d.setContentDescription(charSequence);
}
public void i(CharSequence charSequence) {
if (C17488xFm.b()) {
this.d.setStateDescription(charSequence);
} else {
this.d.getExtras().putCharSequence("androidx.view.accessibility.AccessibilityNodeInfoCompat.STATE_DESCRIPTION_KEY", charSequence);
}
}
public String h() {
if (C17488xFm.c()) {
return this.d.getUniqueId();
}
return this.d.getExtras().getString("androidx.view.accessibility.AccessibilityNodeInfoCompat.UNIQUE_ID_KEY");
}
public void u() {
this.d.recycle();
}
public String l() {
return this.d.getViewIdResourceName();
}
public void e(Object obj) {
this.d.setCollectionInfo(obj == null ? null : (AccessibilityNodeInfo.CollectionInfo) ((CollectionInfoCompat) obj).a);
}
public void d(Object obj) {
this.d.setCollectionItemInfo(obj == null ? null : (AccessibilityNodeInfo.CollectionItemInfo) ((CollectionItemInfoCompat) obj).a);
}
public List<AccessibilityActionCompat> d() {
List<AccessibilityNodeInfo.AccessibilityAction> actionList = this.d.getActionList();
if (actionList != null) {
ArrayList arrayList = new ArrayList();
int size = actionList.size();
for (int i = 0; i < size; i++) {
arrayList.add(new AccessibilityActionCompat(actionList.get(i)));
}
return arrayList;
}
return Collections.emptyList();
}
public void a(CharSequence charSequence) {
this.d.setHintText(charSequence);
}
public void c(CharSequence charSequence) {
this.d.setError(charSequence);
}
public void a(View view) {
this.d.setLabelFor(view);
}
public void b(boolean z) {
this.d.setCanOpenPopup(z);
}
public Bundle tX_() {
return this.d.getExtras();
}
public void a(int i) {
this.d.setMaxTextLength(i);
}
public void c(View view) {
this.d.setTraversalAfter(view);
}
public void i(boolean z) {
this.d.setDismissable(z);
}
public void h(CharSequence charSequence) {
if (Build.VERSION.SDK_INT >= 28) {
this.d.setPaneTitle(charSequence);
} else {
this.d.getExtras().putCharSequence("androidx.view.accessibility.AccessibilityNodeInfoCompat.PANE_TITLE_KEY", charSequence);
}
}
public void m(boolean z) {
if (Build.VERSION.SDK_INT >= 28) {
this.d.setScreenReaderFocusable(z);
} else {
d(1, z);
}
}
public boolean x() {
return this.d.isShowingHintText();
}
public void k(boolean z) {
this.d.setShowingHintText(z);
}
public void h(boolean z) {
if (Build.VERSION.SDK_INT >= 28) {
this.d.setHeading(z);
} else {
d(2, z);
}
}
public void j(CharSequence charSequence) {
this.d.getExtras().putCharSequence("AccessibilityNodeInfo.roleDescription", charSequence);
}
public int hashCode() {
AccessibilityNodeInfo accessibilityNodeInfo = this.d;
if (accessibilityNodeInfo == null) {
return 0;
}
return accessibilityNodeInfo.hashCode();
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || !(obj instanceof AccessibilityNodeInfoCompat)) {
return false;
}
AccessibilityNodeInfoCompat accessibilityNodeInfoCompat = (AccessibilityNodeInfoCompat) obj;
AccessibilityNodeInfo accessibilityNodeInfo = this.d;
if (accessibilityNodeInfo == null) {
if (accessibilityNodeInfoCompat.d != null) {
return false;
}
} else if (!accessibilityNodeInfo.equals(accessibilityNodeInfoCompat.d)) {
return false;
}
return this.c == accessibilityNodeInfoCompat.c && this.a == accessibilityNodeInfoCompat.a;
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(super.toString());
Rect rect = new Rect();
tV_(rect);
sb.append("; boundsInParent: ".concat(String.valueOf(rect)));
tW_(rect);
sb.append("; boundsInScreen: ".concat(String.valueOf(rect)));
sb.append("; packageName: ");
sb.append(g());
sb.append("; className: ");
sb.append(c());
sb.append("; text: ");
sb.append(i());
sb.append("; contentDescription: ");
sb.append(j());
sb.append("; viewId: ");
sb.append(l());
sb.append("; uniqueId: ");
sb.append(h());
sb.append("; checkable: ");
sb.append(n());
sb.append("; checked: ");
sb.append(o());
sb.append("; focusable: ");
sb.append(r());
sb.append("; focused: ");
sb.append(t());
sb.append("; selected: ");
sb.append(w());
sb.append("; clickable: ");
sb.append(m());
sb.append("; longClickable: ");
sb.append(q());
sb.append("; enabled: ");
sb.append(k());
sb.append("; password: ");
sb.append(s());
StringBuilder sb2 = new StringBuilder("; scrollable: ");
sb2.append(p());
sb.append(sb2.toString());
sb.append("; [");
List<AccessibilityActionCompat> d = d();
for (int i = 0; i < d.size(); i++) {
AccessibilityActionCompat accessibilityActionCompat = d.get(i);
String e = e(accessibilityActionCompat.c());
if (e.equals("ACTION_UNKNOWN") && accessibilityActionCompat.b() != null) {
e = accessibilityActionCompat.b().toString();
}
sb.append(e);
if (i != d.size() - 1) {
sb.append(", ");
}
}
sb.append("]");
return sb.toString();
}
private void d(int i, boolean z) {
Bundle tX_ = tX_();
if (tX_ != null) {
tX_.putInt("androidx.view.accessibility.AccessibilityNodeInfoCompat.BOOLEAN_PROPERTY_KEY", ((~i) & tX_.getInt("androidx.view.accessibility.AccessibilityNodeInfoCompat.BOOLEAN_PROPERTY_KEY", 0)) | (z ? i : 0));
}
}
public AccessibilityNodeInfo ub_() {
return this.d;
}
private static String e(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 1024:
return "ACTION_NEXT_HTML_ELEMENT";
case 2048:
return "ACTION_PREVIOUS_HTML_ELEMENT";
case 4096:
return "ACTION_SCROLL_FORWARD";
case 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 PKIFailureInfo.badSenderNonce /* 2097152 */:
return "ACTION_SET_TEXT";
case R.id.accessibilityActionMoveWindow:
return "ACTION_MOVE_WINDOW";
default:
switch (i) {
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 (i) {
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 (i) {
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";
}
}
}
}
}
}