alexandroid/decompiled/jadx/sources/androidx/compose/ui/geometry/Offset.java
KaKi87 a47fad5135 📦 Add decompiled Alexa 2.2.730155.0 (jadx, apktool, Hermes strings)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:04:16 +01:00

242 lines
15 KiB
Java

package androidx.compose.ui.geometry;
import androidx.compose.runtime.Immutable;
import androidx.compose.runtime.Stable;
import com.amazon.alexa.redesign.view.container.CardStudioAgentSpaceMetrics;
import kotlin.Metadata;
import kotlin.jvm.JvmInline;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.SourceDebugExtension;
import org.jetbrains.annotations.NotNull;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
@Metadata(d1 = {"\u00002\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\t\n\u0002\b\u0005\n\u0002\u0010\u0007\n\u0002\b\u000f\n\u0002\u0010\u000b\n\u0002\b\u0017\n\u0002\u0010\u000e\n\u0002\b\u0004\n\u0002\u0010\b\n\u0002\b\u0002\b\u0087@\u0018\u0000 72\u00020\u0001:\u00017B\u000f\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0004\b\u0004\u0010\u0005J\u0010\u0010\u0011\u001a\u00020\tH\u0087\n¢\u0006\u0004\b\u0012\u0010\rJ\u0010\u0010\u0013\u001a\u00020\tH\u0087\n¢\u0006\u0004\b\u0014\u0010\rJ!\u0010\u0015\u001a\u00020\u00002\b\b\u0002\u0010\b\u001a\u00020\t2\b\b\u0002\u0010\u000e\u001a\u00020\t¢\u0006\u0004\b\u0016\u0010\u0017J\u0010\u0010\u0018\u001a\u00020\u0019H\u0087\b¢\u0006\u0004\b\u001a\u0010\u001bJ\u000f\u0010\u001c\u001a\u00020\tH\u0007¢\u0006\u0004\b\u001d\u0010\rJ\u000f\u0010\u001e\u001a\u00020\tH\u0007¢\u0006\u0004\b\u001f\u0010\rJ\u0010\u0010 \u001a\u00020\u0000H\u0087\n¢\u0006\u0004\b!\u0010\u0005J\u0018\u0010\"\u001a\u00020\u00002\u0006\u0010#\u001a\u00020\u0000H\u0087\u0002¢\u0006\u0004\b$\u0010%J\u0018\u0010&\u001a\u00020\u00002\u0006\u0010#\u001a\u00020\u0000H\u0087\u0002¢\u0006\u0004\b'\u0010%J\u0018\u0010(\u001a\u00020\u00002\u0006\u0010)\u001a\u00020\tH\u0087\u0002¢\u0006\u0004\b*\u0010+J\u0018\u0010,\u001a\u00020\u00002\u0006\u0010)\u001a\u00020\tH\u0087\u0002¢\u0006\u0004\b-\u0010+J\u0018\u0010.\u001a\u00020\u00002\u0006\u0010)\u001a\u00020\tH\u0087\u0002¢\u0006\u0004\b/\u0010+J\u000f\u00100\u001a\u000201H\u0016¢\u0006\u0004\b2\u00103J\u0013\u00104\u001a\u00020\u00192\b\u0010#\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u00105\u001a\u000206HÖ\u0001R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0006\u0010\u0007R\u001b\u0010\b\u001a\u00020\t8Æ\u0002X\u0087\u0004¢\u0006\f\u0012\u0004\b\n\u0010\u000b\u001a\u0004\b\f\u0010\rR\u001b\u0010\u000e\u001a\u00020\t8Æ\u0002X\u0087\u0004¢\u0006\f\u0012\u0004\b\u000f\u0010\u000b\u001a\u0004\b\u0010\u0010\r\u0088\u0001\u0002¨\u00068"}, d2 = {"Landroidx/compose/ui/geometry/Offset;", "", "packedValue", "", "constructor-impl", "(J)J", "getPackedValue", "()J", "x", "", "getX$annotations", "()V", "getX-impl", "(J)F", "y", "getY$annotations", "getY-impl", "component1", "component1-impl", "component2", "component2-impl", "copy", "copy-dBAh8RU", "(JFF)J", "isValid", "", "isValid-impl", "(J)Z", "getDistance", "getDistance-impl", "getDistanceSquared", "getDistanceSquared-impl", "unaryMinus", "unaryMinus-F1C5BW0", "minus", CardStudioAgentSpaceMetrics.DimensionValue.SCHEME_OTHER, "minus-MK-Hz9U", "(JJ)J", "plus", "plus-MK-Hz9U", "times", "operand", "times-tuRUvjQ", "(JF)J", "div", "div-tuRUvjQ", "rem", "rem-tuRUvjQ", "toString", "", "toString-impl", "(J)Ljava/lang/String;", "equals", "hashCode", "", "Companion", "ui-geometry"}, k = 1, mv = {2, 0, 0}, xi = 48)
@Immutable
@JvmInline
@SourceDebugExtension({"SMAP\nOffset.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Offset.kt\nandroidx/compose/ui/geometry/Offset\n+ 2 InlineClassHelper.kt\nandroidx/compose/ui/util/InlineClassHelperKt\n+ 3 InlineClassHelper.jvm.kt\nandroidx/compose/ui/util/InlineClassHelper_jvmKt\n+ 4 Offset.kt\nandroidx/compose/ui/geometry/OffsetKt\n*L\n1#1,285:1\n65#1:290\n69#1:293\n65#1:343\n69#1:346\n60#2:286\n70#2:288\n60#2:291\n70#2:294\n53#2,3:296\n60#2:299\n70#2:301\n60#2:302\n70#2:304\n60#2:306\n70#2:308\n60#2:310\n70#2:312\n53#2,3:314\n60#2:317\n70#2:319\n53#2,3:321\n60#2:324\n70#2:326\n53#2,3:327\n60#2:330\n70#2:332\n53#2,3:333\n60#2:336\n70#2:338\n53#2,3:339\n60#2:344\n70#2:347\n22#3:287\n22#3:289\n22#3:292\n22#3:295\n22#3:300\n22#3:303\n22#3:305\n22#3:307\n22#3:309\n22#3:311\n22#3:313\n22#3:318\n22#3:320\n22#3:325\n22#3:331\n22#3:337\n22#3:345\n273#4:342\n*S KotlinDebug\n*F\n+ 1 Offset.kt\nandroidx/compose/ui/geometry/Offset\n*L\n71#1:290\n73#1:293\n227#1:343\n227#1:346\n65#1:286\n69#1:288\n71#1:291\n73#1:294\n77#1:296,3\n76#1:299\n76#1:301\n123#1:302\n124#1:304\n135#1:306\n136#1:308\n164#1:310\n165#1:312\n163#1:314,3\n180#1:317\n181#1:319\n179#1:321,3\n195#1:324\n195#1:326\n195#1:327,3\n208#1:330\n208#1:332\n208#1:333,3\n221#1:336\n221#1:338\n221#1:339,3\n227#1:344\n227#1:347\n65#1:287\n69#1:289\n71#1:292\n73#1:295\n76#1:300\n123#1:303\n124#1:305\n135#1:307\n136#1:309\n164#1:311\n165#1:313\n180#1:318\n181#1:320\n195#1:325\n208#1:331\n221#1:337\n227#1:345\n226#1:342\n*E\n"})
/* loaded from: classes13.dex */
public final class Offset {
private final long packedValue;
/* renamed from: Companion, reason: from kotlin metadata */
@NotNull
public static final Companion INSTANCE = new Companion(null);
private static final long Zero = m4392constructorimpl(0);
private static final long Infinite = m4392constructorimpl(InlineClassHelperKt.DualFloatInfinityBase);
private static final long Unspecified = m4392constructorimpl(InlineClassHelperKt.UnspecifiedPackedFloats);
private /* synthetic */ Offset(long j) {
this.packedValue = j;
}
/* renamed from: box-impl, reason: not valid java name */
public static final /* synthetic */ Offset m4389boximpl(long j) {
return new Offset(j);
}
@Stable
/* renamed from: component1-impl, reason: not valid java name */
public static final float m4390component1impl(long j) {
return Float.intBitsToFloat((int) (j >> 32));
}
@Stable
/* renamed from: component2-impl, reason: not valid java name */
public static final float m4391component2impl(long j) {
return Float.intBitsToFloat((int) (j & 4294967295L));
}
/* renamed from: copy-dBAh8RU, reason: not valid java name */
public static final long m4393copydBAh8RU(long j, float f, float f2) {
return m4392constructorimpl((Float.floatToRawIntBits(f) << 32) | (Float.floatToRawIntBits(f2) & 4294967295L));
}
/* renamed from: copy-dBAh8RU$default, reason: not valid java name */
public static /* synthetic */ long m4394copydBAh8RU$default(long j, float f, float f2, int i, Object obj) {
if ((i & 1) != 0) {
f = Float.intBitsToFloat((int) (j >> 32));
}
if ((i & 2) != 0) {
f2 = Float.intBitsToFloat((int) (4294967295L & j));
}
return m4393copydBAh8RU(j, f, f2);
}
@Stable
/* renamed from: div-tuRUvjQ, reason: not valid java name */
public static final long m4395divtuRUvjQ(long j, float f) {
float intBitsToFloat = Float.intBitsToFloat((int) (j >> 32)) / f;
float intBitsToFloat2 = Float.intBitsToFloat((int) (j & 4294967295L)) / f;
return m4392constructorimpl((Float.floatToRawIntBits(intBitsToFloat) << 32) | (Float.floatToRawIntBits(intBitsToFloat2) & 4294967295L));
}
/* renamed from: equals-impl, reason: not valid java name */
public static boolean m4396equalsimpl(long j, Object obj) {
return (obj instanceof Offset) && j == ((Offset) obj).m4410unboximpl();
}
/* renamed from: equals-impl0, reason: not valid java name */
public static final boolean m4397equalsimpl0(long j, long j2) {
return j == j2;
}
@Stable
/* renamed from: getDistance-impl, reason: not valid java name */
public static final float m4398getDistanceimpl(long j) {
float intBitsToFloat = Float.intBitsToFloat((int) (j >> 32));
float intBitsToFloat2 = Float.intBitsToFloat((int) (j & 4294967295L));
return (float) Math.sqrt((intBitsToFloat2 * intBitsToFloat2) + (intBitsToFloat * intBitsToFloat));
}
@Stable
/* renamed from: getDistanceSquared-impl, reason: not valid java name */
public static final float m4399getDistanceSquaredimpl(long j) {
float intBitsToFloat = Float.intBitsToFloat((int) (j >> 32));
float intBitsToFloat2 = Float.intBitsToFloat((int) (j & 4294967295L));
return (intBitsToFloat2 * intBitsToFloat2) + (intBitsToFloat * intBitsToFloat);
}
/* renamed from: getX-impl, reason: not valid java name */
public static final float m4400getXimpl(long j) {
return Float.intBitsToFloat((int) (j >> 32));
}
/* renamed from: getY-impl, reason: not valid java name */
public static final float m4401getYimpl(long j) {
return Float.intBitsToFloat((int) (j & 4294967295L));
}
/* renamed from: hashCode-impl, reason: not valid java name */
public static int m4402hashCodeimpl(long j) {
return Long.hashCode(j);
}
@Stable
/* renamed from: isValid-impl, reason: not valid java name */
public static final boolean m4403isValidimpl(long j) {
return (((j & 9223372034707292159L) + InlineClassHelperKt.DualLoadedSignificand) & (-9223372034707292160L)) == 0;
}
@Stable
/* renamed from: minus-MK-Hz9U, reason: not valid java name */
public static final long m4404minusMKHz9U(long j, long j2) {
float intBitsToFloat = Float.intBitsToFloat((int) (j >> 32)) - Float.intBitsToFloat((int) (j2 >> 32));
float intBitsToFloat2 = Float.intBitsToFloat((int) (j & 4294967295L)) - Float.intBitsToFloat((int) (j2 & 4294967295L));
return m4392constructorimpl((Float.floatToRawIntBits(intBitsToFloat) << 32) | (Float.floatToRawIntBits(intBitsToFloat2) & 4294967295L));
}
@Stable
/* renamed from: plus-MK-Hz9U, reason: not valid java name */
public static final long m4405plusMKHz9U(long j, long j2) {
float intBitsToFloat = Float.intBitsToFloat((int) (j2 >> 32)) + Float.intBitsToFloat((int) (j >> 32));
float intBitsToFloat2 = Float.intBitsToFloat((int) (j2 & 4294967295L)) + Float.intBitsToFloat((int) (j & 4294967295L));
return m4392constructorimpl((Float.floatToRawIntBits(intBitsToFloat2) & 4294967295L) | (Float.floatToRawIntBits(intBitsToFloat) << 32));
}
@Stable
/* renamed from: rem-tuRUvjQ, reason: not valid java name */
public static final long m4406remtuRUvjQ(long j, float f) {
float intBitsToFloat = Float.intBitsToFloat((int) (j >> 32)) % f;
float intBitsToFloat2 = Float.intBitsToFloat((int) (j & 4294967295L)) % f;
return m4392constructorimpl((Float.floatToRawIntBits(intBitsToFloat) << 32) | (Float.floatToRawIntBits(intBitsToFloat2) & 4294967295L));
}
@Stable
/* renamed from: times-tuRUvjQ, reason: not valid java name */
public static final long m4407timestuRUvjQ(long j, float f) {
float intBitsToFloat = Float.intBitsToFloat((int) (j >> 32)) * f;
float intBitsToFloat2 = Float.intBitsToFloat((int) (j & 4294967295L)) * f;
return m4392constructorimpl((Float.floatToRawIntBits(intBitsToFloat) << 32) | (Float.floatToRawIntBits(intBitsToFloat2) & 4294967295L));
}
@NotNull
/* renamed from: toString-impl, reason: not valid java name */
public static String m4408toStringimpl(long j) {
if ((9223372034707292159L & j) == InlineClassHelperKt.UnspecifiedPackedFloats) {
return "Offset.Unspecified";
}
return "Offset(" + GeometryUtilsKt.toStringAsFixed(Float.intBitsToFloat((int) (j >> 32)), 1) + ", " + GeometryUtilsKt.toStringAsFixed(Float.intBitsToFloat((int) (j & 4294967295L)), 1) + ')';
}
@Stable
/* renamed from: unaryMinus-F1C5BW0, reason: not valid java name */
public static final long m4409unaryMinusF1C5BW0(long j) {
return m4392constructorimpl(j ^ (-9223372034707292160L));
}
public boolean equals(Object other) {
return m4396equalsimpl(this.packedValue, other);
}
public final long getPackedValue() {
return this.packedValue;
}
public int hashCode() {
return m4402hashCodeimpl(this.packedValue);
}
@NotNull
public String toString() {
return m4408toStringimpl(this.packedValue);
}
/* renamed from: unbox-impl, reason: not valid java name */
public final /* synthetic */ long m4410unboximpl() {
return this.packedValue;
}
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u000b\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003R\u001e\u0010\u0004\u001a\u00020\u00058\u0006X\u0087\u0004¢\u0006\u0010\n\u0002\u0010\t\u0012\u0004\b\u0006\u0010\u0003\u001a\u0004\b\u0007\u0010\bR\u001e\u0010\n\u001a\u00020\u00058\u0006X\u0087\u0004¢\u0006\u0010\n\u0002\u0010\t\u0012\u0004\b\u000b\u0010\u0003\u001a\u0004\b\f\u0010\bR\u001e\u0010\r\u001a\u00020\u00058\u0006X\u0087\u0004¢\u0006\u0010\n\u0002\u0010\t\u0012\u0004\b\u000e\u0010\u0003\u001a\u0004\b\u000f\u0010\b¨\u0006\u0010"}, d2 = {"Landroidx/compose/ui/geometry/Offset$Companion;", "", "<init>", "()V", "Zero", "Landroidx/compose/ui/geometry/Offset;", "getZero-F1C5BW0$annotations", "getZero-F1C5BW0", "()J", "J", "Infinite", "getInfinite-F1C5BW0$annotations", "getInfinite-F1C5BW0", "Unspecified", "getUnspecified-F1C5BW0$annotations", "getUnspecified-F1C5BW0", "ui-geometry"}, k = 1, mv = {2, 0, 0}, xi = 48)
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
/* renamed from: getInfinite-F1C5BW0, reason: not valid java name */
public final long m4414getInfiniteF1C5BW0() {
return Offset.Infinite;
}
/* renamed from: getUnspecified-F1C5BW0, reason: not valid java name */
public final long m4415getUnspecifiedF1C5BW0() {
return Offset.Unspecified;
}
/* renamed from: getZero-F1C5BW0, reason: not valid java name */
public final long m4416getZeroF1C5BW0() {
return Offset.Zero;
}
private Companion() {
}
@Stable
/* renamed from: getInfinite-F1C5BW0$annotations, reason: not valid java name */
public static /* synthetic */ void m4411getInfiniteF1C5BW0$annotations() {
}
@Stable
/* renamed from: getUnspecified-F1C5BW0$annotations, reason: not valid java name */
public static /* synthetic */ void m4412getUnspecifiedF1C5BW0$annotations() {
}
@Stable
/* renamed from: getZero-F1C5BW0$annotations, reason: not valid java name */
public static /* synthetic */ void m4413getZeroF1C5BW0$annotations() {
}
}
@Stable
public static /* synthetic */ void getX$annotations() {
}
@Stable
public static /* synthetic */ void getY$annotations() {
}
/* renamed from: constructor-impl, reason: not valid java name */
public static long m4392constructorimpl(long j) {
return j;
}
}