package com.bytedance.sdk.openadsdk.component.reward.view;

import a3.r;
import android.animation.Keyframe;
import android.animation.ObjectAnimator;
import android.animation.PropertyValuesHolder;
import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.GradientDrawable;
import android.os.Build;
import android.text.TextUtils;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.bytedance.sdk.component.adexpress.dynamic.dynamicview.a;
import com.bytedance.sdk.openadsdk.core.model.ai;
import com.bytedance.sdk.openadsdk.core.model.lse;
import com.bytedance.sdk.openadsdk.core.widget.irt;
import com.bytedance.sdk.openadsdk.core.widget.qhl;
import com.bytedance.sdk.openadsdk.utils.bx;
import com.bytedance.sdk.openadsdk.utils.zan;
import java.lang.ref.WeakReference;
import java.util.Locale;
import org.json.JSONObject;
import tv.danmaku.ijk.media.player.IjkMediaPlayer;

/* JADX INFO: loaded from: classes2.dex */
public class yz extends com.bytedance.sdk.openadsdk.core.ajl.jnr {
    private TextView ajl;
    private irt fm;
    private TextView jnr;

    /* JADX INFO: renamed from: lb, reason: collision with root package name */
    private TextView f6991lb;
    private TextView ro;
    private boolean wsy;
    private com.bytedance.sdk.openadsdk.component.reward.fm.ro wu;
    private qhl yz;

    public static class fm implements com.bytedance.sdk.component.jnr.irt {
        private final lse fm;

        /* JADX INFO: renamed from: lb, reason: collision with root package name */
        private final String f6993lb;
        private final String ro;
        private final WeakReference<ImageView> yz;

        public fm(ImageView imageView, lse lseVar, String str, String str2) {
            this.yz = new WeakReference<>(imageView);
            this.fm = lseVar;
            this.ro = str;
            this.f6993lb = str2;
        }

        @Override // com.bytedance.sdk.component.jnr.irt
        public void fm(com.bytedance.sdk.component.jnr.ku kuVar) {
            Object objRo = kuVar.ro();
            if (objRo != null) {
                ImageView imageView = this.yz.get();
                if (objRo instanceof Bitmap) {
                    if (imageView != null) {
                        imageView.setImageBitmap((Bitmap) objRo);
                    }
                } else if (objRo instanceof Drawable) {
                    if (Build.VERSION.SDK_INT >= 28 && r.D(objRo)) {
                        a.h(objRo).start();
                    }
                    if (imageView != null) {
                        imageView.setImageDrawable((Drawable) objRo);
                    }
                }
                com.bytedance.sdk.openadsdk.yz.lb.ro(this.fm, this.f6993lb, "load_vast_icon_success", (JSONObject) null);
            }
        }

        @Override // com.bytedance.sdk.component.jnr.irt
        public void fm(int i10, String str, @Nullable Throwable th) {
            fm(i10, str, this.ro);
        }

        private void fm(final int i10, final String str, final String str2) {
            com.bytedance.sdk.openadsdk.yz.lb.fm(new com.bytedance.sdk.component.wu.ro.lb("load_vast_icon_fail") { // from class: com.bytedance.sdk.openadsdk.component.reward.view.yz.fm.1
                @Override // java.lang.Runnable
                public void run() {
                    JSONObject jSONObject = new JSONObject();
                    try {
                        jSONObject.put("error_code", i10);
                        jSONObject.put("description", i10 + ":" + str);
                        jSONObject.put(IjkMediaPlayer.OnNativeInvokeListener.ARG_URL, str2);
                    } catch (Throwable unused) {
                    }
                    com.bytedance.sdk.openadsdk.yz.lb.ro(fm.this.fm, fm.this.f6993lb, "load_vast_icon_fail", jSONObject);
                }
            });
        }
    }

    public yz(@NonNull Context context) {
        super(context);
        setOrientation(1);
        setVisibility(8);
        setBackgroundColor(-1);
    }

