.class Lcom/baidu/mobads/t;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Lcom/baidu/mobads/component/XAdView$Listener;


# instance fields
.field final synthetic a:Landroid/content/Context;

.field final synthetic b:Lcom/baidu/mobads/component/XAdView;

.field final synthetic c:Ljava/lang/String;

.field final synthetic d:Z

.field final synthetic e:Lcom/baidu/mobads/SplashAd;


# direct methods
.method constructor <init>(Lcom/baidu/mobads/SplashAd;Landroid/content/Context;Lcom/baidu/mobads/component/XAdView;Ljava/lang/String;Z)V
    .locals 0

    .line 139
    iput-object p1, p0, Lcom/baidu/mobads/t;->e:Lcom/baidu/mobads/SplashAd;

    iput-object p2, p0, Lcom/baidu/mobads/t;->a:Landroid/content/Context;

    iput-object p3, p0, Lcom/baidu/mobads/t;->b:Lcom/baidu/mobads/component/XAdView;

    iput-object p4, p0, Lcom/baidu/mobads/t;->c:Ljava/lang/String;

    iput-boolean p5, p0, Lcom/baidu/mobads/t;->d:Z

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

    return-void
.end method


# virtual methods
.method public onAttachedToWindow()V
    .locals 1

    .line 192
    iget-object v0, p0, Lcom/baidu/mobads/t;->e:Lcom/baidu/mobads/SplashAd;

    invoke-static {v0}, Lcom/baidu/mobads/SplashAd;->b(Lcom/baidu/mobads/SplashAd;)Lcom/baidu/mobads/production/h/a;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 193
    iget-object v0, p0, Lcom/baidu/mobads/t;->e:Lcom/baidu/mobads/SplashAd;

    invoke-static {v0}, Lcom/baidu/mobads/SplashAd;->b(Lcom/baidu/mobads/SplashAd;)Lcom/baidu/mobads/production/h/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/baidu/mobads/production/h/a;->k()V

    :cond_0
    return-void
.end method

.method public onDetachedFromWindow()V
    .locals 1
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "MissingSuperCall"
        }
    .end annotation

    .line 185
    iget-object v0, p0, Lcom/baidu/mobads/t;->e:Lcom/baidu/mobads/SplashAd;

    invoke-static {v0}, Lcom/baidu/mobads/SplashAd;->b(Lcom/baidu/mobads/SplashAd;)Lcom/baidu/mobads/production/h/a;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 186
    iget-object v0, p0, Lcom/baidu/mobads/t;->e:Lcom/baidu/mobads/SplashAd;

    invoke-static {v0}, Lcom/baidu/mobads/SplashAd;->b(Lcom/baidu/mobads/SplashAd;)Lcom/baidu/mobads/production/h/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/baidu/mobads/production/h/a;->l()V

    :cond_0
    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 0

    const/4 p1, 0x0

    return p1
.end method

