package d6;

import android.os.Parcel;
import android.os.Parcelable;
import d5.AbstractC0844a;

/* JADX INFO: renamed from: d6.A, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0845A implements B, Parcelable {
    public static final z CREATOR = new z();

    /* JADX INFO: renamed from: q, reason: collision with root package name */
    public final int f12282q;

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    public final float f12283r;

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public final boolean f12284s;

    /* JADX INFO: renamed from: t, reason: collision with root package name */
    public final boolean f12285t;

    /* JADX INFO: renamed from: u, reason: collision with root package name */
    public final boolean f12286u;

    /* JADX INFO: renamed from: v, reason: collision with root package name */
    public final int f12287v;

    /* JADX INFO: renamed from: w, reason: collision with root package name */
    public final int f12288w;

    public C0845A(Parcel parcel) {
        int i = parcel.readInt();
        float f3 = parcel.readFloat();
        boolean z8 = parcel.readByte() != 0;
        boolean z9 = parcel.readByte() != 0;
        boolean z10 = parcel.readByte() != 0;
        int i5 = parcel.readInt();
        int i8 = parcel.readInt();
        this.f12282q = i;
        this.f12283r = f3;
        this.f12284s = z8;
        this.f12285t = z9;
        this.f12286u = z10;
        this.f12287v = i5;
        this.f12288w = i8;
        if (0.0f > f3 || f3 > 1.0f) {
            throw new IllegalArgumentException("fraction must be a value between 0f and 1f");
        }
    }

    @Override // d6.B
    public final int a() {
        return this.f12282q;
    }

    @Override // d6.B
    public final boolean d() {
        return this.f12285t;
    }

    @Override // android.os.Parcelable
    public final int describeContents() {
        return 0;
    }

    @Override // d6.B
    public final boolean e() {
        return this.f12286u;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof C0845A)) {
            return false;
        }
        C0845A c0845a = (C0845A) obj;
        return this.f12282q == c0845a.f12282q && Float.compare(this.f12283r, c0845a.f12283r) == 0 && this.f12284s == c0845a.f12284s && this.f12285t == c0845a.f12285t && this.f12286u == c0845a.f12286u && this.f12287v == c0845a.f12287v && this.f12288w == c0845a.f12288w;
    }

    public final int hashCode() {
        return ((((((((((Float.floatToIntBits(this.f12283r) + (this.f12282q * 31)) * 31) + (this.f12284s ? 1231 : 1237)) * 31) + (this.f12285t ? 1231 : 1237)) * 31) + (this.f12286u ? 1231 : 1237)) * 31) + this.f12287v) * 31) + this.f12288w;
    }

    @Override // d6.B
    public final float m() {
        return this.f12283r;
    }

    @Override // d6.B
    public final boolean q() {
        return this.f12284s;
    }

    public final String toString() {
        StringBuilder sb = new StringBuilder("SubPositionAlignment(offset=");
        sb.append(this.f12282q);
        sb.append(", fraction=");
        sb.append(this.f12283r);
        sb.append(", isFractionEnabled=");
        sb.append(this.f12284s);
        sb.append(", includePadding=");
        sb.append(this.f12285t);
        sb.append(", alignToBaseline=");
        sb.append(this.f12286u);
        sb.append(", alignmentViewId=");
        sb.append(this.f12287v);
        sb.append(", focusViewId=");
        return AbstractC0844a.n(sb, this.f12288w, ")");
    }

    @Override // android.os.Parcelable
    public final void writeToParcel(Parcel parcel, int i) {
        P6.g.e(parcel, "parcel");
        parcel.writeInt(this.f12282q);
        parcel.writeFloat(this.f12283r);
        parcel.writeByte(this.f12284s ? (byte) 1 : (byte) 0);
        parcel.writeByte(this.f12285t ? (byte) 1 : (byte) 0);
        parcel.writeByte(this.f12286u ? (byte) 1 : (byte) 0);
        parcel.writeInt(this.f12287v);
        parcel.writeInt(this.f12288w);
    }
}