    private void ajl() {
        Context context = getContext();
        setPadding(zan.ro(context, 16.0f), zan.ro(context, 16.0f), zan.ro(context, 16.0f), zan.ro(context, 24.0f));
        com.bytedance.sdk.openadsdk.core.ajl.jnr jnrVar = new com.bytedance.sdk.openadsdk.core.ajl.jnr(context);
        jnrVar.setOrientation(0);
        jnrVar.setGravity(16);
        LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(-1, -2);
        layoutParams.bottomMargin = zan.ro(context, 12.0f);
        addView(jnrVar, layoutParams);
        qhl qhlVar = new qhl(context);
        this.yz = qhlVar;
        qhlVar.setBackgroundColor(0);
        this.yz.setId(com.bytedance.sdk.openadsdk.utils.qhl.yz);
        jnrVar.addView(this.yz, new LinearLayout.LayoutParams(zan.ro(context, 48.0f), zan.ro(context, 48.0f)));
        com.bytedance.sdk.openadsdk.core.ajl.jnr jnrVar2 = new com.bytedance.sdk.openadsdk.core.ajl.jnr(context);
        jnrVar2.setOrientation(1);
        LinearLayout.LayoutParams layoutParams2 = new LinearLayout.LayoutParams(-1, -2);
        layoutParams2.leftMargin = zan.ro(context, 12.0f);
        jnrVar.addView(jnrVar2, layoutParams2);
        com.bytedance.sdk.openadsdk.core.ajl.wu wuVar = new com.bytedance.sdk.openadsdk.core.ajl.wu(context);
        this.jnr = wuVar;
        TextUtils.TruncateAt truncateAt = TextUtils.TruncateAt.END;
        wuVar.setEllipsize(truncateAt);
        this.jnr.setGravity(16);
        this.jnr.setSingleLine(true);
        this.jnr.setTextSize(2, 17.0f);
        this.jnr.setId(com.bytedance.sdk.openadsdk.utils.qhl.jnr);
        this.jnr.setTextColor(-16777216);
        jnrVar2.addView(this.jnr, new LinearLayout.LayoutParams(-1, -2));
        irt irtVar = new irt(context);
        this.fm = irtVar;
        irtVar.setId(com.bytedance.sdk.openadsdk.utils.qhl.wsy);
        jnrVar2.addView(this.fm, new LinearLayout.LayoutParams(-2, zan.ro(context, 14.0f)));
        com.bytedance.sdk.openadsdk.core.ajl.wu wuVar2 = new com.bytedance.sdk.openadsdk.core.ajl.wu(context);
        this.ro = wuVar2;
        wuVar2.setGravity(17);
        this.ro.setEllipsize(truncateAt);
        this.ro.setSingleLine(true);
        this.ro.setTextColor(-1);
        this.ro.setTextSize(2, 16.0f);
        this.ro.setId(520093705);
        this.ro.setBackground(fm(context));
        this.ro.setText(this.wu.ro.eys());
        addView(this.ro, new LinearLayout.LayoutParams(-1, zan.ro(context, 36.0f)));
    }

    private String getCnOrEnBtnText() {
        return this.wu.ro.oy() != 4 ? "View" : "Install";
    }

