package com.bytedance.sdk.component.adexpress.AlY;

import android.content.Context;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.GradientDrawable;
/* loaded from: classes2.dex */
public class tN {
    public static Drawable YFl(Context context, com.bytedance.sdk.component.adexpress.dynamic.AlY.DSW dsw) {
        if (context == null || dsw == null) {
            return null;
        }
        return YFl(context, (int) qsH.YFl(context, dsw.lG()), dsw.rkt(), dsw.dXO());
    }

    public static Drawable YFl(Context context, int i, int i2, int i3) {
        GradientDrawable gradientDrawable = new GradientDrawable();
        gradientDrawable.setShape(1);
        if (context != null) {
            gradientDrawable.setStroke(i, i2);
        }
        gradientDrawable.setColor(i3);
        return gradientDrawable;
    }
}
