Rabbit-R1/switch port/java/sources/androidx/compose/ui/unit/DpKt.java

227 lines
16 KiB
Java
Raw Permalink Normal View History

2024-05-21 16:08:36 -05:00
package androidx.compose.ui.unit;
import androidx.compose.ui.util.MathHelpersKt;
import androidx.media3.exoplayer.upstream.CmcdHeadersFactory;
import io.flutter.embedding.android.KeyboardMap;
import io.sentry.protocol.MetricSummary;
import io.sentry.protocol.ViewHierarchyNode;
import kotlin.Metadata;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.Intrinsics;
import kotlin.ranges.RangesKt;
/* compiled from: Dp.kt */
@Metadata(d1 = {"\u0000B\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\u0010\u0006\n\u0002\b\u0004\n\u0002\u0010\u0007\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u000b\n\u0002\b:\n\u0002\u0018\u0002\n\u0002\b\u000e\u001a%\u00105\u001a\u00020\u00012\u0006\u00106\u001a\u00020\b2\u0006\u00107\u001a\u00020\bH\u0007ø\u0001\u0001ø\u0001\u0000¢\u0006\u0004\b8\u00109\u001a%\u0010:\u001a\u00020\u00022\u0006\u00102\u001a\u00020\b2\u0006\u0010\u0014\u001a\u00020\bH\u0007ø\u0001\u0001ø\u0001\u0000¢\u0006\u0004\b;\u00109\u001a-\u0010<\u001a\u00020\b2\u0006\u0010=\u001a\u00020\b2\u0006\u0010>\u001a\u00020\b2\u0006\u0010?\u001a\u00020\u000eH\u0007ø\u0001\u0001ø\u0001\u0000¢\u0006\u0004\b@\u0010A\u001a-\u0010<\u001a\u00020\u00012\u0006\u0010=\u001a\u00020\u00012\u0006\u0010>\u001a\u00020\u00012\u0006\u0010?\u001a\u00020\u000eH\u0007ø\u0001\u0001ø\u0001\u0000¢\u0006\u0004\bB\u0010C\u001a-\u0010<\u001a\u00020\u00022\u0006\u0010=\u001a\u00020\u00022\u0006\u0010>\u001a\u00020\u00022\u0006\u0010?\u001a\u00020\u000eH\u0007ø\u0001\u0001ø\u0001\u0000¢\u0006\u0004\bD\u0010C\u001a&\u0010E\u001a\u00020\b2\u0006\u0010F\u001a\u00020\b2\u0006\u0010G\u001a\u00020\bH\u0087\\u0001\u0001ø\u0001\u0000¢\u0006\u0004\bH\u0010I\u001a&\u0010J\u001a\u00020\b2\u0006\u0010F\u001a\u00020\b2\u0006\u0010G\u001a\u00020\bH\u0087\\u0001\u0001ø\u0001\u0000¢\u0006\u0004\bK\u0010I\u001a\"\u0010L\u001a\u00020\b*\u00020\b2\u0006\u0010M\u001a\u00020\bH\u0087\\u0001\u0001ø\u0001\u0000¢\u0006\u0004\bN\u0010I\u001a\"\u0010O\u001a\u00020\b*\u00020\b2\u0006\u0010P\u001a\u00020\bH\u0087\\u0001\u0001ø\u0001\u0000¢\u0006\u0004\bQ\u0010I\u001a*\u0010R\u001a\u00020\b*\u00020\b2\u0006\u0010M\u001a\u00020\b2\u0006\u0010P\u001a\u00020\bH\u0087\\u0001\u0001ø\u0001\u0000¢\u0006\u0004\bS\u0010A\u001a+\u0010T\u001a\u00020\b*\u00020\b2\f\u0010U\u001a\b\u0012\u0004\u0012\u00020\b0VH\u0086\\u0001\u0002ø\u0001\u0001ø\u0001\u0000¢\u0006\u0004\bW\u0010X\u001a+\u0010T\u001a\u00020\u0001*\u00020\u00012\f\u0010U\u001a\b\u0012\u0004\u0012\u00020\u00010VH\u0086\\u0001\u0002ø\u0001\u0001ø\u0001\u0000¢\u0006\u0004\bY\u0010Z\u001a+\u0010T\u001a\u00020\u0002*\u00020\u00022\f\u0010U\u001a\b\u0012\u0004\u0012\u00020\u00020VH\u0086\\u0001\u0002ø\u0001\u0001ø\u0001\u0000¢\u0006\u0004\b[\u0010Z\u001a\"\u0010\\\u001a\u00020\b*\u00020\t2\u0006\u0010]\u001a\u00020\bH\u0087\\u0001\u0001ø\u0001\u0000¢\u0006\u0004\b^\u0010_\u001a\"\u0010\\\u001a\u00020\b*\u00020\u000e2\u0006\u0010]\u001a\u00020\bH\u0087\\u0001\u0001ø\u0001\u0000¢\u0006\u0004\b^\u0010I\u001a\"\u0010\\\u001a\u00020\u0002*\u00020\u000e2\u0006\u0010.\u001a\u00020\u0002H\u0087\\u0001\u0001ø\u0001\u0000¢\u0006\u0004\b`\u0010a\u001a\"\u0010\\\u001a\u00020\b*\u00020\u00112\u0006\u0010]\u001a\u00020\bH\u0087\\u0001\u0001ø\u0001\u0000¢\u0006\u0004\b^\u0010b\u001a\"\u0010\\\u001a\u00020\u0002*\u00020\u00112\u0006\u0010.\u001a\u00020\u0002H\u0087\\u0001\u0001ø\u0001\u0000¢\u0006\u0004\b`\u0010c\"!\u0010\u0000\u001a\u00020\u0001*\u00020\u00028FX\u0087\u0004ø\u0001\u0000¢\u0006\f\u0012\u0004\b\u0003\u0010\u0004\u001a\u0004\b\u0005\u0010\u0006\"\"\u0010\u0007\u001a\u00020\b*\u00020\t8Æ\u0002X\u0087\u0004ø\u0001\u0000¢\u0006\f\u0012\u0004\b\n\u0010\u000b\u001a\u0004\b\f\u0010\r\"\"\u0010\u0007\u001a\u00020\b*\u00020\u000e8Æ\u0002X\u0087\u0004ø\u0001\u0000¢\u0006\f\u0012\u0004\b\n\u0010\u000f\u001a\u0004\b\f\u0010\u0010\"\"\u0010\u0007\u001a\u00020\b*\u00020\u00118Æ\u0002X\u0087\u0004ø\u0001\u0000¢\u0006\f\u0012\u0004\b\n\u0010\u0012\u001a\u0004\b\f\u0010\u0013\"\"\u0010\u0014\u001a\u00020\b*\u00020\u00158Æ\u0002X\u0087\u0004ø\u0001\u0000¢\u0006\f\u0012\u0004\b\u0016\u0010\u0017\u001a\u0004\b\u0018\u0010\u0019\"\"\u0010\u001a\u001a\u00020\u001b*\u00020\b8Æ\u0002X\u0087\u0004ø\u0001\u0000¢\u0006\f\u0012\u0004\b\u001c\u0010\u000f\u001a\u0004\b\u001d\u0010\u001e\"\"\u0010\u001f\u001a\u00020\u001b*\u00020\b8Æ\u0002X\u0087\u0004ø\u0001\u0000¢\u0006\f\u0012\u0004\b \u0010
/* loaded from: classes.dex */
public final class DpKt {
/* renamed from: getCenter-EaSLcWc$annotations, reason: not valid java name */
public static /* synthetic */ void m4910getCenterEaSLcWc$annotations(long j) {
}
public static /* synthetic */ void getDp$annotations(double d) {
}
public static /* synthetic */ void getDp$annotations(float f) {
}
public static /* synthetic */ void getDp$annotations(int i) {
}
public static /* synthetic */ void getHeight$annotations(DpRect dpRect) {
}
public static /* synthetic */ void getSize$annotations(DpRect dpRect) {
}
public static /* synthetic */ void getWidth$annotations(DpRect dpRect) {
}
/* renamed from: isFinite-0680j_4, reason: not valid java name */
public static final boolean m4911isFinite0680j_4(float f) {
return !(f == Float.POSITIVE_INFINITY);
}
/* renamed from: isFinite-0680j_4$annotations, reason: not valid java name */
public static /* synthetic */ void m4912isFinite0680j_4$annotations(float f) {
}
/* renamed from: isSpecified-0680j_4$annotations, reason: not valid java name */
public static /* synthetic */ void m4914isSpecified0680j_4$annotations(float f) {
}
/* renamed from: isSpecified-EaSLcWc$annotations, reason: not valid java name */
public static /* synthetic */ void m4916isSpecifiedEaSLcWc$annotations(long j) {
}
/* renamed from: isSpecified-jo-Fl9I$annotations, reason: not valid java name */
public static /* synthetic */ void m4918isSpecifiedjoFl9I$annotations(long j) {
}
/* renamed from: isUnspecified-0680j_4$annotations, reason: not valid java name */
public static /* synthetic */ void m4920isUnspecified0680j_4$annotations(float f) {
}
/* renamed from: isUnspecified-EaSLcWc$annotations, reason: not valid java name */
public static /* synthetic */ void m4922isUnspecifiedEaSLcWc$annotations(long j) {
}
/* renamed from: isUnspecified-jo-Fl9I$annotations, reason: not valid java name */
public static /* synthetic */ void m4924isUnspecifiedjoFl9I$annotations(long j) {
}
/* renamed from: isSpecified-0680j_4, reason: not valid java name */
public static final boolean m4913isSpecified0680j_4(float f) {
return !Float.isNaN(f);
}
/* renamed from: isUnspecified-0680j_4, reason: not valid java name */
public static final boolean m4919isUnspecified0680j_4(float f) {
return Float.isNaN(f);
}
public static final float getDp(int i) {
return Dp.m4883constructorimpl(i);
}
public static final float getDp(double d) {
return Dp.m4883constructorimpl((float) d);
}
public static final float getDp(float f) {
return Dp.m4883constructorimpl(f);
}
/* renamed from: times-3ABfNKs, reason: not valid java name */
public static final float m4934times3ABfNKs(float f, float f2) {
return Dp.m4883constructorimpl(f * f2);
}
/* renamed from: times-3ABfNKs, reason: not valid java name */
public static final float m4933times3ABfNKs(double d, float f) {
return Dp.m4883constructorimpl(((float) d) * f);
}
/* renamed from: times-3ABfNKs, reason: not valid java name */
public static final float m4935times3ABfNKs(int i, float f) {
return Dp.m4883constructorimpl(i * f);
}
/* renamed from: min-YgX7TsA, reason: not valid java name */
public static final float m4929minYgX7TsA(float f, float f2) {
return Dp.m4883constructorimpl(Math.min(f, f2));
}
/* renamed from: max-YgX7TsA, reason: not valid java name */
public static final float m4928maxYgX7TsA(float f, float f2) {
return Dp.m4883constructorimpl(Math.max(f, f2));
}
/* renamed from: coerceIn-2z7ARbQ, reason: not valid java name */
public static final float m4908coerceIn2z7ARbQ(float f, float f2, float f3) {
return Dp.m4883constructorimpl(RangesKt.coerceIn(f, f2, f3));
}
/* renamed from: coerceAtLeast-YgX7TsA, reason: not valid java name */
public static final float m4906coerceAtLeastYgX7TsA(float f, float f2) {
return Dp.m4883constructorimpl(RangesKt.coerceAtLeast(f, f2));
}
/* renamed from: coerceAtMost-YgX7TsA, reason: not valid java name */
public static final float m4907coerceAtMostYgX7TsA(float f, float f2) {
return Dp.m4883constructorimpl(RangesKt.coerceAtMost(f, f2));
}
/* renamed from: lerp-Md-fbLM, reason: not valid java name */
public static final float m4926lerpMdfbLM(float f, float f2, float f3) {
return Dp.m4883constructorimpl(MathHelpersKt.lerp(f, f2, f3));
}
/* renamed from: isSpecified-jo-Fl9I, reason: not valid java name */
public static final boolean m4917isSpecifiedjoFl9I(long j) {
return j != DpOffset.INSTANCE.m4953getUnspecifiedRKDOV3M();
}
/* renamed from: isUnspecified-jo-Fl9I, reason: not valid java name */
public static final boolean m4923isUnspecifiedjoFl9I(long j) {
return j == DpOffset.INSTANCE.m4953getUnspecifiedRKDOV3M();
}
/* renamed from: lerp-xhh869w, reason: not valid java name */
public static final long m4927lerpxhh869w(long j, long j2, float f) {
return m4904DpOffsetYgX7TsA(m4926lerpMdfbLM(DpOffset.m4944getXD9Ej5fM(j), DpOffset.m4944getXD9Ej5fM(j2), f), m4926lerpMdfbLM(DpOffset.m4946getYD9Ej5fM(j), DpOffset.m4946getYD9Ej5fM(j2), f));
}
/* renamed from: isSpecified-EaSLcWc, reason: not valid java name */
public static final boolean m4915isSpecifiedEaSLcWc(long j) {
return j != DpSize.INSTANCE.m4990getUnspecifiedMYxV2XQ();
}
/* renamed from: isUnspecified-EaSLcWc, reason: not valid java name */
public static final boolean m4921isUnspecifiedEaSLcWc(long j) {
return j == DpSize.INSTANCE.m4990getUnspecifiedMYxV2XQ();
}
/* renamed from: getCenter-EaSLcWc, reason: not valid java name */
public static final long m4909getCenterEaSLcWc(long j) {
return m4904DpOffsetYgX7TsA(Dp.m4883constructorimpl(DpSize.m4981getWidthD9Ej5fM(j) / 2.0f), Dp.m4883constructorimpl(DpSize.m4979getHeightD9Ej5fM(j) / 2.0f));
}
/* renamed from: times-6HolHcs, reason: not valid java name */
public static final long m4937times6HolHcs(int i, long j) {
return DpSize.m4987timesGh9hcWk(j, i);
}
/* renamed from: times-6HolHcs, reason: not valid java name */
public static final long m4936times6HolHcs(float f, long j) {
return DpSize.m4986timesGh9hcWk(j, f);
}
/* renamed from: lerp-IDex15A, reason: not valid java name */
public static final long m4925lerpIDex15A(long j, long j2, float f) {
return m4905DpSizeYgX7TsA(m4926lerpMdfbLM(DpSize.m4981getWidthD9Ej5fM(j), DpSize.m4981getWidthD9Ej5fM(j2), f), m4926lerpMdfbLM(DpSize.m4979getHeightD9Ej5fM(j), DpSize.m4979getHeightD9Ej5fM(j2), f));
}
public static final float getWidth(DpRect dpRect) {
Intrinsics.checkNotNullParameter(dpRect, "<this>");
return Dp.m4883constructorimpl(dpRect.m4967getRightD9Ej5fM() - dpRect.m4966getLeftD9Ej5fM());
}
public static final float getHeight(DpRect dpRect) {
Intrinsics.checkNotNullParameter(dpRect, "<this>");
return Dp.m4883constructorimpl(dpRect.m4965getBottomD9Ej5fM() - dpRect.m4968getTopD9Ej5fM());
}
/* renamed from: takeOrElse-D5KLDUw, reason: not valid java name */
public static final float m4930takeOrElseD5KLDUw(float f, Function0<Dp> block) {
Intrinsics.checkNotNullParameter(block, "block");
return Float.isNaN(f) ^ true ? f : block.invoke().m4897unboximpl();
}
/* renamed from: DpOffset-YgX7TsA, reason: not valid java name */
public static final long m4904DpOffsetYgX7TsA(float f, float f2) {
return DpOffset.m4939constructorimpl((Float.floatToIntBits(f2) & KeyboardMap.kValueMask) | (Float.floatToIntBits(f) << 32));
}
/* renamed from: takeOrElse-gVKV90s, reason: not valid java name */
public static final long m4931takeOrElsegVKV90s(long j, Function0<DpOffset> block) {
Intrinsics.checkNotNullParameter(block, "block");
return j != DpOffset.INSTANCE.m4953getUnspecifiedRKDOV3M() ? j : block.invoke().getPackedValue();
}
/* renamed from: DpSize-YgX7TsA, reason: not valid java name */
public static final long m4905DpSizeYgX7TsA(float f, float f2) {
return DpSize.m4972constructorimpl((Float.floatToIntBits(f2) & KeyboardMap.kValueMask) | (Float.floatToIntBits(f) << 32));
}
/* renamed from: takeOrElse-itqla9I, reason: not valid java name */
public static final long m4932takeOrElseitqla9I(long j, Function0<DpSize> block) {
Intrinsics.checkNotNullParameter(block, "block");
return j != DpSize.INSTANCE.m4990getUnspecifiedMYxV2XQ() ? j : block.invoke().getPackedValue();
}
public static final long getSize(DpRect dpRect) {
Intrinsics.checkNotNullParameter(dpRect, "<this>");
return m4905DpSizeYgX7TsA(Dp.m4883constructorimpl(dpRect.m4967getRightD9Ej5fM() - dpRect.m4966getLeftD9Ej5fM()), Dp.m4883constructorimpl(dpRect.m4965getBottomD9Ej5fM() - dpRect.m4968getTopD9Ej5fM()));
}
}