package X6FRs_4.PGPF6hQ_2.IFxWkV_5;

import android.content.Context;
import android.content.res.ColorStateList;
import android.view.View;
/* compiled from: CardViewApi21Impl.java */
/* loaded from: classes.dex */
public class QxJ9d_1 implements X6FRs_4 {
    @Override // X6FRs_4.PGPF6hQ_2.IFxWkV_5.X6FRs_4
    public void KQgRr5e_0() {
    }

    @Override // X6FRs_4.PGPF6hQ_2.IFxWkV_5.X6FRs_4
    public void KQgRr5e_0(Mqv2r_3 mqv2r_3, Context context, ColorStateList colorStateList, float f, float f2, float f3) {
        mqv2r_3.KQgRr5e_0(new IFxWkV_5(colorStateList, f));
        View m521KQgRr5e_0 = mqv2r_3.m521KQgRr5e_0();
        m521KQgRr5e_0.setClipToOutline(true);
        m521KQgRr5e_0.setElevation(f2);
        QxJ9d_1(mqv2r_3, f3);
    }

    @Override // X6FRs_4.PGPF6hQ_2.IFxWkV_5.X6FRs_4
    public float Mqv2r_3(Mqv2r_3 mqv2r_3) {
        return KQgRr5e_0(mqv2r_3) * 2.0f;
    }

    @Override // X6FRs_4.PGPF6hQ_2.IFxWkV_5.X6FRs_4
    public void PGPF6hQ_2(Mqv2r_3 mqv2r_3, float f) {
        mqv2r_3.m521KQgRr5e_0().setElevation(f);
    }

    @Override // X6FRs_4.PGPF6hQ_2.IFxWkV_5.X6FRs_4
    public void QxJ9d_1(Mqv2r_3 mqv2r_3, float f) {
        KQgRr5e_0(mqv2r_3).KQgRr5e_0(f, mqv2r_3.QxJ9d_1(), mqv2r_3.m522KQgRr5e_0());
        PGPF6hQ_2(mqv2r_3);
    }

    @Override // X6FRs_4.PGPF6hQ_2.IFxWkV_5.X6FRs_4
    public float X6FRs_4(Mqv2r_3 mqv2r_3) {
        return KQgRr5e_0(mqv2r_3).KQgRr5e_0();
    }

    @Override // X6FRs_4.PGPF6hQ_2.IFxWkV_5.X6FRs_4
    public float PGPF6hQ_2(Mqv2r_3 mqv2r_3) {
        return mqv2r_3.m521KQgRr5e_0().getElevation();
    }

    @Override // X6FRs_4.PGPF6hQ_2.IFxWkV_5.X6FRs_4
    public void PGPF6hQ_2(Mqv2r_3 mqv2r_3) {
        if (!mqv2r_3.QxJ9d_1()) {
            mqv2r_3.setShadowPadding(0, 0, 0, 0);
            return;
        }
        float X6FRs_42 = X6FRs_4(mqv2r_3);
        float KQgRr5e_0 = KQgRr5e_0(mqv2r_3);
        int ceil = (int) Math.ceil(IMuAHx_6.KQgRr5e_0(X6FRs_42, KQgRr5e_0, mqv2r_3.m522KQgRr5e_0()));
        int ceil2 = (int) Math.ceil(IMuAHx_6.QxJ9d_1(X6FRs_42, KQgRr5e_0, mqv2r_3.m522KQgRr5e_0()));
        mqv2r_3.setShadowPadding(ceil, ceil2, ceil, ceil2);
    }

    @Override // X6FRs_4.PGPF6hQ_2.IFxWkV_5.X6FRs_4
    public float QxJ9d_1(Mqv2r_3 mqv2r_3) {
        return KQgRr5e_0(mqv2r_3) * 2.0f;
    }

    @Override // X6FRs_4.PGPF6hQ_2.IFxWkV_5.X6FRs_4
    public void QxJ9d_1(Mqv2r_3 mqv2r_3) {
        QxJ9d_1(mqv2r_3, X6FRs_4(mqv2r_3));
    }

    @Override // X6FRs_4.PGPF6hQ_2.IFxWkV_5.X6FRs_4
    public void KQgRr5e_0(Mqv2r_3 mqv2r_3, float f) {
        KQgRr5e_0(mqv2r_3).KQgRr5e_0(f);
    }

    @Override // X6FRs_4.PGPF6hQ_2.IFxWkV_5.X6FRs_4
    public float KQgRr5e_0(Mqv2r_3 mqv2r_3) {
        return KQgRr5e_0(mqv2r_3).QxJ9d_1();
    }

    @Override // X6FRs_4.PGPF6hQ_2.IFxWkV_5.X6FRs_4
    public void KQgRr5e_0(Mqv2r_3 mqv2r_3) {
        QxJ9d_1(mqv2r_3, X6FRs_4(mqv2r_3));
    }

    @Override // X6FRs_4.PGPF6hQ_2.IFxWkV_5.X6FRs_4
    public void KQgRr5e_0(Mqv2r_3 mqv2r_3, ColorStateList colorStateList) {
        KQgRr5e_0(mqv2r_3).QxJ9d_1(colorStateList);
    }

    @Override // X6FRs_4.PGPF6hQ_2.IFxWkV_5.X6FRs_4
    public ColorStateList KQgRr5e_0(Mqv2r_3 mqv2r_3) {
        return KQgRr5e_0(mqv2r_3).m517KQgRr5e_0();
    }

    @Override // X6FRs_4.PGPF6hQ_2.IFxWkV_5.X6FRs_4
    public final IFxWkV_5 KQgRr5e_0(Mqv2r_3 mqv2r_3) {
        return (IFxWkV_5) mqv2r_3.KQgRr5e_0();
    }
}
