mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-17 03:17:17 +01:00
70 lines
3.1 KiB
Java
70 lines
3.1 KiB
Java
package androidx.compose.ui.graphics;
|
|
|
|
import android.graphics.Path;
|
|
import androidx.compose.ui.graphics.Path;
|
|
import io.ktor.util.PathKt$$ExternalSyntheticBUOutline0;
|
|
import kotlin.Metadata;
|
|
import okio.Buffer$$ExternalSyntheticBUOutline0;
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Metadata(d1 = {"\u0000&\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u001a\u0006\u0010\u0000\u001a\u00020\u0001\u001a\n\u0010\u0002\u001a\u00020\u0001*\u00020\u0003\u001a\r\u0010\u0004\u001a\u00020\u0003*\u00020\u0001H\u0086\b\u001a\u0010\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\bH\u0000\u001a\f\u0010\t\u001a\u00020\n*\u00020\u000bH\u0002¨\u0006\f"}, d2 = {"Path", "Landroidx/compose/ui/graphics/Path;", "asComposePath", "Landroid/graphics/Path;", "asAndroidPath", "throwIllegalStateException", "", "message", "", "toPlatformPathDirection", "Landroid/graphics/Path$Direction;", "Landroidx/compose/ui/graphics/Path$Direction;", "ui-graphics_release"}, k = 2, mv = {2, 0, 0}, xi = 48)
|
|
/* loaded from: classes13.dex */
|
|
public final class AndroidPath_androidKt {
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Metadata(k = 3, mv = {2, 0, 0}, xi = 48)
|
|
public /* synthetic */ class WhenMappings {
|
|
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
|
|
|
static {
|
|
int[] iArr = new int[Path.Direction.values().length];
|
|
try {
|
|
iArr[Path.Direction.CounterClockwise.ordinal()] = 1;
|
|
} catch (NoSuchFieldError unused) {
|
|
}
|
|
try {
|
|
iArr[Path.Direction.Clockwise.ordinal()] = 2;
|
|
} catch (NoSuchFieldError unused2) {
|
|
}
|
|
$EnumSwitchMapping$0 = iArr;
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
@NotNull
|
|
public static final Path Path() {
|
|
return new AndroidPath(null, 1, 0 == true ? 1 : 0);
|
|
}
|
|
|
|
@NotNull
|
|
public static final android.graphics.Path asAndroidPath(@NotNull Path path) {
|
|
if (path instanceof AndroidPath) {
|
|
return ((AndroidPath) path).getInternalPath();
|
|
}
|
|
Buffer$$ExternalSyntheticBUOutline0.m$1("Unable to obtain android.graphics.Path");
|
|
return null;
|
|
}
|
|
|
|
@NotNull
|
|
public static final Path asComposePath(@NotNull android.graphics.Path path) {
|
|
return new AndroidPath(path);
|
|
}
|
|
|
|
public static final void throwIllegalStateException(@NotNull String str) {
|
|
throw new IllegalStateException(str);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final Path.Direction toPlatformPathDirection(Path.Direction direction) {
|
|
int i = WhenMappings.$EnumSwitchMapping$0[direction.ordinal()];
|
|
if (i == 1) {
|
|
return Path.Direction.CCW;
|
|
}
|
|
if (i == 2) {
|
|
return Path.Direction.CW;
|
|
}
|
|
PathKt$$ExternalSyntheticBUOutline0.m();
|
|
return null;
|
|
}
|
|
}
|