mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-25 08:32:38 -06:00
180 lines
16 KiB
Java
180 lines
16 KiB
Java
package androidx.compose.ui.node;
|
|
|
|
import androidx.compose.ui.graphics.GraphicsLayerScope;
|
|
import androidx.compose.ui.layout.AlignmentLine;
|
|
import androidx.compose.ui.layout.IntrinsicMeasurable;
|
|
import androidx.compose.ui.layout.IntrinsicMeasureScope;
|
|
import androidx.compose.ui.layout.IntrinsicsMeasureScope;
|
|
import androidx.compose.ui.layout.Measurable;
|
|
import androidx.compose.ui.layout.MeasureResult;
|
|
import androidx.compose.ui.layout.MeasureScope;
|
|
import androidx.compose.ui.layout.Placeable;
|
|
import androidx.compose.ui.unit.Constraints;
|
|
import androidx.compose.ui.unit.ConstraintsKt;
|
|
import androidx.compose.ui.unit.IntSizeKt;
|
|
import androidx.media3.exoplayer.upstream.CmcdHeadersFactory;
|
|
import com.google.common.net.HttpHeaders;
|
|
import io.sentry.protocol.ViewHierarchyNode;
|
|
import kotlin.Metadata;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* compiled from: LayoutModifierNode.kt */
|
|
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u000f\bÀ\u0002\u0018\u00002\u00020\u0001:\u0005\u0014\u0015\u0016\u0017\u0018B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J-\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00020\u0004H\u0000¢\u0006\u0002\b\fJ-\u0010\r\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\n2\u0006\u0010\u000e\u001a\u00020\u0004H\u0000¢\u0006\u0002\b\u000fJ-\u0010\u0010\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00020\u0004H\u0000¢\u0006\u0002\b\u0011J-\u0010\u0012\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\n2\u0006\u0010\u000e\u001a\u00020\u0004H\u0000¢\u0006\u0002\b\u0013¨\u0006\u0019"}, d2 = {"Landroidx/compose/ui/node/NodeMeasuringIntrinsics;", "", "()V", "maxHeight", "", "measureBlock", "Landroidx/compose/ui/node/NodeMeasuringIntrinsics$MeasureBlock;", "intrinsicMeasureScope", "Landroidx/compose/ui/layout/IntrinsicMeasureScope;", "intrinsicMeasurable", "Landroidx/compose/ui/layout/IntrinsicMeasurable;", "w", "maxHeight$ui_release", "maxWidth", CmcdHeadersFactory.STREAMING_FORMAT_HLS, "maxWidth$ui_release", "minHeight", "minHeight$ui_release", "minWidth", "minWidth$ui_release", "DefaultIntrinsicMeasurable", "EmptyPlaceable", "IntrinsicMinMax", "IntrinsicWidthHeight", "MeasureBlock", "ui_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
public final class NodeMeasuringIntrinsics {
|
|
public static final NodeMeasuringIntrinsics INSTANCE = new NodeMeasuringIntrinsics();
|
|
|
|
/* compiled from: LayoutModifierNode.kt */
|
|
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0002\b\u0004\b\u0082\u0001\u0018\u00002\b\u0012\u0004\u0012\u00020\u00000\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002j\u0002\b\u0003j\u0002\b\u0004¨\u0006\u0005"}, d2 = {"Landroidx/compose/ui/node/NodeMeasuringIntrinsics$IntrinsicMinMax;", "", "(Ljava/lang/String;I)V", "Min", "Max", "ui_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
private enum IntrinsicMinMax {
|
|
Min,
|
|
Max
|
|
}
|
|
|
|
/* compiled from: LayoutModifierNode.kt */
|
|
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0002\b\u0004\b\u0082\u0001\u0018\u00002\b\u0012\u0004\u0012\u00020\u00000\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002j\u0002\b\u0003j\u0002\b\u0004¨\u0006\u0005"}, d2 = {"Landroidx/compose/ui/node/NodeMeasuringIntrinsics$IntrinsicWidthHeight;", "", "(Ljava/lang/String;I)V", HttpHeaders.WIDTH, "Height", "ui_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
private enum IntrinsicWidthHeight {
|
|
Width,
|
|
Height
|
|
}
|
|
|
|
/* compiled from: LayoutModifierNode.kt */
|
|
@Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\bà\u0080\u0001\u0018\u00002\u00020\u0001J)\u0010\u0002\u001a\u00020\u0003*\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\bH&ø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\b\t\u0010\nø\u0001\u0002\u0082\u0002\u0011\n\u0005\b¡\u001e0\u0001\n\u0002\b\u0019\n\u0004\b!0\u0001¨\u0006\u000bÀ\u0006\u0001"}, d2 = {"Landroidx/compose/ui/node/NodeMeasuringIntrinsics$MeasureBlock;", "", "measure", "Landroidx/compose/ui/layout/MeasureResult;", "Landroidx/compose/ui/layout/MeasureScope;", "measurable", "Landroidx/compose/ui/layout/Measurable;", "constraints", "Landroidx/compose/ui/unit/Constraints;", "measure-3p2s80s", "(Landroidx/compose/ui/layout/MeasureScope;Landroidx/compose/ui/layout/Measurable;J)Landroidx/compose/ui/layout/MeasureResult;", "ui_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
public interface MeasureBlock {
|
|
/* renamed from: measure-3p2s80s */
|
|
MeasureResult mo3881measure3p2s80s(MeasureScope measureScope, Measurable measurable, long j);
|
|
}
|
|
|
|
private NodeMeasuringIntrinsics() {
|
|
}
|
|
|
|
public final int minWidth$ui_release(MeasureBlock measureBlock, IntrinsicMeasureScope intrinsicMeasureScope, IntrinsicMeasurable intrinsicMeasurable, int h) {
|
|
Intrinsics.checkNotNullParameter(measureBlock, "measureBlock");
|
|
Intrinsics.checkNotNullParameter(intrinsicMeasureScope, "intrinsicMeasureScope");
|
|
Intrinsics.checkNotNullParameter(intrinsicMeasurable, "intrinsicMeasurable");
|
|
return measureBlock.mo3881measure3p2s80s(new IntrinsicsMeasureScope(intrinsicMeasureScope, intrinsicMeasureScope.getLayoutDirection()), new DefaultIntrinsicMeasurable(intrinsicMeasurable, IntrinsicMinMax.Min, IntrinsicWidthHeight.Width), ConstraintsKt.Constraints$default(0, 0, 0, h, 7, null)).getWidth();
|
|
}
|
|
|
|
public final int minHeight$ui_release(MeasureBlock measureBlock, IntrinsicMeasureScope intrinsicMeasureScope, IntrinsicMeasurable intrinsicMeasurable, int w) {
|
|
Intrinsics.checkNotNullParameter(measureBlock, "measureBlock");
|
|
Intrinsics.checkNotNullParameter(intrinsicMeasureScope, "intrinsicMeasureScope");
|
|
Intrinsics.checkNotNullParameter(intrinsicMeasurable, "intrinsicMeasurable");
|
|
return measureBlock.mo3881measure3p2s80s(new IntrinsicsMeasureScope(intrinsicMeasureScope, intrinsicMeasureScope.getLayoutDirection()), new DefaultIntrinsicMeasurable(intrinsicMeasurable, IntrinsicMinMax.Min, IntrinsicWidthHeight.Height), ConstraintsKt.Constraints$default(0, w, 0, 0, 13, null)).getHeight();
|
|
}
|
|
|
|
public final int maxWidth$ui_release(MeasureBlock measureBlock, IntrinsicMeasureScope intrinsicMeasureScope, IntrinsicMeasurable intrinsicMeasurable, int h) {
|
|
Intrinsics.checkNotNullParameter(measureBlock, "measureBlock");
|
|
Intrinsics.checkNotNullParameter(intrinsicMeasureScope, "intrinsicMeasureScope");
|
|
Intrinsics.checkNotNullParameter(intrinsicMeasurable, "intrinsicMeasurable");
|
|
return measureBlock.mo3881measure3p2s80s(new IntrinsicsMeasureScope(intrinsicMeasureScope, intrinsicMeasureScope.getLayoutDirection()), new DefaultIntrinsicMeasurable(intrinsicMeasurable, IntrinsicMinMax.Max, IntrinsicWidthHeight.Width), ConstraintsKt.Constraints$default(0, 0, 0, h, 7, null)).getWidth();
|
|
}
|
|
|
|
public final int maxHeight$ui_release(MeasureBlock measureBlock, IntrinsicMeasureScope intrinsicMeasureScope, IntrinsicMeasurable intrinsicMeasurable, int w) {
|
|
Intrinsics.checkNotNullParameter(measureBlock, "measureBlock");
|
|
Intrinsics.checkNotNullParameter(intrinsicMeasureScope, "intrinsicMeasureScope");
|
|
Intrinsics.checkNotNullParameter(intrinsicMeasurable, "intrinsicMeasurable");
|
|
return measureBlock.mo3881measure3p2s80s(new IntrinsicsMeasureScope(intrinsicMeasureScope, intrinsicMeasureScope.getLayoutDirection()), new DefaultIntrinsicMeasurable(intrinsicMeasurable, IntrinsicMinMax.Max, IntrinsicWidthHeight.Height), ConstraintsKt.Constraints$default(0, w, 0, 0, 13, null)).getHeight();
|
|
}
|
|
|
|
/* compiled from: LayoutModifierNode.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\u0006\n\u0002\u0010\u0000\n\u0002\b\u0005\n\u0002\u0010\b\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\b\u0002\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\u0013\u001a\u00020\u00142\u0006\u0010\u0015\u001a\u00020\u0014H\u0016J\u0010\u0010\u0016\u001a\u00020\u00142\u0006\u0010\u0017\u001a\u00020\u0014H\u0016J\u001d\u0010\u0018\u001a\u00020\u00192\u0006\u0010\u001a\u001a\u00020\u001bH\u0016ø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\b\u001c\u0010\u001dJ\u0010\u0010\u001e\u001a\u00020\u00142\u0006\u0010\u0015\u001a\u00020\u0014H\u0016J\u0010\u0010\u001f\u001a\u00020\u00142\u0006\u0010\u0017\u001a\u00020\u0014H\u0016R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\t\u0010\nR\u0011\u0010\u0004\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\fR\u0016\u0010\r\u001a\u0004\u0018\u00010\u000e8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u000f\u0010\u0010R\u0011\u0010\u0006\u001a\u00020\u0007¢\u0006\b\n\u0000\u001a\u0004\b\u0011\u0010\u0012\u0082\u0002\u000b\n\u0005\b¡\u001e0\u0001\n\u0002\b\u0019¨\u0006 "}, d2 = {"Landroidx/compose/ui/node/NodeMeasuringIntrinsics$DefaultIntrinsicMeasurable;", "Landroidx/compose/ui/layout/Measurable;", "measurable", "Landroidx/compose/ui/layout/IntrinsicMeasurable;", "minMax", "Landroidx/compose/ui/node/NodeMeasuringIntrinsics$IntrinsicMinMax;", "widthHeight", "Landroidx/compose/ui/node/NodeMeasuringIntrinsics$IntrinsicWidthHeight;", "(Landroidx/compose/ui/layout/IntrinsicMeasurable;Landroidx/compose/ui/node/NodeMeasuringIntrinsics$IntrinsicMinMax;Landroidx/compose/ui/node/NodeMeasuringIntrinsics$IntrinsicWidthHeight;)V", "getMeasurable", "()Landroidx/compose/ui/layout/IntrinsicMeasurable;", "getMinMax", "()Landroidx/compose/ui/node/NodeMeasuringIntrinsics$IntrinsicMinMax;", "parentData", "", "getParentData", "()Ljava/lang/Object;", "getWidthHeight", "()Landroidx/compose/ui/node/NodeMeasuringIntrinsics$IntrinsicWidthHeight;", "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 */
|
|
private static 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 final IntrinsicMinMax getMinMax() {
|
|
return this.minMax;
|
|
}
|
|
|
|
public final IntrinsicWidthHeight getWidthHeight() {
|
|
return this.widthHeight;
|
|
}
|
|
|
|
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 */
|
|
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 EmptyPlaceable(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 EmptyPlaceable(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);
|
|
}
|
|
}
|
|
|
|
/* compiled from: LayoutModifierNode.kt */
|
|
@Metadata(d1 = {"\u0000:\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0007\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0002\u0018\u00002\u00020\u0001B\u0015\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003¢\u0006\u0002\u0010\u0005J\u0011\u0010\u0006\u001a\u00020\u00032\u0006\u0010\u0007\u001a\u00020\bH\u0096\u0002J@\u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00020\f2\u0006\u0010\r\u001a\u00020\u000e2\u0019\u0010\u000f\u001a\u0015\u0012\u0004\u0012\u00020\u0011\u0012\u0004\u0012\u00020\n\u0018\u00010\u0010¢\u0006\u0002\b\u0012H\u0014ø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\b\u0013\u0010\u0014\u0082\u0002\u000b\n\u0005\b¡\u001e0\u0001\n\u0002\b\u0019¨\u0006\u0015"}, d2 = {"Landroidx/compose/ui/node/NodeMeasuringIntrinsics$EmptyPlaceable;", "Landroidx/compose/ui/layout/Placeable;", ViewHierarchyNode.JsonKeys.WIDTH, "", ViewHierarchyNode.JsonKeys.HEIGHT, "(II)V", "get", "alignmentLine", "Landroidx/compose/ui/layout/AlignmentLine;", "placeAt", "", "position", "Landroidx/compose/ui/unit/IntOffset;", "zIndex", "", "layerBlock", "Lkotlin/Function1;", "Landroidx/compose/ui/graphics/GraphicsLayerScope;", "Lkotlin/ExtensionFunctionType;", "placeAt-f8xVGno", "(JFLkotlin/jvm/functions/Function1;)V", "ui_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
private static final class EmptyPlaceable extends Placeable {
|
|
@Override // androidx.compose.ui.layout.Measured
|
|
public int get(AlignmentLine alignmentLine) {
|
|
Intrinsics.checkNotNullParameter(alignmentLine, "alignmentLine");
|
|
return Integer.MIN_VALUE;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
@Override // androidx.compose.ui.layout.Placeable
|
|
/* renamed from: placeAt-f8xVGno */
|
|
public void mo3877placeAtf8xVGno(long position, float zIndex, Function1<? super GraphicsLayerScope, Unit> layerBlock) {
|
|
}
|
|
|
|
public EmptyPlaceable(int i, int i2) {
|
|
m3931setMeasuredSizeozmzZPI(IntSizeKt.IntSize(i, i2));
|
|
}
|
|
}
|
|
}
|