package t3;

import android.animation.ObjectAnimator;
import android.content.Context;
import android.view.animation.AnimationUtils;
import android.view.animation.Interpolator;
import androidx.leanback.widget.U;
import com.martsnew.tv.R;
import k3.C1097a;

/* JADX INFO: renamed from: t3.m, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C1550m extends O3.f {

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    public static final int[] f17005l = {533, 567, 850, 750};

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public static final int[] f17006m = {1267, 1000, 333, 0};

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public static final U f17007n = new U(Float.class, "animationFraction", 6);

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

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final Interpolator[] f17009e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final C1551n f17010f;

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

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

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

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public C1540c f17014k;

    public C1550m(Context context, C1551n c1551n) {
        super(2);
        this.f17011g = 0;
        this.f17014k = null;
        this.f17010f = c1551n;
        this.f17009e = new Interpolator[]{AnimationUtils.loadInterpolator(context, R.animator.linear_indeterminate_line1_head_interpolator), AnimationUtils.loadInterpolator(context, R.animator.linear_indeterminate_line1_tail_interpolator), AnimationUtils.loadInterpolator(context, R.animator.linear_indeterminate_line2_head_interpolator), AnimationUtils.loadInterpolator(context, R.animator.linear_indeterminate_line2_tail_interpolator)};
    }

    @Override // O3.f
    public final void a() {
        ObjectAnimator objectAnimator = this.f17008d;
        if (objectAnimator != null) {
            objectAnimator.cancel();
        }
    }

    @Override // O3.f
    public final void e() {
        this.f17011g = 0;
        int iH = W2.g.h(this.f17010f.f17017c[0], ((C1547j) this.f5147a).f16991z);
        int[] iArr = (int[]) this.f5149c;
        iArr[0] = iH;
        iArr[1] = iH;
    }

    @Override // O3.f
    public final void i(C1540c c1540c) {
        this.f17014k = c1540c;
    }

    @Override // O3.f
    public final void j() {
        if (!((C1547j) this.f5147a).isVisible()) {
            a();
        } else {
            this.f17013j = true;
            this.f17008d.setRepeatCount(0);
        }
    }

    @Override // O3.f
    public final void k() {
        if (this.f17008d == null) {
            ObjectAnimator objectAnimatorOfFloat = ObjectAnimator.ofFloat(this, f17007n, 0.0f, 1.0f);
            this.f17008d = objectAnimatorOfFloat;
            objectAnimatorOfFloat.setDuration(1800L);
            this.f17008d.setInterpolator(null);
            this.f17008d.setRepeatCount(-1);
            this.f17008d.addListener(new C1097a(3, this));
        }
        this.f17011g = 0;
        int iH = W2.g.h(this.f17010f.f17017c[0], ((C1547j) this.f5147a).f16991z);
        int[] iArr = (int[]) this.f5149c;
        iArr[0] = iH;
        iArr[1] = iH;
        this.f17008d.start();
    }

    @Override // O3.f
    public final void l() {
        this.f17014k = null;
    }
}
