.class public Lcom/in2wow/sdk/e/b;
.super Ljava/lang/Object;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/in2wow/sdk/e/b$a;,
        Lcom/in2wow/sdk/e/b$b;,
        Lcom/in2wow/sdk/e/b$c;
    }
.end annotation


# instance fields
.field private a:J

.field private b:J

.field private c:Ljava/util/PriorityQueue;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/PriorityQueue<",
            "Lcom/in2wow/sdk/e/a;",
            ">;"
        }
    .end annotation
.end field

.field private d:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/in2wow/sdk/e/a;",
            ">;"
        }
    .end annotation
.end field

.field private e:Z

.field private f:Ljava/util/concurrent/ExecutorService;

.field private g:J

.field private h:Landroid/content/Context;

.field private i:Lcom/in2wow/sdk/f/b;


# direct methods
.method public constructor <init>(Landroid/content/Context;JJ)V
    .locals 4

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

    const-wide/16 v0, 0x0

    .line 54
    iput-wide v0, p0, Lcom/in2wow/sdk/e/b;->a:J

    .line 55
    iput-wide v0, p0, Lcom/in2wow/sdk/e/b;->b:J

    const/4 v2, 0x0

    .line 56
    iput-object v2, p0, Lcom/in2wow/sdk/e/b;->c:Ljava/util/PriorityQueue;

    .line 57
    iput-object v2, p0, Lcom/in2wow/sdk/e/b;->d:Ljava/util/List;

    const/4 v3, 0x0

    .line 58
    iput-boolean v3, p0, Lcom/in2wow/sdk/e/b;->e:Z

    .line 59
    iput-object v2, p0, Lcom/in2wow/sdk/e/b;->f:Ljava/util/concurrent/ExecutorService;

    .line 60
    iput-wide v0, p0, Lcom/in2wow/sdk/e/b;->g:J

    .line 61
    iput-object v2, p0, Lcom/in2wow/sdk/e/b;->h:Landroid/content/Context;

    .line 62
    iput-object v2, p0, Lcom/in2wow/sdk/e/b;->i:Lcom/in2wow/sdk/f/b;

    .line 64
    iput-object p1, p0, Lcom/in2wow/sdk/e/b;->h:Landroid/content/Context;

    .line 65
    new-instance p1, Ljava/util/PriorityQueue;

    new-instance v0, Lcom/in2wow/sdk/e/a$a;

    invoke-direct {v0}, Lcom/in2wow/sdk/e/a$a;-><init>()V

    const/16 v1, 0xa

    invoke-direct {p1, v1, v0}, Ljava/util/PriorityQueue;-><init>(ILjava/util/Comparator;)V

    iput-object p1, p0, Lcom/in2wow/sdk/e/b;->c:Ljava/util/PriorityQueue;

    .line 66
    new-instance p1, Ljava/util/ArrayList;

    invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V

    iput-object p1, p0, Lcom/in2wow/sdk/e/b;->d:Ljava/util/List;

    .line 67
    invoke-static {}, Ljava/util/concurrent/Executors;->newSingleThreadExecutor()Ljava/util/concurrent/ExecutorService;

    move-result-object p1

    iput-object p1, p0, Lcom/in2wow/sdk/e/b;->f:Ljava/util/concurrent/ExecutorService;

    .line 68
    iget-object p1, p0, Lcom/in2wow/sdk/e/b;->h:Landroid/content/Context;

    invoke-static {p1}, Lcom/in2wow/sdk/m/o;->a(Landroid/content/Context;)Lcom/in2wow/sdk/m/o;

    move-result-object p1

    invoke-virtual {p1}, Lcom/in2wow/sdk/m/o;->d()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/in2wow/sdk/e/b;->g:J

    .line 69
    iput-wide p2, p0, Lcom/in2wow/sdk/e/b;->a:J

    .line 70
    iput-wide p4, p0, Lcom/in2wow/sdk/e/b;->b:J

    .line 71
    new-instance p1, Lcom/in2wow/sdk/g/a;

    invoke-direct {p1}, Lcom/in2wow/sdk/g/a;-><init>()V

    invoke-virtual {p1}, Lcom/in2wow/sdk/g/a;->d()Lcom/in2wow/sdk/f/b;

    move-result-object p1

    iput-object p1, p0, Lcom/in2wow/sdk/e/b;->i:Lcom/in2wow/sdk/f/b;

    return-void
.end method

.method static synthetic a(Lcom/in2wow/sdk/e/b;)Lcom/in2wow/sdk/e/a;
    .locals 0

    .line 82
    invoke-direct {p0}, Lcom/in2wow/sdk/e/b;->e()Lcom/in2wow/sdk/e/a;

    move-result-object p0

    return-object p0
.end method

