av$2.smali

.class final Lcom/loc/av$2;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/loc/av;->a(Ljava/util/List;Landroid/content/Context;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = null
.end annotation


# instance fields
.field final synthetic a:Ljava/util/List;

.field final synthetic b:Landroid/content/Context;


# direct methods
.method constructor <init>(Ljava/util/List;Landroid/content/Context;)V
    .registers 3

    iput-object p1, p0, Lcom/loc/av$2;->a:Ljava/util/List;

    iput-object p2, p0, Lcom/loc/av$2;->b:Landroid/content/Context;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final run()V
    .registers 6

    const/4 v3, 0x0

    const/4 v0, 0x0

    new-array v1, v0, [B

    :try_start_4
    new-instance v2, Ljava/io/ByteArrayOutputStream;

    invoke-direct {v2}, Ljava/io/ByteArrayOutputStream;-><init>()V
    :try_end_9
    .catch Ljava/lang/Throwable; {:try_start_4 .. :try_end_9} :catch_60
    .catchall {:try_start_4 .. :try_end_9} :catchall_4c

    :try_start_9
    iget-object v0, p0, Lcom/loc/av$2;->a:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :cond_f
    :goto_f
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_3d

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/loc/au;

    if-eqz v0, :cond_f

    invoke-virtual {v0}, Lcom/loc/au;->a()[B

    move-result-object v0

    invoke-virtual {v2, v0}, Ljava/io/ByteArrayOutputStream;->write([B)V
    :try_end_24
    .catch Ljava/lang/Throwable; {:try_start_9 .. :try_end_24} :catch_25
    .catchall {:try_start_9 .. :try_end_24} :catchall_5e

    goto :goto_f

    :catch_25
    move-exception v0

    :goto_26
    :try_start_26
    const-string/jumbo v3, "StatisticsEntity"

    const-string/jumbo v4, "applyStaticsBatch"

    invoke-static {v0, v3, v4}, Lcom/loc/dc;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V
    :try_end_2f
    .catchall {:try_start_26 .. :try_end_2f} :catchall_5e

    if-eqz v2, :cond_34

    :try_start_31
    invoke-virtual {v2}, Ljava/io/ByteArrayOutputStream;->close()V
    :try_end_34
    .catch Ljava/lang/Throwable; {:try_start_31 .. :try_end_34} :catch_59

    :cond_34
    :goto_34
    move-object v0, v1

    :cond_35
    :goto_35
    iget-object v1, p0, Lcom/loc/av$2;->b:Landroid/content/Context;

    sget-object v2, Lcom/loc/dd;->g:Ljava/lang/String;

    invoke-static {v1, v2, v0}, Lcom/loc/aw;->a(Landroid/content/Context;Ljava/lang/String;[B)V

    return-void

    :cond_3d
    :try_start_3d
    invoke-virtual {v2}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B
    :try_end_40
    .catch Ljava/lang/Throwable; {:try_start_3d .. :try_end_40} :catch_25
    .catchall {:try_start_3d .. :try_end_40} :catchall_5e

    move-result-object v0

    if-eqz v2, :cond_35

    :try_start_43
    invoke-virtual {v2}, Ljava/io/ByteArrayOutputStream;->close()V
    :try_end_46
    .catch Ljava/lang/Throwable; {:try_start_43 .. :try_end_46} :catch_47

    goto :goto_35

    :catch_47
    move-exception v1

    invoke-virtual {v1}, Ljava/lang/Throwable;->printStackTrace()V

    goto :goto_35

    :catchall_4c
    move-exception v0

    move-object v2, v3

    :goto_4e
    if-eqz v2, :cond_53

    :try_start_50
    invoke-virtual {v2}, Ljava/io/ByteArrayOutputStream;->close()V
    :try_end_53
    .catch Ljava/lang/Throwable; {:try_start_50 .. :try_end_53} :catch_54

    :cond_53
    :goto_53
    throw v0

    :catch_54
    move-exception v1

    invoke-virtual {v1}, Ljava/lang/Throwable;->printStackTrace()V

    goto :goto_53

    :catch_59
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Throwable;->printStackTrace()V

    goto :goto_34

    :catchall_5e
    move-exception v0

    goto :goto_4e

    :catch_60
    move-exception v0

    move-object v2, v3

    goto :goto_26
.end method