mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-15 18:37:17 +01:00
161 lines
9.7 KiB
Java
161 lines
9.7 KiB
Java
package androidx.compose.ui.layout;
|
|
|
|
import androidx.compose.runtime.Stable;
|
|
import kotlin.Metadata;
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Stable
|
|
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\bg\u0018\u0000 \t2\u00020\u0001:\u0001\tJ\u001f\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u00052\u0006\u0010\u0006\u001a\u00020\u0005H&¢\u0006\u0004\b\u0007\u0010\bø\u0001\u0000\u0082\u0002\u0006\n\u0004\b!0\u0001¨\u0006\nÀ\u0006\u0001"}, d2 = {"Landroidx/compose/ui/layout/ContentScale;", "", "computeScaleFactor", "Landroidx/compose/ui/layout/ScaleFactor;", "srcSize", "Landroidx/compose/ui/geometry/Size;", "dstSize", "computeScaleFactor-H7hwNQA", "(JJ)J", "Companion", "ui_release"}, k = 1, mv = {2, 0, 0}, xi = 48)
|
|
/* loaded from: classes13.dex */
|
|
public interface ContentScale {
|
|
|
|
/* renamed from: Companion, reason: from kotlin metadata */
|
|
@NotNull
|
|
public static final Companion INSTANCE = Companion.$$INSTANCE;
|
|
|
|
/* renamed from: computeScaleFactor-H7hwNQA, reason: not valid java name */
|
|
long mo6064computeScaleFactorH7hwNQA(long srcSize, long dstSize);
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Metadata(d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0010\n\u0002\u0018\u0002\n\u0002\b\u0007\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003R\u001c\u0010\u0004\u001a\u00020\u00058\u0006X\u0087\u0004¢\u0006\u000e\n\u0000\u0012\u0004\b\u0006\u0010\u0003\u001a\u0004\b\u0007\u0010\bR\u001c\u0010\t\u001a\u00020\u00058\u0006X\u0087\u0004¢\u0006\u000e\n\u0000\u0012\u0004\b\n\u0010\u0003\u001a\u0004\b\u000b\u0010\bR\u001c\u0010\f\u001a\u00020\u00058\u0006X\u0087\u0004¢\u0006\u000e\n\u0000\u0012\u0004\b\r\u0010\u0003\u001a\u0004\b\u000e\u0010\bR\u001c\u0010\u000f\u001a\u00020\u00058\u0006X\u0087\u0004¢\u0006\u000e\n\u0000\u0012\u0004\b\u0010\u0010\u0003\u001a\u0004\b\u0011\u0010\bR\u001c\u0010\u0012\u001a\u00020\u00058\u0006X\u0087\u0004¢\u0006\u000e\n\u0000\u0012\u0004\b\u0013\u0010\u0003\u001a\u0004\b\u0014\u0010\bR\u001c\u0010\u0015\u001a\u00020\u00168\u0006X\u0087\u0004¢\u0006\u000e\n\u0000\u0012\u0004\b\u0017\u0010\u0003\u001a\u0004\b\u0018\u0010\u0019R\u001c\u0010\u001a\u001a\u00020\u00058\u0006X\u0087\u0004¢\u0006\u000e\n\u0000\u0012\u0004\b\u001b\u0010\u0003\u001a\u0004\b\u001c\u0010\b¨\u0006\u001d"}, d2 = {"Landroidx/compose/ui/layout/ContentScale$Companion;", "", "<init>", "()V", "Crop", "Landroidx/compose/ui/layout/ContentScale;", "getCrop$annotations", "getCrop", "()Landroidx/compose/ui/layout/ContentScale;", "Fit", "getFit$annotations", "getFit", "FillHeight", "getFillHeight$annotations", "getFillHeight", "FillWidth", "getFillWidth$annotations", "getFillWidth", "Inside", "getInside$annotations", "getInside", "None", "Landroidx/compose/ui/layout/FixedScale;", "getNone$annotations", "getNone", "()Landroidx/compose/ui/layout/FixedScale;", "FillBounds", "getFillBounds$annotations", "getFillBounds", "ui_release"}, k = 1, mv = {2, 0, 0}, xi = 48)
|
|
public static final class Companion {
|
|
static final /* synthetic */ Companion $$INSTANCE = new Companion();
|
|
|
|
@NotNull
|
|
private static final ContentScale Crop = new ContentScale() { // from class: androidx.compose.ui.layout.ContentScale$Companion$Crop$1
|
|
@Override // androidx.compose.ui.layout.ContentScale
|
|
/* renamed from: computeScaleFactor-H7hwNQA */
|
|
public long mo6064computeScaleFactorH7hwNQA(long srcSize, long dstSize) {
|
|
float m6068computeFillMaxDimensioniLBOSCw;
|
|
m6068computeFillMaxDimensioniLBOSCw = ContentScaleKt.m6068computeFillMaxDimensioniLBOSCw(srcSize, dstSize);
|
|
return ScaleFactor.m6155constructorimpl((Float.floatToRawIntBits(m6068computeFillMaxDimensioniLBOSCw) << 32) | (Float.floatToRawIntBits(m6068computeFillMaxDimensioniLBOSCw) & 4294967295L));
|
|
}
|
|
};
|
|
|
|
@NotNull
|
|
private static final ContentScale Fit = new ContentScale() { // from class: androidx.compose.ui.layout.ContentScale$Companion$Fit$1
|
|
@Override // androidx.compose.ui.layout.ContentScale
|
|
/* renamed from: computeScaleFactor-H7hwNQA */
|
|
public long mo6064computeScaleFactorH7hwNQA(long srcSize, long dstSize) {
|
|
float m6069computeFillMinDimensioniLBOSCw;
|
|
m6069computeFillMinDimensioniLBOSCw = ContentScaleKt.m6069computeFillMinDimensioniLBOSCw(srcSize, dstSize);
|
|
return ScaleFactor.m6155constructorimpl((Float.floatToRawIntBits(m6069computeFillMinDimensioniLBOSCw) << 32) | (Float.floatToRawIntBits(m6069computeFillMinDimensioniLBOSCw) & 4294967295L));
|
|
}
|
|
};
|
|
|
|
@NotNull
|
|
private static final ContentScale FillHeight = new ContentScale() { // from class: androidx.compose.ui.layout.ContentScale$Companion$FillHeight$1
|
|
@Override // androidx.compose.ui.layout.ContentScale
|
|
/* renamed from: computeScaleFactor-H7hwNQA */
|
|
public long mo6064computeScaleFactorH7hwNQA(long srcSize, long dstSize) {
|
|
float intBitsToFloat = Float.intBitsToFloat((int) (dstSize & 4294967295L)) / Float.intBitsToFloat((int) (srcSize & 4294967295L));
|
|
return ScaleFactor.m6155constructorimpl((Float.floatToRawIntBits(intBitsToFloat) << 32) | (Float.floatToRawIntBits(intBitsToFloat) & 4294967295L));
|
|
}
|
|
};
|
|
|
|
@NotNull
|
|
private static final ContentScale FillWidth = new ContentScale() { // from class: androidx.compose.ui.layout.ContentScale$Companion$FillWidth$1
|
|
@Override // androidx.compose.ui.layout.ContentScale
|
|
/* renamed from: computeScaleFactor-H7hwNQA */
|
|
public long mo6064computeScaleFactorH7hwNQA(long srcSize, long dstSize) {
|
|
float intBitsToFloat = Float.intBitsToFloat((int) (dstSize >> 32)) / Float.intBitsToFloat((int) (srcSize >> 32));
|
|
return ScaleFactor.m6155constructorimpl((Float.floatToRawIntBits(intBitsToFloat) << 32) | (Float.floatToRawIntBits(intBitsToFloat) & 4294967295L));
|
|
}
|
|
};
|
|
|
|
@NotNull
|
|
private static final ContentScale Inside = new ContentScale() { // from class: androidx.compose.ui.layout.ContentScale$Companion$Inside$1
|
|
@Override // androidx.compose.ui.layout.ContentScale
|
|
/* renamed from: computeScaleFactor-H7hwNQA */
|
|
public long mo6064computeScaleFactorH7hwNQA(long srcSize, long dstSize) {
|
|
float m6069computeFillMinDimensioniLBOSCw;
|
|
if (Float.intBitsToFloat((int) (srcSize >> 32)) <= Float.intBitsToFloat((int) (dstSize >> 32)) && Float.intBitsToFloat((int) (srcSize & 4294967295L)) <= Float.intBitsToFloat((int) (dstSize & 4294967295L))) {
|
|
return ScaleFactor.m6155constructorimpl((Float.floatToRawIntBits(1.0f) << 32) | (Float.floatToRawIntBits(1.0f) & 4294967295L));
|
|
}
|
|
m6069computeFillMinDimensioniLBOSCw = ContentScaleKt.m6069computeFillMinDimensioniLBOSCw(srcSize, dstSize);
|
|
return ScaleFactor.m6155constructorimpl((Float.floatToRawIntBits(m6069computeFillMinDimensioniLBOSCw) << 32) | (Float.floatToRawIntBits(m6069computeFillMinDimensioniLBOSCw) & 4294967295L));
|
|
}
|
|
};
|
|
|
|
@NotNull
|
|
private static final FixedScale None = new FixedScale(1.0f);
|
|
|
|
@NotNull
|
|
private static final ContentScale FillBounds = new ContentScale() { // from class: androidx.compose.ui.layout.ContentScale$Companion$FillBounds$1
|
|
@Override // androidx.compose.ui.layout.ContentScale
|
|
/* renamed from: computeScaleFactor-H7hwNQA */
|
|
public long mo6064computeScaleFactorH7hwNQA(long srcSize, long dstSize) {
|
|
float intBitsToFloat = Float.intBitsToFloat((int) (dstSize >> 32)) / Float.intBitsToFloat((int) (srcSize >> 32));
|
|
float intBitsToFloat2 = Float.intBitsToFloat((int) (dstSize & 4294967295L)) / Float.intBitsToFloat((int) (srcSize & 4294967295L));
|
|
return ScaleFactor.m6155constructorimpl((Float.floatToRawIntBits(intBitsToFloat) << 32) | (Float.floatToRawIntBits(intBitsToFloat2) & 4294967295L));
|
|
}
|
|
};
|
|
|
|
private Companion() {
|
|
}
|
|
|
|
@NotNull
|
|
public final ContentScale getCrop() {
|
|
return Crop;
|
|
}
|
|
|
|
@NotNull
|
|
public final ContentScale getFillBounds() {
|
|
return FillBounds;
|
|
}
|
|
|
|
@NotNull
|
|
public final ContentScale getFillHeight() {
|
|
return FillHeight;
|
|
}
|
|
|
|
@NotNull
|
|
public final ContentScale getFillWidth() {
|
|
return FillWidth;
|
|
}
|
|
|
|
@NotNull
|
|
public final ContentScale getFit() {
|
|
return Fit;
|
|
}
|
|
|
|
@NotNull
|
|
public final ContentScale getInside() {
|
|
return Inside;
|
|
}
|
|
|
|
@NotNull
|
|
public final FixedScale getNone() {
|
|
return None;
|
|
}
|
|
|
|
@Stable
|
|
public static /* synthetic */ void getCrop$annotations() {
|
|
}
|
|
|
|
@Stable
|
|
public static /* synthetic */ void getFillBounds$annotations() {
|
|
}
|
|
|
|
@Stable
|
|
public static /* synthetic */ void getFillHeight$annotations() {
|
|
}
|
|
|
|
@Stable
|
|
public static /* synthetic */ void getFillWidth$annotations() {
|
|
}
|
|
|
|
@Stable
|
|
public static /* synthetic */ void getFit$annotations() {
|
|
}
|
|
|
|
@Stable
|
|
public static /* synthetic */ void getInside$annotations() {
|
|
}
|
|
|
|
@Stable
|
|
public static /* synthetic */ void getNone$annotations() {
|
|
}
|
|
}
|
|
}
|