186 lines
4.8 KiB
Smali
186 lines
4.8 KiB
Smali
.class public final enum Lcom/moji/tool/thread/ThreadPriority;
|
|
.super Ljava/lang/Enum;
|
|
.source "ThreadPriority.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/Enum<",
|
|
"Lcom/moji/tool/thread/ThreadPriority;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final synthetic $VALUES:[Lcom/moji/tool/thread/ThreadPriority;
|
|
|
|
.field public static final enum BACKGROUND:Lcom/moji/tool/thread/ThreadPriority;
|
|
|
|
.field public static final enum HIGH:Lcom/moji/tool/thread/ThreadPriority;
|
|
|
|
.field public static final enum LOW:Lcom/moji/tool/thread/ThreadPriority;
|
|
|
|
.field public static final enum NORMAL:Lcom/moji/tool/thread/ThreadPriority;
|
|
|
|
.field public static final enum REAL_TIME:Lcom/moji/tool/thread/ThreadPriority;
|
|
|
|
|
|
# instance fields
|
|
.field private mPriority:I
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 9
|
|
|
|
.line 11
|
|
new-instance v0, Lcom/moji/tool/thread/ThreadPriority;
|
|
|
|
const-string v1, "REAL_TIME"
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/16 v3, -0x63
|
|
|
|
invoke-direct {v0, v1, v2, v3}, Lcom/moji/tool/thread/ThreadPriority;-><init>(Ljava/lang/String;II)V
|
|
|
|
sput-object v0, Lcom/moji/tool/thread/ThreadPriority;->REAL_TIME:Lcom/moji/tool/thread/ThreadPriority;
|
|
|
|
.line 15
|
|
new-instance v0, Lcom/moji/tool/thread/ThreadPriority;
|
|
|
|
const-string v1, "HIGH"
|
|
|
|
const/4 v3, 0x1
|
|
|
|
invoke-direct {v0, v1, v3, v2}, Lcom/moji/tool/thread/ThreadPriority;-><init>(Ljava/lang/String;II)V
|
|
|
|
sput-object v0, Lcom/moji/tool/thread/ThreadPriority;->HIGH:Lcom/moji/tool/thread/ThreadPriority;
|
|
|
|
.line 19
|
|
new-instance v0, Lcom/moji/tool/thread/ThreadPriority;
|
|
|
|
const-string v1, "NORMAL"
|
|
|
|
const/4 v4, 0x5
|
|
|
|
const/4 v5, 0x2
|
|
|
|
invoke-direct {v0, v1, v5, v4}, Lcom/moji/tool/thread/ThreadPriority;-><init>(Ljava/lang/String;II)V
|
|
|
|
sput-object v0, Lcom/moji/tool/thread/ThreadPriority;->NORMAL:Lcom/moji/tool/thread/ThreadPriority;
|
|
|
|
.line 23
|
|
new-instance v0, Lcom/moji/tool/thread/ThreadPriority;
|
|
|
|
const-string v1, "LOW"
|
|
|
|
const/4 v6, 0x3
|
|
|
|
const/16 v7, 0xa
|
|
|
|
invoke-direct {v0, v1, v6, v7}, Lcom/moji/tool/thread/ThreadPriority;-><init>(Ljava/lang/String;II)V
|
|
|
|
sput-object v0, Lcom/moji/tool/thread/ThreadPriority;->LOW:Lcom/moji/tool/thread/ThreadPriority;
|
|
|
|
.line 27
|
|
new-instance v0, Lcom/moji/tool/thread/ThreadPriority;
|
|
|
|
const-string v1, "BACKGROUND"
|
|
|
|
const/4 v7, 0x4
|
|
|
|
const/16 v8, 0x63
|
|
|
|
invoke-direct {v0, v1, v7, v8}, Lcom/moji/tool/thread/ThreadPriority;-><init>(Ljava/lang/String;II)V
|
|
|
|
sput-object v0, Lcom/moji/tool/thread/ThreadPriority;->BACKGROUND:Lcom/moji/tool/thread/ThreadPriority;
|
|
|
|
.line 7
|
|
new-array v0, v4, [Lcom/moji/tool/thread/ThreadPriority;
|
|
|
|
sget-object v1, Lcom/moji/tool/thread/ThreadPriority;->REAL_TIME:Lcom/moji/tool/thread/ThreadPriority;
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
sget-object v1, Lcom/moji/tool/thread/ThreadPriority;->HIGH:Lcom/moji/tool/thread/ThreadPriority;
|
|
|
|
aput-object v1, v0, v3
|
|
|
|
sget-object v1, Lcom/moji/tool/thread/ThreadPriority;->NORMAL:Lcom/moji/tool/thread/ThreadPriority;
|
|
|
|
aput-object v1, v0, v5
|
|
|
|
sget-object v1, Lcom/moji/tool/thread/ThreadPriority;->LOW:Lcom/moji/tool/thread/ThreadPriority;
|
|
|
|
aput-object v1, v0, v6
|
|
|
|
sget-object v1, Lcom/moji/tool/thread/ThreadPriority;->BACKGROUND:Lcom/moji/tool/thread/ThreadPriority;
|
|
|
|
aput-object v1, v0, v7
|
|
|
|
sput-object v0, Lcom/moji/tool/thread/ThreadPriority;->$VALUES:[Lcom/moji/tool/thread/ThreadPriority;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>(Ljava/lang/String;II)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(I)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 30
|
|
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
|
|
|
|
.line 31
|
|
iput p3, p0, Lcom/moji/tool/thread/ThreadPriority;->mPriority:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static valueOf(Ljava/lang/String;)Lcom/moji/tool/thread/ThreadPriority;
|
|
.locals 1
|
|
|
|
.line 7
|
|
const-class v0, Lcom/moji/tool/thread/ThreadPriority;
|
|
|
|
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Lcom/moji/tool/thread/ThreadPriority;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static values()[Lcom/moji/tool/thread/ThreadPriority;
|
|
.locals 1
|
|
|
|
.line 7
|
|
sget-object v0, Lcom/moji/tool/thread/ThreadPriority;->$VALUES:[Lcom/moji/tool/thread/ThreadPriority;
|
|
|
|
invoke-virtual {v0}, [Lcom/moji/tool/thread/ThreadPriority;->clone()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, [Lcom/moji/tool/thread/ThreadPriority;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getPriorityValue()I
|
|
.locals 1
|
|
|
|
.line 35
|
|
iget v0, p0, Lcom/moji/tool/thread/ThreadPriority;->mPriority:I
|
|
|
|
return v0
|
|
.end method
|