Rabbit-R1/android (non root)/java/sources/androidx/compose/ui/text/style/LineHeightStyle.java
2024-05-21 17:08:36 -04:00

289 lines
17 KiB
Java

package androidx.compose.ui.text.style;
import kotlin.Metadata;
import kotlin.jvm.JvmInline;
import kotlin.jvm.internal.DefaultConstructorMarker;
/* compiled from: LineHeightStyle.kt */
@Metadata(d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0004\b\u0007\u0018\u0000 \u00152\u00020\u0001:\u0003\u0014\u0015\u0016B\u0018\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005ø\u0001\u0000¢\u0006\u0002\u0010\u0006J\u0013\u0010\r\u001a\u00020\u000e2\b\u0010\u000f\u001a\u0004\u0018\u00010\u0001H\u0096\u0002J\b\u0010\u0010\u001a\u00020\u0011H\u0016J\b\u0010\u0012\u001a\u00020\u0013H\u0016R\u001c\u0010\u0002\u001a\u00020\u0003ø\u0001\u0000ø\u0001\u0001ø\u0001\u0002¢\u0006\n\n\u0002\u0010\t\u001a\u0004\b\u0007\u0010\bR\u001c\u0010\u0004\u001a\u00020\u0005ø\u0001\u0000ø\u0001\u0001ø\u0001\u0002¢\u0006\n\n\u0002\u0010\f\u001a\u0004\b\n\u0010\u000b\u0082\u0002\u000f\n\u0002\b\u0019\n\u0005\\u001e0\u0001\n\u0002\b!¨\u0006\u0017"}, d2 = {"Landroidx/compose/ui/text/style/LineHeightStyle;", "", "alignment", "Landroidx/compose/ui/text/style/LineHeightStyle$Alignment;", "trim", "Landroidx/compose/ui/text/style/LineHeightStyle$Trim;", "(FILkotlin/jvm/internal/DefaultConstructorMarker;)V", "getAlignment-PIaL0Z0", "()F", "F", "getTrim-EVpEnUU", "()I", "I", "equals", "", "other", "hashCode", "", "toString", "", "Alignment", "Companion", "Trim", "ui-text_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
/* loaded from: classes.dex */
public final class LineHeightStyle {
public static final int $stable = 0;
/* renamed from: Companion, reason: from kotlin metadata */
public static final Companion INSTANCE;
private static final LineHeightStyle Default;
private final float alignment;
private final int trim;
public /* synthetic */ LineHeightStyle(float f, int i, DefaultConstructorMarker defaultConstructorMarker) {
this(f, i);
}
/* renamed from: getAlignment-PIaL0Z0, reason: not valid java name and from getter */
public final float getAlignment() {
return this.alignment;
}
/* renamed from: getTrim-EVpEnUU, reason: not valid java name and from getter */
public final int getTrim() {
return this.trim;
}
private LineHeightStyle(float f, int i) {
this.alignment = f;
this.trim = i;
}
/* compiled from: LineHeightStyle.kt */
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u0011\u0010\u0003\u001a\u00020\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0007"}, d2 = {"Landroidx/compose/ui/text/style/LineHeightStyle$Companion;", "", "()V", "Default", "Landroidx/compose/ui/text/style/LineHeightStyle;", "getDefault", "()Landroidx/compose/ui/text/style/LineHeightStyle;", "ui-text_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
/* loaded from: classes.dex */
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
public final LineHeightStyle getDefault() {
return LineHeightStyle.Default;
}
}
static {
DefaultConstructorMarker defaultConstructorMarker = null;
INSTANCE = new Companion(defaultConstructorMarker);
Default = new LineHeightStyle(Alignment.INSTANCE.m4755getProportionalPIaL0Z0(), Trim.INSTANCE.m4766getBothEVpEnUU(), defaultConstructorMarker);
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof LineHeightStyle)) {
return false;
}
LineHeightStyle lineHeightStyle = (LineHeightStyle) other;
return Alignment.m4749equalsimpl0(this.alignment, lineHeightStyle.alignment) && Trim.m4760equalsimpl0(this.trim, lineHeightStyle.trim);
}
public int hashCode() {
return (Alignment.m4750hashCodeimpl(this.alignment) * 31) + Trim.m4761hashCodeimpl(this.trim);
}
public String toString() {
return "LineHeightStyle(alignment=" + ((Object) Alignment.m4751toStringimpl(this.alignment)) + ", trim=" + ((Object) Trim.m4764toStringimpl(this.trim)) + ')';
}
/* compiled from: LineHeightStyle.kt */
@Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u000b\n\u0002\u0010\u000e\n\u0002\b\u0004\b\u0087@\u0018\u0000 \u00162\u00020\u0001:\u0001\u0016B\u0014\b\u0002\u0012\u0006\u0010\u0002\u001a\u00020\u0003ø\u0001\u0000¢\u0006\u0004\b\u0004\u0010\u0005J\u001a\u0010\u0006\u001a\u00020\u00072\b\u0010\b\u001a\u0004\u0018\u00010\u0001HÖ\u0003¢\u0006\u0004\b\t\u0010\nJ\u0010\u0010\u000b\u001a\u00020\u0003HÖ\u0001¢\u0006\u0004\b\f\u0010\u0005J\u000f\u0010\r\u001a\u00020\u0007H\u0000¢\u0006\u0004\b\u000e\u0010\u000fJ\u000f\u0010\u0010\u001a\u00020\u0007H\u0000¢\u0006\u0004\b\u0011\u0010\u000fJ\u000f\u0010\u0012\u001a\u00020\u0013H\u0016¢\u0006\u0004\b\u0014\u0010\u0015R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000\u0088\u0001\u0002\u0092\u0001\u00020\u0003ø\u0001\u0000\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u0017"}, d2 = {"Landroidx/compose/ui/text/style/LineHeightStyle$Trim;", "", "value", "", "constructor-impl", "(I)I", "equals", "", "other", "equals-impl", "(ILjava/lang/Object;)Z", "hashCode", "hashCode-impl", "isTrimFirstLineTop", "isTrimFirstLineTop-impl$ui_text_release", "(I)Z", "isTrimLastLineBottom", "isTrimLastLineBottom-impl$ui_text_release", "toString", "", "toString-impl", "(I)Ljava/lang/String;", "Companion", "ui-text_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
@JvmInline
/* loaded from: classes.dex */
public static final class Trim {
private static final int FlagTrimBottom = 16;
private static final int FlagTrimTop = 1;
private final int value;
/* renamed from: Companion, reason: from kotlin metadata */
public static final Companion INSTANCE = new Companion(null);
private static final int FirstLineTop = m4758constructorimpl(1);
private static final int LastLineBottom = m4758constructorimpl(16);
private static final int Both = m4758constructorimpl(17);
private static final int None = m4758constructorimpl(0);
/* renamed from: box-impl, reason: not valid java name */
public static final /* synthetic */ Trim m4757boximpl(int i) {
return new Trim(i);
}
/* renamed from: constructor-impl, reason: not valid java name */
private static int m4758constructorimpl(int i) {
return i;
}
/* renamed from: equals-impl, reason: not valid java name */
public static boolean m4759equalsimpl(int i, Object obj) {
return (obj instanceof Trim) && i == ((Trim) obj).getValue();
}
/* renamed from: equals-impl0, reason: not valid java name */
public static final boolean m4760equalsimpl0(int i, int i2) {
return i == i2;
}
/* renamed from: hashCode-impl, reason: not valid java name */
public static int m4761hashCodeimpl(int i) {
return Integer.hashCode(i);
}
/* renamed from: isTrimFirstLineTop-impl$ui_text_release, reason: not valid java name */
public static final boolean m4762isTrimFirstLineTopimpl$ui_text_release(int i) {
return (i & 1) > 0;
}
/* renamed from: isTrimLastLineBottom-impl$ui_text_release, reason: not valid java name */
public static final boolean m4763isTrimLastLineBottomimpl$ui_text_release(int i) {
return (i & 16) > 0;
}
/* renamed from: toString-impl, reason: not valid java name */
public static String m4764toStringimpl(int i) {
return i == FirstLineTop ? "LineHeightStyle.Trim.FirstLineTop" : i == LastLineBottom ? "LineHeightStyle.Trim.LastLineBottom" : i == Both ? "LineHeightStyle.Trim.Both" : i == None ? "LineHeightStyle.Trim.None" : "Invalid";
}
public boolean equals(Object obj) {
return m4759equalsimpl(this.value, obj);
}
public int hashCode() {
return m4761hashCodeimpl(this.value);
}
/* renamed from: unbox-impl, reason: not valid java name and from getter */
public final /* synthetic */ int getValue() {
return this.value;
}
private /* synthetic */ Trim(int i) {
this.value = i;
}
public String toString() {
return m4764toStringimpl(this.value);
}
/* compiled from: LineHeightStyle.kt */
@Metadata(d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\b\n\u0002\b\u0006\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u001c\u0010\u0003\u001a\u00020\u0004ø\u0001\u0000ø\u0001\u0001ø\u0001\u0002¢\u0006\n\n\u0002\u0010\u0007\u001a\u0004\b\u0005\u0010\u0006R\u001c\u0010\b\u001a\u00020\u0004ø\u0001\u0000ø\u0001\u0001ø\u0001\u0002¢\u0006\n\n\u0002\u0010\u0007\u001a\u0004\b\t\u0010\u0006R\u000e\u0010\n\u001a\u00020\u000bX\u0082T¢\u0006\u0002\n\u0000R\u000e\u0010\f\u001a\u00020\u000bX\u0082T¢\u0006\u0002\n\u0000R\u001c\u0010\r\u001a\u00020\u0004ø\u0001\u0000ø\u0001\u0001ø\u0001\u0002¢\u0006\n\n\u0002\u0010\u0007\u001a\u0004\b\u000e\u0010\u0006R\u001c\u0010\u000f\u001a\u00020\u0004ø\u0001\u0000ø\u0001\u0001ø\u0001\u0002¢\u0006\n\n\u0002\u0010\u0007\u001a\u0004\b\u0010\u0010\u0006\u0082\u0002\u000f\n\u0002\b\u0019\n\u0005\\u001e0\u0001\n\u0002\b!¨\u0006\u0011"}, d2 = {"Landroidx/compose/ui/text/style/LineHeightStyle$Trim$Companion;", "", "()V", "Both", "Landroidx/compose/ui/text/style/LineHeightStyle$Trim;", "getBoth-EVpEnUU", "()I", "I", "FirstLineTop", "getFirstLineTop-EVpEnUU", "FlagTrimBottom", "", "FlagTrimTop", "LastLineBottom", "getLastLineBottom-EVpEnUU", "None", "getNone-EVpEnUU", "ui-text_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
/* loaded from: classes.dex */
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
/* renamed from: getFirstLineTop-EVpEnUU, reason: not valid java name */
public final int m4767getFirstLineTopEVpEnUU() {
return Trim.FirstLineTop;
}
/* renamed from: getLastLineBottom-EVpEnUU, reason: not valid java name */
public final int m4768getLastLineBottomEVpEnUU() {
return Trim.LastLineBottom;
}
/* renamed from: getBoth-EVpEnUU, reason: not valid java name */
public final int m4766getBothEVpEnUU() {
return Trim.Both;
}
/* renamed from: getNone-EVpEnUU, reason: not valid java name */
public final int m4769getNoneEVpEnUU() {
return Trim.None;
}
}
}
/* compiled from: LineHeightStyle.kt */
@Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0007\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0004\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0002\b\u0004\b\u0087@\u0018\u0000 \u00132\u00020\u0001:\u0001\u0013B\u0012\u0012\u0006\u0010\u0002\u001a\u00020\u0003ø\u0001\u0000¢\u0006\u0004\b\u0004\u0010\u0005J\u001a\u0010\u0006\u001a\u00020\u00072\b\u0010\b\u001a\u0004\u0018\u00010\u0001HÖ\u0003¢\u0006\u0004\b\t\u0010\nJ\u0010\u0010\u000b\u001a\u00020\fHÖ\u0001¢\u0006\u0004\b\r\u0010\u000eJ\u000f\u0010\u000f\u001a\u00020\u0010H\u0016¢\u0006\u0004\b\u0011\u0010\u0012R\u000e\u0010\u0002\u001a\u00020\u0003X\u0080\u0004¢\u0006\u0002\n\u0000\u0088\u0001\u0002\u0092\u0001\u00020\u0003ø\u0001\u0000\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u0014"}, d2 = {"Landroidx/compose/ui/text/style/LineHeightStyle$Alignment;", "", "topRatio", "", "constructor-impl", "(F)F", "equals", "", "other", "equals-impl", "(FLjava/lang/Object;)Z", "hashCode", "", "hashCode-impl", "(F)I", "toString", "", "toString-impl", "(F)Ljava/lang/String;", "Companion", "ui-text_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
@JvmInline
/* loaded from: classes.dex */
public static final class Alignment {
private final float topRatio;
/* renamed from: Companion, reason: from kotlin metadata */
public static final Companion INSTANCE = new Companion(null);
private static final float Top = m4747constructorimpl(0.0f);
private static final float Center = m4747constructorimpl(0.5f);
private static final float Proportional = m4747constructorimpl(-1.0f);
private static final float Bottom = m4747constructorimpl(1.0f);
/* renamed from: box-impl, reason: not valid java name */
public static final /* synthetic */ Alignment m4746boximpl(float f) {
return new Alignment(f);
}
/* renamed from: equals-impl, reason: not valid java name */
public static boolean m4748equalsimpl(float f, Object obj) {
return (obj instanceof Alignment) && Float.compare(f, ((Alignment) obj).getTopRatio()) == 0;
}
/* renamed from: equals-impl0, reason: not valid java name */
public static final boolean m4749equalsimpl0(float f, float f2) {
return Float.compare(f, f2) == 0;
}
/* renamed from: hashCode-impl, reason: not valid java name */
public static int m4750hashCodeimpl(float f) {
return Float.hashCode(f);
}
public boolean equals(Object obj) {
return m4748equalsimpl(this.topRatio, obj);
}
public int hashCode() {
return m4750hashCodeimpl(this.topRatio);
}
/* renamed from: unbox-impl, reason: not valid java name and from getter */
public final /* synthetic */ float getTopRatio() {
return this.topRatio;
}
private /* synthetic */ Alignment(float f) {
this.topRatio = f;
}
/* renamed from: constructor-impl, reason: not valid java name */
public static float m4747constructorimpl(float f) {
if ((0.0f > f || f > 1.0f) && f != -1.0f) {
throw new IllegalStateException("topRatio should be in [0..1] range or -1".toString());
}
return f;
}
public String toString() {
return m4751toStringimpl(this.topRatio);
}
/* renamed from: toString-impl, reason: not valid java name */
public static String m4751toStringimpl(float f) {
return f == Top ? "LineHeightStyle.Alignment.Top" : f == Center ? "LineHeightStyle.Alignment.Center" : f == Proportional ? "LineHeightStyle.Alignment.Proportional" : f == Bottom ? "LineHeightStyle.Alignment.Bottom" : "LineHeightStyle.Alignment(topPercentage = " + f + ')';
}
/* compiled from: LineHeightStyle.kt */
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\n\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u001c\u0010\u0003\u001a\u00020\u0004ø\u0001\u0000ø\u0001\u0001ø\u0001\u0002¢\u0006\n\n\u0002\u0010\u0007\u001a\u0004\b\u0005\u0010\u0006R\u001c\u0010\b\u001a\u00020\u0004ø\u0001\u0000ø\u0001\u0001ø\u0001\u0002¢\u0006\n\n\u0002\u0010\u0007\u001a\u0004\b\t\u0010\u0006R\u001c\u0010\n\u001a\u00020\u0004ø\u0001\u0000ø\u0001\u0001ø\u0001\u0002¢\u0006\n\n\u0002\u0010\u0007\u001a\u0004\b\u000b\u0010\u0006R\u001c\u0010\f\u001a\u00020\u0004ø\u0001\u0000ø\u0001\u0001ø\u0001\u0002¢\u0006\n\n\u0002\u0010\u0007\u001a\u0004\b\r\u0010\u0006\u0082\u0002\u000f\n\u0002\b\u0019\n\u0005\\u001e0\u0001\n\u0002\b!¨\u0006\u000e"}, d2 = {"Landroidx/compose/ui/text/style/LineHeightStyle$Alignment$Companion;", "", "()V", "Bottom", "Landroidx/compose/ui/text/style/LineHeightStyle$Alignment;", "getBottom-PIaL0Z0", "()F", "F", "Center", "getCenter-PIaL0Z0", "Proportional", "getProportional-PIaL0Z0", "Top", "getTop-PIaL0Z0", "ui-text_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
/* loaded from: classes.dex */
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
/* renamed from: getTop-PIaL0Z0, reason: not valid java name */
public final float m4756getTopPIaL0Z0() {
return Alignment.Top;
}
/* renamed from: getCenter-PIaL0Z0, reason: not valid java name */
public final float m4754getCenterPIaL0Z0() {
return Alignment.Center;
}
/* renamed from: getProportional-PIaL0Z0, reason: not valid java name */
public final float m4755getProportionalPIaL0Z0() {
return Alignment.Proportional;
}
/* renamed from: getBottom-PIaL0Z0, reason: not valid java name */
public final float m4753getBottomPIaL0Z0() {
return Alignment.Bottom;
}
}
}
}