package ῲ.ᨨ.ᨨ;

import android.annotation.SuppressLint;
import android.content.Context;
import android.content.res.ColorStateList;
import android.content.res.TypedArray;
import android.graphics.Paint;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.os.Bundle;
import android.util.AttributeSet;
import android.util.Log;
import android.util.SparseArray;
import android.view.Display;
import android.view.KeyEvent;
import android.view.PointerIcon;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewParent;
import android.view.ViewTreeObserver;
import android.view.WindowInsets;
import android.view.accessibility.AccessibilityEvent;
import android.view.accessibility.AccessibilityManager;
import androidx.core.R$id;
import androidx.recyclerview.widget.RecyclerView;
import java.lang.ref.WeakReference;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.WeakHashMap;
import java.util.concurrent.atomic.AtomicInteger;
import ඓ.K.K.K.C1293;
import ῲ.ᨨ.ʬ.C1716;
import ῲ.ᨨ.ᨨ.C1747;
import ῲ.ᨨ.ᨨ.C1754;
import ῲ.ᨨ.ᨨ.䃖.AbstractC1787;
import ῲ.ᨨ.ᨨ.䃖.C1782;

@SuppressLint({"PrivateConstructorForUtilityClass"})
/* renamed from: ῲ.ᨨ.ᨨ.Ԛ  reason: contains not printable characters */
/* compiled from: ViewCompat */
public class C1729 {

    /* renamed from: ʬ  reason: contains not printable characters */
    public static Field f6046;

    /* renamed from: ඓ  reason: contains not printable characters */
    public static ThreadLocal<Rect> f6047;

    /* renamed from: ῲ  reason: contains not printable characters */
    public static WeakHashMap<View, C1768> f6048 = null;

    /* renamed from: K  reason: contains not printable characters */
    public static final AtomicInteger f6049 = new AtomicInteger(1);

    /* renamed from: 㴹  reason: contains not printable characters */
    public static final int[] f6050 = {R$id.accessibility_custom_action_0, R$id.accessibility_custom_action_1, R$id.accessibility_custom_action_2, R$id.accessibility_custom_action_3, R$id.accessibility_custom_action_4, R$id.accessibility_custom_action_5, R$id.accessibility_custom_action_6, R$id.accessibility_custom_action_7, R$id.accessibility_custom_action_8, R$id.accessibility_custom_action_9, R$id.accessibility_custom_action_10, R$id.accessibility_custom_action_11, R$id.accessibility_custom_action_12, R$id.accessibility_custom_action_13, R$id.accessibility_custom_action_14, R$id.accessibility_custom_action_15, R$id.accessibility_custom_action_16, R$id.accessibility_custom_action_17, R$id.accessibility_custom_action_18, R$id.accessibility_custom_action_19, R$id.accessibility_custom_action_20, R$id.accessibility_custom_action_21, R$id.accessibility_custom_action_22, R$id.accessibility_custom_action_23, R$id.accessibility_custom_action_24, R$id.accessibility_custom_action_25, R$id.accessibility_custom_action_26, R$id.accessibility_custom_action_27, R$id.accessibility_custom_action_28, R$id.accessibility_custom_action_29, R$id.accessibility_custom_action_30, R$id.accessibility_custom_action_31};

    /* renamed from: 㸾  reason: contains not printable characters */
    public static boolean f6051 = false;

    /* renamed from: ῲ.ᨨ.ᨨ.Ԛ$ʬ  reason: contains not printable characters */
    /* compiled from: ViewCompat */
    public static abstract class AbstractC1730<T> {

        /* renamed from: ʬ  reason: contains not printable characters */
        public final int f6052;

        /* renamed from: ῲ  reason: contains not printable characters */
        public final Class<T> f6053;

        /* renamed from: K  reason: contains not printable characters */
        public final int f6054;

        /* renamed from: 㸾  reason: contains not printable characters */
        public final int f6055;

        public AbstractC1730(int i, Class<T> cls, int i2) {
            this.f6054 = i;
            this.f6053 = cls;
            this.f6055 = 0;
            this.f6052 = i2;
        }

        /* renamed from: ῲ  reason: contains not printable characters */
        public final boolean m4514() {
            return Build.VERSION.SDK_INT >= this.f6052;
        }

        /* renamed from: K  reason: contains not printable characters */
        public abstract T m4515(View view);

        /* renamed from: K  reason: contains not printable characters */
        public abstract void m4516(View view, T t);

        /* renamed from: K  reason: contains not printable characters */
        public final boolean m4517() {
            int i = Build.VERSION.SDK_INT;
            return true;
        }

