f$a.smali
.class public Li/f$a;
.super Ljava/lang/Object;
.source "AirMapLocalTile.java"
# interfaces
.implements Lcom/google/android/gms/maps/model/TileProvider;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Li/f;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "a"
.end annotation
# instance fields
.field public a:I
.field public b:Ljava/lang/String;
.field public final synthetic c:Li/f;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>(Li/f;ILjava/lang/String;)V
.registers 4
iput-object p1, p0, Li/f$a;->c:Li/f;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput p2, p0, Li/f$a;->a:I
iput-object p3, p0, Li/f$a;->b:Ljava/lang/String;
return-void
.end method
# virtual methods
.method public final a(III)Ljava/lang/String;
.registers 6
iget-object v0, p0, Li/f$a;->b:Ljava/lang/String;
invoke-static {p1}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;
move-result-object p1
const-string/jumbo v1, "{x}"
invoke-virtual {v0, v1, p1}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
move-result-object p1
invoke-static {p2}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;
move-result-object p2
const-string/jumbo v0, "{y}"
invoke-virtual {p1, v0, p2}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
move-result-object p1
invoke-static {p3}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;
move-result-object p2
const-string/jumbo p3, "{z}"
invoke-virtual {p1, p3, p2}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
move-result-object p1
return-object p1
.end method
.method public a(I)V
.registers 2
iput p1, p0, Li/f$a;->a:I
return-void
.end method
.method public a(Ljava/lang/String;)V
.registers 2
iput-object p1, p0, Li/f$a;->b:Ljava/lang/String;
return-void
.end method
.method public final b(III)[B
.registers 10
new-instance v0, Ljava/io/File;
invoke-virtual {p0, p1, p2, p3}, Li/f$a;->a(III)Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V
const/4 p1, 0x0
:try_start_a
new-instance p2, Ljava/io/FileInputStream;
invoke-direct {p2, v0}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
:try_end_f
.catch Ljava/io/IOException; {:try_start_a .. :try_end_f} :catch_59
.catch Ljava/lang/OutOfMemoryError; {:try_start_a .. :try_end_f} :catch_46
.catchall {:try_start_a .. :try_end_f} :catchall_41
:try_start_f
new-instance p3, Ljava/io/ByteArrayOutputStream;
invoke-direct {p3}, Ljava/io/ByteArrayOutputStream;-><init>()V
:try_end_14
.catch Ljava/io/IOException; {:try_start_f .. :try_end_14} :catch_3e
.catch Ljava/lang/OutOfMemoryError; {:try_start_f .. :try_end_14} :catch_3b
.catchall {:try_start_f .. :try_end_14} :catchall_36
const/16 v0, 0x4000
:try_start_16
new-array v1, v0, [B
:goto_18
const/4 v2, 0x0
invoke-virtual {p2, v1, v2, v0}, Ljava/io/InputStream;->read([BII)I
move-result v3
const/4 v4, -0x1
if-eq v3, v4, :cond_24
invoke-virtual {p3, v1, v2, v3}, Ljava/io/ByteArrayOutputStream;->write([BII)V
goto :goto_18
:cond_24
invoke-virtual {p3}, Ljava/io/ByteArrayOutputStream;->flush()V
invoke-virtual {p3}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B
move-result-object p1
:try_end_2b
.catch Ljava/io/IOException; {:try_start_16 .. :try_end_2b} :catch_34
.catch Ljava/lang/OutOfMemoryError; {:try_start_16 .. :try_end_2b} :catch_32
.catchall {:try_start_16 .. :try_end_2b} :catchall_6c
:try_start_2b
invoke-virtual {p2}, Ljava/io/InputStream;->close()V
:try_end_2e
.catch Ljava/lang/Exception; {:try_start_2b .. :try_end_2e} :catch_2e
:catch_2e
:try_start_2e
invoke-virtual {p3}, Ljava/io/ByteArrayOutputStream;->close()V
:try_end_31
.catch Ljava/lang/Exception; {:try_start_2e .. :try_end_31} :catch_31
:catch_31
return-object p1
:catch_32
move-exception v0
goto :goto_49
:catch_34
move-exception v0
goto :goto_5c
:catchall_36
move-exception p3
move-object v5, p3
move-object p3, p1
move-object p1, v5
goto :goto_6d
:catch_3b
move-exception v0
move-object p3, p1
goto :goto_49
:catch_3e
move-exception v0
move-object p3, p1
goto :goto_5c
:catchall_41
move-exception p2
move-object p3, p1
move-object p1, p2
move-object p2, p3
goto :goto_6d
:catch_46
move-exception v0
move-object p2, p1
move-object p3, p2
:goto_49
:try_start_49
invoke-virtual {v0}, Ljava/lang/OutOfMemoryError;->printStackTrace()V
:try_end_4c
.catchall {:try_start_49 .. :try_end_4c} :catchall_6c
if-eqz p2, :cond_53
:try_start_4e
invoke-virtual {p2}, Ljava/io/InputStream;->close()V
:try_end_51
.catch Ljava/lang/Exception; {:try_start_4e .. :try_end_51} :catch_52
goto :goto_53
:catch_52
nop
:cond_53
:goto_53
if-eqz p3, :cond_58
:try_start_55
invoke-virtual {p3}, Ljava/io/ByteArrayOutputStream;->close()V
:try_end_58
.catch Ljava/lang/Exception; {:try_start_55 .. :try_end_58} :catch_58
:catch_58
:cond_58
return-object p1
:catch_59
move-exception v0
move-object p2, p1
move-object p3, p2
:goto_5c
:try_start_5c
invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
:try_end_5f
.catchall {:try_start_5c .. :try_end_5f} :catchall_6c
if-eqz p2, :cond_66
:try_start_61
invoke-virtual {p2}, Ljava/io/InputStream;->close()V
:try_end_64
.catch Ljava/lang/Exception; {:try_start_61 .. :try_end_64} :catch_65
goto :goto_66
:catch_65
nop
:cond_66
:goto_66
if-eqz p3, :cond_6b
:try_start_68
invoke-virtual {p3}, Ljava/io/ByteArrayOutputStream;->close()V
:try_end_6b
.catch Ljava/lang/Exception; {:try_start_68 .. :try_end_6b} :catch_6b
:catch_6b
:cond_6b
return-object p1
:catchall_6c
move-exception p1
:goto_6d
if-eqz p2, :cond_74
:try_start_6f
invoke-virtual {p2}, Ljava/io/InputStream;->close()V
:try_end_72
.catch Ljava/lang/Exception; {:try_start_6f .. :try_end_72} :catch_73
goto :goto_74
:catch_73
nop
:cond_74
:goto_74
if-eqz p3, :cond_79
:try_start_76
invoke-virtual {p3}, Ljava/io/ByteArrayOutputStream;->close()V
:try_end_79
.catch Ljava/lang/Exception; {:try_start_76 .. :try_end_79} :catch_79
:catch_79
:cond_79
goto :goto_7b
:goto_7a
throw p1
:goto_7b
goto :goto_7a
.end method
.method public getTile(III)Lcom/google/android/gms/maps/model/Tile;
.registers 4
invoke-virtual {p0, p1, p2, p3}, Li/f$a;->b(III)[B
move-result-object p1
if-nez p1, :cond_9
sget-object p1, Lcom/google/android/gms/maps/model/TileProvider;->NO_TILE:Lcom/google/android/gms/maps/model/Tile;
goto :goto_11
:cond_9
new-instance p2, Lcom/google/android/gms/maps/model/Tile;
iget p3, p0, Li/f$a;->a:I
invoke-direct {p2, p3, p3, p1}, Lcom/google/android/gms/maps/model/Tile;-><init>(II[B)V
move-object p1, p2
:goto_11
return-object p1
.end method