b.smali
.class public Lcom/cleanmaster/pluginscommonlib/oeam/b;
.super Ljava/lang/Object;
.source "Env.java"
# static fields
.field public static a:Z
.field private static volatile b:Z
# direct methods
.method static constructor <clinit>()V
.registers 1
.prologue
.line 121
const/4 v0, 0x0
sput-boolean v0, Lcom/cleanmaster/pluginscommonlib/oeam/b;->b:Z
.line 169
invoke-static {}, Lcom/cleanmaster/pluginscommonlib/oeam/b;->d()Z
move-result v0
sput-boolean v0, Lcom/cleanmaster/pluginscommonlib/oeam/b;->a:Z
return-void
.end method
.method public static a()Ljava/lang/String;
.registers 2
.prologue
.line 109
invoke-static {}, Lcom/cleanmaster/pluginscommonlib/oeam/b;->b()Ljava/lang/String;
move-result-object v0
.line 111
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-nez v1, :cond_b
.line 118
:goto_a
return-object v0
.line 114
:cond_b
invoke-static {}, Lcom/cleanmaster/pluginscommonlib/n;->b()Landroid/content/Context;
move-result-object v0
invoke-virtual {v0}, Landroid/content/Context;->getCacheDir()Ljava/io/File;
move-result-object v0
.line 115
if-eqz v0, :cond_1a
.line 116
invoke-virtual {v0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;
move-result-object v0
goto :goto_a
.line 118
:cond_1a
const/4 v0, 0x0
goto :goto_a
.end method
.method public static b()Ljava/lang/String;
.registers 2
.prologue
.line 123
invoke-static {}, Lcom/cleanmaster/pluginscommonlib/oeam/b;->c()Ljava/io/File;
move-result-object v1
.line 124
const/4 v0, 0x0
.line 125
if-eqz v1, :cond_b
.line 126
invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;
move-result-object v0
.line 128
:cond_b
return-object v0
.end method
.method public static c()Ljava/io/File;
.registers 4
.prologue
const/4 v3, 0x0
const/4 v0, 0x0
.line 132
invoke-static {}, Lcom/cleanmaster/pluginscommonlib/n;->b()Landroid/content/Context;
move-result-object v1
.line 135
const/4 v2, 0x0
:try_start_7
invoke-static {v1, v2}, Landroid/support/v4/content/ContextCompat;->getExternalFilesDirs(Landroid/content/Context;Ljava/lang/String;)[Ljava/io/File;
:try_end_a
.catch Ljava/lang/NullPointerException; {:try_start_7 .. :try_end_a} :catch_29
.catch Ljava/lang/SecurityException; {:try_start_7 .. :try_end_a} :catch_2f
.catch Ljava/lang/ArrayIndexOutOfBoundsException; {:try_start_7 .. :try_end_a} :catch_35
move-result-object v1
.line 146
:goto_b
if-eqz v1, :cond_28
array-length v2, v1
if-lez v2, :cond_28
aget-object v2, v1, v3
if-eqz v2, :cond_28
.line 147
aget-object v0, v1, v3
.line 148
if-eqz v0, :cond_28
sget-boolean v1, Lcom/cleanmaster/pluginscommonlib/oeam/b;->b:Z
if-nez v1, :cond_28
.line 149
const/4 v1, 0x1
sput-boolean v1, Lcom/cleanmaster/pluginscommonlib/oeam/b;->b:Z
.line 150
invoke-virtual {v0}, Ljava/io/File;->exists()Z
move-result v1
.line 151
if-nez v1, :cond_28
.line 152
invoke-virtual {v0}, Ljava/io/File;->mkdirs()Z
.line 156
:cond_28
return-object v0
.line 137
:catch_29
move-exception v1
.line 138
invoke-virtual {v1}, Ljava/lang/NullPointerException;->printStackTrace()V
move-object v1, v0
.line 143
goto :goto_b
.line 139
:catch_2f
move-exception v1
.line 140
invoke-virtual {v1}, Ljava/lang/SecurityException;->printStackTrace()V
move-object v1, v0
.line 143
goto :goto_b
.line 141
:catch_35
move-exception v1
.line 142
invoke-virtual {v1}, Ljava/lang/ArrayIndexOutOfBoundsException;->printStackTrace()V
move-object v1, v0
goto :goto_b
.end method
.method private static d()Z
.registers 2
.prologue
.line 171
new-instance v0, Ljava/io/File;
const-string v1, "/sys/devices/system/cpu/cpu1"
invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V
.line 173
invoke-virtual {v0}, Ljava/io/File;->isDirectory()Z
move-result v0
if-eqz v0, :cond_f
.line 174
const/4 v0, 0x1
.line 176
:goto_e
return v0
:cond_f
const/4 v0, 0x0
goto :goto_e
.end method