.class public Lcom/baidu/mobads/production/e/a;
.super Lcom/baidu/mobads/production/a;
.source "SourceFile"

# interfaces
.implements Lcom/baidu/mobads/interfaces/IXNonLinearAdSlot;


# instance fields
.field private w:Lcom/baidu/mobads/production/e/c;

.field private x:Lcom/baidu/mobads/interfaces/IXHybridAdRenderer;

.field private y:Landroid/webkit/WebView;


# direct methods
.method public constructor <init>(Landroid/webkit/WebView;)V
    .locals 3

    .line 52
    invoke-virtual {p1}, Landroid/webkit/WebView;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/baidu/mobads/production/a;-><init>(Landroid/content/Context;)V

    .line 54
    iput-object p1, p0, Lcom/baidu/mobads/production/e/a;->y:Landroid/webkit/WebView;

    .line 55
    invoke-virtual {p1}, Landroid/webkit/WebView;->getContext()Landroid/content/Context;

    move-result-object p1

    invoke-virtual {p0, p1}, Lcom/baidu/mobads/production/e/a;->setActivity(Landroid/content/Context;)V

    .line 57
    sget-object p1, Lcom/baidu/mobads/interfaces/IXAdConstants4PDK$SlotType;->SLOT_TYPE_JSSDK:Lcom/baidu/mobads/interfaces/IXAdConstants4PDK$SlotType;

    iput-object p1, p0, Lcom/baidu/mobads/production/e/a;->p:Lcom/baidu/mobads/interfaces/IXAdConstants4PDK$SlotType;

    .line 58
    new-instance p1, Lcom/baidu/mobads/production/e/c;

    invoke-virtual {p0}, Lcom/baidu/mobads/production/e/a;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {p0}, Lcom/baidu/mobads/production/e/a;->getActivity()Landroid/app/Activity;

    move-result-object v1

    iget-object v2, p0, Lcom/baidu/mobads/production/e/a;->p:Lcom/baidu/mobads/interfaces/IXAdConstants4PDK$SlotType;

    invoke-direct {p1, v0, v1, v2}, Lcom/baidu/mobads/production/e/c;-><init>(Landroid/content/Context;Landroid/app/Activity;Lcom/baidu/mobads/interfaces/IXAdConstants4PDK$SlotType;)V

    iput-object p1, p0, Lcom/baidu/mobads/production/e/a;->w:Lcom/baidu/mobads/production/e/c;

    return-void
.end method

.method static synthetic a(Lcom/baidu/mobads/production/e/a;)Landroid/content/Context;
    .locals 0

    .line 39
    iget-object p0, p0, Lcom/baidu/mobads/production/e/a;->f:Landroid/content/Context;

    return-object p0
.end method

.method static synthetic b(Lcom/baidu/mobads/production/e/a;)Landroid/content/Context;
    .locals 0

    .line 39
    iget-object p0, p0, Lcom/baidu/mobads/production/e/a;->f:Landroid/content/Context;

    return-object p0
.end method

.method static synthetic c(Lcom/baidu/mobads/production/e/a;)Landroid/content/Context;
    .locals 0

    .line 39
    iget-object p0, p0, Lcom/baidu/mobads/production/e/a;->f:Landroid/content/Context;

    return-object p0
.end method

.method static synthetic d(Lcom/baidu/mobads/production/e/a;)Landroid/content/Context;
    .locals 0

    .line 39
    iget-object p0, p0, Lcom/baidu/mobads/production/e/a;->f:Landroid/content/Context;

    return-object p0
.end method

.method static synthetic e(Lcom/baidu/mobads/production/e/a;)Landroid/content/Context;
    .locals 0

    .line 39
    iget-object p0, p0, Lcom/baidu/mobads/production/e/a;->f:Landroid/content/Context;

    return-object p0
.end method

.method static synthetic f(Lcom/baidu/mobads/production/e/a;)Landroid/content/Context;
    .locals 0

    .line 39
    iget-object p0, p0, Lcom/baidu/mobads/production/e/a;->f:Landroid/content/Context;

    return-object p0
