bgo.smali
.class public Ldxoptimizer/bgo;
.super Ljava/lang/Object;
.source "LabMonitorManager.java"
# static fields
.field private static volatile c:Ldxoptimizer/bgo;
# instance fields
.field private a:Ldxoptimizer/bkh;
.field private b:Landroid/content/Context;
# direct methods
.method static constructor <clinit>()V
.registers 1
.prologue
.line 24
const/4 v0, 0x0
sput-object v0, Ldxoptimizer/bgo;->c:Ldxoptimizer/bgo;
return-void
.end method
.method private constructor <init>(Landroid/content/Context;)V
.registers 3
.prologue
.line 26
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 27
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v0
iput-object v0, p0, Ldxoptimizer/bgo;->b:Landroid/content/Context;
.line 28
return-void
.end method
.method static synthetic a(Ldxoptimizer/bgo;)Landroid/content/Context;
.registers 2
.prologue
.line 21
iget-object v0, p0, Ldxoptimizer/bgo;->b:Landroid/content/Context;
return-object v0
.end method
.method public static a(Landroid/content/Context;)Ldxoptimizer/bgo;
.registers 3
.prologue
.line 31
sget-object v0, Ldxoptimizer/bgo;->c:Ldxoptimizer/bgo;
if-nez v0, :cond_13
.line 32
const-class v1, Ldxoptimizer/bgo;
monitor-enter v1
.line 33
:try_start_7
sget-object v0, Ldxoptimizer/bgo;->c:Ldxoptimizer/bgo;
if-nez v0, :cond_12
.line 34
new-instance v0, Ldxoptimizer/bgo;
invoke-direct {v0, p0}, Ldxoptimizer/bgo;-><init>(Landroid/content/Context;)V
sput-object v0, Ldxoptimizer/bgo;->c:Ldxoptimizer/bgo;
.line 36
:cond_12
monitor-exit v1
:try_end_13
.catchall {:try_start_7 .. :try_end_13} :catchall_16
.line 38
:cond_13
sget-object v0, Ldxoptimizer/bgo;->c:Ldxoptimizer/bgo;
return-object v0
.line 36
:catchall_16
move-exception v0
:try_start_17
monitor-exit v1
:try_end_18
.catchall {:try_start_17 .. :try_end_18} :catchall_16
throw v0
.end method
.method private b()V
.registers 3
.prologue
.line 48
iget-object v0, p0, Ldxoptimizer/bgo;->a:Ldxoptimizer/bkh;
if-nez v0, :cond_d
.line 49
new-instance v0, Ldxoptimizer/bkh;
iget-object v1, p0, Ldxoptimizer/bgo;->b:Landroid/content/Context;
invoke-direct {v0, v1}, Ldxoptimizer/bkh;-><init>(Landroid/content/Context;)V
iput-object v0, p0, Ldxoptimizer/bgo;->a:Ldxoptimizer/bkh;
.line 50
:cond_d
invoke-static {}, Ldxoptimizer/aep;->a()Ldxoptimizer/aep;
move-result-object v0
iget-object v1, p0, Ldxoptimizer/bgo;->a:Ldxoptimizer/bkh;
invoke-virtual {v0, v1}, Ldxoptimizer/aep;->a(Ldxoptimizer/aep$d;)V
.line 51
return-void
.end method
.method public static b(Landroid/content/Context;)V
.registers 2
.prologue
.line 66
invoke-static {p0}, Ldxoptimizer/bgo;->a(Landroid/content/Context;)Ldxoptimizer/bgo;
move-result-object v0
invoke-virtual {v0}, Ldxoptimizer/bgo;->a()V
.line 67
return-void
.end method
.method private c()V
.registers 3
.prologue
.line 60
iget-object v0, p0, Ldxoptimizer/bgo;->b:Landroid/content/Context;
invoke-static {v0}, Ldxoptimizer/bgf;->a(Landroid/content/Context;)Ldxoptimizer/bgf;
move-result-object v0
.line 61
const/4 v1, 0x1
invoke-virtual {v0, v1}, Ldxoptimizer/bgf;->a(Z)V
.line 62
return-void
.end method
.method private d()V
.registers 3
.prologue
.line 70
new-instance v0, Ljava/lang/Thread;
new-instance v1, Ldxoptimizer/bgo$1;
invoke-direct {v1, p0}, Ldxoptimizer/bgo$1;-><init>(Ldxoptimizer/bgo;)V
invoke-direct {v0, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V
.line 100
invoke-virtual {v0}, Ljava/lang/Thread;->start()V
.line 101
return-void
.end method
# virtual methods
.method public a()V
.registers 1
.prologue
.line 42
invoke-direct {p0}, Ldxoptimizer/bgo;->c()V
.line 43
invoke-direct {p0}, Ldxoptimizer/bgo;->b()V
.line 44
invoke-direct {p0}, Ldxoptimizer/bgo;->d()V
.line 45
return-void
.end method
.method public a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
.registers 9
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/security/NoSuchAlgorithmException;,
Ljava/io/IOException;
}
.end annotation
.prologue
const/4 v1, 0x0
.line 106
invoke-virtual {p1}, Landroid/content/Context;->getAssets()Landroid/content/res/AssetManager;
move-result-object v0
.line 111
:try_start_5
invoke-virtual {v0, p2}, Landroid/content/res/AssetManager;->open(Ljava/lang/String;)Ljava/io/InputStream;
:try_end_8
.catchall {:try_start_5 .. :try_end_8} :catchall_2d
move-result-object v2
.line 112
const/4 v0, 0x0
:try_start_a
invoke-virtual {p1, p3, v0}, Landroid/content/Context;->openFileOutput(Ljava/lang/String;I)Ljava/io/FileOutputStream;
move-result-object v1
.line 114
const/16 v0, 0x1000
new-array v0, v0, [B
.line 118
:goto_12
invoke-virtual {v2, v0}, Ljava/io/InputStream;->read([B)I
move-result v3
const/4 v4, -0x1
if-eq v3, v4, :cond_26
.line 119
const/4 v4, 0x0
invoke-virtual {v1, v0, v4, v3}, Ljava/io/FileOutputStream;->write([BII)V
:try_end_1d
.catchall {:try_start_a .. :try_end_1d} :catchall_1e
goto :goto_12
.line 122
:catchall_1e
move-exception v0
:goto_1f
invoke-static {v2}, Ldxoptimizer/cdp;->a(Ljava/io/Closeable;)V
.line 123
invoke-static {v1}, Ldxoptimizer/cdp;->a(Ljava/io/Closeable;)V
throw v0
.line 122
:cond_26
invoke-static {v2}, Ldxoptimizer/cdp;->a(Ljava/io/Closeable;)V
.line 123
invoke-static {v1}, Ldxoptimizer/cdp;->a(Ljava/io/Closeable;)V
.line 125
return-void
.line 122
:catchall_2d
move-exception v0
move-object v2, v1
goto :goto_1f
.end method