private void a(String paramString, PrintWriter paramPrintWriter, View paramView) { paramPrintWriter.print(paramString); if (paramView == null) { paramPrintWriter.println("null"); } for (;;) { return; paramPrintWriter.println(a(paramView)); if ((paramView instanceof ViewGroup)) { paramView = (ViewGroup)paramView; int i1 = paramView.getChildCount(); if (i1 > 0) { paramString = paramString + " "; int n = 0; while (n < i1) { a(paramString, paramPrintWriter, paramView.getChildAt(n)); n += 1; } } } } }
public final void onInitializeAccessibilityNodeInfo( View view, AccessibilityNodeInfoCompat accessibilitynodeinfocompat) { AccessibilityNodeInfoCompat accessibilitynodeinfocompat1 = AccessibilityNodeInfoCompat.obtain(accessibilitynodeinfocompat); super.onInitializeAccessibilityNodeInfo(view, accessibilitynodeinfocompat1); accessibilitynodeinfocompat.setClassName( com / roidapp / baselib / view / FixedDrawerLayout.getName()); accessibilitynodeinfocompat.setSource(view); Object obj = ViewCompat.getParentForAccessibility(view); if (obj instanceof View) { accessibilitynodeinfocompat.setParent((View) obj); } obj = b; accessibilitynodeinfocompat1.getBoundsInParent(((Rect) (obj))); accessibilitynodeinfocompat.setBoundsInParent(((Rect) (obj))); accessibilitynodeinfocompat1.getBoundsInScreen(((Rect) (obj))); accessibilitynodeinfocompat.setBoundsInScreen(((Rect) (obj))); accessibilitynodeinfocompat.setVisibleToUser(accessibilitynodeinfocompat1.isVisibleToUser()); accessibilitynodeinfocompat.setPackageName(accessibilitynodeinfocompat1.getPackageName()); accessibilitynodeinfocompat.setClassName(accessibilitynodeinfocompat1.getClassName()); accessibilitynodeinfocompat.setContentDescription( accessibilitynodeinfocompat1.getContentDescription()); accessibilitynodeinfocompat.setEnabled(accessibilitynodeinfocompat1.isEnabled()); accessibilitynodeinfocompat.setClickable(accessibilitynodeinfocompat1.isClickable()); accessibilitynodeinfocompat.setFocusable(accessibilitynodeinfocompat1.isFocusable()); accessibilitynodeinfocompat.setFocused(accessibilitynodeinfocompat1.isFocused()); accessibilitynodeinfocompat.setAccessibilityFocused( accessibilitynodeinfocompat1.isAccessibilityFocused()); accessibilitynodeinfocompat.setSelected(accessibilitynodeinfocompat1.isSelected()); accessibilitynodeinfocompat.setLongClickable(accessibilitynodeinfocompat1.isLongClickable()); accessibilitynodeinfocompat.addAction(accessibilitynodeinfocompat1.getActions()); accessibilitynodeinfocompat1.recycle(); view = (ViewGroup) view; int j = view.getChildCount(); for (int i = 0; i < j; i++) { View view1 = view.getChildAt(i); if (FixedDrawerLayout.h(view1)) { accessibilitynodeinfocompat.addChild(view1); } } }
private void snapshotView(JsonWriter paramJsonWriter, View paramView) throws IOException { int i = paramView.getId(); Object localObject1; if (-1 == i) { localObject1 = null; paramJsonWriter.beginObject(); paramJsonWriter.name("hashCode").value(paramView.hashCode()); paramJsonWriter.name("id").value(i); paramJsonWriter.name("mp_id_name").value((String) localObject1); localObject1 = paramView.getContentDescription(); if (localObject1 != null) { break label418; } paramJsonWriter.name("contentDescription").nullValue(); label81: localObject1 = paramView.getTag(); if (localObject1 != null) { break label438; } paramJsonWriter.name("tag").nullValue(); } Object localObject2; int j; for (; ; ) { paramJsonWriter.name("top").value(paramView.getTop()); paramJsonWriter.name("left").value(paramView.getLeft()); paramJsonWriter.name("width").value(paramView.getWidth()); paramJsonWriter.name("height").value(paramView.getHeight()); paramJsonWriter.name("scrollX").value(paramView.getScrollX()); paramJsonWriter.name("scrollY").value(paramView.getScrollY()); paramJsonWriter.name("visibility").value(paramView.getVisibility()); float f1 = 0.0F; float f2 = 0.0F; if (Build.VERSION.SDK_INT >= 11) { f1 = paramView.getTranslationX(); f2 = paramView.getTranslationY(); } paramJsonWriter.name("translationX").value(f1); paramJsonWriter.name("translationY").value(f2); paramJsonWriter.name("classes"); paramJsonWriter.beginArray(); localObject1 = paramView.getClass(); do { paramJsonWriter.value((String) this.mClassnameCache.get(localObject1)); localObject2 = ((Class) localObject1).getSuperclass(); if (localObject2 == Object.class) { break; } localObject1 = localObject2; } while (localObject2 != null); paramJsonWriter.endArray(); addProperties(paramJsonWriter, paramView); localObject1 = paramView.getLayoutParams(); if (!(localObject1 instanceof RelativeLayout.LayoutParams)) { break label469; } localObject1 = ((RelativeLayout.LayoutParams) localObject1).getRules(); paramJsonWriter.name("layoutRules"); paramJsonWriter.beginArray(); j = localObject1.length; i = 0; while (i < j) { paramJsonWriter.value(localObject1[i]); i += 1; } localObject1 = this.mResourceIds.nameForId(i); break; label418: paramJsonWriter.name("contentDescription").value(((CharSequence) localObject1).toString()); break label81; label438: if ((localObject1 instanceof CharSequence)) { paramJsonWriter.name("tag").value(localObject1.toString()); } } paramJsonWriter.endArray(); label469: paramJsonWriter.name("subviews"); paramJsonWriter.beginArray(); if ((paramView instanceof ViewGroup)) { localObject1 = (ViewGroup) paramView; j = ((ViewGroup) localObject1).getChildCount(); i = 0; while (i < j) { localObject2 = ((ViewGroup) localObject1).getChildAt(i); if (localObject2 != null) { paramJsonWriter.value(localObject2.hashCode()); } i += 1; } } paramJsonWriter.endArray(); paramJsonWriter.endObject(); if ((paramView instanceof ViewGroup)) { paramView = (ViewGroup) paramView; j = paramView.getChildCount(); i = 0; while (i < j) { localObject1 = paramView.getChildAt(i); if (localObject1 != null) { snapshotView(paramJsonWriter, (View) localObject1); } i += 1; } } }