.end method

.method static synthetic g(Lcom/baidu/mobads/production/e/a;)Landroid/content/Context;
    .locals 0

    .line 39
    iget-object p0, p0, Lcom/baidu/mobads/production/e/a;->f:Landroid/content/Context;

    return-object p0
.end method

.method static synthetic h(Lcom/baidu/mobads/production/e/a;)Landroid/content/Context;
    .locals 0

    .line 39
    iget-object p0, p0, Lcom/baidu/mobads/production/e/a;->f:Landroid/content/Context;

    return-object p0
.end method


# virtual methods
.method protected a(Lcom/baidu/mobads/openad/e/c;Lcom/baidu/mobads/production/t;I)V
    .locals 0

    .line 86
    new-instance p1, Ljava/lang/StringBuilder;

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

    const-string p2, "{\'ad\':[{\'id\':99999999,\'url\':\'"

    invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object p2, p0, Lcom/baidu/mobads/production/e/a;->w:Lcom/baidu/mobads/production/e/c;

    invoke-virtual {p2}, Lcom/baidu/mobads/production/e/c;->b()Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p2, "\', type=\'"

    invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object p2, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;->HYBRID:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;

    invoke-virtual {p2}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;->getValue()Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p2, "\'}],\'n\':1}"

    invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const/4 p2, 0x1

    .line 90
    invoke-static {p2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object p2

    iput-object p2, p0, Lcom/baidu/mobads/production/e/a;->b:Ljava/lang/Boolean;

    .line 92
    :try_start_0
    new-instance p2, Lcom/baidu/mobads/vo/c;

    invoke-direct {p2, p1}, Lcom/baidu/mobads/vo/c;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0, p2}, Lcom/baidu/mobads/production/e/a;->setAdResponseInfo(Lcom/baidu/mobads/interfaces/IXAdResponseInfo;)V
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 94
    invoke-virtual {p1}, Lorg/json/JSONException;->printStackTrace()V

    :goto_0
    const-string p1, "XAdMouldeLoader ad-server requesting success"

    .line 97
    invoke-virtual {p0, p1}, Lcom/baidu/mobads/production/e/a;->a(Ljava/lang/String;)V

    return-void
.end method

.method public a(Landroid/webkit/WebView;Ljava/lang/String;)Z
    .locals 1

    .line 169
    iget-object v0, p0, Lcom/baidu/mobads/production/e/a;->x:Lcom/baidu/mobads/interfaces/IXHybridAdRenderer;

    if-nez v0, :cond_0

    const/4 p1, 0x0

    goto :goto_0

    :cond_0
    iget-object v0, p0, Lcom/baidu/mobads/production/e/a;->x:Lcom/baidu/mobads/interfaces/IXHybridAdRenderer;

    invoke-interface {v0, p1, p2}, Lcom/baidu/mobads/interfaces/IXHybridAdRenderer;->shouldOverrideUrlLoading(Landroid/webkit/WebView;Ljava/lang/String;)Z

    move-result p1

    :goto_0
    return p1
.end method