.method public static a(I)Ljava/lang/String;
    .locals 0

    packed-switch p0, :pswitch_data_0

    :pswitch_0
    const-string p0, "UNKNOWN"

    return-object p0

    :pswitch_1
    const-string p0, "CHECKSUM MISMATCH"

    return-object p0

    :pswitch_2
    const-string p0, "CANCELED"

    return-object p0

    :pswitch_3
    const-string p0, "NOT AVAILABLE SPACE"

    return-object p0

    :pswitch_4
    const-string p0, "MALFORMED URL"

    return-object p0

    :pswitch_5
    const-string p0, "FILE NOT FOUND"

    return-object p0

    :pswitch_6
    const-string p0, "SOCKET ERROR"

    return-object p0

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_6
        :pswitch_5
        :pswitch_4
        :pswitch_3
        :pswitch_0
        :pswitch_2
        :pswitch_1
    .end packed-switch
.end method

.method static synthetic a(Lcom/in2wow/sdk/e/b;J)V
    .locals 0

    .line 60
    iput-wide p1, p0, Lcom/in2wow/sdk/e/b;->g:J

    return-void
.end method

.method static synthetic b(Lcom/in2wow/sdk/e/b;)Landroid/content/Context;
    .locals 0

    .line 61
    iget-object p0, p0, Lcom/in2wow/sdk/e/b;->h:Landroid/content/Context;

    return-object p0
.end method

.method static synthetic c(Lcom/in2wow/sdk/e/b;)J
    .locals 2

    .line 54
    iget-wide v0, p0, Lcom/in2wow/sdk/e/b;->a:J

    return-wide v0
.end method

.method static synthetic d(Lcom/in2wow/sdk/e/b;)J
    .locals 2

    .line 60
    iget-wide v0, p0, Lcom/in2wow/sdk/e/b;->g:J

    return-wide v0
.end method

.method static synthetic e(Lcom/in2wow/sdk/e/b;)J
    .locals 2

    .line 55
    iget-wide v0, p0, Lcom/in2wow/sdk/e/b;->b:J

    return-wide v0
.end method

.method private declared-synchronized e()Lcom/in2wow/sdk/e/a;
    .locals 1

    monitor-enter p0

    .line 83
    :try_start_0
    iget-object v0, p0, Lcom/in2wow/sdk/e/b;->c:Ljava/util/PriorityQueue;

    invoke-virtual {v0}, Ljava/util/PriorityQueue;->poll()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/in2wow/sdk/e/a;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return-object v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method static synthetic f(Lcom/in2wow/sdk/e/b;)Lcom/in2wow/sdk/f/b;
    .locals 0

    .line 62
    iget-object p0, p0, Lcom/in2wow/sdk/e/b;->i:Lcom/in2wow/sdk/f/b;

    return-object p0
.end method


# virtual methods
.method public a()V
    .locals 2

    .line 80
    iget-object v0, p0, Lcom/in2wow/sdk/e/b;->h:Landroid/content/Context;

    invoke-static {v0}, Lcom/in2wow/sdk/m/o;->a(Landroid/content/Context;)Lcom/in2wow/sdk/m/o;

    move-result-object v0

    invoke-virtual {v0}, Lcom/in2wow/sdk/m/o;->d()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/in2wow/sdk/e/b;->g:J

    return-void
.end method

.method public a(J)V
    .locals 0

    .line 74
    iput-wide p1, p0, Lcom/in2wow/sdk/e/b;->a:J

    return-void
.end method

.method public declared-synchronized a(Lcom/in2wow/sdk/e/a;)V
    .locals 1

    monitor-enter p0

    .line 86
    :try_start_0
    iget-boolean v0, p0, Lcom/in2wow/sdk/e/b;->e:Z

    if-eqz v0, :cond_0

    .line 87
    iget-object v0, p0, Lcom/in2wow/sdk/e/b;->d:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 88
    monitor-exit p0

    return-void

    .line 90
    :cond_0
    :try_start_1
    iget-object v0, p0, Lcom/in2wow/sdk/e/b;->c:Ljava/util/PriorityQueue;

    invoke-virtual {v0, p1}, Ljava/util/PriorityQueue;->add(Ljava/lang/Object;)Z

    .line 91
    iget-object p1, p0, Lcom/in2wow/sdk/e/b;->f:Ljava/util/concurrent/ExecutorService;

    new-instance v0, Lcom/in2wow/sdk/e/b$a;

    invoke-direct {v0, p0}, Lcom/in2wow/sdk/e/b$a;-><init>(Lcom/in2wow/sdk/e/b;)V

    invoke-interface {p1, v0}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 92
    monitor-exit p0

    return-void

    :catchall_0
    move-exception p1

    .line 85
    monitor-exit p0

    throw p1
.end method

