package androidx.leanback.widget;

import android.view.View;
import com.martsnew.tv.R;

/* JADX INFO: loaded from: classes.dex */
public final class B0 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public int f8341a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public boolean f8342b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public boolean f8343c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public boolean f8344d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public boolean f8345e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public int f8346f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public float f8347g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public float f8348h;

    public static void b(Object obj, int i, float f3) {
        if (obj != null) {
            if (f3 < 0.0f) {
                f3 = 0.0f;
            } else if (f3 > 1.0f) {
                f3 = 1.0f;
            }
            if (i == 2) {
                H0 h02 = (H0) obj;
                h02.f8434a.setAlpha(1.0f - f3);
                h02.f8435b.setAlpha(f3);
            } else {
                if (i != 3) {
                    return;
                }
                v0 v0Var = x0.f8731a;
                w0 w0Var = (w0) obj;
                View view = w0Var.f8726a;
                float f7 = w0Var.f8727b;
                view.setZ(((w0Var.f8728c - f7) * f3) + f7);
            }
        }
    }

    public final void a(View view) {
        if (this.f8345e) {
            return;
        }
        if (!this.f8344d) {
            if (this.f8343c) {
                s7.d.A(view, this.f8346f);
            }
        } else if (this.f8341a == 3) {
            view.setTag(R.id.lb_shadow_impl, s7.l.a(view, this.f8347g, this.f8348h, this.f8346f));
        } else if (this.f8343c) {
            s7.d.A(view, this.f8346f);
        }
    }
}