.method protected b()V
    .locals 2

    .line 124
    new-instance v0, Ljava/lang/Thread;

    new-instance v1, Lcom/baidu/mobads/production/e/b;

    invoke-direct {v1, p0}, Lcom/baidu/mobads/production/e/b;-><init>(Lcom/baidu/mobads/production/e/a;)V

    invoke-direct {v0, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    return-void
.end method

.method protected b(Lcom/baidu/mobads/vo/d;)V
    .locals 1

    .line 78
    iput-object p1, p0, Lcom/baidu/mobads/production/e/a;->l:Lcom/baidu/mobads/vo/d;

    .line 79
    invoke-virtual {p0}, Lcom/baidu/mobads/production/e/a;->h()V

    const/4 p1, 0x0

    const/16 v0, 0x1388

    .line 80
    invoke-virtual {p0, p1, p1, v0}, Lcom/baidu/mobads/production/e/a;->a(Lcom/baidu/mobads/openad/e/c;Lcom/baidu/mobads/production/t;I)V

    return-void
.end method

.method protected c(Lcom/baidu/mobads/interfaces/IXAdContainer;Ljava/util/HashMap;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/baidu/mobads/interfaces/IXAdContainer;",
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;)V"
        }
    .end annotation

    .line 103
    :try_start_0
    iget-object p1, p0, Lcom/baidu/mobads/production/a;->h:Lcom/baidu/mobads/interfaces/IXAdContainer;

    check-cast p1, Lcom/baidu/mobads/interfaces/IXHybridAdRenderer;

    iput-object p1, p0, Lcom/baidu/mobads/production/e/a;->x:Lcom/baidu/mobads/interfaces/IXHybridAdRenderer;

    .line 104
    iget-object p1, p0, Lcom/baidu/mobads/production/e/a;->x:Lcom/baidu/mobads/interfaces/IXHybridAdRenderer;

    iget-object p2, p0, Lcom/baidu/mobads/production/e/a;->y:Landroid/webkit/WebView;

    invoke-interface {p1, p2}, Lcom/baidu/mobads/interfaces/IXHybridAdRenderer;->setCustomerWebView(Landroid/webkit/WebView;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    const/4 p1, 0x0

    .line 106
    iput-object p1, p0, Lcom/baidu/mobads/production/e/a;->x:Lcom/baidu/mobads/interfaces/IXHybridAdRenderer;

    .line 110
    :goto_0
    invoke-virtual {p0}, Lcom/baidu/mobads/production/e/a;->start()V

    return-void
.end method

.method public c(Lcom/baidu/mobads/interfaces/IXAdResponseInfo;)V
    .locals 0

    return-void
.end method

.method public d()V
    .locals 0

    .line 63
    invoke-virtual {p0}, Lcom/baidu/mobads/production/e/a;->load()V

    return-void
.end method

.method protected d(Lcom/baidu/mobads/interfaces/IXAdContainer;Ljava/util/HashMap;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/baidu/mobads/interfaces/IXAdContainer;",
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;)V"
        }
    .end annotation

    return-void
.end method

.method protected e()V
    .locals 1

    const/16 v0, 0x2710

    .line 68
    iput v0, p0, Lcom/baidu/mobads/production/a;->n:I

    return-void
.end method

.method protected e(Lcom/baidu/mobads/interfaces/IXAdContainer;Ljava/util/HashMap;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/baidu/mobads/interfaces/IXAdContainer;",
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;)V"
        }
    .end annotation

    .line 143
    invoke-super {p0}, Lcom/baidu/mobads/production/a;->m()V

    .line 144
    new-instance p1, Lcom/baidu/mobads/f/a;

    const-string p2, "AdUserClose"

    invoke-direct {p1, p2}, Lcom/baidu/mobads/f/a;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0, p1}, Lcom/baidu/mobads/production/e/a;->dispatchEvent(Lcom/baidu/mobads/openad/interfaces/event/IOAdEvent;)V

    return-void
.end method

.method public synthetic getAdRequestInfo()Lcom/baidu/mobads/interfaces/IXAdRequestInfo;
    .locals 1

    .line 39
    invoke-virtual {p0}, Lcom/baidu/mobads/production/e/a;->n()Lcom/baidu/mobads/vo/d;

    move-result-object v0

    return-object v0
.end method

.method public n()Lcom/baidu/mobads/vo/d;
    .locals 1

    .line 119
    iget-object v0, p0, Lcom/baidu/mobads/production/e/a;->w:Lcom/baidu/mobads/production/e/c;

    return-object v0
.end method

.method public request()V
    .locals 1

    .line 73
    iget-object v0, p0, Lcom/baidu/mobads/production/e/a;->w:Lcom/baidu/mobads/production/e/c;

    invoke-virtual {p0, v0}, Lcom/baidu/mobads/production/e/a;->a(Lcom/baidu/mobads/vo/d;)Z

    return-void
.end method
