.class Lcom/in2wow/sdk/l/b/d$a;
.super Ljava/lang/Object;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/in2wow/sdk/l/b/d;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "a"
.end annotation


# instance fields
.field final synthetic a:Lcom/in2wow/sdk/l/b/d;

.field private b:I

.field private c:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/intowow/sdk/InstreamADView;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>(Lcom/in2wow/sdk/l/b/d;I)V
    .locals 0

    .line 192
    iput-object p1, p0, Lcom/in2wow/sdk/l/b/d$a;->a:Lcom/in2wow/sdk/l/b/d;

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

    const/4 p1, 0x0

    .line 189
    iput p1, p0, Lcom/in2wow/sdk/l/b/d$a;->b:I

    const/4 p1, 0x0

    .line 190
    iput-object p1, p0, Lcom/in2wow/sdk/l/b/d$a;->c:Ljava/util/List;

    .line 193
    iput p2, p0, Lcom/in2wow/sdk/l/b/d$a;->b:I

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

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

    iput-object p1, p0, Lcom/in2wow/sdk/l/b/d$a;->c:Ljava/util/List;

    return-void
.end method

.method private a()V
    .locals 8

    .line 198
    iget-object v0, p0, Lcom/in2wow/sdk/l/b/d$a;->c:Ljava/util/List;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/in2wow/sdk/l/b/d$a;->c:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-nez v0, :cond_0

    goto :goto_1

    .line 201
    :cond_0
    iget-object v0, p0, Lcom/in2wow/sdk/l/b/d$a;->c:Ljava/util/List;

    const/4 v1, 0x0

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/intowow/sdk/InstreamADView;

    .line 202
    iget-object v1, p0, Lcom/in2wow/sdk/l/b/d$a;->c:Ljava/util/List;

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

    move-result-object v1

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

    move-result v2

    if-nez v2, :cond_2

    .line 207
    iget-object v1, p0, Lcom/in2wow/sdk/l/b/d$a;->c:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    .line 208
    invoke-virtual {v0}, Lcom/intowow/sdk/InstreamADView;->destroy()V

    return-void

    .line 202
    :cond_2
    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/intowow/sdk/InstreamADView;

    .line 203
    invoke-virtual {v0}, Lcom/intowow/sdk/InstreamADView;->getLeastUsedTime()J

    move-result-wide v3

    invoke-virtual {v2}, Lcom/intowow/sdk/InstreamADView;->getLeastUsedTime()J

    move-result-wide v5

    cmp-long v7, v3, v5

    if-lez v7, :cond_1

    move-object v0, v2

    goto :goto_0

    :cond_3
    :goto_1
    return-void
.end method


# virtual methods
.method public a(Lcom/intowow/sdk/InstreamADView;)V
    .locals 2

    .line 234
    iget-object v0, p0, Lcom/in2wow/sdk/l/b/d$a;->c:Ljava/util/List;

    if-nez v0, :cond_0

    return-void

    .line 237
    :cond_0
    iget-object v0, p0, Lcom/in2wow/sdk/l/b/d$a;->c:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    iget v1, p0, Lcom/in2wow/sdk/l/b/d$a;->b:I

    if-lt v0, v1, :cond_1

    .line 238
    invoke-direct {p0}, Lcom/in2wow/sdk/l/b/d$a;->a()V

    .line 240
    :cond_1
    iget-object v0, p0, Lcom/in2wow/sdk/l/b/d$a;->c:Ljava/util/List;

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

    return-void
.end method

.method public a(Ljava/lang/String;)V
    .locals 4

    .line 212
    new-instance v0, Ljava/util/ArrayList;

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

    .line 213
    iget-object v1, p0, Lcom/in2wow/sdk/l/b/d$a;->c:Ljava/util/List;

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

    move-result-object v1

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

    move-result v2

    if-nez v2, :cond_2

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

    move-result-object v2

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

    move-result p1

    if-nez p1, :cond_1

    return-void

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

    move-result-object p1

    check-cast p1, Lcom/intowow/sdk/InstreamADView;

    .line 219
    invoke-virtual {p1}, Lcom/intowow/sdk/InstreamADView;->destroy()V

    .line 220
    iget-object v0, p0, Lcom/in2wow/sdk/l/b/d$a;->c:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    goto :goto_1

    .line 213
    :cond_2
    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/intowow/sdk/InstreamADView;

    if-eqz v2, :cond_0

    .line 214
    invoke-virtual {v2}, Lcom/intowow/sdk/InstreamADView;->getKey()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v3, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 215
    invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0
.end method

