mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
396 lines
8.5 KiB
Smali
396 lines
8.5 KiB
Smali
.class Lkotlin/time/DurationUnitKt__DurationUnitKt;
|
|
.super Lkotlin/time/DurationUnitKt__DurationUnitJvmKt;
|
|
.source "DurationUnit.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lkotlin/time/DurationUnitKt__DurationUnitKt$WhenMappings;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
d1 = {
|
|
"\u0000\u001c\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000c\n\u0000\n\u0002\u0010\u000b\n\u0002\u0008\u0002\n\u0002\u0010\u000e\n\u0000\u001a\u0018\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u0005H\u0001\u001a\u0010\u0010\u0006\u001a\u00020\u00012\u0006\u0010\u0007\u001a\u00020\u0008H\u0001\u001a\u000c\u0010\u0007\u001a\u00020\u0008*\u00020\u0001H\u0001\u00a8\u0006\t"
|
|
}
|
|
d2 = {
|
|
"durationUnitByIsoChar",
|
|
"Lkotlin/time/DurationUnit;",
|
|
"isoChar",
|
|
"",
|
|
"isTimeComponent",
|
|
"",
|
|
"durationUnitByShortName",
|
|
"shortName",
|
|
"",
|
|
"kotlin-stdlib"
|
|
}
|
|
k = 0x5
|
|
mv = {
|
|
0x1,
|
|
0x9,
|
|
0x0
|
|
}
|
|
xi = 0x31
|
|
xs = "kotlin/time/DurationUnitKt"
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Lkotlin/time/DurationUnitKt__DurationUnitJvmKt;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final durationUnitByIsoChar(CZ)Lkotlin/time/DurationUnit;
|
|
.locals 2
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
const/16 p1, 0x44
|
|
|
|
if-ne p0, p1, :cond_0
|
|
|
|
.line 93
|
|
sget-object p0, Lkotlin/time/DurationUnit;->DAYS:Lkotlin/time/DurationUnit;
|
|
|
|
goto :goto_0
|
|
|
|
.line 94
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, "Invalid or unsupported duration ISO non-time unit: "
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:cond_1
|
|
const/16 p1, 0x48
|
|
|
|
if-ne p0, p1, :cond_2
|
|
|
|
.line 99
|
|
sget-object p0, Lkotlin/time/DurationUnit;->HOURS:Lkotlin/time/DurationUnit;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const/16 p1, 0x4d
|
|
|
|
if-ne p0, p1, :cond_3
|
|
|
|
.line 100
|
|
sget-object p0, Lkotlin/time/DurationUnit;->MINUTES:Lkotlin/time/DurationUnit;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
const/16 p1, 0x53
|
|
|
|
if-ne p0, p1, :cond_4
|
|
|
|
.line 101
|
|
sget-object p0, Lkotlin/time/DurationUnit;->SECONDS:Lkotlin/time/DurationUnit;
|
|
|
|
:goto_0
|
|
return-object p0
|
|
|
|
.line 102
|
|
:cond_4
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, "Invalid duration ISO time unit: "
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public static final durationUnitByShortName(Ljava/lang/String;)Lkotlin/time/DurationUnit;
|
|
.locals 3
|
|
|
|
const-string v0, "shortName"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 77
|
|
invoke-virtual {p0}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v0
|
|
|
|
const/16 v1, 0x64
|
|
|
|
if-eq v0, v1, :cond_5
|
|
|
|
const/16 v1, 0x68
|
|
|
|
if-eq v0, v1, :cond_4
|
|
|
|
const/16 v1, 0x6d
|
|
|
|
if-eq v0, v1, :cond_3
|
|
|
|
const/16 v1, 0x73
|
|
|
|
if-eq v0, v1, :cond_2
|
|
|
|
const/16 v1, 0xda6
|
|
|
|
if-eq v0, v1, :cond_1
|
|
|
|
const/16 v1, 0xdc5
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
const/16 v1, 0xe9e
|
|
|
|
if-ne v0, v1, :cond_6
|
|
|
|
const-string v0, "us"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
.line 79
|
|
sget-object p0, Lkotlin/time/DurationUnit;->MICROSECONDS:Lkotlin/time/DurationUnit;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-string v0, "ns"
|
|
|
|
.line 77
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
.line 78
|
|
sget-object p0, Lkotlin/time/DurationUnit;->NANOSECONDS:Lkotlin/time/DurationUnit;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const-string v0, "ms"
|
|
|
|
.line 77
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
.line 80
|
|
sget-object p0, Lkotlin/time/DurationUnit;->MILLISECONDS:Lkotlin/time/DurationUnit;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const-string v0, "s"
|
|
|
|
.line 77
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
.line 81
|
|
sget-object p0, Lkotlin/time/DurationUnit;->SECONDS:Lkotlin/time/DurationUnit;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
const-string v0, "m"
|
|
|
|
.line 77
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
.line 82
|
|
sget-object p0, Lkotlin/time/DurationUnit;->MINUTES:Lkotlin/time/DurationUnit;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
const-string v0, "h"
|
|
|
|
.line 77
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
.line 83
|
|
sget-object p0, Lkotlin/time/DurationUnit;->HOURS:Lkotlin/time/DurationUnit;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_5
|
|
const-string v0, "d"
|
|
|
|
.line 77
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
.line 84
|
|
sget-object p0, Lkotlin/time/DurationUnit;->DAYS:Lkotlin/time/DurationUnit;
|
|
|
|
:goto_0
|
|
return-object p0
|
|
|
|
.line 85
|
|
:cond_6
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, "Unknown duration unit short name: "
|
|
|
|
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {v0, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static final shortName(Lkotlin/time/DurationUnit;)Ljava/lang/String;
|
|
.locals 3
|
|
|
|
const-string v0, "<this>"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 65
|
|
sget-object v0, Lkotlin/time/DurationUnitKt__DurationUnitKt$WhenMappings;->$EnumSwitchMapping$0:[I
|
|
|
|
invoke-virtual {p0}, Lkotlin/time/DurationUnit;->ordinal()I
|
|
|
|
move-result v1
|
|
|
|
aget v0, v0, v1
|
|
|
|
packed-switch v0, :pswitch_data_0
|
|
|
|
.line 72
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
.line 73
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, "Unknown unit: "
|
|
|
|
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {v0, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:pswitch_0
|
|
const-string p0, "d"
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_1
|
|
const-string p0, "h"
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_2
|
|
const-string p0, "m"
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_3
|
|
const-string p0, "s"
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_4
|
|
const-string p0, "ms"
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_5
|
|
const-string p0, "us"
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_6
|
|
const-string p0, "ns"
|
|
|
|
:goto_0
|
|
return-object p0
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x1
|
|
:pswitch_6
|
|
:pswitch_5
|
|
:pswitch_4
|
|
:pswitch_3
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|