package androidx.constraintlayout.motion.widget;

import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import androidx.constraintlayout.motion.widget.MotionLayout;
import androidx.constraintlayout.widget.ConstraintHelper;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.constraintlayout.widget.R$styleable;
import ῲ.ⁱ.K.ῲ.AbstractC2157;

public class MotionHelper extends ConstraintHelper implements AbstractC2157, MotionLayout.AbstractC0133 {

    /* renamed from: ᕣ  reason: contains not printable characters */
    public boolean f687 = false;

    /* renamed from: 㑃  reason: contains not printable characters */
    public float f688;

    /* renamed from: 㳳  reason: contains not printable characters */
    public boolean f689 = false;

    /* renamed from: 䁗  reason: contains not printable characters */
    public View[] f690;

    public MotionHelper(Context context) {
        super(context);
    }

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

    public void setProgress(float f) {
        this.f688 = f;
        int i = 0;
        if (this.f990 > 0) {
            this.f690 = m553((ConstraintLayout) getParent());
            while (i < this.f990) {
                View view = this.f690[i];
                m400();
                i++;
            }
            return;
        }
        ViewGroup viewGroup = (ViewGroup) getParent();
        int childCount = viewGroup.getChildCount();
        while (i < childCount) {
            if (!(viewGroup.getChildAt(i) instanceof MotionHelper)) {
                m400();
            }
            i++;
        }
    }

    /* renamed from: ඓ  reason: contains not printable characters */
    public boolean m394() {
        return this.f689;
    }

    @Override // androidx.constraintlayout.widget.ConstraintHelper
    /* renamed from: K  reason: contains not printable characters */
    public void m395(AttributeSet attributeSet) {
        super.m557(attributeSet);
        if (attributeSet != null) {
            TypedArray obtainStyledAttributes = getContext().obtainStyledAttributes(attributeSet, R$styleable.MotionHelper);
            int indexCount = obtainStyledAttributes.getIndexCount();
            for (int i = 0; i < indexCount; i++) {
                int index = obtainStyledAttributes.getIndex(i);
                if (index == R$styleable.MotionHelper_onShow) {
                    this.f689 = obtainStyledAttributes.getBoolean(index, this.f689);
                } else if (index == R$styleable.MotionHelper_onHide) {
                    this.f687 = obtainStyledAttributes.getBoolean(index, this.f687);
                }
            }
            obtainStyledAttributes.recycle();
        }
    }

    @Override // androidx.constraintlayout.motion.widget.MotionLayout.AbstractC0133
    /* renamed from: K  reason: contains not printable characters */
    public void m396(MotionLayout motionLayout, int i) {
    }

    @Override // androidx.constraintlayout.motion.widget.MotionLayout.AbstractC0133
    /* renamed from: K  reason: contains not printable characters */
    public void m397(MotionLayout motionLayout, int i, int i2) {
    }

    @Override // androidx.constraintlayout.motion.widget.MotionLayout.AbstractC0133
    /* renamed from: K  reason: contains not printable characters */
    public void m398(MotionLayout motionLayout, int i, int i2, float f) {
    }

    @Override // androidx.constraintlayout.motion.widget.MotionLayout.AbstractC0133
    /* renamed from: K  reason: contains not printable characters */
    public void m399(MotionLayout motionLayout, int i, boolean z, float f) {
    }

    /* renamed from: 㴹  reason: contains not printable characters */
    public void m400() {
    }

    /* renamed from: 㸾  reason: contains not printable characters */
    public boolean m401() {
        return this.f687;
    }

    public MotionHelper(Context context, AttributeSet attributeSet) {
        super(context, attributeSet);
        m395(attributeSet);
    }

    public MotionHelper(Context context, AttributeSet attributeSet, int i) {
        super(context, attributeSet, i);
        m395(attributeSet);
    }
}
