package androidx.constraintlayout.motion.widget;

import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import androidx.constraintlayout.motion.widget.j;
import androidx.constraintlayout.widget.ConstraintLayout;

/* JADX INFO: compiled from: MotionHelper.java */
/* JADX INFO: loaded from: classes.dex */
public class h extends androidx.constraintlayout.widget.b implements j.d {

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    private boolean f1180n;

    /* JADX INFO: renamed from: o, reason: collision with root package name */
    private boolean f1181o;

    /* JADX INFO: renamed from: p, reason: collision with root package name */
    private float f1182p;

    /* JADX INFO: renamed from: q, reason: collision with root package name */
    protected View[] f1183q;

    @Override // androidx.constraintlayout.motion.widget.j.d
    public void a(j jVar, int i3, int i4) {
    }

    @Override // androidx.constraintlayout.motion.widget.j.d
    public void b(j jVar, int i3, int i4, float f3) {
    }

    @Override // androidx.constraintlayout.motion.widget.j.d
    public void c(j jVar, int i3) {
    }

    public float getProgress() {
        return this.f1182p;
    }

    @Override // androidx.constraintlayout.widget.b
    protected void m(AttributeSet attributeSet) {
        super.m(attributeSet);
        if (attributeSet != null) {
            TypedArray typedArrayObtainStyledAttributes = getContext().obtainStyledAttributes(attributeSet, androidx.constraintlayout.widget.i.K5);
            int indexCount = typedArrayObtainStyledAttributes.getIndexCount();
            for (int i3 = 0; i3 < indexCount; i3++) {
                int index = typedArrayObtainStyledAttributes.getIndex(i3);
                if (index == androidx.constraintlayout.widget.i.M5) {
                    this.f1180n = typedArrayObtainStyledAttributes.getBoolean(index, this.f1180n);
                } else if (index == androidx.constraintlayout.widget.i.L5) {
                    this.f1181o = typedArrayObtainStyledAttributes.getBoolean(index, this.f1181o);
                }
            }
            typedArrayObtainStyledAttributes.recycle();
        }
    }

    public void setProgress(float f3) {
        this.f1182p = f3;
        int i3 = 0;
        if (this.f1320f > 0) {
            this.f1183q = l((ConstraintLayout) getParent());
            while (i3 < this.f1320f) {
                x(this.f1183q[i3], f3);
                i3++;
            }
            return;
        }
        ViewGroup viewGroup = (ViewGroup) getParent();
        int childCount = viewGroup.getChildCount();
        while (i3 < childCount) {
            View childAt = viewGroup.getChildAt(i3);
            if (!(childAt instanceof h)) {
                x(childAt, f3);
            }
            i3++;
        }
    }

    public boolean t() {
        return false;
    }

    public boolean u() {
        return this.f1181o;
    }

    public boolean v() {
        return this.f1180n;
    }

    public void w(Canvas canvas) {
    }

    public void x(View view, float f3) {
    }
}