    private void jnr() {
        setOrientation(0);
        setGravity(16);
        Context context = getContext();
        setPadding(zan.ro(context, 16.0f), zan.ro(context, 12.0f), zan.ro(context, 16.0f), zan.ro(context, 12.0f));
        qhl qhlVar = new qhl(context);
        this.yz = qhlVar;
        qhlVar.setBackgroundColor(0);
        this.yz.setId(com.bytedance.sdk.openadsdk.utils.qhl.yz);
        addView(this.yz, new LinearLayout.LayoutParams(zan.ro(context, 48.0f), zan.ro(context, 48.0f)));
        com.bytedance.sdk.openadsdk.core.ajl.jnr jnrVar = new com.bytedance.sdk.openadsdk.core.ajl.jnr(context);
        jnrVar.setOrientation(1);
        LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(0, -2);
        layoutParams.leftMargin = zan.ro(context, 12.0f);
        layoutParams.weight = 1.0f;
        addView(jnrVar, layoutParams);
        com.bytedance.sdk.openadsdk.core.ajl.wu wuVar = new com.bytedance.sdk.openadsdk.core.ajl.wu(context);
        this.jnr = wuVar;
        TextUtils.TruncateAt truncateAt = TextUtils.TruncateAt.END;
        wuVar.setEllipsize(truncateAt);
        this.jnr.setGravity(16);
        this.jnr.setSingleLine(true);
        this.jnr.setTextSize(2, 17.0f);
        this.jnr.setId(com.bytedance.sdk.openadsdk.utils.qhl.jnr);
        this.jnr.setTextColor(-16777216);
        jnrVar.addView(this.jnr, new LinearLayout.LayoutParams(-1, -2));
        irt irtVar = new irt(context);
        this.fm = irtVar;
        irtVar.setId(com.bytedance.sdk.openadsdk.utils.qhl.wsy);
        jnrVar.addView(this.fm, new LinearLayout.LayoutParams(-2, zan.ro(context, 14.0f)));
        com.bytedance.sdk.openadsdk.core.ajl.wu wuVar2 = new com.bytedance.sdk.openadsdk.core.ajl.wu(context);
        this.ro = wuVar2;
        wuVar2.setGravity(17);
        this.ro.setEllipsize(truncateAt);
        this.ro.setSingleLine(true);
        this.ro.setTextColor(-1);
        this.ro.setTextSize(2, 16.0f);
        this.ro.setId(520093705);
        this.ro.setBackground(fm(context));
        this.ro.setText(this.wu.ro.eys());
        addView(this.ro, new LinearLayout.LayoutParams(zan.ro(context, 164.0f), zan.ro(context, 36.0f)));
    }