.method public declared-synchronized a(Ljava/util/PriorityQueue;)V
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/PriorityQueue<",
            "Lcom/in2wow/sdk/e/a;",
            ">;)V"
        }
    .end annotation

    monitor-enter p0

    if-nez p1, :cond_0

    .line 95
    monitor-exit p0

    return-void

    .line 97
    :cond_0
    :try_start_0
    iget-object v0, p0, Lcom/in2wow/sdk/e/b;->c:Ljava/util/PriorityQueue;

    invoke-virtual {v0}, Ljava/util/PriorityQueue;->clear()V

    .line 98
    :goto_0
    invoke-virtual {p1}, Ljava/util/PriorityQueue;->isEmpty()Z

    move-result v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-eqz v0, :cond_1

    .line 102
    monitor-exit p0

    return-void

    .line 99
    :cond_1
    :try_start_1
    iget-object v0, p0, Lcom/in2wow/sdk/e/b;->c:Ljava/util/PriorityQueue;

    invoke-virtual {p1}, Ljava/util/PriorityQueue;->poll()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/in2wow/sdk/e/a;

    invoke-virtual {v0, v1}, Ljava/util/PriorityQueue;->add(Ljava/lang/Object;)Z

    .line 100
    iget-object v0, p0, Lcom/in2wow/sdk/e/b;->f:Ljava/util/concurrent/ExecutorService;

    new-instance v1, Lcom/in2wow/sdk/e/b$a;

    invoke-direct {v1, p0}, Lcom/in2wow/sdk/e/b$a;-><init>(Lcom/in2wow/sdk/e/b;)V

    invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception p1

    .line 93
    monitor-exit p0

    throw p1
.end method

.method public declared-synchronized b()Ljava/util/Set;
    .locals 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/Set<",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation

    monitor-enter p0

    .line 104
    :try_start_0
    iget-object v0, p0, Lcom/in2wow/sdk/e/b;->c:Ljava/util/PriorityQueue;

    invoke-virtual {v0}, Ljava/util/PriorityQueue;->toArray()[Ljava/lang/Object;

    move-result-object v0

    .line 105
    new-instance v1, Ljava/util/HashSet;

    invoke-direct {v1}, Ljava/util/HashSet;-><init>()V

    .line 106
    array-length v2, v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    const/4 v3, 0x0

    :goto_0
    if-lt v3, v2, :cond_0

    .line 110
    monitor-exit p0

    return-object v1

    .line 106
    :cond_0
    :try_start_1
    aget-object v4, v0, v3

    .line 107
    check-cast v4, Lcom/in2wow/sdk/e/a;

    .line 108
    invoke-virtual {v4}, Lcom/in2wow/sdk/e/a;->b()I

    move-result v4

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    invoke-interface {v1, v4}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    add-int/lit8 v3, v3, 0x1

    goto :goto_0

    :catchall_0
    move-exception v0

    .line 103
    monitor-exit p0

    throw v0
.end method

.method public b(J)V
    .locals 0

    .line 77
    iput-wide p1, p0, Lcom/in2wow/sdk/e/b;->b:J

    return-void
.end method

.method public declared-synchronized c()V
    .locals 2

    monitor-enter p0

    .line 113
    :try_start_0
    iget-boolean v0, p0, Lcom/in2wow/sdk/e/b;->e:Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-eqz v0, :cond_0

    .line 114
    monitor-exit p0

    return-void

    :cond_0
    const/4 v0, 0x1

    .line 116
    :try_start_1
    iput-boolean v0, p0, Lcom/in2wow/sdk/e/b;->e:Z

    .line 117
    :goto_0
    iget-object v0, p0, Lcom/in2wow/sdk/e/b;->c:Ljava/util/PriorityQueue;

    invoke-virtual {v0}, Ljava/util/PriorityQueue;->isEmpty()Z

    move-result v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    if-eqz v0, :cond_1

    .line 120
    monitor-exit p0

    return-void

    .line 118
    :cond_1
    :try_start_2
    iget-object v0, p0, Lcom/in2wow/sdk/e/b;->d:Ljava/util/List;

    iget-object v1, p0, Lcom/in2wow/sdk/e/b;->c:Ljava/util/PriorityQueue;

    invoke-virtual {v1}, Ljava/util/PriorityQueue;->poll()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/in2wow/sdk/e/a;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v0

    .line 112
    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized d()V
    .locals 3

    monitor-enter p0

    .line 122
    :try_start_0
    iget-boolean v0, p0, Lcom/in2wow/sdk/e/b;->e:Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-nez v0, :cond_0

    .line 123
    monitor-exit p0

    return-void

    :cond_0
    const/4 v0, 0x0

    .line 125
    :try_start_1
    iput-boolean v0, p0, Lcom/in2wow/sdk/e/b;->e:Z

    .line 126
    iget-object v0, p0, Lcom/in2wow/sdk/e/b;->d:Ljava/util/List;

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

    move-result-object v0

    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-nez v1, :cond_1

    .line 129
    iget-object v0, p0, Lcom/in2wow/sdk/e/b;->d:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 130
    monitor-exit p0

    return-void

    .line 126
    :cond_1
    :try_start_2
    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/in2wow/sdk/e/a;

    .line 127
    iget-object v2, p0, Lcom/in2wow/sdk/e/b;->c:Ljava/util/PriorityQueue;

    invoke-virtual {v2, v1}, Ljava/util/PriorityQueue;->add(Ljava/lang/Object;)Z
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v0

    .line 121
    monitor-exit p0

    throw v0
.end method
