229 lines
5.3 KiB
Smali
229 lines
5.3 KiB
Smali
.class public final Lkotlinx/coroutines/a/p;
|
|
.super Ljava/lang/Object;
|
|
.source "SystemProps.kt"
|
|
|
|
|
|
# static fields
|
|
.field private static final bhF:I
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
invoke-static {}, Ljava/lang/Runtime;->getRuntime()Ljava/lang/Runtime;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Runtime;->availableProcessors()I
|
|
|
|
move-result v0
|
|
|
|
sput v0, Lkotlinx/coroutines/a/p;->bhF:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic a(Ljava/lang/String;IIII)I
|
|
.locals 7
|
|
|
|
and-int/lit8 v0, p4, 0x4
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 p2, 0x1
|
|
|
|
:cond_0
|
|
and-int/lit8 p4, p4, 0x8
|
|
|
|
if-eqz p4, :cond_1
|
|
|
|
const p3, 0x7fffffff
|
|
|
|
:cond_1
|
|
const-string p4, "propertyName"
|
|
|
|
invoke-static {p0, p4}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
int-to-long v1, p1
|
|
|
|
int-to-long v3, p2
|
|
|
|
int-to-long v5, p3
|
|
|
|
move-object v0, p0
|
|
|
|
invoke-static/range {v0 .. v6}, Lkotlinx/coroutines/a/p;->a(Ljava/lang/String;JJJ)J
|
|
|
|
move-result-wide p0
|
|
|
|
long-to-int p1, p0
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method private static a(Ljava/lang/String;JJJ)J
|
|
.locals 3
|
|
|
|
const-string v0, "propertyName"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-static {p0}, Lkotlinx/coroutines/a/p;->dv(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-wide p1
|
|
|
|
:cond_0
|
|
invoke-static {v0}, Lkotlin/text/l;->dt(Ljava/lang/String;)Ljava/lang/Long;
|
|
|
|
move-result-object p1
|
|
|
|
const/16 p2, 0x27
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Long;->longValue()J
|
|
|
|
move-result-wide v0
|
|
|
|
cmp-long p1, p3, v0
|
|
|
|
if-gtz p1, :cond_1
|
|
|
|
cmp-long p1, p5, v0
|
|
|
|
if-ltz p1, :cond_1
|
|
|
|
return-wide v0
|
|
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, "System property \'"
|
|
|
|
invoke-direct {p1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string p0, "\' should be in range "
|
|
|
|
invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p1, p3, p4}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
const-string p0, ".."
|
|
|
|
invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p1, p5, p6}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
const-string p0, ", but is \'"
|
|
|
|
invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p1, v0, v1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {p1, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
throw p1
|
|
|
|
:cond_2
|
|
new-instance p1, Ljava/lang/StringBuilder;
|
|
|
|
const-string p3, "System property \'"
|
|
|
|
invoke-direct {p1, p3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string p0, "\' has unrecognized value \'"
|
|
|
|
invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {p1, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public static final dv(Ljava/lang/String;)Ljava/lang/String;
|
|
.locals 1
|
|
|
|
const-string v0, "propertyName"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
:try_start_0
|
|
invoke-static {p0}, Ljava/lang/System;->getProperty(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
:try_end_0
|
|
.catch Ljava/lang/SecurityException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
const/4 p0, 0x0
|
|
|
|
:goto_0
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static synthetic e(Ljava/lang/String;J)J
|
|
.locals 7
|
|
|
|
const-wide/16 v3, 0x1
|
|
|
|
const-wide v5, 0x7fffffffffffffffL
|
|
|
|
move-object v0, p0
|
|
|
|
move-wide v1, p1
|
|
|
|
invoke-static/range {v0 .. v6}, Lkotlinx/coroutines/a/p;->a(Ljava/lang/String;JJJ)J
|
|
|
|
move-result-wide p0
|
|
|
|
return-wide p0
|
|
.end method
|
|
|
|
.method public static final zu()I
|
|
.locals 1
|
|
|
|
sget v0, Lkotlinx/coroutines/a/p;->bhF:I
|
|
|
|
return v0
|
|
.end method
|