package ῲ.Ԕ.K;

import android.annotation.SuppressLint;
import android.graphics.Rect;
import android.os.Build;
import android.view.View;
import android.view.ViewGroup;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import ῲ.ᨨ.ᨨ.C1729;

@SuppressLint({"UnknownNullness"})
/* renamed from: ῲ.Ԕ.K.ᓆ  reason: contains not printable characters */
/* compiled from: FragmentTransitionImpl */
public abstract class AbstractC1523 {
    /* renamed from: ʬ  reason: contains not printable characters */
    public abstract Object m3882(Object obj);

    /* renamed from: ʬ  reason: contains not printable characters */
    public abstract void m3883(Object obj, View view);

    /* renamed from: ῲ  reason: contains not printable characters */
    public abstract Object m3884(Object obj);

    /* renamed from: ῲ  reason: contains not printable characters */
    public abstract Object m3885(Object obj, Object obj2, Object obj3);

    /* renamed from: ῲ  reason: contains not printable characters */
    public abstract void m3886(Object obj, View view);

    /* renamed from: ῲ  reason: contains not printable characters */
    public abstract void m3887(Object obj, View view, ArrayList<View> arrayList);

    /* renamed from: ῲ  reason: contains not printable characters */
    public abstract void m3888(Object obj, ArrayList<View> arrayList, ArrayList<View> arrayList2);

    /* renamed from: K  reason: contains not printable characters */
    public abstract Object m3889(Object obj, Object obj2, Object obj3);

    /* renamed from: K  reason: contains not printable characters */
    public void m3890(View view, Rect rect) {
        int[] iArr = new int[2];
        view.getLocationOnScreen(iArr);
        rect.set(iArr[0], iArr[1], view.getWidth() + iArr[0], view.getHeight() + iArr[1]);
    }

    /* renamed from: K  reason: contains not printable characters */
    public abstract void m3891(ViewGroup viewGroup, Object obj);

    /* renamed from: K  reason: contains not printable characters */
    public abstract void m3892(Object obj, Rect rect);

    /* renamed from: K  reason: contains not printable characters */
    public abstract void m3893(Object obj, View view);

    /* renamed from: K  reason: contains not printable characters */
    public abstract void m3894(Object obj, View view, ArrayList<View> arrayList);

    /* renamed from: K  reason: contains not printable characters */
    public abstract void m3895(Object obj, Object obj2, ArrayList<View> arrayList, Object obj3, ArrayList<View> arrayList2, Object obj4, ArrayList<View> arrayList3);

    /* renamed from: K  reason: contains not printable characters */
    public abstract void m3896(Object obj, ArrayList<View> arrayList);

    /* renamed from: K  reason: contains not printable characters */
    public abstract void m3897(Object obj, ArrayList<View> arrayList, ArrayList<View> arrayList2);

    /* renamed from: K  reason: contains not printable characters */
    public abstract boolean m3900(Object obj);

    /* renamed from: K  reason: contains not printable characters */
    public void m3898(ArrayList<View> arrayList, View view) {
        if (view.getVisibility() != 0) {
            return;
        }
        if (view instanceof ViewGroup) {
            ViewGroup viewGroup = (ViewGroup) view;
            int i = Build.VERSION.SDK_INT;
            if (viewGroup.isTransitionGroup()) {
                arrayList.add(viewGroup);
                return;
            }
            int childCount = viewGroup.getChildCount();
            for (int i2 = 0; i2 < childCount; i2++) {
                m3898(arrayList, viewGroup.getChildAt(i2));
            }
            return;
        }
        arrayList.add(view);
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m3899(Map<String, View> map, View view) {
        if (view.getVisibility() == 0) {
            String r0 = C1729.m4443(view);
            if (r0 != null) {
                map.put(r0, view);
            }
            if (view instanceof ViewGroup) {
                ViewGroup viewGroup = (ViewGroup) view;
                int childCount = viewGroup.getChildCount();
                for (int i = 0; i < childCount; i++) {
                    m3899(map, viewGroup.getChildAt(i));
                }
            }
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public static void m3879(List<View> list, View view) {
        int size = list.size();
        if (!m3881(list, view, size)) {
            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 (!m3881(list, childAt, size)) {
                            list.add(childAt);
                        }
                    }
                }
            }
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public static boolean m3881(List<View> list, View view, int i) {
        for (int i2 = 0; i2 < i; i2++) {
            if (list.get(i2) == view) {
                return true;
            }
        }
        return false;
    }

    /* renamed from: K  reason: contains not printable characters */
    public static boolean m3880(List list) {
        return list == null || list.isEmpty();
    }
}
