mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-16 19:07:17 +01:00
62 lines
3.3 KiB
Java
62 lines
3.3 KiB
Java
package androidx.compose.ui.unit;
|
|
|
|
import androidx.collection.DoubleList$$ExternalSyntheticOutline0;
|
|
import androidx.compose.ui.unit.fontscaling.FontScaleConverter;
|
|
import com.amazon.alexa.redesign.view.container.CardStudioAgentSpaceMetrics;
|
|
import kotlin.Metadata;
|
|
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0007\n\u0002\b\t\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\b\u0082\b\u0018\u00002\u00020\u0001B\u000f\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0004\b\u0004\u0010\u0005J\u0010\u0010\u0006\u001a\u00020\u00032\u0006\u0010\u0007\u001a\u00020\u0003H\u0016J\u0010\u0010\b\u001a\u00020\u00032\u0006\u0010\t\u001a\u00020\u0003H\u0016J\t\u0010\n\u001a\u00020\u0003HÂ\u0003J\u0013\u0010\u000b\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u0003HÆ\u0001J\u0013\u0010\f\u001a\u00020\r2\b\u0010\u000e\u001a\u0004\u0018\u00010\u000fHÖ\u0003J\t\u0010\u0010\u001a\u00020\u0011HÖ\u0001J\t\u0010\u0012\u001a\u00020\u0013HÖ\u0001R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u0014"}, d2 = {"Landroidx/compose/ui/unit/LinearFontScaleConverter;", "Landroidx/compose/ui/unit/fontscaling/FontScaleConverter;", "fontScale", "", "<init>", "(F)V", "convertSpToDp", "sp", "convertDpToSp", "dp", "component1", "copy", "equals", "", CardStudioAgentSpaceMetrics.DimensionValue.SCHEME_OTHER, "", "hashCode", "", "toString", "", "ui-unit"}, k = 1, mv = {2, 0, 0}, xi = 48)
|
|
/* loaded from: classes13.dex */
|
|
final /* data */ class LinearFontScaleConverter implements FontScaleConverter {
|
|
private final float fontScale;
|
|
|
|
public LinearFontScaleConverter(float f) {
|
|
this.fontScale = f;
|
|
}
|
|
|
|
/* renamed from: component1, reason: from getter */
|
|
private final float getFontScale() {
|
|
return this.fontScale;
|
|
}
|
|
|
|
public static /* synthetic */ LinearFontScaleConverter copy$default(LinearFontScaleConverter linearFontScaleConverter, float f, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
f = linearFontScaleConverter.fontScale;
|
|
}
|
|
return linearFontScaleConverter.copy(f);
|
|
}
|
|
|
|
@Override // androidx.compose.ui.unit.fontscaling.FontScaleConverter
|
|
public float convertDpToSp(float dp) {
|
|
return dp / this.fontScale;
|
|
}
|
|
|
|
@Override // androidx.compose.ui.unit.fontscaling.FontScaleConverter
|
|
public float convertSpToDp(float sp) {
|
|
return sp * this.fontScale;
|
|
}
|
|
|
|
@NotNull
|
|
public final LinearFontScaleConverter copy(float fontScale) {
|
|
return new LinearFontScaleConverter(fontScale);
|
|
}
|
|
|
|
public boolean equals(@Nullable Object other) {
|
|
if (this == other) {
|
|
return true;
|
|
}
|
|
return (other instanceof LinearFontScaleConverter) && Float.compare(this.fontScale, ((LinearFontScaleConverter) other).fontScale) == 0;
|
|
}
|
|
|
|
public int hashCode() {
|
|
return Float.hashCode(this.fontScale);
|
|
}
|
|
|
|
@NotNull
|
|
public String toString() {
|
|
return DoubleList$$ExternalSyntheticOutline0.m(new StringBuilder("LinearFontScaleConverter(fontScale="), this.fontScale, ')');
|
|
}
|
|
}
|