mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-16 19:07:17 +01:00
57 lines
3.1 KiB
Java
57 lines
3.1 KiB
Java
package androidx.compose.ui.unit;
|
|
|
|
import androidx.annotation.RestrictTo;
|
|
import androidx.compose.runtime.Immutable;
|
|
import androidx.compose.runtime.Stable;
|
|
import kotlin.Metadata;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
import org.jetbrains.annotations.NotNull;
|
|
import rx.Single$$ExternalSyntheticBUOutline0;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Metadata(d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0007\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\bg\u0018\u00002\u00020\u0001J\u0013\u0010\b\u001a\u00020\t*\u00020\nH\u0017¢\u0006\u0004\b\u000b\u0010\fJ\u0013\u0010\r\u001a\u00020\n*\u00020\tH\u0017¢\u0006\u0004\b\u000e\u0010\u000fR\u001a\u0010\u0002\u001a\u00020\u00038&X§\u0004¢\u0006\f\u0012\u0004\b\u0004\u0010\u0005\u001a\u0004\b\u0006\u0010\u0007ø\u0001\u0000\u0082\u0002\u0006\n\u0004\b!0\u0001¨\u0006\u0010À\u0006\u0003"}, d2 = {"Landroidx/compose/ui/unit/FontScalingLinear;", "", "fontScale", "", "getFontScale$annotations", "()V", "getFontScale", "()F", "toSp", "Landroidx/compose/ui/unit/TextUnit;", "Landroidx/compose/ui/unit/Dp;", "toSp-0xMU5do", "(F)J", "toDp", "toDp-GaN1DYA", "(J)F", "ui-unit"}, k = 1, mv = {2, 0, 0}, xi = 48)
|
|
@Immutable
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
|
|
@SourceDebugExtension({"SMAP\nFontScaling.kt\nKotlin\n*S Kotlin\n*F\n+ 1 FontScaling.kt\nandroidx/compose/ui/unit/FontScalingLinear\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,73:1\n1#2:74\n*E\n"})
|
|
/* loaded from: classes13.dex */
|
|
public interface FontScalingLinear {
|
|
float getFontScale();
|
|
|
|
@Stable
|
|
/* renamed from: toDp-GaN1DYA, reason: not valid java name */
|
|
default float m7483toDpGaN1DYA(long j) {
|
|
if (TextUnitType.m7590equalsimpl0(TextUnit.m7561getTypeUIouoOA(j), TextUnitType.INSTANCE.m7595getSpUIouoOA())) {
|
|
return Dp.m7368constructorimpl(getFontScale() * TextUnit.m7562getValueimpl(j));
|
|
}
|
|
Single$$ExternalSyntheticBUOutline0.m$2("Only Sp can convert to Px");
|
|
return 0.0f;
|
|
}
|
|
|
|
@Stable
|
|
/* renamed from: toSp-0xMU5do, reason: not valid java name */
|
|
default long m7484toSp0xMU5do(float f) {
|
|
return TextUnitKt.getSp(f / getFontScale());
|
|
}
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Metadata(k = 3, mv = {2, 0, 0}, xi = 48)
|
|
public static final class DefaultImpls {
|
|
@Stable
|
|
@Deprecated
|
|
/* renamed from: toDp-GaN1DYA, reason: not valid java name */
|
|
public static float m7485toDpGaN1DYA(@NotNull FontScalingLinear fontScalingLinear, long j) {
|
|
return FontScalingLinear.super.m7483toDpGaN1DYA(j);
|
|
}
|
|
|
|
@Stable
|
|
@Deprecated
|
|
/* renamed from: toSp-0xMU5do, reason: not valid java name */
|
|
public static long m7486toSp0xMU5do(@NotNull FontScalingLinear fontScalingLinear, float f) {
|
|
return FontScalingLinear.super.m7484toSp0xMU5do(f);
|
|
}
|
|
|
|
@Stable
|
|
public static /* synthetic */ void getFontScale$annotations() {
|
|
}
|
|
}
|
|
}
|