.method public onLayoutComplete(II)V
    .locals 9

    .line 157
    iget-object v0, p0, Lcom/baidu/mobads/t;->e:Lcom/baidu/mobads/SplashAd;

    invoke-static {v0}, Lcom/baidu/mobads/SplashAd;->b(Lcom/baidu/mobads/SplashAd;)Lcom/baidu/mobads/production/h/a;

    move-result-object v0

    if-eqz v0, :cond_0

    return-void

    .line 160
    :cond_0
    invoke-static {}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    move-result-object v0

    invoke-virtual {v0}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getCommonUtils()Lcom/baidu/mobads/utils/d;

    move-result-object v0

    iget-object v1, p0, Lcom/baidu/mobads/t;->a:Landroid/content/Context;

    invoke-virtual {v0, v1}, Lcom/baidu/mobads/utils/d;->getScreenDensity(Landroid/content/Context;)F

    move-result v0

    int-to-float v1, p1

    const/high16 v2, 0x43480000    # 200.0f

    mul-float v2, v2, v0

    cmpg-float v1, v1, v2

    if-ltz v1, :cond_2

    int-to-float v1, p2

    const/high16 v2, 0x43160000    # 150.0f

    mul-float v0, v0, v2

    cmpg-float v0, v1, v0

    if-gez v0, :cond_1

    goto :goto_0

    .line 171
    :cond_1
    iget-object v0, p0, Lcom/baidu/mobads/t;->e:Lcom/baidu/mobads/SplashAd;

    new-instance v8, Lcom/baidu/mobads/production/h/a;

    iget-object v2, p0, Lcom/baidu/mobads/t;->a:Landroid/content/Context;

    iget-object v3, p0, Lcom/baidu/mobads/t;->b:Lcom/baidu/mobads/component/XAdView;

    iget-object v4, p0, Lcom/baidu/mobads/t;->c:Ljava/lang/String;

    iget-boolean v5, p0, Lcom/baidu/mobads/t;->d:Z

    move-object v1, v8

    move v6, p1

    move v7, p2

    invoke-direct/range {v1 .. v7}, Lcom/baidu/mobads/production/h/a;-><init>(Landroid/content/Context;Landroid/widget/RelativeLayout;Ljava/lang/String;ZII)V

    invoke-static {v0, v8}, Lcom/baidu/mobads/SplashAd;->a(Lcom/baidu/mobads/SplashAd;Lcom/baidu/mobads/production/h/a;)Lcom/baidu/mobads/production/h/a;

    .line 172
    iget-object p1, p0, Lcom/baidu/mobads/t;->e:Lcom/baidu/mobads/SplashAd;

    invoke-static {p1}, Lcom/baidu/mobads/SplashAd;->b(Lcom/baidu/mobads/SplashAd;)Lcom/baidu/mobads/production/h/a;

    move-result-object p1

    const-string p2, "AdUserClick"

    iget-object v0, p0, Lcom/baidu/mobads/t;->e:Lcom/baidu/mobads/SplashAd;

    invoke-static {v0}, Lcom/baidu/mobads/SplashAd;->c(Lcom/baidu/mobads/SplashAd;)Lcom/baidu/mobads/openad/interfaces/event/IOAdEventListener;

    move-result-object v0

    invoke-virtual {p1, p2, v0}, Lcom/baidu/mobads/production/h/a;->addEventListener(Ljava/lang/String;Lcom/baidu/mobads/openad/interfaces/event/IOAdEventListener;)V

    .line 173
    iget-object p1, p0, Lcom/baidu/mobads/t;->e:Lcom/baidu/mobads/SplashAd;

    invoke-static {p1}, Lcom/baidu/mobads/SplashAd;->b(Lcom/baidu/mobads/SplashAd;)Lcom/baidu/mobads/production/h/a;

    move-result-object p1

    const-string p2, "AdLoaded"

    iget-object v0, p0, Lcom/baidu/mobads/t;->e:Lcom/baidu/mobads/SplashAd;

    invoke-static {v0}, Lcom/baidu/mobads/SplashAd;->c(Lcom/baidu/mobads/SplashAd;)Lcom/baidu/mobads/openad/interfaces/event/IOAdEventListener;

    move-result-object v0

    invoke-virtual {p1, p2, v0}, Lcom/baidu/mobads/production/h/a;->addEventListener(Ljava/lang/String;Lcom/baidu/mobads/openad/interfaces/event/IOAdEventListener;)V

    .line 174
    iget-object p1, p0, Lcom/baidu/mobads/t;->e:Lcom/baidu/mobads/SplashAd;

    invoke-static {p1}, Lcom/baidu/mobads/SplashAd;->b(Lcom/baidu/mobads/SplashAd;)Lcom/baidu/mobads/production/h/a;

    move-result-object p1

    const-string p2, "AdStarted"

    iget-object v0, p0, Lcom/baidu/mobads/t;->e:Lcom/baidu/mobads/SplashAd;

    invoke-static {v0}, Lcom/baidu/mobads/SplashAd;->c(Lcom/baidu/mobads/SplashAd;)Lcom/baidu/mobads/openad/interfaces/event/IOAdEventListener;

    move-result-object v0

    invoke-virtual {p1, p2, v0}, Lcom/baidu/mobads/production/h/a;->addEventListener(Ljava/lang/String;Lcom/baidu/mobads/openad/interfaces/event/IOAdEventListener;)V

    .line 175
    iget-object p1, p0, Lcom/baidu/mobads/t;->e:Lcom/baidu/mobads/SplashAd;

    invoke-static {p1}, Lcom/baidu/mobads/SplashAd;->b(Lcom/baidu/mobads/SplashAd;)Lcom/baidu/mobads/production/h/a;

    move-result-object p1

    const-string p2, "AdStopped"

    iget-object v0, p0, Lcom/baidu/mobads/t;->e:Lcom/baidu/mobads/SplashAd;

    invoke-static {v0}, Lcom/baidu/mobads/SplashAd;->c(Lcom/baidu/mobads/SplashAd;)Lcom/baidu/mobads/openad/interfaces/event/IOAdEventListener;

    move-result-object v0

    invoke-virtual {p1, p2, v0}, Lcom/baidu/mobads/production/h/a;->addEventListener(Ljava/lang/String;Lcom/baidu/mobads/openad/interfaces/event/IOAdEventListener;)V

    .line 178
    iget-object p1, p0, Lcom/baidu/mobads/t;->e:Lcom/baidu/mobads/SplashAd;

    invoke-static {p1}, Lcom/baidu/mobads/SplashAd;->b(Lcom/baidu/mobads/SplashAd;)Lcom/baidu/mobads/production/h/a;

    move-result-object p1

    const-string p2, "AdError"

    iget-object v0, p0, Lcom/baidu/mobads/t;->e:Lcom/baidu/mobads/SplashAd;

    invoke-static {v0}, Lcom/baidu/mobads/SplashAd;->c(Lcom/baidu/mobads/SplashAd;)Lcom/baidu/mobads/openad/interfaces/event/IOAdEventListener;

    move-result-object v0

    invoke-virtual {p1, p2, v0}, Lcom/baidu/mobads/production/h/a;->addEventListener(Ljava/lang/String;Lcom/baidu/mobads/openad/interfaces/event/IOAdEventListener;)V

    .line 179
    iget-object p1, p0, Lcom/baidu/mobads/t;->e:Lcom/baidu/mobads/SplashAd;

    invoke-static {p1}, Lcom/baidu/mobads/SplashAd;->b(Lcom/baidu/mobads/SplashAd;)Lcom/baidu/mobads/production/h/a;

    move-result-object p1

    invoke-virtual {p1}, Lcom/baidu/mobads/production/h/a;->request()V

    return-void

    .line 163
    :cond_2
    :goto_0
    invoke-static {}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    move-result-object p1

    invoke-virtual {p1}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getErrorCode()Lcom/baidu/mobads/interfaces/error/IXAdErrorCode;

    move-result-object p1

    .line 164
    sget-object p2, Lcom/baidu/mobads/interfaces/error/XAdErrorCode;->SHOW_STANDARD_UNFIT:Lcom/baidu/mobads/interfaces/error/XAdErrorCode;

    const-string v0, "\u5f00\u5c4f\u663e\u793a\u533a\u57df\u592a\u5c0f,\u5bbd\u5ea6\u81f3\u5c11200dp,\u9ad8\u5ea6\u81f3\u5c11150dp"

    invoke-interface {p1, p2, v0}, Lcom/baidu/mobads/interfaces/error/IXAdErrorCode;->genCompleteErrorMessage(Lcom/baidu/mobads/interfaces/error/XAdErrorCode;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 166
    invoke-static {}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    move-result-object p2

    invoke-virtual {p2}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getAdLogger()Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    move-result-object p2

    invoke-interface {p2, p1}, Lcom/baidu/mobads/interfaces/utils/IXAdLogger;->e(Ljava/lang/String;)I

    .line 167
    iget-object p1, p0, Lcom/baidu/mobads/t;->e:Lcom/baidu/mobads/SplashAd;

    invoke-static {p1}, Lcom/baidu/mobads/SplashAd;->a(Lcom/baidu/mobads/SplashAd;)Lcom/baidu/mobads/SplashAdListener;

    move-result-object p1

    invoke-interface {p1}, Lcom/baidu/mobads/SplashAdListener;->onAdDismissed()V

    return-void
.end method

.method public onWindowFocusChanged(Z)V
    .locals 1

    .line 149
    iget-object v0, p0, Lcom/baidu/mobads/t;->e:Lcom/baidu/mobads/SplashAd;

    invoke-static {v0}, Lcom/baidu/mobads/SplashAd;->b(Lcom/baidu/mobads/SplashAd;)Lcom/baidu/mobads/production/h/a;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 150
    iget-object v0, p0, Lcom/baidu/mobads/t;->e:Lcom/baidu/mobads/SplashAd;

    invoke-static {v0}, Lcom/baidu/mobads/SplashAd;->b(Lcom/baidu/mobads/SplashAd;)Lcom/baidu/mobads/production/h/a;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/baidu/mobads/production/h/a;->a(Z)V

    :cond_0
    return-void
.end method

.method public onWindowVisibilityChanged(I)V
    .locals 1

    .line 142
    iget-object v0, p0, Lcom/baidu/mobads/t;->e:Lcom/baidu/mobads/SplashAd;

    invoke-static {v0}, Lcom/baidu/mobads/SplashAd;->b(Lcom/baidu/mobads/SplashAd;)Lcom/baidu/mobads/production/h/a;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 143
    iget-object v0, p0, Lcom/baidu/mobads/t;->e:Lcom/baidu/mobads/SplashAd;

    invoke-static {v0}, Lcom/baidu/mobads/SplashAd;->b(Lcom/baidu/mobads/SplashAd;)Lcom/baidu/mobads/production/h/a;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/baidu/mobads/production/h/a;->a(I)V

    :cond_0
    return-void
.end method
