ch.smali
.class public final Lcom/loc/ch;
.super Ljava/lang/Object;
# static fields
.field static a:Z
.field static b:Z
.field static c:Z
.field static d:Z
.field static e:I
.field static f:I
.field static g:Z
.field static h:Z
# direct methods
.method static constructor <clinit>()V
.registers 2
const/4 v1, 0x0
sput-boolean v1, Lcom/loc/ch;->a:Z
sput-boolean v1, Lcom/loc/ch;->b:Z
sput-boolean v1, Lcom/loc/ch;->c:Z
sput-boolean v1, Lcom/loc/ch;->d:Z
sput v1, Lcom/loc/ch;->e:I
sput v1, Lcom/loc/ch;->f:I
const/4 v0, 0x1
sput-boolean v0, Lcom/loc/ch;->g:Z
sput-boolean v1, Lcom/loc/ch;->h:Z
return-void
.end method
.method public static a(Landroid/content/Context;)V
.registers 4
:try_start_0
invoke-static {p0}, Lcom/loc/ch;->e(Landroid/content/Context;)Z
move-result v0
if-nez v0, :cond_7
:cond_6
:goto_6
return-void
:cond_7
sget-boolean v0, Lcom/loc/ch;->a:Z
if-nez v0, :cond_6
const-string/jumbo v0, "loc"
const-string/jumbo v1, "startMark"
const/4 v2, 0x0
invoke-static {p0, v0, v1, v2}, Lcom/loc/ci;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;I)I
move-result v0
const-string/jumbo v1, "loc"
const-string/jumbo v2, "startMark"
add-int/lit8 v0, v0, 0x1
invoke-static {p0, v1, v2, v0}, Lcom/loc/ci;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;I)V
const/4 v0, 0x1
sput-boolean v0, Lcom/loc/ch;->a:Z
:try_end_24
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_24} :catch_25
goto :goto_6
:catch_25
move-exception v0
const-string/jumbo v1, "RollBackDynamic"
const-string/jumbo v2, "AddStartMark"
invoke-static {v0, v1, v2}, Lcom/loc/ca;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V
goto :goto_6
.end method
.method private static a(Landroid/content/Context;I)V
.registers 5
:try_start_0
invoke-static {p0}, Lcom/loc/ch;->e(Landroid/content/Context;)Z
move-result v0
if-nez v0, :cond_7
:goto_6
return-void
:cond_7
const-string/jumbo v0, "loc"
const-string/jumbo v1, "endMark"
invoke-static {p0, v0, v1, p1}, Lcom/loc/ci;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;I)V
const-string/jumbo v0, "loc"
const-string/jumbo v1, "startMark"
invoke-static {p0, v0, v1, p1}, Lcom/loc/ci;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;I)V
:try_end_19
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_19} :catch_1a
goto :goto_6
:catch_1a
move-exception v0
const-string/jumbo v1, "RollBackDynamic"
const-string/jumbo v2, "resetMark"
invoke-static {v0, v1, v2}, Lcom/loc/ca;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V
goto :goto_6
.end method
.method public static a(Landroid/content/Context;Lcom/loc/cy;)V
.registers 4
sget-boolean v0, Lcom/loc/ch;->d:Z
if-nez v0, :cond_26
invoke-static {p0, p1}, Lcom/loc/u;->a(Landroid/content/Context;Lcom/loc/cy;)Z
move-result v0
sput-boolean v0, Lcom/loc/ch;->c:Z
const/4 v0, 0x1
sput-boolean v0, Lcom/loc/ch;->d:Z
sget-boolean v0, Lcom/loc/ch;->c:Z
if-nez v0, :cond_26
invoke-static {}, Lcom/loc/ca;->c()Z
move-result v0
if-eqz v0, :cond_26
const-string/jumbo v0, "loc"
invoke-static {p0, v0}, Lcom/loc/u;->a(Landroid/content/Context;Ljava/lang/String;)V
const-string/jumbo v0, "dexrollbackstatistics"
const-string/jumbo v1, "RollBack because of version error"
invoke-static {v0, v1}, Lcom/loc/cg;->a(Ljava/lang/String;Ljava/lang/String;)V
:cond_26
return-void
.end method
.method public static a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
.registers 6
:try_start_0
invoke-static {p0, p1}, Lcom/loc/u;->a(Landroid/content/Context;Ljava/lang/String;)V
const-string/jumbo v0, "dexrollbackstatistics"
new-instance v1, Ljava/lang/StringBuilder;
const-string/jumbo v2, "RollBack because of "
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v0, v1}, Lcom/loc/cg;->a(Ljava/lang/String;Ljava/lang/String;)V
:try_end_19
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_19} :catch_1a
:goto_19
return-void
:catch_1a
move-exception v0
const-string/jumbo v1, "RollBackDynamic"
const-string/jumbo v2, "rollBackDynamicFile"
invoke-static {v0, v1, v2}, Lcom/loc/ca;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V
goto :goto_19
.end method
.method public static b(Landroid/content/Context;)V
.registers 4
:try_start_0
invoke-static {p0}, Lcom/loc/ch;->e(Landroid/content/Context;)Z
move-result v0
if-nez v0, :cond_7
:cond_6
:goto_6
return-void
:cond_7
sget-boolean v0, Lcom/loc/ch;->b:Z
if-nez v0, :cond_6
const-string/jumbo v0, "loc"
const-string/jumbo v1, "endMark"
const/4 v2, 0x0
invoke-static {p0, v0, v1, v2}, Lcom/loc/ci;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;I)I
move-result v0
const-string/jumbo v1, "loc"
const-string/jumbo v2, "endMark"
add-int/lit8 v0, v0, 0x1
invoke-static {p0, v1, v2, v0}, Lcom/loc/ci;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;I)V
const/4 v0, 0x1
sput-boolean v0, Lcom/loc/ch;->b:Z
:try_end_24
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_24} :catch_25
goto :goto_6
:catch_25
move-exception v0
const-string/jumbo v1, "RollBackDynamic"
const-string/jumbo v2, "AddEndMark"
invoke-static {v0, v1, v2}, Lcom/loc/ca;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V
goto :goto_6
.end method
.method public static c(Landroid/content/Context;)Z
.registers 5
const/16 v3, 0x63
const/4 v0, 0x0
:try_start_3
invoke-static {p0}, Lcom/loc/ch;->e(Landroid/content/Context;)Z
move-result v1
if-nez v1, :cond_a
:goto_9
return v0
:cond_a
sget-boolean v0, Lcom/loc/ch;->h:Z
if-eqz v0, :cond_11
sget-boolean v0, Lcom/loc/ch;->g:Z
goto :goto_9
:cond_11
sget v0, Lcom/loc/ch;->e:I
if-nez v0, :cond_22
const-string/jumbo v0, "loc"
const-string/jumbo v1, "startMark"
const/4 v2, 0x0
invoke-static {p0, v0, v1, v2}, Lcom/loc/ci;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;I)I
move-result v0
sput v0, Lcom/loc/ch;->e:I
:cond_22
sget v0, Lcom/loc/ch;->f:I
if-nez v0, :cond_33
const-string/jumbo v0, "loc"
const-string/jumbo v1, "endMark"
const/4 v2, 0x0
invoke-static {p0, v0, v1, v2}, Lcom/loc/ci;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;I)I
move-result v0
sput v0, Lcom/loc/ch;->f:I
:cond_33
sget-boolean v0, Lcom/loc/ch;->a:Z
if-nez v0, :cond_83
sget-boolean v0, Lcom/loc/ch;->b:Z
if-nez v0, :cond_83
sget v0, Lcom/loc/ch;->e:I
sget v1, Lcom/loc/ch;->f:I
if-ge v0, v1, :cond_48
const/4 v0, 0x0
invoke-static {p0, v0}, Lcom/loc/ch;->a(Landroid/content/Context;I)V
const/4 v0, 0x1
sput-boolean v0, Lcom/loc/ch;->g:Z
:cond_48
sget v0, Lcom/loc/ch;->e:I
sget v1, Lcom/loc/ch;->f:I
sub-int/2addr v0, v1
if-lez v0, :cond_5a
sget v0, Lcom/loc/ch;->e:I
if-le v0, v3, :cond_5a
const/4 v0, 0x0
invoke-static {p0, v0}, Lcom/loc/ch;->a(Landroid/content/Context;I)V
const/4 v0, 0x1
sput-boolean v0, Lcom/loc/ch;->g:Z
:cond_5a
sget v0, Lcom/loc/ch;->e:I
sget v1, Lcom/loc/ch;->f:I
sub-int/2addr v0, v1
if-lez v0, :cond_6c
sget v0, Lcom/loc/ch;->e:I
if-ge v0, v3, :cond_6c
const/4 v0, -0x2
invoke-static {p0, v0}, Lcom/loc/ch;->a(Landroid/content/Context;I)V
const/4 v0, 0x0
sput-boolean v0, Lcom/loc/ch;->g:Z
:cond_6c
sget v0, Lcom/loc/ch;->e:I
sget v1, Lcom/loc/ch;->f:I
sub-int/2addr v0, v1
if-lez v0, :cond_83
sget v0, Lcom/loc/ch;->f:I
if-gez v0, :cond_83
const-string/jumbo v0, "loc"
const-string/jumbo v1, "checkMark"
invoke-static {p0, v0, v1}, Lcom/loc/ch;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
const/4 v0, 0x0
sput-boolean v0, Lcom/loc/ch;->g:Z
:cond_83
const-string/jumbo v0, "loc"
const-string/jumbo v1, "isload"
sget-boolean v2, Lcom/loc/ch;->g:Z
invoke-static {p0, v0, v1, v2}, Lcom/loc/ci;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Z)V
const/4 v0, 0x1
sput-boolean v0, Lcom/loc/ch;->h:Z
:try_end_91
.catch Ljava/lang/Throwable; {:try_start_3 .. :try_end_91} :catch_95
:goto_91
sget-boolean v0, Lcom/loc/ch;->g:Z
goto/16 :goto_9
:catch_95
move-exception v0
const-string/jumbo v1, "RollBackDynamic"
const-string/jumbo v2, "checkMark"
invoke-static {v0, v1, v2}, Lcom/loc/ca;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V
goto :goto_91
.end method
.method public static d(Landroid/content/Context;)Z
.registers 4
const/4 v0, 0x0
:try_start_1
invoke-static {p0}, Lcom/loc/ch;->e(Landroid/content/Context;)Z
move-result v1
if-nez v1, :cond_8
:goto_7
return v0
:cond_8
const-string/jumbo v0, "loc"
const-string/jumbo v1, "isload"
const/4 v2, 0x0
invoke-static {p0, v0, v1, v2}, Lcom/loc/ci;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Z)Z
:try_end_12
.catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_12} :catch_14
move-result v0
goto :goto_7
:catch_14
move-exception v0
const-string/jumbo v1, "RollBackDynamic"
const-string/jumbo v2, "isLoad"
invoke-static {v0, v1, v2}, Lcom/loc/ca;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V
const/4 v0, 0x1
goto :goto_7
.end method
.method private static e(Landroid/content/Context;)Z
.registers 2
sget-boolean v0, Lcom/loc/ch;->d:Z
if-nez v0, :cond_b
invoke-static {}, Lcom/loc/ca;->b()Lcom/loc/cy;
move-result-object v0
invoke-static {p0, v0}, Lcom/loc/ch;->a(Landroid/content/Context;Lcom/loc/cy;)V
:cond_b
sget-boolean v0, Lcom/loc/ch;->c:Z
return v0
.end method