mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
159 lines
3.6 KiB
Smali
159 lines
3.6 KiB
Smali
|
.class public final Ltech/rabbit/r1systemupdater/model/UpdateEngineStatuses;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "UpdateEngineStatuses.java"
|
||
|
|
||
|
|
||
|
# static fields
|
||
|
.field public static final CLEANUP_PREVIOUS_UPDATE:I = 0xb
|
||
|
|
||
|
.field public static final IDLE:I = 0x0
|
||
|
|
||
|
.field public static final NEED_REBOOT:I = 0x6
|
||
|
|
||
|
.field private static final STATUS_MAP:Landroid/util/SparseArray;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Landroid/util/SparseArray<",
|
||
|
"Ljava/lang/String;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method static constructor <clinit>()V
|
||
|
.locals 3
|
||
|
|
||
|
.line 28
|
||
|
new-instance v0, Landroid/util/SparseArray;
|
||
|
|
||
|
invoke-direct {v0}, Landroid/util/SparseArray;-><init>()V
|
||
|
|
||
|
sput-object v0, Ltech/rabbit/r1systemupdater/model/UpdateEngineStatuses;->STATUS_MAP:Landroid/util/SparseArray;
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
const-string v2, "waiting for start update"
|
||
|
|
||
|
.line 36
|
||
|
invoke-virtual {v0, v1, v2}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
const-string v2, "checking for update"
|
||
|
|
||
|
.line 37
|
||
|
invoke-virtual {v0, v1, v2}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V
|
||
|
|
||
|
const/4 v1, 0x2
|
||
|
|
||
|
const-string v2, "update available"
|
||
|
|
||
|
.line 38
|
||
|
invoke-virtual {v0, v1, v2}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V
|
||
|
|
||
|
const/4 v1, 0x3
|
||
|
|
||
|
const-string v2, "downloading"
|
||
|
|
||
|
.line 39
|
||
|
invoke-virtual {v0, v1, v2}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V
|
||
|
|
||
|
const/4 v1, 0x4
|
||
|
|
||
|
const-string v2, "verifying"
|
||
|
|
||
|
.line 40
|
||
|
invoke-virtual {v0, v1, v2}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V
|
||
|
|
||
|
const/4 v1, 0x5
|
||
|
|
||
|
const-string v2, "finalizing"
|
||
|
|
||
|
.line 41
|
||
|
invoke-virtual {v0, v1, v2}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V
|
||
|
|
||
|
const/4 v1, 0x6
|
||
|
|
||
|
const-string v2, "updated need reboot"
|
||
|
|
||
|
.line 42
|
||
|
invoke-virtual {v0, v1, v2}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V
|
||
|
|
||
|
const/4 v1, 0x7
|
||
|
|
||
|
const-string v2, "reporting error event"
|
||
|
|
||
|
.line 43
|
||
|
invoke-virtual {v0, v1, v2}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V
|
||
|
|
||
|
const/16 v1, 0x8
|
||
|
|
||
|
const-string v2, "attemping rollback"
|
||
|
|
||
|
.line 44
|
||
|
invoke-virtual {v0, v1, v2}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V
|
||
|
|
||
|
const/16 v1, 0x9
|
||
|
|
||
|
const-string v2, "disabled"
|
||
|
|
||
|
.line 45
|
||
|
invoke-virtual {v0, v1, v2}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V
|
||
|
|
||
|
const/16 v1, 0xa
|
||
|
|
||
|
const-string v2, "need permission to update"
|
||
|
|
||
|
.line 46
|
||
|
invoke-virtual {v0, v1, v2}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V
|
||
|
|
||
|
const/16 v1, 0xb
|
||
|
|
||
|
const-string v2, "cleanup previous update"
|
||
|
|
||
|
.line 47
|
||
|
invoke-virtual {v0, v1, v2}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method private constructor <init>()V
|
||
|
.locals 0
|
||
|
|
||
|
.line 57
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public static getStatusText(I)Ljava/lang/String;
|
||
|
.locals 2
|
||
|
|
||
|
sget-object v0, Ltech/rabbit/r1systemupdater/model/UpdateEngineStatuses;->STATUS_MAP:Landroid/util/SparseArray;
|
||
|
|
||
|
.line 54
|
||
|
invoke-virtual {v0, p0}, Landroid/util/SparseArray;->contains(I)Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_0
|
||
|
|
||
|
invoke-virtual {v0, p0}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
check-cast p0, Ljava/lang/String;
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
invoke-static {p0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
:goto_0
|
||
|
return-object p0
|
||
|
.end method
|