        /* renamed from: K  reason: contains not printable characters */
        public abstract boolean m4519(T t, T t2);

        /* renamed from: ῲ  reason: contains not printable characters */
        public T m4513(View view) {
            if (Build.VERSION.SDK_INT >= this.f6052) {
                return m4515(view);
            }
            int i = Build.VERSION.SDK_INT;
            T t = (T) view.getTag(this.f6054);
            if (this.f6053.isInstance(t)) {
                return t;
            }
            return null;
        }

        /* renamed from: K  reason: contains not printable characters */
        public boolean m4518(Boolean bool, Boolean bool2) {
            boolean z;
            boolean booleanValue = bool == null ? false : bool.booleanValue();
            if (bool2 == null) {
                z = false;
            } else {
                z = bool2.booleanValue();
            }
            if (booleanValue == z) {
                return true;
            }
            return false;
        }

        public AbstractC1730(int i, Class<T> cls, int i2, int i3) {
            this.f6054 = i;
            this.f6053 = cls;
            this.f6055 = i2;
            this.f6052 = i3;
        }
    }

    /* renamed from: ῲ.ᨨ.ᨨ.Ԛ$ῲ  reason: contains not printable characters */
    /* compiled from: ViewCompat */
    public static class ViewTreeObserver$OnGlobalLayoutListenerC1732 implements ViewTreeObserver.OnGlobalLayoutListener, View.OnAttachStateChangeListener {

        /* renamed from: ῲ  reason: contains not printable characters */
        public WeakHashMap<View, Boolean> f6060 = new WeakHashMap<>();

        public void onGlobalLayout() {
            if (Build.VERSION.SDK_INT < 28) {
                for (Map.Entry<View, Boolean> entry : this.f6060.entrySet()) {
                    View key = entry.getKey();
                    boolean booleanValue = entry.getValue().booleanValue();
                    boolean z = key.getVisibility() == 0;
                    if (booleanValue != z) {
                        C1729.m4507(key, z ? 16 : 32);
                        this.f6060.put(key, Boolean.valueOf(z));
                    }
                }
            }
        }

        public void onViewAttachedToWindow(View view) {
            view.getViewTreeObserver().addOnGlobalLayoutListener(this);
        }

        public void onViewDetachedFromWindow(View view) {
        }
    }

    /* renamed from: ῲ.ᨨ.ᨨ.Ԛ$㸾  reason: contains not printable characters */
    /* compiled from: ViewCompat */
    public interface AbstractC1734 {
        /* renamed from: K  reason: contains not printable characters */
        boolean m4529(View view, KeyEvent keyEvent);
    }

    static {
        new ViewTreeObserver$OnGlobalLayoutListenerC1732();
    }

    /* renamed from: ʬ  reason: contains not printable characters */
    public static Rect m4437() {
        if (f6047 == null) {
            f6047 = new ThreadLocal<>();
        }
        Rect rect = f6047.get();
        if (rect == null) {
            rect = new Rect();
            f6047.set(rect);
        }
        rect.setEmpty();
        return rect;
    }

    /* renamed from: В  reason: contains not printable characters */
    public static void m4441(View view) {
        int i = Build.VERSION.SDK_INT;
        view.stopNestedScroll();
    }

    /* renamed from: Ԕ  reason: contains not printable characters */
    public static int m4442(View view) {
        int i = Build.VERSION.SDK_INT;
        return view.getMinimumHeight();
    }

    /* renamed from: Ԛ  reason: contains not printable characters */
    public static String m4443(View view) {
        int i = Build.VERSION.SDK_INT;
        return view.getTransitionName();
    }

    /* renamed from: ؿ  reason: contains not printable characters */
    public static C1747 m4444(View view) {
        C1747 r0 = m4459(view);
        if (r0 == null) {
            r0 = new C1747();
        }
        m4482(view, r0);
        return r0;
    }

    /* renamed from: ݜ  reason: contains not printable characters */
    public static ViewParent m4445(View view) {
        int i = Build.VERSION.SDK_INT;
        return view.getParentForAccessibility();
    }

    /* renamed from: ඓ  reason: contains not printable characters */
    public static List<C1782.C1785> m4446(View view) {
        ArrayList arrayList = (ArrayList) view.getTag(R$id.tag_accessibility_actions);
        if (arrayList != null) {
            return arrayList;
        }
        ArrayList arrayList2 = new ArrayList();
        view.setTag(R$id.tag_accessibility_actions, arrayList2);
        return arrayList2;
    }

    /* renamed from: ᆯ  reason: contains not printable characters */
    public static boolean m4448(View view) {
        int i = Build.VERSION.SDK_INT;
        return view.isPaddingRelative();
    }

