package o;

import android.view.View;
import android.view.ViewGroup;
import java.util.Objects;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.Ew, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract /* synthetic */ class AbstractC0126Ew {
    public static final void a(View view, int i) {
        int iW = AbstractC2462sn.w(i);
        if (iW == 0) {
            ViewGroup viewGroup = (ViewGroup) view.getParent();
            if (viewGroup != null) {
                if (androidx.fragment.app.s.F(2)) {
                    view.toString();
                    viewGroup.toString();
                }
                viewGroup.removeView(view);
                return;
            }
            return;
        }
        if (iW == 1) {
            if (androidx.fragment.app.s.F(2)) {
                Objects.toString(view);
            }
            view.setVisibility(0);
        } else if (iW == 2) {
            if (androidx.fragment.app.s.F(2)) {
                Objects.toString(view);
            }
            view.setVisibility(8);
        } else {
            if (iW != 3) {
                return;
            }
            if (androidx.fragment.app.s.F(2)) {
                Objects.toString(view);
            }
            view.setVisibility(4);
        }
    }

    public static int b(int i) {
        if (i == 0) {
            return 2;
        }
        if (i == 4) {
            return 4;
        }
        if (i == 8) {
            return 3;
        }
        throw new IllegalArgumentException(j(i, "Unknown visibility "));
    }

    public static int c(View view) {
        if (view.getAlpha() == 0.0f && view.getVisibility() == 0) {
            return 4;
        }
        return b(view.getVisibility());
    }

    public static int d(float f, int i, int i2) {
        return (Float.hashCode(f) + i) * i2;
    }

    public static int e(int i, int i2, int i3) {
        return (Integer.hashCode(i) + i2) * i3;
    }

    public static int f(int i, int i2, long j) {
        return (Long.hashCode(j) + i) * i2;
    }

    public static int g(int i, int i2, C0733af0 c0733af0) {
        return (c0733af0.hashCode() + i) * i2;
    }

    public static int h(int i, String str, int i2) {
        return (str.hashCode() + i) * i2;
    }

    public static String i(int i, int i2, String str, String str2) {
        return str + i + str2 + i2;
    }

    public static String j(int i, String str) {
        return str + i;
    }

    public static String k(int i, String str, String str2) {
        return str + i + str2;
    }

    public static String l(String str, long j) {
        return str + j;
    }

    public static String m(String str, androidx.fragment.app.l lVar, String str2) {
        return str + lVar + str2;
    }

    public static String n(StringBuilder sb, String str, char c) {
        sb.append(str);
        sb.append(c);
        return sb.toString();
    }

    public static StringBuilder o(int i, String str, String str2) {
        StringBuilder sb = new StringBuilder(str);
        sb.append(i);
        sb.append(str2);
        return sb;
    }

    public static void p(int i, int i2, int i3, int i4, int i5) {
        AbstractC1155f00.c(i);
        AbstractC1155f00.c(i2);
        AbstractC1155f00.c(i3);
        AbstractC1155f00.c(i4);
        AbstractC1155f00.c(i5);
    }

    public static void q(long j, StringBuilder sb, String str) {
        sb.append((Object) C0190Hi.i(j));
        sb.append(str);
    }

    public static /* synthetic */ String r(int i) {
        return i != 1 ? i != 2 ? i != 3 ? i != 4 ? i != 5 ? "null" : "Idle" : "LookaheadLayingOut" : "LayingOut" : "LookaheadMeasuring" : "Measuring";
    }

    public static /* synthetic */ String s(int i) {
        switch (i) {
            case 1:
                return "NOT_REQUIRED";
            case 2:
                return "CONNECTED";
            case 3:
                return "UNMETERED";
            case 4:
                return "NOT_ROAMING";
            case 5:
                return "METERED";
            case 6:
                return "TEMPORARILY_UNMETERED";
            default:
                return "null";
        }
    }

    public static /* synthetic */ String t(int i) {
        return i != 1 ? i != 2 ? "null" : "Rtl" : "Ltr";
    }
}
