package androidx.leanback.widget;

import android.animation.ValueAnimator;
import android.view.View;
import android.view.ViewGroup;

/* JADX INFO: loaded from: classes.dex */
class d implements ValueAnimator.AnimatorUpdateListener {
    public final /* synthetic */ ViewGroup.MarginLayoutParams a;
    public final /* synthetic */ int b;
    public final /* synthetic */ float c;
    public final /* synthetic */ int d;
    public final /* synthetic */ float e;
    public final /* synthetic */ View f;

    public d(ViewGroup.MarginLayoutParams marginLayoutParams, int i, float f, int i2, float f2, View view) {
        this.a = marginLayoutParams;
        this.b = i;
        this.c = f;
        this.d = i2;
        this.e = f2;
        this.f = view;
    }

    @Override // android.animation.ValueAnimator.AnimatorUpdateListener
    public final void onAnimationUpdate(ValueAnimator valueAnimator) {
        float animatedFraction = 1.0f - valueAnimator.getAnimatedFraction();
        int iRound = Math.round((this.c * animatedFraction) + this.b);
        ViewGroup.MarginLayoutParams marginLayoutParams = this.a;
        marginLayoutParams.leftMargin = iRound;
        marginLayoutParams.width = Math.round((this.e * animatedFraction) + this.d);
        this.f.requestLayout();
    }
}