    /* renamed from: ሽ  reason: contains not printable characters */
    public static void m4449(View view) {
        int i = Build.VERSION.SDK_INT;
        view.postInvalidateOnAnimation();
    }

    /* renamed from: ᑓ  reason: contains not printable characters */
    public static boolean m4450(View view) {
        int i = Build.VERSION.SDK_INT;
        return view.hasOnClickListeners();
    }

    /* renamed from: ᑾ  reason: contains not printable characters */
    public static void m4451(View view) {
        int i = Build.VERSION.SDK_INT;
        view.requestApplyInsets();
    }

    /* renamed from: ᓆ  reason: contains not printable characters */
    public static int m4452(View view) {
        int i = Build.VERSION.SDK_INT;
        return view.getWindowSystemUiVisibility();
    }

    /* renamed from: ᓣ  reason: contains not printable characters */
    public static int m4453(View view) {
        int i = Build.VERSION.SDK_INT;
        return view.getPaddingEnd();
    }

    /* renamed from: ᕣ  reason: contains not printable characters */
    public static int m4454(View view) {
        int i = Build.VERSION.SDK_INT;
        return view.getImportantForAccessibility();
    }

    /* renamed from: ᝁ  reason: contains not printable characters */
    public static boolean m4455(View view) {
        int i = Build.VERSION.SDK_INT;
        return view.isNestedScrollingEnabled();
    }

