package androidx.leanback.widget;

import android.content.Context;
import android.content.res.Resources;
import android.util.AttributeSet;
import android.view.View;
import ar.tvplayer.tv.R;
import defpackage.C4150;

/* JADX INFO: loaded from: classes3.dex */
public class SpeechOrbView extends SearchOrbView {

    /* JADX INFO: renamed from: ʽᵡᵢᵾ, reason: contains not printable characters */
    public C4150 f491;

    /* JADX INFO: renamed from: ˈⁱᵡ, reason: contains not printable characters */
    public C4150 f492;

    /* JADX INFO: renamed from: ˑʢ, reason: contains not printable characters */
    public final float f493;

    /* JADX INFO: renamed from: ᵞᵛᵘ, reason: contains not printable characters */
    public boolean f494;

    /* JADX INFO: renamed from: ᵨˈʼﹶ, reason: contains not printable characters */
    public int f495;

    public SpeechOrbView(Context context) {
        this(context, null);
    }

    public SpeechOrbView(Context context, AttributeSet attributeSet) {
        this(context, attributeSet, 0);
    }

    public SpeechOrbView(Context context, AttributeSet attributeSet, int i) {
        super(context, attributeSet, i);
        this.f495 = 0;
        this.f494 = false;
        Resources resources = context.getResources();
        this.f493 = resources.getFraction(R.fraction._2f3_res_0x7f0a0006, 1, 1);
        this.f492 = new C4150(resources.getColor(R.color._2sf_res_0x7f0600f8), resources.getColor(R.color._1fh_res_0x7f0600fa), resources.getColor(R.color._4a3_res_0x7f0600f9));
        this.f491 = new C4150(resources.getColor(R.color._3ga_res_0x7f0600fb), resources.getColor(R.color._3ga_res_0x7f0600fb), 0);
        m341();
    }

    @Override // androidx.leanback.widget.SearchOrbView
    public int getLayoutResourceId() {
        return R.layout.lb_speech_orb;
    }

    public void setListeningOrbColors(C4150 c4150) {
        this.f491 = c4150;
    }

    public void setNotListeningOrbColors(C4150 c4150) {
        this.f492 = c4150;
    }

    public void setSoundLevel(int i) {
        if (this.f494) {
            int i2 = this.f495;
            if (i > i2) {
                this.f495 = ((i - i2) / 2) + i2;
            } else {
                this.f495 = (int) (i2 * 0.7f);
            }
            float focusedZoom = (((this.f493 - getFocusedZoom()) * this.f495) / 100.0f) + 1.0f;
            View view = this.f483;
            view.setScaleX(focusedZoom);
            view.setScaleY(focusedZoom);
        }
    }

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public final void m341() {
        setOrbColors(this.f492);
        setOrbIcon(getResources().getDrawable(2131231125));
        m340(hasFocus());
        View view = this.f483;
        view.setScaleX(1.0f);
        view.setScaleY(1.0f);
        this.f494 = false;
    }
}