.method public a(Ljava/lang/String;II)V
    .locals 3

    .line 256
    iget-object v0, p0, Lcom/in2wow/sdk/l/b/d$a;->c:Ljava/util/List;

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

    move-result-object v0

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

    move-result v1

    if-nez v1, :cond_1

    return-void

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

    move-result-object v1

    check-cast v1, Lcom/intowow/sdk/InstreamADView;

    .line 257
    invoke-virtual {v1, p1, p2, p3}, Lcom/intowow/sdk/InstreamADView;->isVisible(Ljava/lang/String;II)Z

    move-result v2

    if-nez v2, :cond_0

    .line 258
    invoke-virtual {v1}, Lcom/intowow/sdk/InstreamADView;->stop()V

    .line 259
    invoke-virtual {v1}, Lcom/intowow/sdk/InstreamADView;->onHide()V

    goto :goto_0
.end method

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

    .line 293
    invoke-virtual {p0, p1, p2}, Lcom/in2wow/sdk/l/b/d$a;->b(Ljava/lang/String;I)Lcom/intowow/sdk/InstreamADView;

    move-result-object p1

    if-eqz p1, :cond_0

    const/4 p1, 0x1

    return p1

    :cond_0
    const/4 p1, 0x0

    return p1
.end method

.method public b(Ljava/lang/String;I)Lcom/intowow/sdk/InstreamADView;
    .locals 3

    .line 297
    iget-object v0, p0, Lcom/in2wow/sdk/l/b/d$a;->c:Ljava/util/List;

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

    move-result-object v0

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

    move-result v1

    if-nez v1, :cond_1

    const/4 p1, 0x0

    return-object p1

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

    move-result-object v1

    check-cast v1, Lcom/intowow/sdk/InstreamADView;

    .line 298
    invoke-virtual {v1, p1, p2}, Lcom/intowow/sdk/InstreamADView;->isMatchPageKey(Ljava/lang/String;I)Z

    move-result v2

    if-eqz v2, :cond_0

    return-object v1
.end method

.method public b(Ljava/lang/String;II)Ljava/util/List;
    .locals 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "II)",
            "Ljava/util/List<",
            "Lcom/intowow/sdk/InstreamADView;",
            ">;"
        }
    .end annotation

    const/4 v0, 0x0

    const/4 v1, 0x0

    .line 278
    :goto_0
    iget-object v2, p0, Lcom/in2wow/sdk/l/b/d$a;->c:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    if-lt v1, v2, :cond_0

    return-object v0

    .line 279
    :cond_0
    iget-object v2, p0, Lcom/in2wow/sdk/l/b/d$a;->c:Ljava/util/List;

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/intowow/sdk/InstreamADView;

    .line 280
    invoke-virtual {v2, p1, p2, p3}, Lcom/intowow/sdk/InstreamADView;->isVisible(Ljava/lang/String;II)Z

    move-result v3

    if-eqz v3, :cond_2

    if-nez v0, :cond_1

    .line 282
    new-instance v0, Ljava/util/ArrayList;

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

    .line 284
    :cond_1
    invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_2
    add-int/lit8 v1, v1, 0x1

    goto :goto_0
.end method

.method public b(Lcom/intowow/sdk/InstreamADView;)V
    .locals 3

    if-nez p1, :cond_0

    const/4 p1, -0x1

    goto :goto_0

    .line 246
    :cond_0
    invoke-virtual {p1}, Lcom/intowow/sdk/InstreamADView;->getADID()I

    move-result p1

    .line 247
    :goto_0
    iget-object v0, p0, Lcom/in2wow/sdk/l/b/d$a;->c:Ljava/util/List;

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

    move-result-object v0

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

    move-result v1

    if-nez v1, :cond_2

    return-void

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

    move-result-object v1

    check-cast v1, Lcom/intowow/sdk/InstreamADView;

    .line 248
    invoke-virtual {v1}, Lcom/intowow/sdk/InstreamADView;->getADID()I

    move-result v2

    if-eq v2, p1, :cond_1

    .line 249
    invoke-virtual {v1}, Lcom/intowow/sdk/InstreamADView;->reset()V

    goto :goto_1
.end method

.method public b(Ljava/lang/String;)V
    .locals 3

    .line 265
    iget-object v0, p0, Lcom/in2wow/sdk/l/b/d$a;->c:Ljava/util/List;

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

    move-result-object v0

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

    move-result v1

    if-nez v1, :cond_1

    return-void

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

    move-result-object v1

    check-cast v1, Lcom/intowow/sdk/InstreamADView;

    .line 266
    invoke-virtual {v1}, Lcom/intowow/sdk/InstreamADView;->getKey()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 267
    invoke-virtual {v1}, Lcom/intowow/sdk/InstreamADView;->stop()V

    .line 268
    invoke-virtual {v1}, Lcom/intowow/sdk/InstreamADView;->onHide()V

    goto :goto_0
.end method
