package w5; import android.view.View; /* loaded from: classes2.dex */ public abstract class f { public static float a(View view) { return view.getZ(); } public static View b(View view) { Object parent = view.getParent(); if (parent instanceof View) { return (View) parent; } return null; } public static boolean c(View view) { if (!view.isAttachedToWindow() || !view.isShown()) { return false; } while (view != null) { if (view.getAlpha() == 0.0f) { return false; } view = b(view); } return true; } public static boolean d(View view) { return e(view) == null; } public static String e(View view) { if (!view.isAttachedToWindow()) { return "notAttached"; } int visibility = view.getVisibility(); if (visibility != 0) { return visibility != 4 ? visibility != 8 ? "viewNotVisible" : "viewGone" : "viewInvisible"; } if (view.getAlpha() == 0.0f) { return "viewAlphaZero"; } return null; } }