Rabbit-R1/switch port/java/sources/androidx/compose/ui/layout/DefaultIntrinsicMeasurable.java
2024-05-21 17:08:36 -04:00

74 lines
5.3 KiB
Java

package androidx.compose.ui.layout;
import androidx.compose.ui.unit.Constraints;
import io.sentry.protocol.ViewHierarchyNode;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
/* compiled from: Layout.kt */
@Metadata(d1 = {"\u0000<\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\b\u0000\u0018\u00002\u00020\u0001B\u001d\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007¢\u0006\u0002\u0010\bJ\u0010\u0010\u000f\u001a\u00020\u00102\u0006\u0010\u0011\u001a\u00020\u0010H\u0016J\u0010\u0010\u0012\u001a\u00020\u00102\u0006\u0010\u0013\u001a\u00020\u0010H\u0016J\u001d\u0010\u0014\u001a\u00020\u00152\u0006\u0010\u0016\u001a\u00020\u0017H\u0016ø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\b\u0018\u0010\u0019J\u0010\u0010\u001a\u001a\u00020\u00102\u0006\u0010\u0011\u001a\u00020\u0010H\u0016J\u0010\u0010\u001b\u001a\u00020\u00102\u0006\u0010\u0013\u001a\u00020\u0010H\u0016R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\t\u0010\nR\u000e\u0010\u0004\u001a\u00020\u0005X\u0082\u0004¢\u0006\u0002\n\u0000R\u0016\u0010\u000b\u001a\u0004\u0018\u00010\f8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\r\u0010\u000eR\u000e\u0010\u0006\u001a\u00020\u0007X\u0082\u0004¢\u0006\u0002\n\u0000\u0082\u0002\u000b\n\u0005\\u001e0\u0001\n\u0002\b\u0019¨\u0006\u001c"}, d2 = {"Landroidx/compose/ui/layout/DefaultIntrinsicMeasurable;", "Landroidx/compose/ui/layout/Measurable;", "measurable", "Landroidx/compose/ui/layout/IntrinsicMeasurable;", "minMax", "Landroidx/compose/ui/layout/IntrinsicMinMax;", "widthHeight", "Landroidx/compose/ui/layout/IntrinsicWidthHeight;", "(Landroidx/compose/ui/layout/IntrinsicMeasurable;Landroidx/compose/ui/layout/IntrinsicMinMax;Landroidx/compose/ui/layout/IntrinsicWidthHeight;)V", "getMeasurable", "()Landroidx/compose/ui/layout/IntrinsicMeasurable;", "parentData", "", "getParentData", "()Ljava/lang/Object;", "maxIntrinsicHeight", "", ViewHierarchyNode.JsonKeys.WIDTH, "maxIntrinsicWidth", ViewHierarchyNode.JsonKeys.HEIGHT, "measure", "Landroidx/compose/ui/layout/Placeable;", "constraints", "Landroidx/compose/ui/unit/Constraints;", "measure-BRTryo0", "(J)Landroidx/compose/ui/layout/Placeable;", "minIntrinsicHeight", "minIntrinsicWidth", "ui_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
/* loaded from: classes.dex */
public final class DefaultIntrinsicMeasurable implements Measurable {
private final IntrinsicMeasurable measurable;
private final IntrinsicMinMax minMax;
private final IntrinsicWidthHeight widthHeight;
public final IntrinsicMeasurable getMeasurable() {
return this.measurable;
}
public DefaultIntrinsicMeasurable(IntrinsicMeasurable measurable, IntrinsicMinMax minMax, IntrinsicWidthHeight widthHeight) {
Intrinsics.checkNotNullParameter(measurable, "measurable");
Intrinsics.checkNotNullParameter(minMax, "minMax");
Intrinsics.checkNotNullParameter(widthHeight, "widthHeight");
this.measurable = measurable;
this.minMax = minMax;
this.widthHeight = widthHeight;
}
@Override // androidx.compose.ui.layout.IntrinsicMeasurable
public Object getParentData() {
return this.measurable.getParentData();
}
@Override // androidx.compose.ui.layout.Measurable
/* renamed from: measure-BRTryo0, reason: not valid java name */
public Placeable mo3876measureBRTryo0(long constraints) {
int minIntrinsicHeight;
int minIntrinsicWidth;
if (this.widthHeight == IntrinsicWidthHeight.Width) {
if (this.minMax == IntrinsicMinMax.Max) {
minIntrinsicWidth = this.measurable.maxIntrinsicWidth(Constraints.m4838getMaxHeightimpl(constraints));
} else {
minIntrinsicWidth = this.measurable.minIntrinsicWidth(Constraints.m4838getMaxHeightimpl(constraints));
}
return new FixedSizeIntrinsicsPlaceable(minIntrinsicWidth, Constraints.m4838getMaxHeightimpl(constraints));
}
if (this.minMax == IntrinsicMinMax.Max) {
minIntrinsicHeight = this.measurable.maxIntrinsicHeight(Constraints.m4839getMaxWidthimpl(constraints));
} else {
minIntrinsicHeight = this.measurable.minIntrinsicHeight(Constraints.m4839getMaxWidthimpl(constraints));
}
return new FixedSizeIntrinsicsPlaceable(Constraints.m4839getMaxWidthimpl(constraints), minIntrinsicHeight);
}
@Override // androidx.compose.ui.layout.IntrinsicMeasurable
public int minIntrinsicWidth(int height) {
return this.measurable.minIntrinsicWidth(height);
}
@Override // androidx.compose.ui.layout.IntrinsicMeasurable
public int maxIntrinsicWidth(int height) {
return this.measurable.maxIntrinsicWidth(height);
}
@Override // androidx.compose.ui.layout.IntrinsicMeasurable
public int minIntrinsicHeight(int width) {
return this.measurable.minIntrinsicHeight(width);
}
@Override // androidx.compose.ui.layout.IntrinsicMeasurable
public int maxIntrinsicHeight(int width) {
return this.measurable.maxIntrinsicHeight(width);
}
}