package androidx.core.view.accessibility; import android.graphics.Rect; import android.view.accessibility.AccessibilityWindowInfo; /* loaded from: classes.dex */ public class AccessibilityWindowInfoCompat { private final Object d; static AccessibilityWindowInfoCompat d(Object obj) { if (obj != null) { return new AccessibilityWindowInfoCompat(obj); } return null; } private AccessibilityWindowInfoCompat(Object obj) { this.d = obj; } public int e() { return IeS.ur_((AccessibilityWindowInfo) this.d); } public int a() { return IeS.up_((AccessibilityWindowInfo) this.d); } public AccessibilityWindowInfoCompat c() { return d(IeS.uq_((AccessibilityWindowInfo) this.d)); } public int b() { return IeS.uo_((AccessibilityWindowInfo) this.d); } public void ul_(Rect rect) { IeS.um_((AccessibilityWindowInfo) this.d, rect); } public boolean h() { return IeS.us_((AccessibilityWindowInfo) this.d); } public boolean g() { return IeS.ut_((AccessibilityWindowInfo) this.d); } public int d() { return IeS.un_((AccessibilityWindowInfo) this.d); } public int hashCode() { Object obj = this.d; if (obj == null) { return 0; } return obj.hashCode(); } public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || !(obj instanceof AccessibilityWindowInfoCompat)) { return false; } AccessibilityWindowInfoCompat accessibilityWindowInfoCompat = (AccessibilityWindowInfoCompat) obj; Object obj2 = this.d; if (obj2 == null) { return accessibilityWindowInfoCompat.d == null; } return obj2.equals(accessibilityWindowInfoCompat.d); } public String toString() { StringBuilder sb = new StringBuilder("AccessibilityWindowInfo[id="); Rect rect = new Rect(); ul_(rect); sb.append(b()); sb.append(", type="); sb.append(c(e())); sb.append(", layer="); sb.append(a()); sb.append(", bounds="); sb.append(rect); sb.append(", focused="); sb.append(g()); sb.append(", active="); sb.append(h()); sb.append(", hasParent="); sb.append(c() != null); sb.append(", hasChildren="); sb.append(d() > 0); sb.append(']'); return sb.toString(); } /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes.dex */ public static class IeS { static void um_(AccessibilityWindowInfo accessibilityWindowInfo, Rect rect) { accessibilityWindowInfo.getBoundsInScreen(rect); } static int un_(AccessibilityWindowInfo accessibilityWindowInfo) { return accessibilityWindowInfo.getChildCount(); } static int uo_(AccessibilityWindowInfo accessibilityWindowInfo) { return accessibilityWindowInfo.getId(); } static int up_(AccessibilityWindowInfo accessibilityWindowInfo) { return accessibilityWindowInfo.getLayer(); } static AccessibilityWindowInfo uq_(AccessibilityWindowInfo accessibilityWindowInfo) { return accessibilityWindowInfo.getParent(); } static int ur_(AccessibilityWindowInfo accessibilityWindowInfo) { return accessibilityWindowInfo.getType(); } static boolean us_(AccessibilityWindowInfo accessibilityWindowInfo) { return accessibilityWindowInfo.isActive(); } static boolean ut_(AccessibilityWindowInfo accessibilityWindowInfo) { return accessibilityWindowInfo.isFocused(); } } private static String c(int i) { return i != 1 ? i != 2 ? i != 3 ? i != 4 ? "" : "TYPE_ACCESSIBILITY_OVERLAY" : "TYPE_SYSTEM" : "TYPE_INPUT_METHOD" : "TYPE_APPLICATION"; } }