    private void yz() {
        this.wsy = true;
        lse lseVar = this.wu.ro;
        int iYwr = lseVar.ywr();
        if ((iYwr == 43 || iYwr == 44) && ai.ro(lseVar)) {
            lb();
        } else if (this.wu.kwx == 1) {
            ajl();
        } else {
            jnr();
        }
        if (this.ro == null) {
            this.ro = (TextView) this.wu.f6937gc.findViewById(520093705);
        }
        TextView textView = this.ro;
        if (textView != null) {
            textView.addOnLayoutChangeListener(new View.OnLayoutChangeListener() { // from class: com.bytedance.sdk.openadsdk.component.reward.view.yz.1
                @Override // android.view.View.OnLayoutChangeListener
                public void onLayoutChange(View view, int i10, int i11, int i12, int i13, int i14, int i15, int i16, int i17) {
                    int width = ((ViewGroup) yz.this.ro.getParent()).getWidth();
                    if (width > 0) {
                        yz.this.ro.setMaxWidth((int) (width * 0.45f));
                    }
                }
            });
            if (!lseVar.zn()) {
                this.ro.setText(lseVar.daz() == 3 ? getButtonTextForNewStyleBar() : lseVar.eys());
            } else if (lseVar.mt() != null && TextUtils.isEmpty(lseVar.mt().ajl())) {
                zan.fm((View) this.ro, 8);
            }
        }
        if (this.yz != null && lseVar.ff() != null && !TextUtils.isEmpty(lseVar.ff().fm())) {
            String strFm = lseVar.ff().fm();
            if (lseVar.zn()) {
                com.bytedance.sdk.openadsdk.vt.yz.fm(lseVar.ff()).lb(1).fm(new com.bytedance.sdk.openadsdk.vt.ro(lseVar, lseVar.ff().fm(), new fm(this.yz, lseVar, strFm, this.wu.jnr)));
                if (lseVar.mt() != null && lseVar.mt().ro() != null) {
                    lseVar.mt().ro().ro(0L);
                }
            } else {
                com.bytedance.sdk.openadsdk.wey.ro.ro().fm(lseVar.ff(), this.yz, lseVar);
            }
        }
        TextView textView2 = this.jnr;
        if (textView2 != null) {
            textView2.setText(lseVar.qlg());
        }
        TextView textView3 = this.ajl;
        if (textView3 != null) {
            textView3.setText(fm(lseVar));
        }
        if (this.f6991lb != null) {
            String strLse = ai.lse(this.wu.ro);
            if (TextUtils.isEmpty(strLse)) {
                strLse = "Play now";
            }
            this.f6991lb.setText(strLse);
            this.f6991lb.setOnClickListener(new View.OnClickListener() { // from class: com.bytedance.sdk.openadsdk.component.reward.view.yz.2
                @Override // android.view.View.OnClickListener
                public void onClick(View view) {
                    if (yz.this.wu != null) {
                        com.bytedance.sdk.openadsdk.component.reward.ro.fm(yz.this.wu);
                    }
                }
            });
        }
        irt irtVar = this.fm;
        if (irtVar != null) {
            zan.fm((TextView) null, irtVar, lseVar);
        }
        if (this.wu.kwx == 2 && lseVar.daz() == 1) {
            LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams) this.ro.getLayoutParams();
            layoutParams.height = zan.ro(this.wu.bx, 55.0f);
            layoutParams.topMargin = zan.ro(this.wu.bx, 20.0f);
            this.ro.setLayoutParams(layoutParams);
            FrameLayout.LayoutParams layoutParams2 = (FrameLayout.LayoutParams) getLayoutParams();
            layoutParams2.bottomMargin = zan.ro(this.wu.bx, 12.0f);
            setLayoutParams(layoutParams2);
        }
        ro();
    }

    public String getButtonTextForNewStyleBar() {
        boolean zEquals;
        String strEys;
        String strLb = bx.lb(this.wu.bx);
        if (strLb == null) {
            strLb = "";
        }
        try {
            zEquals = strLb.equals(Locale.ENGLISH.getLanguage());
        } catch (Throwable unused) {
            zEquals = false;
        }
        if (TextUtils.isEmpty(this.wu.ro.eys())) {
            strEys = this.wu.ro.oy() != 4 ? "View" : "Install";
        } else {
            strEys = this.wu.ro.eys();
            if (strEys == null || !bx.wsy(strEys) || strEys.length() <= 2) {
                if (strEys != null && !bx.wsy(strEys) && strEys.length() > 7 && zEquals) {
                    strEys = getCnOrEnBtnText();
                }
            } else if (zEquals) {
                strEys = getCnOrEnBtnText();
            }
        }
        if (zEquals && !bx.wsy(strEys)) {
            LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams) this.ro.getLayoutParams();
            layoutParams.bottomMargin = zan.ro(this.wu.bx, 4.0f);
            this.ro.setLayoutParams(layoutParams);
        }
        return strEys;
    }

    public void lb() {
        Context context = getContext();
        int iRo = zan.ro(context, 12.0f);
        setPadding(iRo, iRo, iRo, iRo);
        com.bytedance.sdk.openadsdk.core.ajl.jnr jnrVar = new com.bytedance.sdk.openadsdk.core.ajl.jnr(context);
        ViewGroup.LayoutParams layoutParams = new LinearLayout.LayoutParams(-1, -2);
        jnrVar.setOrientation(0);
        jnrVar.setGravity(16);
        addView(jnrVar, layoutParams);
        qhl qhlVar = new qhl(context);
        this.yz = qhlVar;
        qhlVar.setBackgroundColor(0);
        this.yz.setId(com.bytedance.sdk.openadsdk.utils.qhl.yz);
        jnrVar.addView(this.yz, new LinearLayout.LayoutParams(zan.ro(context, 54.0f), zan.ro(context, 54.0f)));
        com.bytedance.sdk.openadsdk.core.ajl.jnr jnrVar2 = new com.bytedance.sdk.openadsdk.core.ajl.jnr(context);
        jnrVar2.setOrientation(1);
        LinearLayout.LayoutParams layoutParams2 = new LinearLayout.LayoutParams(-1, -2);
        layoutParams2.leftMargin = zan.ro(context, 12.0f);
        jnrVar.addView(jnrVar2, layoutParams2);
        com.bytedance.sdk.openadsdk.core.ajl.wu wuVar = new com.bytedance.sdk.openadsdk.core.ajl.wu(context);
        this.jnr = wuVar;
        TextUtils.TruncateAt truncateAt = TextUtils.TruncateAt.END;
        wuVar.setEllipsize(truncateAt);
        this.jnr.setGravity(16);
        this.jnr.setSingleLine(true);
        this.jnr.setTextSize(2, 17.0f);
        this.jnr.setId(com.bytedance.sdk.openadsdk.utils.qhl.jnr);
        this.jnr.setTextColor(-16777216);
        jnrVar2.addView(this.jnr, new LinearLayout.LayoutParams(-1, -2));
        com.bytedance.sdk.openadsdk.core.ajl.wu wuVar2 = new com.bytedance.sdk.openadsdk.core.ajl.wu(context);
        this.ajl = wuVar2;
        wuVar2.setTextColor(-16777216);
        this.ajl.setTextSize(2, 13.0f);
        this.ajl.setMaxLines(2);
        this.ajl.setAlpha(0.8f);
        this.ajl.setEllipsize(truncateAt);
        LinearLayout.LayoutParams layoutParams3 = new LinearLayout.LayoutParams(-1, -2);
        layoutParams3.topMargin = zan.ro(context, 4.0f);
        jnrVar2.addView(this.ajl, layoutParams3);
        com.bytedance.sdk.openadsdk.core.ajl.jnr jnrVar3 = new com.bytedance.sdk.openadsdk.core.ajl.jnr(context);
        LinearLayout.LayoutParams layoutParams4 = new LinearLayout.LayoutParams(-1, -2);
        layoutParams4.topMargin = zan.ro(context, 12.0f);
        jnrVar3.setOrientation(0);
        addView(jnrVar3, layoutParams4);
        com.bytedance.sdk.openadsdk.core.ajl.wu wuVar3 = new com.bytedance.sdk.openadsdk.core.ajl.wu(context);
        this.f6991lb = wuVar3;
        wuVar3.setGravity(17);
        this.f6991lb.setEllipsize(truncateAt);
        this.f6991lb.setSingleLine(true);
        this.f6991lb.setTextColor(-16777216);
        this.f6991lb.setTextSize(2, 16.0f);
        this.f6991lb.setBackground(ro(context));
        LinearLayout.LayoutParams layoutParams5 = new LinearLayout.LayoutParams(0, zan.ro(context, 36.0f), 1.0f);
        layoutParams5.rightMargin = zan.ro(context, 3.0f);
        jnrVar3.addView(this.f6991lb, layoutParams5);
        com.bytedance.sdk.openadsdk.core.ajl.wu wuVar4 = new com.bytedance.sdk.openadsdk.core.ajl.wu(context);
        this.ro = wuVar4;
        wuVar4.setGravity(17);
        this.ro.setEllipsize(truncateAt);
        this.ro.setSingleLine(true);
        this.ro.setTextColor(-1);
        this.ro.setTextSize(2, 16.0f);
        this.ro.setId(520093705);
        this.ro.setBackground(lb(context));
        this.ro.setText(this.wu.ro.eys());
        LinearLayout.LayoutParams layoutParams6 = new LinearLayout.LayoutParams(0, zan.ro(context, 36.0f), 1.0f);
        layoutParams6.leftMargin = zan.ro(context, 3.0f);
        jnrVar3.addView(this.ro, layoutParams6);
    }

    @Override // android.view.View
    public void setVisibility(int i10) {
        super.setVisibility(i10);
        if (i10 != 0 || this.wsy) {
            return;
        }
        yz();
    }

    private String fm(lse lseVar) {
        return !TextUtils.isEmpty(lseVar.qlg()) ? lseVar.qlg() : !TextUtils.isEmpty(lseVar.nn()) ? lseVar.nn() : "";
    }

    @SuppressLint({"ClickableViewAccessibility"})
    public void ro() {
        com.bytedance.sdk.openadsdk.core.lb.jnr jnrVarJnr = this.wu.nt.jnr();
        final com.bytedance.sdk.openadsdk.core.lb.ro roVarYz = this.wu.nt.yz();
        final lse lseVar = this.wu.ro;
        if (lseVar.qph() == null) {
            return;
        }
        if (lseVar.daz() != 5 && this.ro != null) {
            if (lseVar.qph().jnr) {
                this.ro.setOnClickListener(jnrVarJnr);
                this.ro.setOnTouchListener(jnrVarJnr);
            } else {
                this.ro.setOnClickListener(roVarYz);
            }
        }
        if (lseVar.daz() == 1) {
            if (!lseVar.qph().fm) {
                zan.fm((View) this, (View.OnClickListener) roVarYz, "TTBaseVideoActivity#mRlDownloadBar");
                this.jnr.setOnClickListener(roVarYz);
                this.fm.setOnClickListener(roVarYz);
                this.yz.setOnClickListener(roVarYz);
                return;
            }
            zan.fm((View) this, (View.OnClickListener) jnrVarJnr, "TTBaseVideoActivity#mRlDownloadBar");
            zan.fm((View) this, (View.OnTouchListener) jnrVarJnr, "TTBaseVideoActivity#mRlDownloadBar");
            this.jnr.setOnClickListener(jnrVarJnr);
            this.jnr.setOnTouchListener(jnrVarJnr);
            this.fm.setOnClickListener(jnrVarJnr);
            this.fm.setOnTouchListener(jnrVarJnr);
            this.yz.setOnClickListener(jnrVarJnr);
            this.yz.setOnTouchListener(jnrVarJnr);
            return;
        }
        if (lseVar.daz() != 5) {
            if (!lseVar.qph().f7182lb) {
                zan.fm((View) this, (View.OnClickListener) roVarYz, "TTBaseVideoActivity#mRlDownloadBar");
                return;
            } else {
                zan.fm((View) this, (View.OnClickListener) jnrVarJnr, "TTBaseVideoActivity#mRlDownloadBar");
                zan.fm((View) this, (View.OnTouchListener) jnrVarJnr, "TTBaseVideoActivity#mRlDownloadBar");
                return;
            }
        }
        String str = "VAST_ICON";
        if (!lseVar.qph().jnr) {
            View.OnClickListener onClickListener = new View.OnClickListener() { // from class: com.bytedance.sdk.openadsdk.component.reward.view.yz.5
                @Override // android.view.View.OnClickListener
                public void onClick(View view) {
                    View.OnClickListener onClickListener2 = roVarYz;
                    if (onClickListener2 != null) {
                        onClickListener2.onClick(view);
                    }
                    if (view == null || !"VAST_ICON".equals(view.getTag(570425345))) {
                        if (lseVar.mt() != null) {
                            lseVar.mt().fm().wsy(yz.this.wu.sds.dsz());
                        }
                    } else {
                        if (lseVar.mt() == null || lseVar.mt().ro() == null) {
                            return;
                        }
                        lseVar.mt().ro().fm(yz.this.wu.sds.dsz());
                    }
                }
            };
            TextView textView = this.ro;
            if (textView != null) {
                textView.setOnClickListener(onClickListener);
            }
            TextView textView2 = this.jnr;
            if (textView2 != null && !TextUtils.isEmpty(textView2.getText())) {
                this.jnr.setOnClickListener(onClickListener);
            }
            qhl qhlVar = this.yz;
            if (qhlVar != null) {
                qhlVar.setTag(570425345, "VAST_ICON");
                this.yz.setOnClickListener(roVarYz);
                return;
            }
            return;
        }
        com.bytedance.sdk.openadsdk.core.lb.wsy wsyVar = new com.bytedance.sdk.openadsdk.core.lb.wsy("VAST_ACTION_BUTTON", lseVar.mt(), jnrVarJnr) { // from class: com.bytedance.sdk.openadsdk.component.reward.view.yz.3
        };
        com.bytedance.sdk.openadsdk.core.lb.wsy wsyVar2 = new com.bytedance.sdk.openadsdk.core.lb.wsy(str, lseVar.mt(), jnrVarJnr) { // from class: com.bytedance.sdk.openadsdk.component.reward.view.yz.4
        };
        TextView textView3 = this.ro;
        if (textView3 != null) {
            textView3.setOnClickListener(wsyVar);
            this.ro.setOnTouchListener(wsyVar);
        }
        qhl qhlVar2 = this.yz;
        if (qhlVar2 != null) {
            qhlVar2.setOnClickListener(wsyVar2);
            this.yz.setOnTouchListener(wsyVar2);
        }
        TextView textView4 = this.jnr;
        if (textView4 == null || TextUtils.isEmpty(textView4.getText())) {
            return;
        }
        this.jnr.setOnClickListener(wsyVar);
        this.jnr.setOnTouchListener(wsyVar);
    }

    public void fm() {
        Keyframe keyframeOfFloat = Keyframe.ofFloat(0.0f, 0.0f);
        Keyframe keyframeOfFloat2 = Keyframe.ofFloat(0.65f, 1.0f);
        Keyframe keyframeOfFloat3 = Keyframe.ofFloat(0.765f, 0.9f);
        Keyframe keyframeOfFloat4 = Keyframe.ofFloat(0.88f, 1.0f);
        Keyframe keyframeOfFloat5 = Keyframe.ofFloat(0.95f, 0.95f);
        Keyframe keyframeOfFloat6 = Keyframe.ofFloat(1.0f, 1.0f);
        ObjectAnimator objectAnimatorOfPropertyValuesHolder = ObjectAnimator.ofPropertyValuesHolder(this, PropertyValuesHolder.ofKeyframe("scaleX", keyframeOfFloat, keyframeOfFloat2, keyframeOfFloat3, keyframeOfFloat4, keyframeOfFloat5, keyframeOfFloat6), PropertyValuesHolder.ofKeyframe("scaleY", keyframeOfFloat, keyframeOfFloat2, keyframeOfFloat3, keyframeOfFloat4, keyframeOfFloat5, keyframeOfFloat6));
        objectAnimatorOfPropertyValuesHolder.setDuration(1000L);
        objectAnimatorOfPropertyValuesHolder.start();
    }

    public void fm(com.bytedance.sdk.openadsdk.component.reward.fm.ro roVar) {
        this.wu = roVar;
        if (roVar.ro.daz() == 1) {
            yz();
        }
    }

    private static Drawable fm(Context context) {
        GradientDrawable gradientDrawable = new GradientDrawable();
        gradientDrawable.setColor(Color.parseColor("#1A73E8"));
        gradientDrawable.setCornerRadius(zan.ro(context, 18.0f));
        return gradientDrawable;
    }

    private static Drawable ro(Context context) {
        GradientDrawable gradientDrawable = new GradientDrawable();
        gradientDrawable.setColor(Color.parseColor("#000000"));
        gradientDrawable.setAlpha(30);
        gradientDrawable.setCornerRadius(zan.ro(context, 8.0f));
        return gradientDrawable;
    }

    private static Drawable lb(Context context) {
        GradientDrawable gradientDrawable = new GradientDrawable();
        gradientDrawable.setColor(Color.parseColor("#FE2C55"));
        gradientDrawable.setCornerRadius(zan.ro(context, 8.0f));
        return gradientDrawable;
    }
}
