package androidx.compose.ui.input.pointer; import androidx.compose.ui.geometry.Offset; import androidx.compose.ui.geometry.OffsetKt; import androidx.compose.ui.unit.IntSize; import androidx.compose.ui.unit.IntSizeKt; import io.sentry.protocol.ViewHierarchyNode; import java.util.List; import kotlin.Metadata; import kotlin.Unit; import kotlin.collections.ArraysKt; import kotlin.collections.CollectionsKt; import kotlin.jvm.functions.Function3; import kotlin.jvm.internal.DefaultConstructorMarker; import kotlin.jvm.internal.Intrinsics; /* compiled from: PointerInputTestUtil.kt */ @Metadata(d1 = {"\u0000D\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\t\n\u0002\b\u0002\n\u0002\u0010\u0007\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\n\n\u0002\u0010\u0011\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\b\b\u001a.\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u00032\b\b\u0002\u0010\u0005\u001a\u00020\u00062\b\b\u0002\u0010\u0007\u001a\u00020\u0006H\u0000\u001aG\u0010\b\u001a\u00020\t*\u001e\u0012\u0004\u0012\u00020\u000b\u0012\u0004\u0012\u00020\f\u0012\u0004\u0012\u00020\r\u0012\u0004\u0012\u00020\t0\nj\u0002`\u000e2\u0006\u0010\u000f\u001a\u00020\u000b2\b\b\u0002\u0010\u0010\u001a\u00020\rH\u0000ø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\b\u0011\u0010\u0012\u001aO\u0010\u0013\u001a\u00020\t*\u001e\u0012\u0004\u0012\u00020\u000b\u0012\u0004\u0012\u00020\f\u0012\u0004\u0012\u00020\r\u0012\u0004\u0012\u00020\t0\nj\u0002`\u000e2\u0006\u0010\u000f\u001a\u00020\u000b2\u0006\u0010\u0014\u001a\u00020\f2\b\b\u0002\u0010\u0010\u001a\u00020\rH\u0000ø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\b\u0015\u0010\u0016\u001a[\u0010\u0017\u001a\u00020\t*\u001e\u0012\u0004\u0012\u00020\u000b\u0012\u0004\u0012\u00020\f\u0012\u0004\u0012\u00020\r\u0012\u0004\u0012\u00020\t0\nj\u0002`\u000e2\u0006\u0010\u000f\u001a\u00020\u000b2\u0012\u0010\u0018\u001a\n\u0012\u0006\b\u0001\u0012\u00020\f0\u0019\"\u00020\f2\b\b\u0002\u0010\u0010\u001a\u00020\rH\u0000ø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\b\u001a\u0010\u001b\u001aU\u0010\u0017\u001a\u00020\t*\u001e\u0012\u0004\u0012\u00020\u000b\u0012\u0004\u0012\u00020\f\u0012\u0004\u0012\u00020\r\u0012\u0004\u0012\u00020\t0\nj\u0002`\u000e2\u0006\u0010\u000f\u001a\u00020\u000b2\f\u0010\u0018\u001a\b\u0012\u0004\u0012\u00020\f0\u001c2\b\b\u0002\u0010\u0010\u001a\u00020\rH\u0000ø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\b\u001a\u0010\u001d\u001a(\u0010\u001e\u001a\u00020\u0001*\u00020\u00012\u0006\u0010\u0004\u001a\u00020\u00032\b\b\u0002\u0010\u001f\u001a\u00020\u00062\b\b\u0002\u0010 \u001a\u00020\u0006H\u0000\u001a(\u0010!\u001a\u00020\u0001*\u00020\u00012\u0006\u0010\u0004\u001a\u00020\u00032\b\b\u0002\u0010\u0005\u001a\u00020\u00062\b\b\u0002\u0010\u0007\u001a\u00020\u0006H\u0000\u001a\u0014\u0010\"\u001a\u00020\u0001*\u00020\u00012\u0006\u0010\u0004\u001a\u00020\u0003H\u0000*<\b\u0000\u0010#\"\u001a\u0012\u0004\u0012\u00020\u000b\u0012\u0004\u0012\u00020\f\u0012\u0004\u0012\u00020\r\u0012\u0004\u0012\u00020\t0\n2\u001a\u0012\u0004\u0012\u00020\u000b\u0012\u0004\u0012\u00020\f\u0012\u0004\u0012\u00020\r\u0012\u0004\u0012\u00020\t0\n\u0082\u0002\u000b\n\u0005\b¡\u001e0\u0001\n\u0002\b\u0019¨\u0006$"}, d2 = {"down", "Landroidx/compose/ui/input/pointer/PointerInputChange;", "id", "", "durationMillis", ViewHierarchyNode.JsonKeys.X, "", ViewHierarchyNode.JsonKeys.Y, "invokeOverAllPasses", "", "Lkotlin/Function3;", "Landroidx/compose/ui/input/pointer/PointerEvent;", "Landroidx/compose/ui/input/pointer/PointerEventPass;", "Landroidx/compose/ui/unit/IntSize;", "Landroidx/compose/ui/input/pointer/PointerInputHandler;", "pointerEvent", "size", "invokeOverAllPasses-H0pRuoY", "(Lkotlin/jvm/functions/Function3;Landroidx/compose/ui/input/pointer/PointerEvent;J)V", "invokeOverPass", "pointerEventPass", "invokeOverPass-hUlJWOE", "(Lkotlin/jvm/functions/Function3;Landroidx/compose/ui/input/pointer/PointerEvent;Landroidx/compose/ui/input/pointer/PointerEventPass;J)V", "invokeOverPasses", "pointerEventPasses", "", "invokeOverPasses-hUlJWOE", "(Lkotlin/jvm/functions/Function3;Landroidx/compose/ui/input/pointer/PointerEvent;[Landroidx/compose/ui/input/pointer/PointerEventPass;J)V", "", "(Lkotlin/jvm/functions/Function3;Landroidx/compose/ui/input/pointer/PointerEvent;Ljava/util/List;J)V", "moveBy", "dx", "dy", "moveTo", "up", "PointerInputHandler", "ui_release"}, k = 2, mv = {1, 8, 0}, xi = 48) /* loaded from: classes.dex */ public final class PointerInputTestUtilKt { public static /* synthetic */ PointerInputChange down$default(long j, long j2, float f, float f2, int i, Object obj) { if ((i & 2) != 0) { j2 = 0; } return down(j, j2, (i & 4) != 0 ? 0.0f : f, (i & 8) != 0 ? 0.0f : f2); } public static final PointerInputChange down(long j, long j2, float f, float f2) { return new PointerInputChange(PointerId.m3739constructorimpl(j), j2, OffsetKt.Offset(f, f2), true, 1.0f, j2, OffsetKt.Offset(f, f2), false, false, 0, 0L, 1536, (DefaultConstructorMarker) null); } public static /* synthetic */ PointerInputChange moveTo$default(PointerInputChange pointerInputChange, long j, float f, float f2, int i, Object obj) { if ((i & 2) != 0) { f = 0.0f; } if ((i & 4) != 0) { f2 = 0.0f; } return moveTo(pointerInputChange, j, f, f2); } public static final PointerInputChange moveTo(PointerInputChange pointerInputChange, long j, float f, float f2) { Intrinsics.checkNotNullParameter(pointerInputChange, ""); long id = pointerInputChange.getId(); long uptimeMillis = pointerInputChange.getUptimeMillis(); boolean pressed = pointerInputChange.getPressed(); return new PointerInputChange(id, j, OffsetKt.Offset(f, f2), true, 1.0f, uptimeMillis, pointerInputChange.getPosition(), pressed, false, 0, 0L, 1536, (DefaultConstructorMarker) null); } public static /* synthetic */ PointerInputChange moveBy$default(PointerInputChange pointerInputChange, long j, float f, float f2, int i, Object obj) { if ((i & 2) != 0) { f = 0.0f; } if ((i & 4) != 0) { f2 = 0.0f; } return moveBy(pointerInputChange, j, f, f2); } public static final PointerInputChange moveBy(PointerInputChange pointerInputChange, long j, float f, float f2) { Intrinsics.checkNotNullParameter(pointerInputChange, ""); long id = pointerInputChange.getId(); long uptimeMillis = pointerInputChange.getUptimeMillis(); boolean pressed = pointerInputChange.getPressed(); return new PointerInputChange(id, pointerInputChange.getUptimeMillis() + j, OffsetKt.Offset(Offset.m2400getXimpl(pointerInputChange.getPosition()) + f, Offset.m2401getYimpl(pointerInputChange.getPosition()) + f2), true, 1.0f, uptimeMillis, pointerInputChange.getPosition(), pressed, false, 0, 0L, 1536, (DefaultConstructorMarker) null); } public static final PointerInputChange up(PointerInputChange pointerInputChange, long j) { Intrinsics.checkNotNullParameter(pointerInputChange, ""); long id = pointerInputChange.getId(); long uptimeMillis = pointerInputChange.getUptimeMillis(); boolean pressed = pointerInputChange.getPressed(); return new PointerInputChange(id, j, pointerInputChange.getPosition(), false, 1.0f, uptimeMillis, pointerInputChange.getPosition(), pressed, false, 0, 0L, 1536, (DefaultConstructorMarker) null); } /* renamed from: invokeOverAllPasses-H0pRuoY$default, reason: not valid java name */ public static /* synthetic */ void m3809invokeOverAllPassesH0pRuoY$default(Function3 function3, PointerEvent pointerEvent, long j, int i, Object obj) { if ((i & 2) != 0) { j = IntSizeKt.IntSize(Integer.MAX_VALUE, Integer.MAX_VALUE); } m3808invokeOverAllPassesH0pRuoY(function3, pointerEvent, j); } /* renamed from: invokeOverAllPasses-H0pRuoY, reason: not valid java name */ public static final void m3808invokeOverAllPassesH0pRuoY(Function3 invokeOverAllPasses, PointerEvent pointerEvent, long j) { Intrinsics.checkNotNullParameter(invokeOverAllPasses, "$this$invokeOverAllPasses"); Intrinsics.checkNotNullParameter(pointerEvent, "pointerEvent"); m3812invokeOverPasseshUlJWOE(invokeOverAllPasses, pointerEvent, (List) CollectionsKt.listOf((Object[]) new PointerEventPass[]{PointerEventPass.Initial, PointerEventPass.Main, PointerEventPass.Final}), j); } /* renamed from: invokeOverPass-hUlJWOE$default, reason: not valid java name */ public static /* synthetic */ void m3811invokeOverPasshUlJWOE$default(Function3 function3, PointerEvent pointerEvent, PointerEventPass pointerEventPass, long j, int i, Object obj) { if ((i & 4) != 0) { j = IntSizeKt.IntSize(Integer.MAX_VALUE, Integer.MAX_VALUE); } m3810invokeOverPasshUlJWOE(function3, pointerEvent, pointerEventPass, j); } /* renamed from: invokeOverPass-hUlJWOE, reason: not valid java name */ public static final void m3810invokeOverPasshUlJWOE(Function3 invokeOverPass, PointerEvent pointerEvent, PointerEventPass pointerEventPass, long j) { Intrinsics.checkNotNullParameter(invokeOverPass, "$this$invokeOverPass"); Intrinsics.checkNotNullParameter(pointerEvent, "pointerEvent"); Intrinsics.checkNotNullParameter(pointerEventPass, "pointerEventPass"); m3812invokeOverPasseshUlJWOE(invokeOverPass, pointerEvent, (List) CollectionsKt.listOf(pointerEventPass), j); } /* renamed from: invokeOverPasses-hUlJWOE$default, reason: not valid java name */ public static /* synthetic */ void m3815invokeOverPasseshUlJWOE$default(Function3 function3, PointerEvent pointerEvent, PointerEventPass[] pointerEventPassArr, long j, int i, Object obj) { if ((i & 4) != 0) { j = IntSizeKt.IntSize(Integer.MAX_VALUE, Integer.MAX_VALUE); } m3813invokeOverPasseshUlJWOE((Function3) function3, pointerEvent, pointerEventPassArr, j); } /* renamed from: invokeOverPasses-hUlJWOE, reason: not valid java name */ public static final void m3813invokeOverPasseshUlJWOE(Function3 invokeOverPasses, PointerEvent pointerEvent, PointerEventPass[] pointerEventPasses, long j) { Intrinsics.checkNotNullParameter(invokeOverPasses, "$this$invokeOverPasses"); Intrinsics.checkNotNullParameter(pointerEvent, "pointerEvent"); Intrinsics.checkNotNullParameter(pointerEventPasses, "pointerEventPasses"); m3812invokeOverPasseshUlJWOE(invokeOverPasses, pointerEvent, (List) ArraysKt.toList(pointerEventPasses), j); } /* renamed from: invokeOverPasses-hUlJWOE$default, reason: not valid java name */ public static /* synthetic */ void m3814invokeOverPasseshUlJWOE$default(Function3 function3, PointerEvent pointerEvent, List list, long j, int i, Object obj) { if ((i & 4) != 0) { j = IntSizeKt.IntSize(Integer.MAX_VALUE, Integer.MAX_VALUE); } m3812invokeOverPasseshUlJWOE((Function3) function3, pointerEvent, (List) list, j); } /* renamed from: invokeOverPasses-hUlJWOE, reason: not valid java name */ public static final void m3812invokeOverPasseshUlJWOE(Function3 invokeOverPasses, PointerEvent pointerEvent, List pointerEventPasses, long j) { Intrinsics.checkNotNullParameter(invokeOverPasses, "$this$invokeOverPasses"); Intrinsics.checkNotNullParameter(pointerEvent, "pointerEvent"); Intrinsics.checkNotNullParameter(pointerEventPasses, "pointerEventPasses"); if (!(!pointerEvent.getChanges().isEmpty())) { throw new IllegalArgumentException("Failed requirement.".toString()); } if (!(!pointerEventPasses.isEmpty())) { throw new IllegalArgumentException("Failed requirement.".toString()); } int size = pointerEventPasses.size(); for (int i = 0; i < size; i++) { invokeOverPasses.invoke(pointerEvent, pointerEventPasses.get(i), IntSize.m5035boximpl(j)); } } }