package com.bytedance.adsdk.ugeno.fm.ro;

import android.animation.ArgbEvaluator;
import android.animation.IntEvaluator;
import android.animation.Keyframe;
import android.animation.TypeEvaluator;
import android.content.Context;
import com.bytedance.adsdk.ugeno.fm.jnr;
import java.util.TreeMap;

/* JADX INFO: loaded from: classes.dex */
public class lb extends fm {
    public lb(Context context, com.bytedance.adsdk.ugeno.ro.lb lbVar, String str, TreeMap<Float, String> treeMap) {
        super(context, lbVar, str, treeMap);
    }

    @Override // com.bytedance.adsdk.ugeno.fm.ro.fm
    public TypeEvaluator ajl() {
        return this.yz == jnr.BACKGROUND_COLOR ? new ArgbEvaluator() : new IntEvaluator();
    }

    @Override // com.bytedance.adsdk.ugeno.fm.ro.fm
    public void fm(float f10, String str) {
        this.jnr.add(this.yz == jnr.BACKGROUND_COLOR ? Keyframe.ofInt(f10, com.bytedance.adsdk.ugeno.wsy.fm.fm(str)) : Keyframe.ofInt(f10, com.bytedance.adsdk.ugeno.wsy.lb.fm(str, 0)));
    }

    @Override // com.bytedance.adsdk.ugeno.fm.ro.fm
    public void ro() {
        if (this.yz == jnr.BACKGROUND_COLOR) {
            this.jnr.add(Keyframe.ofInt(0.0f, this.wsy.bx()));
        }
    }
}