    /* renamed from: ᨨ  reason: contains not printable characters */
    public static void m4457(View view, int i) {
        int i2 = Build.VERSION.SDK_INT;
        view.setImportantForAccessibility(i);
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public static C1747 m4459(View view) {
        View.AccessibilityDelegate r1 = m4438(view);
        if (r1 == null) {
            return null;
        }
        if (r1 instanceof C1747.C1748) {
            return ((C1747.C1748) r1).f6064;
        }
        return new C1747(r1);
    }

    /* renamed from: ⁱ  reason: contains not printable characters */
    public static void m4466(View view, int i) {
        int i2 = Build.VERSION.SDK_INT;
        m4471(i, view);
        m4507(view, 0);
    }

    /* renamed from: K  reason: contains not printable characters */
    public static void m4475(View view, @SuppressLint({"ContextFirst"}) Context context, int[] iArr, AttributeSet attributeSet, TypedArray typedArray, int i, int i2) {
        if (Build.VERSION.SDK_INT >= 29) {
            view.saveAttributeDataForStyleable(context, iArr, attributeSet, typedArray, i, i2);
        }
    }

    /* renamed from: ⶍ  reason: contains not printable characters */
    public static boolean m4492(View view) {
        Boolean bool = (Boolean) new C1753(R$id.tag_screen_reader_focusable, Boolean.class, 28).m4513(view);
        if (bool == null) {
            return false;
        }
        return bool.booleanValue();
    }

    /* renamed from: ゎ  reason: contains not printable characters */
    public static boolean m4493(View view) {
        int i = Build.VERSION.SDK_INT;
        return view.hasOverlappingRendering();
    }

    /* renamed from: ト  reason: contains not printable characters */
    public static boolean m4494(View view) {
        int i = Build.VERSION.SDK_INT;
        return view.hasTransientState();
    }

    @SuppressLint({"InlinedApi"})
    /* renamed from: 㑃  reason: contains not printable characters */
    public static int m4495(View view) {
        if (Build.VERSION.SDK_INT >= 26) {
            return view.getImportantForAutofill();
        }
        return 0;
    }

    /* renamed from: 㗗  reason: contains not printable characters */
    public static int m4496(View view) {
        int i = Build.VERSION.SDK_INT;
        return view.getMinimumWidth();
    }

    /* renamed from: 㗽  reason: contains not printable characters */
    public static int m4497(View view) {
        int i = Build.VERSION.SDK_INT;
        return view.getPaddingStart();
    }

    /* renamed from: 㮔  reason: contains not printable characters */
    public static boolean m4498(View view) {
        int i = Build.VERSION.SDK_INT;
        return view.isAttachedToWindow();
    }

    /* renamed from: 㮝  reason: contains not printable characters */
    public static void m4499(View view) {
        float translationY = view.getTranslationY();
        view.setTranslationY(1.0f + translationY);
        view.setTranslationY(translationY);
    }

    /* renamed from: 㳳  reason: contains not printable characters */
    public static boolean m4500(View view) {
        int i = Build.VERSION.SDK_INT;
        return view.getFitsSystemWindows();
    }

    /* renamed from: 㴪  reason: contains not printable characters */
    public static float m4501(View view) {
        int i = Build.VERSION.SDK_INT;
        return view.getZ();
    }

    /* renamed from: 㴹  reason: contains not printable characters */
    public static ColorStateList m4502(View view) {
        int i = Build.VERSION.SDK_INT;
        return view.getBackgroundTintList();
    }

    /* renamed from: 㶋  reason: contains not printable characters */
    public static float m4504(View view) {
        int i = Build.VERSION.SDK_INT;
        return view.getTranslationZ();
    }

    /* renamed from: 㸾  reason: contains not printable characters */
    public static void m4506(View view, float f) {
        int i = Build.VERSION.SDK_INT;
        view.setZ(f);
    }

    /* renamed from: 㿎  reason: contains not printable characters */
    public static void m4509(View view, int i) {
        int i2 = Build.VERSION.SDK_INT;
        view.setAccessibilityLiveRegion(i);
    }

    /* renamed from: 䀟  reason: contains not printable characters */
    public static C1754 m4510(View view) {
        C1754.C1764 r3;
        if (Build.VERSION.SDK_INT >= 23) {
            WindowInsets rootWindowInsets = view.getRootWindowInsets();
            if (rootWindowInsets == null) {
                return null;
            }
            C1754 r1 = C1754.m4554(rootWindowInsets);
            r1.f6069.m4584(r1);
            r1.f6069.m4588(view.getRootView());
            return r1;
        }
        if (C1754.C1761.f6091 && view.isAttachedToWindow()) {
            try {
                Object obj = C1754.C1761.f6090.get(view.getRootView());
                if (obj != null) {
                    Rect rect = (Rect) C1754.C1761.f6089.get(obj);
                    Rect rect2 = (Rect) C1754.C1761.f6088.get(obj);
                    if (!(rect == null || rect2 == null)) {
                        int i = Build.VERSION.SDK_INT;
                        if (i >= 30) {
                            r3 = new C1754.C1756();
                        } else if (i >= 29) {
                            r3 = new C1754.C1765();
                        } else {
                            r3 = new C1754.C1755();
                        }
                        r3.m4601(C1716.m4396(rect));
                        r3.m4604(C1716.m4394(rect2.left, rect2.top, rect2.right, rect2.bottom));
                        C1754 r0 = r3.m4600();
                        r0.f6069.m4584(r0);
                        r0.f6069.m4588(view.getRootView());
                        return r0;
                    }
                }
            } catch (IllegalAccessException e) {
                StringBuilder r02 = C1293.m3416("Failed to get insets from AttachInfo. ");
                r02.append(e.getMessage());
                Log.w("WindowInsetsCompat", r02.toString(), e);
            }
        }
        return null;
    }

    /* renamed from: 䁗  reason: contains not printable characters */
    public static int m4511(View view) {
        int i = Build.VERSION.SDK_INT;
        return view.getLayoutDirection();
    }

    /* renamed from: 䃖  reason: contains not printable characters */
    public static boolean m4512(View view) {
        int i = Build.VERSION.SDK_INT;
        return view.isLaidOut();
    }

    /* renamed from: ῲ.ᨨ.ᨨ.Ԛ$K  reason: contains not printable characters */
    /* compiled from: ViewCompat */
    public class C1733 extends AbstractC1730<Boolean> {
        public C1733(int i, Class cls, int i2) {
            super(i, cls, i2);
        }

        /* JADX DEBUG: Method arguments types fixed to match base method, original types: [android.view.View, java.lang.Object] */
        @Override // ῲ.ᨨ.ᨨ.C1729.AbstractC1730
        /* renamed from: K  reason: contains not printable characters */
        public void m4527(View view, Boolean bool) {
            view.setAccessibilityHeading(bool.booleanValue());
        }

        /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */
        @Override // ῲ.ᨨ.ᨨ.C1729.AbstractC1730
        /* renamed from: K  reason: contains not printable characters */
        public boolean m4528(Boolean bool, Boolean bool2) {
            return !m4518(bool, bool2);
        }

        /* Return type fixed from 'java.lang.Object' to match base method */
        @Override // ῲ.ᨨ.ᨨ.C1729.AbstractC1730
        /* renamed from: K  reason: contains not printable characters */
        public Boolean m4526(View view) {
            return Boolean.valueOf(view.isAccessibilityHeading());
        }
    }

    /* renamed from: ῲ.ᨨ.ᨨ.Ԛ$ඓ  reason: contains not printable characters */
    /* compiled from: ViewCompat */
    public static class C1731 {

        /* renamed from: 㸾  reason: contains not printable characters */
        public static final ArrayList<WeakReference<View>> f6056 = new ArrayList<>();

        /* renamed from: ʬ  reason: contains not printable characters */
        public WeakReference<KeyEvent> f6057 = null;

        /* renamed from: ῲ  reason: contains not printable characters */
        public SparseArray<WeakReference<View>> f6058 = null;

        /* renamed from: K  reason: contains not printable characters */
        public WeakHashMap<View, Boolean> f6059 = null;

        /* renamed from: ʬ  reason: contains not printable characters */
        public final boolean m4521(View view, KeyEvent keyEvent) {
            ArrayList arrayList = (ArrayList) view.getTag(R$id.tag_unhandled_key_listeners);
            if (arrayList == null) {
                return false;
            }
            for (int size = arrayList.size() - 1; size >= 0; size--) {
                if (((AbstractC1734) arrayList.get(size)).m4529(view, keyEvent)) {
                    return true;
                }
            }
            return false;
        }

        /* renamed from: ῲ  reason: contains not printable characters */
        public final View m4522(View view, KeyEvent keyEvent) {
            WeakHashMap<View, Boolean> weakHashMap = this.f6059;
            if (weakHashMap != null && weakHashMap.containsKey(view)) {
                if (view instanceof ViewGroup) {
                    ViewGroup viewGroup = (ViewGroup) view;
                    for (int childCount = viewGroup.getChildCount() - 1; childCount >= 0; childCount--) {
                        View r3 = m4522(viewGroup.getChildAt(childCount), keyEvent);
                        if (r3 != null) {
                            return r3;
                        }
                    }
                }
                if (m4521(view, keyEvent)) {
                    return view;
                }
            }
            return null;
        }

        /* renamed from: K  reason: contains not printable characters */
        public final SparseArray<WeakReference<View>> m4524() {
            if (this.f6058 == null) {
                this.f6058 = new SparseArray<>();
            }
            return this.f6058;
        }

        /* renamed from: K  reason: contains not printable characters */
        public static C1731 m4520(View view) {
            C1731 r0 = (C1731) view.getTag(R$id.tag_unhandled_key_event_manager);
            if (r0 != null) {
                return r0;
            }
            C1731 r02 = new C1731();
            view.setTag(R$id.tag_unhandled_key_event_manager, r02);
            return r02;
        }

        /* renamed from: ῲ  reason: contains not printable characters */
        public final void m4523() {
            WeakHashMap<View, Boolean> weakHashMap = this.f6059;
            if (weakHashMap != null) {
                weakHashMap.clear();
            }
            if (!f6056.isEmpty()) {
                synchronized (f6056) {
                    if (this.f6059 == null) {
                        this.f6059 = new WeakHashMap<>();
                    }
                    for (int size = f6056.size() - 1; size >= 0; size--) {
                        View view = f6056.get(size).get();
                        if (view == null) {
                            f6056.remove(size);
                        } else {
                            this.f6059.put(view, Boolean.TRUE);
                            for (ViewParent parent = view.getParent(); parent instanceof View; parent = parent.getParent()) {
                                this.f6059.put((View) parent, Boolean.TRUE);
                            }
                        }
                    }
                }
            }
        }

        /* renamed from: K  reason: contains not printable characters */
        public boolean m4525(View view, KeyEvent keyEvent) {
            if (keyEvent.getAction() == 0) {
                m4523();
            }
            View r3 = m4522(view, keyEvent);
            if (keyEvent.getAction() == 0) {
                int keyCode = keyEvent.getKeyCode();
                if (r3 != null && !KeyEvent.isModifierKey(keyCode)) {
                    if (this.f6058 == null) {
                        this.f6058 = new SparseArray<>();
                    }
                    this.f6058.put(keyCode, new WeakReference<>(r3));
                }
            }
            return r3 != null;
        }
    }

    /* renamed from: ᨨ  reason: contains not printable characters */
    public static float m4456(View view) {
        int i = Build.VERSION.SDK_INT;
        return view.getElevation();
    }

    @Deprecated
    /* renamed from: K  reason: contains not printable characters */
    public static boolean m4489(View view, int i) {
        return view.canScrollVertically(i);
    }

    /* renamed from: 㴹  reason: contains not printable characters */
    public static void m4503(View view, int i) {
        if (Build.VERSION.SDK_INT >= 23) {
            view.offsetTopAndBottom(i);
            return;
        }
        Rect r0 = m4437();
        boolean z = false;
        ViewParent parent = view.getParent();
        if (parent instanceof View) {
            View view2 = (View) parent;
            r0.set(view2.getLeft(), view2.getTop(), view2.getRight(), view2.getBottom());
            z = !r0.intersects(view.getLeft(), view.getTop(), view.getRight(), view.getBottom());
        }
        m4440(view, i);
        if (z && r0.intersect(view.getLeft(), view.getTop(), view.getRight(), view.getBottom())) {
            ((View) parent).invalidate(r0);
        }
    }

    /* renamed from: 㸾  reason: contains not printable characters */
    public static CharSequence m4505(View view) {
        return (CharSequence) new C1736(R$id.tag_accessibility_pane_title, CharSequence.class, 8, 28).m4513(view);
    }

    /* renamed from: 㿎  reason: contains not printable characters */
    public static Display m4508(View view) {
        int i = Build.VERSION.SDK_INT;
        return view.getDisplay();
    }

    /* renamed from: ⁱ  reason: contains not printable characters */
    public static Rect m4465(View view) {
        int i = Build.VERSION.SDK_INT;
        return view.getClipBounds();
    }

    /* renamed from: K  reason: contains not printable characters */
    public static void m4482(View view, C1747 k) {
        View.AccessibilityDelegate accessibilityDelegate;
        if (k == null && (m4438(view) instanceof C1747.C1748)) {
            k = new C1747();
        }
        if (k == null) {
            accessibilityDelegate = null;
        } else {
            accessibilityDelegate = k.getBridge();
        }
        view.setAccessibilityDelegate(accessibilityDelegate);
    }

    /* renamed from: ඓ  reason: contains not printable characters */
    public static void m4447(View view, int i) {
        if (Build.VERSION.SDK_INT >= 23) {
            view.offsetLeftAndRight(i);
            return;
        }
        Rect r0 = m4437();
        boolean z = false;
        ViewParent parent = view.getParent();
        if (parent instanceof View) {
            View view2 = (View) parent;
            r0.set(view2.getLeft(), view2.getTop(), view2.getRight(), view2.getBottom());
            z = !r0.intersects(view.getLeft(), view.getTop(), view.getRight(), view.getBottom());
        }
        m4462(view, i);
        if (z && r0.intersect(view.getLeft(), view.getTop(), view.getRight(), view.getBottom())) {
            ((View) parent).invalidate(r0);
        }
    }

    @Deprecated
    /* renamed from: ῲ  reason: contains not printable characters */
    public static void m4461(View view, float f) {
        view.setScaleX(f);
    }

    /* renamed from: 㸾  reason: contains not printable characters */
    public static void m4507(View view, int i) {
        AccessibilityManager accessibilityManager = (AccessibilityManager) view.getContext().getSystemService("accessibility");
        if (accessibilityManager.isEnabled()) {
            boolean z = m4505(view) != null && view.getVisibility() == 0;
            int i2 = Build.VERSION.SDK_INT;
            int i3 = 32;
            if (view.getAccessibilityLiveRegion() != 0 || z) {
                AccessibilityEvent obtain = AccessibilityEvent.obtain();
                if (!z) {
                    i3 = RecyclerView.AbstractC0269.FLAG_MOVED;
                }
                obtain.setEventType(i3);
                obtain.setContentChangeTypes(i);
                if (z) {
                    obtain.getText().add(m4505(view));
                    if (m4454(view) == 0) {
                        int i4 = Build.VERSION.SDK_INT;
                        view.setImportantForAccessibility(1);
                    }
                    ViewParent parent = view.getParent();
                    while (true) {
                        if (!(parent instanceof View)) {
                            break;
                        } else if (m4454((View) parent) == 4) {
                            int i5 = Build.VERSION.SDK_INT;
                            view.setImportantForAccessibility(2);
                            break;
                        } else {
                            parent = parent.getParent();
                        }
                    }
                }
                view.sendAccessibilityEventUnchecked(obtain);
            } else if (i == 32) {
                AccessibilityEvent obtain2 = AccessibilityEvent.obtain();
                view.onInitializeAccessibilityEvent(obtain2);
                obtain2.setEventType(32);
                obtain2.setContentChangeTypes(i);
                obtain2.setSource(view);
                view.onPopulateAccessibilityEvent(obtain2);
                obtain2.getText().add(m4505(view));
                accessibilityManager.sendAccessibilityEvent(obtain2);
            } else if (view.getParent() != null) {
                try {
                    view.getParent().notifySubtreeAccessibilityStateChanged(view, view, i);
                } catch (AbstractMethodError e) {
                    Log.e("ViewCompat", view.getParent().getClass().getSimpleName() + " does not fully implement ViewParent", e);
                }
            }
        }
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public static C1754 m4460(View view, C1754 r3) {
        int i = Build.VERSION.SDK_INT;
        WindowInsets r0 = r3.m4559();
        if (r0 != null) {
            WindowInsets onApplyWindowInsets = view.onApplyWindowInsets(r0);
            if (!onApplyWindowInsets.equals(r0)) {
                return C1754.m4555(onApplyWindowInsets, view);
            }
        }
        return r3;
    }

    /* renamed from: ʬ  reason: contains not printable characters */
    public static View.AccessibilityDelegate m4438(View view) {
        if (Build.VERSION.SDK_INT >= 29) {
            return view.getAccessibilityDelegate();
        }
        if (f6051) {
            return null;
        }
        if (f6046 == null) {
            try {
                f6046 = View.class.getDeclaredField("mAccessibilityDelegate");
                f6046.setAccessible(true);
            } catch (Throwable unused) {
                f6051 = true;
                return null;
            }
        }
        try {
            Object obj = f6046.get(view);
            if (obj instanceof View.AccessibilityDelegate) {
                return (View.AccessibilityDelegate) obj;
            }
            return null;
        } catch (Throwable unused2) {
            f6051 = true;
            return null;
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public static void m4488(View view, boolean z) {
        int i = Build.VERSION.SDK_INT;
        view.setHasTransientState(z);
    }

    /* renamed from: K  reason: contains not printable characters */
    public static void m4479(View view, Runnable runnable) {
        int i = Build.VERSION.SDK_INT;
        view.postOnAnimation(runnable);
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public static void m4463(View view, boolean z) {
        int i = Build.VERSION.SDK_INT;
        view.setNestedScrollingEnabled(z);
    }

    /* renamed from: K  reason: contains not printable characters */
    public static void m4480(View view, Runnable runnable, long j) {
        int i = Build.VERSION.SDK_INT;
        view.postOnAnimationDelayed(runnable, j);
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public static void m4462(View view, int i) {
        view.offsetLeftAndRight(i);
        if (view.getVisibility() == 0) {
            float translationY = view.getTranslationY();
            view.setTranslationY(1.0f + translationY);
            view.setTranslationY(translationY);
            ViewParent parent = view.getParent();
            if (parent instanceof View) {
                m4499((View) parent);
            }
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public static boolean m4490(View view, int i, Bundle bundle) {
        int i2 = Build.VERSION.SDK_INT;
        return view.performAccessibilityAction(i, bundle);
    }

    /* renamed from: K  reason: contains not printable characters */
    public static void m4486(View view, C1782.C1785 k, CharSequence charSequence, AbstractC1787 r10) {
        if (r10 == null && charSequence == null) {
            m4466(view, k.m4674());
        } else {
            m4485(view, new C1782.C1785(null, k.f6139, charSequence, r10, k.f6138));
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public static void m4485(View view, C1782.C1785 k) {
        int i = Build.VERSION.SDK_INT;
        C1747 r0 = m4459(view);
        if (r0 == null) {
            r0 = new C1747();
        }
        m4482(view, r0);
        m4471(k.m4674(), view);
        m4446(view).add(k);
        m4507(view, 0);
    }

    /* renamed from: ʬ  reason: contains not printable characters */
    public static void m4439(View view, float f) {
        int i = Build.VERSION.SDK_INT;
        view.setTranslationZ(f);
    }

    /* renamed from: ʬ  reason: contains not printable characters */
    public static void m4440(View view, int i) {
        view.offsetTopAndBottom(i);
        if (view.getVisibility() == 0) {
            float translationY = view.getTranslationY();
            view.setTranslationY(1.0f + translationY);
            view.setTranslationY(translationY);
            ViewParent parent = view.getParent();
            if (parent instanceof View) {
                m4499((View) parent);
            }
        }
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public static int m4458() {
        int i = Build.VERSION.SDK_INT;
        return View.generateViewId();
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public static boolean m4464(View view, KeyEvent keyEvent) {
        int indexOfKey;
        if (Build.VERSION.SDK_INT >= 28) {
            return false;
        }
        C1731 r5 = C1731.m4520(view);
        WeakReference<KeyEvent> weakReference = r5.f6057;
        if (weakReference != null && weakReference.get() == keyEvent) {
            return false;
        }
        r5.f6057 = new WeakReference<>(keyEvent);
        WeakReference<View> weakReference2 = null;
        SparseArray<WeakReference<View>> r2 = r5.m4524();
        if (keyEvent.getAction() == 1 && (indexOfKey = r2.indexOfKey(keyEvent.getKeyCode())) >= 0) {
            weakReference2 = r2.valueAt(indexOfKey);
            r2.removeAt(indexOfKey);
        }
        if (weakReference2 == null) {
            weakReference2 = r2.get(keyEvent.getKeyCode());
        }
        if (weakReference2 == null) {
            return false;
        }
        View view2 = weakReference2.get();
        if (view2 != null && m4498(view2)) {
            r5.m4521(view2, keyEvent);
        }
        return true;
    }

    /* renamed from: K  reason: contains not printable characters */
    public static void m4471(int i, View view) {
        List<C1782.C1785> r3 = m4446(view);
        for (int i2 = 0; i2 < r3.size(); i2++) {
            if (r3.get(i2).m4674() == i) {
                r3.remove(i2);
                return;
            }
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public static void m4476(View view, Paint paint) {
        int i = Build.VERSION.SDK_INT;
        view.setLayerPaint(paint);
    }

    /* renamed from: K  reason: contains not printable characters */
    public static void m4487(View view, C1782 r1) {
        view.onInitializeAccessibilityNodeInfo(r1.f6124);
    }

    /* renamed from: K  reason: contains not printable characters */
    public static void m4474(View view, int i, int i2, int i3, int i4) {
        int i5 = Build.VERSION.SDK_INT;
        view.setPaddingRelative(i, i2, i3, i4);
    }

    /* renamed from: K  reason: contains not printable characters */
    public static C1768 m4470(View view) {
        if (f6048 == null) {
            f6048 = new WeakHashMap<>();
        }
        C1768 r0 = f6048.get(view);
        if (r0 != null) {
            return r0;
        }
        C1768 r02 = new C1768(view);
        f6048.put(view, r02);
        return r02;
    }

    /* renamed from: K  reason: contains not printable characters */
    public static void m4472(View view, float f) {
        int i = Build.VERSION.SDK_INT;
        view.setElevation(f);
    }

    /* renamed from: K  reason: contains not printable characters */
    public static void m4481(View view, String str) {
        int i = Build.VERSION.SDK_INT;
        view.setTransitionName(str);
    }

    /* renamed from: K  reason: contains not printable characters */
    public static void m4484(View view, AbstractC1777 r3) {
        if (Build.VERSION.SDK_INT < 30) {
            view.setTag(R$id.tag_on_apply_window_listener, r3);
        }
        if (r3 == null) {
            view.setOnApplyWindowInsetsListener((View.OnApplyWindowInsetsListener) view.getTag(R$id.tag_window_insets_animation_callback));
        } else {
            view.setOnApplyWindowInsetsListener(new View$OnApplyWindowInsetsListenerC1772(view, r3));
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public static C1754 m4468(View view, C1754 r3) {
        int i = Build.VERSION.SDK_INT;
        WindowInsets r0 = r3.m4559();
        if (r0 != null) {
            WindowInsets dispatchApplyWindowInsets = view.dispatchApplyWindowInsets(r0);
            if (!dispatchApplyWindowInsets.equals(r0)) {
                return C1754.m4555(dispatchApplyWindowInsets, view);
            }
        }
        return r3;
    }

    /* renamed from: K  reason: contains not printable characters */
    public static C1754 m4469(View view, C1754 r2, Rect rect) {
        int i = Build.VERSION.SDK_INT;
        WindowInsets r0 = r2.m4559();
        if (r0 != null) {
            return C1754.m4555(view.computeSystemWindowInsets(r0, rect), view);
        }
        rect.setEmpty();
        return r2;
    }

    /* renamed from: K  reason: contains not printable characters */
    public static void m4478(View view, Drawable drawable) {
        int i = Build.VERSION.SDK_INT;
        view.setBackground(drawable);
    }

    /* renamed from: K  reason: contains not printable characters */
    public static void m4477(View view, Rect rect) {
        int i = Build.VERSION.SDK_INT;
        view.setClipBounds(rect);
    }

    /* renamed from: K  reason: contains not printable characters */
    public static void m4473(View view, int i, int i2) {
        if (Build.VERSION.SDK_INT >= 23) {
            view.setScrollIndicators(i, i2);
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public static void m4483(View view, C1752 r3) {
        if (Build.VERSION.SDK_INT >= 24) {
            view.setPointerIcon((PointerIcon) (r3 != null ? r3.f6067 : null));
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public static boolean m4491(View view, KeyEvent keyEvent) {
        if (Build.VERSION.SDK_INT >= 28) {
            return false;
        }
        return C1731.m4520(view).m4525(view, keyEvent);
    }

    /* renamed from: K  reason: contains not printable characters */
    public static AbstractC1730<Boolean> m4467() {
        return new C1733(R$id.tag_accessibility_heading, Boolean.class, 28);
    }
}
