package androidx.constraintlayout.widget;

import android.content.Context;
import android.content.res.TypedArray;
import android.os.Build;
import android.util.AttributeSet;
import android.view.ViewGroup;
import androidx.constraintlayout.widget.ConstraintLayout;

/* JADX INFO: compiled from: Constraints.java */
/* JADX INFO: loaded from: classes.dex */
public class e extends ViewGroup {

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    d f1447e;

    /* JADX INFO: Access modifiers changed from: protected */
    @Override // android.view.ViewGroup
    /* JADX INFO: renamed from: a, reason: merged with bridge method [inline-methods] */
    public a generateDefaultLayoutParams() {
        return new a(-2, -2);
    }

    @Override // android.view.ViewGroup
    /* JADX INFO: renamed from: b, reason: merged with bridge method [inline-methods] */
    public a generateLayoutParams(AttributeSet attributeSet) {
        return new a(getContext(), attributeSet);
    }

    public d getConstraintSet() {
        if (this.f1447e == null) {
            this.f1447e = new d();
        }
        this.f1447e.h(this);
        return this.f1447e;
    }

    @Override // android.view.ViewGroup, android.view.View
    protected void onLayout(boolean z2, int i3, int i4, int i5, int i6) {
    }

    @Override // android.view.ViewGroup
    protected ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams layoutParams) {
        return new ConstraintLayout.b(layoutParams);
    }

    /* JADX INFO: compiled from: Constraints.java */
    public static class a extends ConstraintLayout.b {
        public float A0;
        public float B0;
        public float C0;
        public float D0;
        public float E0;

        /* JADX INFO: renamed from: s0, reason: collision with root package name */
        public float f1448s0;

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

        /* JADX INFO: renamed from: u0, reason: collision with root package name */
        public float f1450u0;

        /* JADX INFO: renamed from: v0, reason: collision with root package name */
        public float f1451v0;

        /* JADX INFO: renamed from: w0, reason: collision with root package name */
        public float f1452w0;

        /* JADX INFO: renamed from: x0, reason: collision with root package name */
        public float f1453x0;

        /* JADX INFO: renamed from: y0, reason: collision with root package name */
        public float f1454y0;

        /* JADX INFO: renamed from: z0, reason: collision with root package name */
        public float f1455z0;

        public a(int i3, int i4) {
            super(i3, i4);
            this.f1448s0 = 1.0f;
            this.f1449t0 = false;
            this.f1450u0 = 0.0f;
            this.f1451v0 = 0.0f;
            this.f1452w0 = 0.0f;
            this.f1453x0 = 0.0f;
            this.f1454y0 = 1.0f;
            this.f1455z0 = 1.0f;
            this.A0 = 0.0f;
            this.B0 = 0.0f;
            this.C0 = 0.0f;
            this.D0 = 0.0f;
            this.E0 = 0.0f;
        }

        public a(Context context, AttributeSet attributeSet) {
            super(context, attributeSet);
            this.f1448s0 = 1.0f;
            this.f1449t0 = false;
            this.f1450u0 = 0.0f;
            this.f1451v0 = 0.0f;
            this.f1452w0 = 0.0f;
            this.f1453x0 = 0.0f;
            this.f1454y0 = 1.0f;
            this.f1455z0 = 1.0f;
            this.A0 = 0.0f;
            this.B0 = 0.0f;
            this.C0 = 0.0f;
            this.D0 = 0.0f;
            this.E0 = 0.0f;
            TypedArray typedArrayObtainStyledAttributes = context.obtainStyledAttributes(attributeSet, i.Q3);
            int indexCount = typedArrayObtainStyledAttributes.getIndexCount();
            for (int i3 = 0; i3 < indexCount; i3++) {
                int index = typedArrayObtainStyledAttributes.getIndex(i3);
                if (index == i.R3) {
                    this.f1448s0 = typedArrayObtainStyledAttributes.getFloat(index, this.f1448s0);
                } else if (index == i.c4) {
                    if (Build.VERSION.SDK_INT >= 21) {
                        this.f1450u0 = typedArrayObtainStyledAttributes.getFloat(index, this.f1450u0);
                        this.f1449t0 = true;
                    }
                } else if (index == i.Z3) {
                    this.f1452w0 = typedArrayObtainStyledAttributes.getFloat(index, this.f1452w0);
                } else if (index == i.a4) {
                    this.f1453x0 = typedArrayObtainStyledAttributes.getFloat(index, this.f1453x0);
                } else if (index == i.Y3) {
                    this.f1451v0 = typedArrayObtainStyledAttributes.getFloat(index, this.f1451v0);
                } else if (index == i.W3) {
                    this.f1454y0 = typedArrayObtainStyledAttributes.getFloat(index, this.f1454y0);
                } else if (index == i.X3) {
                    this.f1455z0 = typedArrayObtainStyledAttributes.getFloat(index, this.f1455z0);
                } else if (index == i.S3) {
                    this.A0 = typedArrayObtainStyledAttributes.getFloat(index, this.A0);
                } else if (index == i.T3) {
                    this.B0 = typedArrayObtainStyledAttributes.getFloat(index, this.B0);
                } else if (index == i.U3) {
                    this.C0 = typedArrayObtainStyledAttributes.getFloat(index, this.C0);
                } else if (index == i.V3) {
                    this.D0 = typedArrayObtainStyledAttributes.getFloat(index, this.D0);
                } else if (index == i.b4 && Build.VERSION.SDK_INT >= 21) {
                    this.E0 = typedArrayObtainStyledAttributes.getFloat(index, this.E0);
                }
            }
            typedArrayObtainStyledAttributes.recycle();
        }
    }
}
