package com.bytedance.sdk.component.utils;

import android.content.Context;
import android.text.TextUtils;

/* JADX INFO: loaded from: classes.dex */
public class gof {
    public static boolean ajl(Context context) {
        return lb(context) == 6;
    }

    public static boolean fm(Context context) {
        return lb(context) != 0;
    }

    public static boolean jnr(Context context) {
        return lb(context) == 5;
    }

    public static int lb(Context context) {
        return nt.fm(context, 60000L);
    }

    public static int ro(Context context) {
        int iLb = lb(context);
        if (iLb == 1) {
            return 0;
        }
        if (iLb == 4) {
            return 1;
        }
        if (iLb == 5) {
            return 4;
        }
        if (iLb != 6) {
            return iLb;
        }
        return 6;
    }

    public static String wsy(Context context) {
        int iLb = lb(context);
        return iLb != 2 ? iLb != 3 ? iLb != 4 ? iLb != 5 ? iLb != 6 ? "mobile" : "5g" : "4g" : "wifi" : "3g" : "2g";
    }

    public static boolean wu(Context context) {
        if (context == null) {
            return false;
        }
        int iLb = lb(context);
        return iLb == 2 || iLb == 3 || iLb == 4 || iLb == 5 || iLb == 6;
    }

    public static boolean yz(Context context) {
        return lb(context) == 4;
    }

    public static boolean fm(String str) {
        if (TextUtils.isEmpty(str)) {
            return false;
        }
        return str.startsWith("http://") || str.startsWith("https://");
    }
}
