DbPath.smali
.class public Lcom/cleanmaster/bitmapcache/DbPath;
.super Ljava/lang/Object;
.source "DbPath.java"
# static fields
.field private static appContext:Landroid/content/Context; = null
.field private static dbPath:Lcom/cleanmaster/bitmapcache/DbPath; = null
.field private static externalDirName:Ljava/lang/String; = null
.field private static final image_path:Ljava/lang/String; = "/iconcache/"
# direct methods
.method static constructor <clinit>()V
.registers 1
.prologue
.line 87
const/4 v0, 0x0
sput-object v0, Lcom/cleanmaster/bitmapcache/DbPath;->dbPath:Lcom/cleanmaster/bitmapcache/DbPath;
return-void
.end method
.method private constructor <init>()V
.registers 1
.prologue
.line 89
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 90
return-void
.end method
.method public static declared-synchronized getDbPath()Lcom/cleanmaster/bitmapcache/DbPath;
.registers 2
.prologue
.line 93
const-class v1, Lcom/cleanmaster/bitmapcache/DbPath;
monitor-enter v1
:try_start_3
sget-object v0, Lcom/cleanmaster/bitmapcache/DbPath;->dbPath:Lcom/cleanmaster/bitmapcache/DbPath;
if-nez v0, :cond_e
.line 94
new-instance v0, Lcom/cleanmaster/bitmapcache/DbPath;
invoke-direct {v0}, Lcom/cleanmaster/bitmapcache/DbPath;-><init>()V
sput-object v0, Lcom/cleanmaster/bitmapcache/DbPath;->dbPath:Lcom/cleanmaster/bitmapcache/DbPath;
.line 96
:cond_e
sget-object v0, Lcom/cleanmaster/bitmapcache/DbPath;->dbPath:Lcom/cleanmaster/bitmapcache/DbPath;
:try_end_10
.catchall {:try_start_3 .. :try_end_10} :catchall_12
monitor-exit v1
return-object v0
.line 93
:catchall_12
move-exception v0
monitor-exit v1
throw v0
.end method
.method public static getExternalFilesRootDir()Ljava/io/File;
.registers 3
.prologue
const/4 v0, 0x0
.line 143
:try_start_1
sget-object v1, Lcom/cleanmaster/bitmapcache/DbPath;->appContext:Landroid/content/Context;
const/4 v2, 0x0
invoke-virtual {v1, v2}, Landroid/content/Context;->getExternalFilesDir(Ljava/lang/String;)Ljava/io/File;
:try_end_7
.catch Ljava/lang/NullPointerException; {:try_start_1 .. :try_end_7} :catch_d
.catch Ljava/lang/SecurityException; {:try_start_1 .. :try_end_7} :catch_b
.catch Ljava/lang/ArrayIndexOutOfBoundsException; {:try_start_1 .. :try_end_7} :catch_9
move-result-object v0
.line 151
:goto_8
return-object v0
.line 150
:catch_9
move-exception v1
goto :goto_8
.line 147
:catch_b
move-exception v1
goto :goto_8
.line 145
:catch_d
move-exception v1
goto :goto_8
.end method
.method public static getExternalStorageDirectoryx()Ljava/lang/String;
.registers 5
.prologue
const/4 v1, 0x0
.line 119
:try_start_1
invoke-static {}, Lcom/cleanmaster/bitmapcache/DbPath;->getExternalFilesRootDir()Ljava/io/File;
:try_end_4
.catch Ljava/lang/NullPointerException; {:try_start_1 .. :try_end_4} :catch_45
move-result-object v0
.line 125
:goto_5
if-eqz v0, :cond_11
invoke-virtual {v0}, Ljava/io/File;->exists()Z
move-result v2
if-eqz v2, :cond_11
.line 126
invoke-virtual {v0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;
move-result-object v1
.line 130
:cond_11
if-nez v1, :cond_52
:try_start_13
invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;
move-result-object v0
if-eqz v0, :cond_52
.line 131
new-instance v0, Ljava/io/File;
invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;
move-result-object v2
sget-object v3, Lcom/cleanmaster/bitmapcache/DbPath;->externalDirName:Ljava/lang/String;
invoke-direct {v0, v2, v3}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
invoke-virtual {v0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;
:try_end_27
.catch Ljava/lang/Exception; {:try_start_13 .. :try_end_27} :