h$i.smali
.class final Lcom/opensource/svgaplayer/h$i;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/opensource/svgaplayer/h;->a(Ljava/net/URL;Lcom/opensource/svgaplayer/h$d;)Lkotlin/f/a/a;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = null
.end annotation
# instance fields
.field final synthetic a:Lcom/opensource/svgaplayer/h;
.field final synthetic b:Ljava/lang/String;
.field final synthetic c:Lcom/opensource/svgaplayer/h$d;
# direct methods
.method constructor <init>(Lcom/opensource/svgaplayer/h;Ljava/lang/String;Lcom/opensource/svgaplayer/h$d;)V
.registers 4
iput-object p1, p0, Lcom/opensource/svgaplayer/h$i;->a:Lcom/opensource/svgaplayer/h;
iput-object p2, p0, Lcom/opensource/svgaplayer/h$i;->b:Ljava/lang/String;
iput-object p3, p0, Lcom/opensource/svgaplayer/h$i;->c:Lcom/opensource/svgaplayer/h$d;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final run()V
.registers 14
const-string v0, "SVGAParser"
.line 160
sget-object v1, Lcom/opensource/svgaplayer/c;->c:Lcom/opensource/svgaplayer/c;
invoke-static {}, Lcom/opensource/svgaplayer/c;->a()Z
move-result v1
if-eqz v1, :cond_14
.line 161
iget-object v0, p0, Lcom/opensource/svgaplayer/h$i;->a:Lcom/opensource/svgaplayer/h;
iget-object v1, p0, Lcom/opensource/svgaplayer/h$i;->b:Ljava/lang/String;
iget-object v2, p0, Lcom/opensource/svgaplayer/h$i;->c:Lcom/opensource/svgaplayer/h$d;
invoke-static {v0, v1, v2}, Lcom/opensource/svgaplayer/h;->a(Lcom/opensource/svgaplayer/h;Ljava/lang/String;Lcom/opensource/svgaplayer/h$d;)V
return-void
.line 163
:cond_14
iget-object v1, p0, Lcom/opensource/svgaplayer/h$i;->a:Lcom/opensource/svgaplayer/h;
iget-object v2, p0, Lcom/opensource/svgaplayer/h$i;->b:Ljava/lang/String;
iget-object v3, p0, Lcom/opensource/svgaplayer/h$i;->c:Lcom/opensource/svgaplayer/h$d;
const-string v4, "cacheKey"
invoke-static {v2, v4}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V
.line 1185
sget-object v4, Lcom/opensource/svgaplayer/c;->c:Lcom/opensource/svgaplayer/c;
invoke-static {v2}, Lcom/opensource/svgaplayer/c;->d(Ljava/lang/String;)Ljava/io/File;
move-result-object v4
const/4 v5, 0x0
.line 1187
:try_start_26
sget-object v6, Lcom/opensource/svgaplayer/d/a/c;->a:Lcom/opensource/svgaplayer/d/a/c;
const-string v6, "cache.binary change to entity"
invoke-static {v0, v6}, Lcom/opensource/svgaplayer/d/a/c;->a(Ljava/lang/String;Ljava/lang/String;)V
.line 1188
new-instance v6, Ljava/io/FileInputStream;
invoke-direct {v6, v4}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
check-cast v6, Ljava/io/Closeable;
:try_end_34
.catch Ljava/lang/Exception; {:try_start_26 .. :try_end_34} :catch_a1
:try_start_34
move-object v7, v6
check-cast v7, Ljava/io/FileInputStream;
:try_end_37
.catchall {:try_start_34 .. :try_end_37} :catchall_9a
.line 1190
:try_start_37
move-object v8, v7
check-cast v8, Ljava/io/InputStream;
invoke-static {v8}, Lcom/opensource/svgaplayer/h;->a(Ljava/io/InputStream;)[B
move-result-object v8
if-eqz v8, :cond_80
.line 1191
sget-object v9, Lcom/opensource/svgaplayer/d/a/c;->a:Lcom/opensource/svgaplayer/d/a/c;
const-string v9, "cache.inflate start"
invoke-static {v0, v9}, Lcom/opensource/svgaplayer/d/a/c;->a(Ljava/lang/String;Ljava/lang/String;)V
.line 1192
invoke-static {v8}, Lcom/opensource/svgaplayer/h;->a([B)[B
move-result-object v8
if-eqz v8, :cond_7a
.line 1193
sget-object v9, Lcom/opensource/svgaplayer/d/a/c;->a:Lcom/opensource/svgaplayer/d/a/c;
const-string v9, "cache.inflate success"
invoke-static {v0, v9}, Lcom/opensource/svgaplayer/d/a/c;->a(Ljava/lang/String;Ljava/lang/String;)V
.line 1194
new-instance v9, Lcom/opensource/svgaplayer/j;
.line 1195
sget-object v10, Lcom/opensource/svgaplayer/proto/MovieEntity;->ADAPTER:Lcom/squareup/wire/ProtoAdapter;
invoke-virtual {v10, v8}, Lcom/squareup/wire/ProtoAdapter;->decode([B)Ljava/lang/Object;
move-result-object v8
const-string v10, "MovieEntity.ADAPTER.decode(inflateBytes)"
invoke-static {v8, v10}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V
check-cast v8, Lcom/opensource/svgaplayer/proto/MovieEntity;
.line 1196
new-instance v10, Ljava/io/File;
invoke-direct {v10, v2}, Ljava/io/File;-><init>(Ljava/lang/String;)V
.line 1197
iget v11, v1, Lcom/opensource/svgaplayer/h;->a:I
.line 1198
iget v12, v1, Lcom/opensource/svgaplayer/h;->b:I
.line 1194
invoke-direct {v9, v8, v10, v11, v12}, Lcom/opensource/svgaplayer/j;-><init>(Lcom/opensource/svgaplayer/proto/MovieEntity;Ljava/io/File;II)V
.line 1200
new-instance v8, Lcom/opensource/svgaplayer/h$e;
invoke-direct {v8, v9, v1, v2, v3}, Lcom/opensource/svgaplayer/h$e;-><init>(Lcom/opensource/svgaplayer/j;Lcom/opensource/svgaplayer/h;Ljava/lang/String;Lcom/opensource/svgaplayer/h$d;)V
check-cast v8, Lkotlin/f/a/a;
invoke-virtual {v9, v8}, Lcom/opensource/svgaplayer/j;->a(Lkotlin/f/a/a;)V
goto :goto_85
:cond_7a
const-string v1, "cache.inflate(bytes) cause exception"
.line 1204
invoke-static {v1, v3}, Lcom/opensource/svgaplayer/h;->b(Ljava/lang/String;Lcom/opensource/svgaplayer/h$d;)V
goto :goto_85
:cond_80
const-string v1, "cache.readAsBytes(inputStream) cause exception"
.line 1205
invoke-static {v1, v3}, Lcom/opensource/svgaplayer/h;->b(Ljava/lang/String;Lcom/opensource/svgaplayer/h$d;)V
:try_end_85
.catch Ljava/lang/Exception; {:try_start_37 .. :try_end_85} :catch_8b
.catchall {:try_start_37 .. :try_end_85} :catchall_89
.line 1209
:goto_85
:try_start_85
invoke-virtual {v7}, Ljava/io/FileInputStream;->close()V
:try_end_88
.catchall {:try_start_85 .. :try_end_88} :catchall_9a
goto :goto_90
:catchall_89
move-exception v1
goto :goto_96
:catch_8b
move-exception v1
.line 1207
:try_start_8c
invoke-static {v1, v3}, Lcom/opensource/svgaplayer/h;->a(Ljava/lang/Exception;Lcom/opensource/svgaplayer/h$d;)V
:try_end_8f
.catchall {:try_start_8c .. :try_end_8f} :catchall_89
goto :goto_85
.line 1211
:goto_90
:try_start_90
sget-object v1, Lkotlin/w;->a:Lkotlin/w;
:try_end_92
.catchall {:try_start_90 .. :try_end_92} :catchall_9a
.line 1188
:try_start_92
invoke-static {v6, v5}, Lkotlin/io/b;->a(Ljava/io/Closeable;Ljava/lang/Throwable;)V
:try_end_95
.catch Ljava/lang/Exception; {:try_start_92 .. :try_end_95} :catch_a1
return-void
.line 1209
:goto_96
:try_start_96
invoke-virtual {v7}, Ljava/io/FileInputStream;->close()V
throw v1
:try_end_9a
.catchall {:try_start_96 .. :try_end_9a} :catchall_9a
:catchall_9a
move-exception v1
.line 1188
:try_start_9b
throw v1
:try_end_9c
.catchall {:try_start_9b .. :try_end_9c} :catchall_9c
:catchall_9c
move-exception v2
:try_start_9d
invoke-static {v6, v1}, Lkotlin/io/b;->a(Ljava/io/Closeable;Ljava/lang/Throwable;)V
throw v2
:try_end_a1
.catch Ljava/lang/Exception; {:try_start_9d .. :try_end_a1} :catch_a1
:catch_a1
move-exception v1
.line 1213
sget-object v2, Lcom/opensource/svgaplayer/d/a/c;->a:Lcom/opensource/svgaplayer/d/a/c;
move-object v2, v1
check-cast v2, Ljava/lang/Throwable;
const-string v6, "cache.binary change to entity fail"
invoke-static {v0, v6, v2}, Lcom/opensource/svgaplayer/d/a/c;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
.line 1214
invoke-virtual {v4}, Ljava/io/File;->exists()Z
move-result v0
if-eqz v0, :cond_b3
goto :goto_b4
:cond_b3
move-object v4, v5
:goto_b4
if-eqz v4, :cond_b9
invoke-virtual {v4}, Ljava/io/File;->delete()Z
.line 1215
:cond_b9
invoke-static {v1, v3}, Lcom/opensource/svgaplayer/h;->a(Ljava/lang/Exception;Lcom/opensource/svgaplayer/h$d;)V
return-void
.end method