a.smali
.class public final Lcom/appsflyer/a/a;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field private static AB:Lcom/appsflyer/a/a;
# direct methods
.method static constructor <clinit>()V
.registers 1
.prologue
.line 24
new-instance v0, Lcom/appsflyer/a/a;
invoke-direct {v0}, Lcom/appsflyer/a/a;-><init>()V
sput-object v0, Lcom/appsflyer/a/a;->AB:Lcom/appsflyer/a/a;
return-void
.end method
.method private constructor <init>()V
.registers 1
.prologue
.line 30
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 31
return-void
.end method
.method public static C(Landroid/content/Context;)Ljava/io/File;
.registers 4
.prologue
.line 34
new-instance v0, Ljava/io/File;
invoke-virtual {p0}, Landroid/content/Context;->getFilesDir()Ljava/io/File;
move-result-object v1
const-string v2, "AFRequestCache"
invoke-direct {v0, v1, v2}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
return-object v0
.end method
.method public static D(Landroid/content/Context;)Ljava/util/List;
.registers 8
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
")",
"Ljava/util/List",
"<",
"Lcom/appsflyer/a/b;",
">;"
}
.end annotation
.prologue
.line 97
new-instance v1, Ljava/util/ArrayList;
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
.line 100
:try_start_5
invoke-static {p0}, Lcom/appsflyer/a/a;->C(Landroid/content/Context;)Ljava/io/File;
move-result-object v0
.line 101
invoke-virtual {v0}, Ljava/io/File;->exists()Z
move-result v2
if-nez v2, :cond_13
.line 102
invoke-virtual {v0}, Ljava/io/File;->mkdir()Z
.line 114
:cond_12
:goto_12
return-object v1
.line 104
:cond_13
invoke-virtual {v0}, Ljava/io/File;->listFiles()[Ljava/io/File;
move-result-object v2
.line 105
array-length v3, v2
const/4 v0, 0x0
:goto_19
if-ge v0, v3, :cond_12
aget-object v4, v2, v0
.line 106
new-instance v5, Ljava/lang/StringBuilder;
const-string v6, "Found cached request"
invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v4}, Ljava/io/File;->getName()Ljava/lang/String;
move-result-object v6
invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 107
invoke-static {v4}, Lcom/appsflyer/a/a;->h(Ljava/io/File;)Lcom/appsflyer/a/b;
move-result-object v4
invoke-interface {v1, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:try_end_32
.catch Ljava/lang/Exception; {:try_start_5 .. :try_end_32} :catch_35
.line 105
add-int/lit8 v0, v0, 0x1
goto :goto_19
:catch_35
move-exception v0
goto :goto_12
.end method
.method public static cK()Lcom/appsflyer/a/a;
.registers 1
.prologue
.line 27
sget-object v0, Lcom/appsflyer/a/a;->AB:Lcom/appsflyer/a/a;
return-object v0
.end method
.method private static h(Ljava/io/File;)Lcom/appsflyer/a/b;
.registers 7
.prologue
const/4 v1, 0x0
.line 118
.line 120
:try_start_1
new-instance v2, Ljava/io/FileReader;
invoke-direct {v2, p0}, Ljava/io/FileReader;-><init>(Ljava/io/File;)V
:try_end_6
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_6} :catch_1f
.catchall {:try_start_1 .. :try_end_6} :catchall_28
.line 121
:try_start_6
invoke-virtual {p0}, Ljava/io/File;->length()J
move-result-wide v4
long-to-int v0, v4
new-array v3, v0, [C
.line 122
invoke-virtual {v2, v3}, Ljava/io/FileReader;->read([C)I
.line 123
new-instance v0, Lcom/appsflyer/a/b;
invoke-direct {v0, v3}, Lcom/appsflyer/a/b;-><init>([C)V
.line 124
invoke-virtual {p0}, Ljava/io/File;->getName()Ljava/lang/String;
move-result-object v3
.line 1068
iput-object v3, v0, Lcom/appsflyer/a/b;->AE:Ljava/lang/String;
:try_end_1b
.catch Ljava/lang/Exception; {:try_start_6 .. :try_end_1b} :catch_38
.catchall {:try_start_6 .. :try_end_1b} :catchall_36
.line 131
:try_start_1b
invoke-virtual {v2}, Ljava/io/FileReader;->close()V
:try_end_1e
.catch Ljava/io/IOException; {:try_start_1b .. :try_end_1e} :catch_30
.line 127
:goto_1e
return-object v0
:catch_1f
move-exception v0
move-object v0, v1
.line 130
:goto_21
if-eqz v0, :cond_26
.line 131
:try_start_23
invoke-virtual {v0}, Ljava/io/FileReader;->close()V
:try_end_26
.catch Ljava/io/IOException; {:try_start_23 .. :try_end_26} :catch_32
:cond_26
:goto_26
move-object v0, v1
.line 127
goto :goto_1e
.line 129
:catchall_28
move-exception v0
move-object v2, v1
.line 130
:goto_2a
if-eqz v2, :cond_2f
.line 131
:try_start_2c
invoke-virtual {v2}, Ljava/io/FileReader;->close()V
:try_end_2f
.catch Ljava/io/IOException; {:try_start_2c .. :try_end_2f} :catch_34
.line 134
:cond_2f
:goto_2f
throw v0
:catch_30
move-exception v1
goto :goto_1e
:catch_32
move-exception v0
goto :goto_26
:catch_34
move-exception v1
goto :goto_2f
.line 129
:catchall_36
move-exception v0
goto :goto_2a
:catch_38
move-exception v0
move-object v0, v2
goto :goto_21
.end method