mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
149 lines
8.3 KiB
Java
149 lines
8.3 KiB
Java
package androidx.compose.ui.focus;
|
|
|
|
import androidx.compose.runtime.collection.MutableVector;
|
|
import androidx.compose.ui.Modifier;
|
|
import androidx.compose.ui.node.DelegatableNodeKt;
|
|
import androidx.compose.ui.node.DelegatingNode;
|
|
import androidx.compose.ui.node.LayoutNode;
|
|
import androidx.compose.ui.node.NodeChain;
|
|
import androidx.compose.ui.node.NodeKind;
|
|
import kotlin.Metadata;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* compiled from: FocusEventModifierNode.kt */
|
|
@Metadata(d1 = {"\u0000\u0018\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u001a\f\u0010\u0000\u001a\u00020\u0001*\u00020\u0002H\u0000\u001a\f\u0010\u0003\u001a\u00020\u0004*\u00020\u0002H\u0000\u001a\f\u0010\u0005\u001a\u00020\u0004*\u00020\u0006H\u0000¨\u0006\u0007"}, d2 = {"getFocusState", "Landroidx/compose/ui/focus/FocusState;", "Landroidx/compose/ui/focus/FocusEventModifierNode;", "invalidateFocusEvent", "", "refreshFocusEventNodes", "Landroidx/compose/ui/focus/FocusTargetNode;", "ui_release"}, k = 2, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
public final class FocusEventModifierNodeKt {
|
|
|
|
/* compiled from: FocusEventModifierNode.kt */
|
|
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
public /* synthetic */ class WhenMappings {
|
|
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
|
|
|
static {
|
|
int[] iArr = new int[FocusStateImpl.values().length];
|
|
try {
|
|
iArr[FocusStateImpl.Active.ordinal()] = 1;
|
|
} catch (NoSuchFieldError unused) {
|
|
}
|
|
try {
|
|
iArr[FocusStateImpl.ActiveParent.ordinal()] = 2;
|
|
} catch (NoSuchFieldError unused2) {
|
|
}
|
|
try {
|
|
iArr[FocusStateImpl.Captured.ordinal()] = 3;
|
|
} catch (NoSuchFieldError unused3) {
|
|
}
|
|
try {
|
|
iArr[FocusStateImpl.Inactive.ordinal()] = 4;
|
|
} catch (NoSuchFieldError unused4) {
|
|
}
|
|
$EnumSwitchMapping$0 = iArr;
|
|
}
|
|
}
|
|
|
|
public static final void invalidateFocusEvent(FocusEventModifierNode focusEventModifierNode) {
|
|
Intrinsics.checkNotNullParameter(focusEventModifierNode, "<this>");
|
|
DelegatableNodeKt.requireOwner(focusEventModifierNode).getFocusOwner().scheduleInvalidation(focusEventModifierNode);
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:116:0x00a2, code lost:
|
|
|
|
continue;
|
|
*/
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public static final androidx.compose.ui.focus.FocusState getFocusState(androidx.compose.ui.focus.FocusEventModifierNode r12) {
|
|
/*
|
|
Method dump skipped, instructions count: 322
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: androidx.compose.ui.focus.FocusEventModifierNodeKt.getFocusState(androidx.compose.ui.focus.FocusEventModifierNode):androidx.compose.ui.focus.FocusState");
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARN: Type inference failed for: r5v11 */
|
|
/* JADX WARN: Type inference failed for: r5v12, types: [androidx.compose.ui.Modifier$Node] */
|
|
/* JADX WARN: Type inference failed for: r5v13, types: [java.lang.Object] */
|
|
/* JADX WARN: Type inference failed for: r5v14 */
|
|
/* JADX WARN: Type inference failed for: r5v15 */
|
|
/* JADX WARN: Type inference failed for: r5v16 */
|
|
/* JADX WARN: Type inference failed for: r5v17 */
|
|
/* JADX WARN: Type inference failed for: r5v20 */
|
|
/* JADX WARN: Type inference failed for: r5v21 */
|
|
/* JADX WARN: Type inference failed for: r5v8 */
|
|
/* JADX WARN: Type inference failed for: r5v9, types: [androidx.compose.ui.Modifier$Node] */
|
|
public static final void refreshFocusEventNodes(FocusTargetNode focusTargetNode) {
|
|
NodeChain nodes;
|
|
Intrinsics.checkNotNullParameter(focusTargetNode, "<this>");
|
|
FocusTargetNode focusTargetNode2 = focusTargetNode;
|
|
int m4091constructorimpl = NodeKind.m4091constructorimpl(4096);
|
|
int m4091constructorimpl2 = NodeKind.m4091constructorimpl(1024);
|
|
Modifier.Node node = focusTargetNode2.getNode();
|
|
int i = m4091constructorimpl | m4091constructorimpl2;
|
|
if (!focusTargetNode2.getNode().getIsAttached()) {
|
|
throw new IllegalStateException("visitAncestors called on an unattached node".toString());
|
|
}
|
|
Modifier.Node node2 = focusTargetNode2.getNode();
|
|
LayoutNode requireLayoutNode = DelegatableNodeKt.requireLayoutNode(focusTargetNode2);
|
|
while (requireLayoutNode != null) {
|
|
if ((requireLayoutNode.getNodes().getHead().getAggregateChildKindSet() & i) != 0) {
|
|
while (node2 != null) {
|
|
if ((node2.getKindSet() & i) != 0) {
|
|
if (node2 != node && (node2.getKindSet() & m4091constructorimpl2) != 0) {
|
|
return;
|
|
}
|
|
if ((node2.getKindSet() & m4091constructorimpl) != 0) {
|
|
DelegatingNode delegatingNode = node2;
|
|
MutableVector mutableVector = null;
|
|
while (delegatingNode != 0) {
|
|
if (!(delegatingNode instanceof FocusEventModifierNode)) {
|
|
if ((delegatingNode.getKindSet() & m4091constructorimpl) != 0 && (delegatingNode instanceof DelegatingNode)) {
|
|
Modifier.Node delegate = delegatingNode.getDelegate();
|
|
int i2 = 0;
|
|
delegatingNode = delegatingNode;
|
|
while (delegate != null) {
|
|
if ((delegate.getKindSet() & m4091constructorimpl) != 0) {
|
|
i2++;
|
|
if (i2 == 1) {
|
|
delegatingNode = delegate;
|
|
} else {
|
|
if (mutableVector == null) {
|
|
mutableVector = new MutableVector(new Modifier.Node[16], 0);
|
|
}
|
|
if (delegatingNode != 0) {
|
|
if (mutableVector != null) {
|
|
mutableVector.add(delegatingNode);
|
|
}
|
|
delegatingNode = 0;
|
|
}
|
|
if (mutableVector != null) {
|
|
mutableVector.add(delegate);
|
|
}
|
|
}
|
|
}
|
|
delegate = delegate.getChild();
|
|
delegatingNode = delegatingNode;
|
|
}
|
|
if (i2 == 1) {
|
|
}
|
|
}
|
|
} else {
|
|
FocusEventModifierNode focusEventModifierNode = (FocusEventModifierNode) delegatingNode;
|
|
focusEventModifierNode.onFocusEvent(getFocusState(focusEventModifierNode));
|
|
}
|
|
delegatingNode = DelegatableNodeKt.pop(mutableVector);
|
|
}
|
|
}
|
|
}
|
|
node2 = node2.getParent();
|
|
}
|
|
}
|
|
requireLayoutNode = requireLayoutNode.getParent$ui_release();
|
|
node2 = (requireLayoutNode == null || (nodes = requireLayoutNode.getNodes()) == null) ? null : nodes.getTail();
|
|
}
|
|
}
|
|
}
|