package com.bytedance.adsdk.ugeno.wsy;

import android.annotation.SuppressLint;
import android.content.Context;
import android.content.res.Resources;

/* JADX INFO: loaded from: classes.dex */
public final class yz {
    private static String fm;

    /* JADX INFO: renamed from: lb, reason: collision with root package name */
    @SuppressLint({"StaticFieldLeak"})
    private static Context f6390lb;
    private static Resources ro;

    public static void fm(String str) {
        fm = str;
    }

    public static int ro(Context context, String str) {
        return fm(context, str, "drawable");
    }

    private static String fm(Context context) {
        if (fm == null) {
            fm = context.getPackageName();
        }
        return fm;
    }

    private static int fm(Context context, String str, String str2) {
        if (ro == null) {
            ro = context.getResources();
        }
        return ro.getIdentifier(str, str2, fm(context));
    }

    public static int fm(Context context, String str) {
        return fm(context, str, "raw");
    }
}
