what-the-bank/sources/o/AbstractC12179etN.java

170 lines
6.0 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.graphics.Rect;
import android.graphics.RectF;
import android.view.View;
import android.view.ViewGroup;
import androidx.core.view.ViewCompat;
import androidx.fragment.app.Fragment;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
/* renamed from: o.etN, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC12179etN {
public abstract void AX_(ViewGroup viewGroup, Object obj);
public abstract void AY_(Object obj, Rect rect);
public abstract Object a(Object obj);
public abstract void a(Object obj, View view, ArrayList<View> arrayList);
public abstract void b(Object obj, View view);
public abstract void b(Object obj, View view, ArrayList<View> arrayList);
public abstract Object c(Object obj, Object obj2, Object obj3);
public abstract void c(Object obj, ArrayList<View> arrayList, ArrayList<View> arrayList2);
public abstract Object d(Object obj, Object obj2, Object obj3);
public abstract void d(Object obj, Object obj2, ArrayList<View> arrayList, Object obj3, ArrayList<View> arrayList2, Object obj4, ArrayList<View> arrayList3);
public abstract boolean d(Object obj);
public abstract Object e(Object obj);
public abstract void e(Object obj, View view);
public abstract void e(Object obj, ArrayList<View> arrayList);
/* JADX INFO: Access modifiers changed from: protected */
public void ze_(View view, Rect rect) {
if (ViewCompat.H(view)) {
RectF rectF = new RectF();
rectF.set(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, view.getWidth(), view.getHeight());
view.getMatrix().mapRect(rectF);
rectF.offset(view.getLeft(), view.getTop());
Object parent = view.getParent();
while (parent instanceof View) {
View view2 = (View) parent;
rectF.offset(-view2.getScrollX(), -view2.getScrollY());
view2.getMatrix().mapRect(rectF);
rectF.offset(view2.getLeft(), view2.getTop());
parent = view2.getParent();
}
view.getRootView().getLocationOnScreen(new int[2]);
rectF.offset(r1[0], r1[1]);
rect.set(Math.round(rectF.left), Math.round(rectF.top), Math.round(rectF.right), Math.round(rectF.bottom));
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public ArrayList<String> b(ArrayList<View> arrayList) {
ArrayList<String> arrayList2 = new ArrayList<>();
int size = arrayList.size();
for (int i = 0; i < size; i++) {
View view = arrayList.get(i);
arrayList2.add(ViewCompat.u(view));
ViewCompat.a(view, (String) null);
}
return arrayList2;
}
/* JADX INFO: Access modifiers changed from: package-private */
public void b(View view, ArrayList<View> arrayList, ArrayList<View> arrayList2, ArrayList<String> arrayList3, Map<String, String> map) {
int size = arrayList2.size();
ArrayList arrayList4 = new ArrayList();
for (int i = 0; i < size; i++) {
View view2 = arrayList.get(i);
String u = ViewCompat.u(view2);
arrayList4.add(u);
if (u != null) {
ViewCompat.a(view2, (String) null);
String str = map.get(u);
int i2 = 0;
while (true) {
if (i2 >= size) {
break;
}
if (str.equals(arrayList3.get(i2))) {
ViewCompat.a(arrayList2.get(i2), u);
break;
}
i2++;
}
}
}
ViewTreeObserverOnPreDrawListenerC17759zYL.c(view, new Runnable(this, size, arrayList2, arrayList3, arrayList, arrayList4) { // from class: o.etN.5
final ArrayList a;
final ArrayList b;
final AbstractC12179etN c;
final int d;
final ArrayList e;
final ArrayList f;
{
this.c = this;
this.d = size;
this.e = arrayList2;
this.a = arrayList3;
this.f = arrayList;
this.b = arrayList4;
}
@Override // java.lang.Runnable
public final void run() {
for (int i3 = 0; i3 < this.d; i3++) {
ViewCompat.a((View) this.e.get(i3), (String) this.a.get(i3));
ViewCompat.a((View) this.f.get(i3), (String) this.b.get(i3));
}
}
});
}
public void a(Fragment fragment, Object obj, vNC vnc, Runnable runnable) {
runnable.run();
}
/* JADX INFO: Access modifiers changed from: protected */
public static void a(List<View> list, View view) {
int size = list.size();
if (e(list, view, size)) {
return;
}
if (ViewCompat.u(view) != null) {
list.add(view);
}
for (int i = size; i < list.size(); i++) {
View view2 = list.get(i);
if (view2 instanceof ViewGroup) {
ViewGroup viewGroup = (ViewGroup) view2;
int childCount = viewGroup.getChildCount();
for (int i2 = 0; i2 < childCount; i2++) {
View childAt = viewGroup.getChildAt(i2);
if (!e(list, childAt, size) && ViewCompat.u(childAt) != null) {
list.add(childAt);
}
}
}
}
}
private static boolean e(List<View> list, View view, int i) {
for (int i2 = 0; i2 < i; i2++) {
if (list.get(i2) == view) {
return true;
}
}
return false;
}
public static boolean a(List list) {
return list == null || list.isEmpty();
}
}