package t2;

import android.text.Layout;
import androidx.annotation.Nullable;
import com.google.errorprone.annotations.CanIgnoreReturnValue;

/* JADX INFO: loaded from: classes.dex */
public final class i {

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

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

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

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

    @Nullable
    private String extent;

    @Nullable
    private String fontFamily;

    /* JADX INFO: renamed from: id, reason: collision with root package name */
    @Nullable
    private String f32845id;

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

    @Nullable
    private Layout.Alignment multiRowAlign;

    @Nullable
    private String origin;

    @Nullable
    private Layout.Alignment textAlign;

    @Nullable
    private b textEmphasis;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public int f32840e = -1;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public int f32841f = -1;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public int f32842g = -1;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public int f32843h = -1;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    public int f32844i = -1;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public int f32847k = -1;

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    public int f32848l = -1;

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public int f32849m = -1;

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public float f32850n = Float.MAX_VALUE;

    @CanIgnoreReturnValue
    public i chain(@Nullable i iVar) {
        return inherit(iVar, true);
    }

    @Nullable
    public String getExtent() {
        return this.extent;
    }

    @Nullable
    public String getFontFamily() {
        return this.fontFamily;
    }

    @Nullable
    public String getId() {
        return this.f32845id;
    }

    @Nullable
    public Layout.Alignment getMultiRowAlign() {
        return this.multiRowAlign;
    }

    @Nullable
    public String getOrigin() {
        return this.origin;
    }

    @Nullable
    public Layout.Alignment getTextAlign() {
        return this.textAlign;
    }

    @Nullable
    public b getTextEmphasis() {
        return this.textEmphasis;
    }

    @CanIgnoreReturnValue
    public i inherit(@Nullable i iVar) {
        return inherit(iVar, false);
    }

    @CanIgnoreReturnValue
    public i setExtent(@Nullable String str) {
        this.extent = str;
        return this;
    }

    @CanIgnoreReturnValue
    public i setFontFamily(@Nullable String str) {
        this.fontFamily = str;
        return this;
    }

    @CanIgnoreReturnValue
    public i setId(@Nullable String str) {
        this.f32845id = str;
        return this;
    }

    @CanIgnoreReturnValue
    public i setMultiRowAlign(@Nullable Layout.Alignment alignment) {
        this.multiRowAlign = alignment;
        return this;
    }

    @CanIgnoreReturnValue
    public i setOrigin(@Nullable String str) {
        this.origin = str;
        return this;
    }

    @CanIgnoreReturnValue
    public i setTextAlign(@Nullable Layout.Alignment alignment) {
        this.textAlign = alignment;
        return this;
    }

    @CanIgnoreReturnValue
    public i setTextEmphasis(@Nullable b bVar) {
        this.textEmphasis = bVar;
        return this;
    }

    @CanIgnoreReturnValue
    private i inherit(@Nullable i iVar, boolean z10) {
        int i10;
        Layout.Alignment alignment;
        Layout.Alignment alignment2;
        String str;
        if (iVar != null) {
            if (!this.f32837b && iVar.f32837b) {
                this.f32836a = iVar.f32836a;
                this.f32837b = true;
            }
            if (this.f32842g == -1) {
                this.f32842g = iVar.f32842g;
            }
            if (this.f32843h == -1) {
                this.f32843h = iVar.f32843h;
            }
            if (this.fontFamily == null && (str = iVar.fontFamily) != null) {
                this.fontFamily = str;
            }
            if (this.f32840e == -1) {
                this.f32840e = iVar.f32840e;
            }
            if (this.f32841f == -1) {
                this.f32841f = iVar.f32841f;
            }
            if (this.f32848l == -1) {
                this.f32848l = iVar.f32848l;
            }
            if (this.textAlign == null && (alignment2 = iVar.textAlign) != null) {
                this.textAlign = alignment2;
            }
            if (this.multiRowAlign == null && (alignment = iVar.multiRowAlign) != null) {
                this.multiRowAlign = alignment;
            }
            if (this.f32849m == -1) {
                this.f32849m = iVar.f32849m;
            }
            if (this.f32844i == -1) {
                this.f32844i = iVar.f32844i;
                this.f32846j = iVar.f32846j;
            }
            if (this.textEmphasis == null) {
                this.textEmphasis = iVar.textEmphasis;
            }
            if (this.f32850n == Float.MAX_VALUE) {
                this.f32850n = iVar.f32850n;
            }
            if (this.origin == null) {
                this.origin = iVar.origin;
            }
            if (this.extent == null) {
                this.extent = iVar.extent;
            }
            if (z10 && !this.f32839d && iVar.f32839d) {
                this.f32838c = iVar.f32838c;
                this.f32839d = true;
            }
            if (z10 && this.f32847k == -1 && (i10 = iVar.f32847k) != -1) {
                this.f32847k = i10;
            }
        }
        return this;
    }
}
