Files
rr3-apk/decompiled-community/sources/com/ironsource/adqualitysdk/sdk/i/kd.java
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- Added realracing3-community.apk (71.57 MB)
- Removed 32-bit support (armeabi-v7a)
- Only includes arm64-v8a libraries
- Decompiled source code included
- Added README-community.md with analysis
2026-02-18 15:48:36 -08:00

165 lines
6.5 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package com.ironsource.adqualitysdk.sdk.i;
import android.R;
import android.app.Activity;
import android.content.Context;
import android.content.ContextWrapper;
import android.graphics.Rect;
import android.view.View;
import android.view.ViewGroup;
import java.util.ArrayList;
import java.util.List;
/* loaded from: classes4.dex */
public final class kd {
/* renamed from: メ, reason: contains not printable characters */
private static Rect f2830 = new Rect();
/* renamed from: ﻛ, reason: contains not printable characters */
public static View m3405(Activity activity) {
return activity.findViewById(R.id.content);
}
/* renamed from: ﻐ, reason: contains not printable characters */
public static <E extends View> E m3402(Activity activity, Class<E> cls, int i, List<String> list, String str) {
ArrayList arrayList = new ArrayList();
m3413(activity, cls, i, str, true, false, null, list, arrayList);
if (arrayList.size() > 0) {
return (E) arrayList.get(0);
}
return null;
}
/* renamed from: ﻛ, reason: contains not printable characters */
public static <E extends View> void m3406(Activity activity, Class<E> cls, boolean z, List<Integer> list, List<String> list2, List<E> list3) {
m3413(activity, cls, -1, null, false, z, list, list2, list3);
}
/* JADX WARN: Multi-variable type inference failed */
/* renamed from: メ, reason: contains not printable characters */
public static <E extends View> void m3413(Activity activity, Class<E> cls, int i, String str, boolean z, boolean z2, List<Integer> list, List<String> list2, List<E> list3) {
if (i != -1) {
View findViewById = activity.findViewById(i);
if (cls.isInstance(findViewById)) {
list3.add(findViewById);
if (z) {
return;
}
}
m3403(findViewById, cls, str, z, z2, list, list2, list3);
if (list3.size() > 0 && z) {
return;
}
}
View findViewById2 = activity.findViewById(R.id.content);
if (findViewById2 != null) {
m3407(findViewById2, cls, str, z, z2, list, list2, list3);
}
}
/* renamed from: ﻛ, reason: contains not printable characters */
private static <E extends View> void m3407(View view, Class<E> cls, String str, boolean z, boolean z2, List<Integer> list, List<String> list2, List<E> list3) {
View view2 = view;
while (view2.getParent() != null && (view2.getParent() instanceof ViewGroup)) {
view2 = (View) view2.getParent();
}
m3403(view2, cls, str, z, z2, list, list2, list3);
}
/* renamed from: メ, reason: contains not printable characters */
public static <E extends View> E m3412(View view, Class<E> cls, boolean z) {
ArrayList arrayList = new ArrayList();
m3408(view, cls, true, z, null, null, arrayList);
if (arrayList.isEmpty()) {
return null;
}
return (E) arrayList.get(0);
}
/* renamed from: ﻛ, reason: contains not printable characters */
public static <E extends View> void m3408(View view, Class<E> cls, boolean z, boolean z2, List<Integer> list, List<String> list2, List<E> list3) {
m3403(view, cls, null, z, z2, list, list2, list3);
}
/* JADX WARN: Multi-variable type inference failed */
/* renamed from: ﻐ, reason: contains not printable characters */
public static <E extends View> void m3403(View view, Class<E> cls, String str, boolean z, boolean z2, List<Integer> list, List<String> list2, List<E> list3) {
if (view instanceof ViewGroup) {
ViewGroup viewGroup = (ViewGroup) view;
for (int i = 0; i < viewGroup.getChildCount(); i++) {
View childAt = viewGroup.getChildAt(i);
if (m3411(childAt, cls, str, list, list2)) {
list3.add(childAt);
if (z) {
return;
}
if (z2) {
m3403(childAt, cls, str, z, z2, list, list2, list3);
}
} else {
m3403(childAt, cls, str, z, z2, list, list2, list3);
if (list3 != 0 && list3.size() > 0 && z) {
return;
}
}
}
}
}
/* renamed from: ヌ, reason: contains not printable characters */
public static <E extends View> boolean m3411(View view, Class<E> cls, String str, List<Integer> list, List<String> list2) {
if (!cls.isInstance(view)) {
return false;
}
if ((m3410(list) || list.contains(Integer.valueOf(view.getId()))) && !m3415(list2, view)) {
return str == null || view.getClass().getName().startsWith(str);
}
return false;
}
/* renamed from: , reason: contains not printable characters */
private static boolean m3410(List list) {
return list == null || list.isEmpty();
}
/* renamed from: メ, reason: contains not printable characters */
private static boolean m3415(List<String> list, View view) {
return list != null && list.contains(view.getClass().getName());
}
/* renamed from: , reason: contains not printable characters */
public static View m3409(View view) {
while (view.getParent() instanceof View) {
view = (View) view.getParent();
}
return view;
}
/* renamed from: メ, reason: contains not printable characters */
public static boolean m3414(View view) {
view.getHitRect(f2830);
return view.getGlobalVisibleRect(f2830);
}
/* renamed from: ﻛ, reason: contains not printable characters */
public static Activity m3404(View view) {
if (view != null) {
View view2 = view;
while (view2.getId() != 16908290 && (view2.getParent() instanceof View)) {
view2 = (View) view2.getParent();
}
for (Context context = view2.getContext(); context instanceof ContextWrapper; context = ((ContextWrapper) context).getBaseContext()) {
if (context instanceof Activity) {
return (Activity) context;
}
}
View findViewById = view.findViewById(R.id.content);
if (findViewById != null && (findViewById.getContext() instanceof Activity)) {
return (Activity) findViewById.getContext();
}
}
return null;
}
}