.class public Lcom/moji/mjad/third/LoadGDTAd;
.super Ljava/lang/Object;
.source "LoadGDTAd.java"


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;ZLcom/moji/mjad/common/data/AdCommon;Lcom/moji/mjad/common/network/ISDKRequestCallBack;)V
    .locals 2

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

    if-eqz p4, :cond_0

    .line 54
    iget v0, p4, Lcom/moji/mjad/common/data/AdCommon;->adStyle:I

    const/16 v1, 0x8

    if-ne v0, v1, :cond_0

    .line 55
    invoke-virtual/range {p0 .. p5}, Lcom/moji/mjad/third/LoadGDTAd;->a(Landroid/content/Context;Ljava/lang/String;ZLcom/moji/mjad/common/data/AdCommon;Lcom/moji/mjad/common/network/ISDKRequestCallBack;)V

    goto :goto_0

    .line 57
    :cond_0
    invoke-direct/range {p0 .. p5}, Lcom/moji/mjad/third/LoadGDTAd;->b(Landroid/content/Context;Ljava/lang/String;ZLcom/moji/mjad/common/data/AdCommon;Lcom/moji/mjad/common/network/ISDKRequestCallBack;)V

    :goto_0
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;ZLjava/util/List;Lcom/moji/mjad/common/data/AdCommon;Lcom/moji/mjad/common/network/AdCommonRequestCallBack;)V
    .locals 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/lang/String;",
            "Z",
            "Ljava/util/List<",
            "Lcom/moji/mjad/common/data/AdCommon;",
            ">;",
            "Lcom/moji/mjad/common/data/AdCommon;",
            "Lcom/moji/mjad/common/network/AdCommonRequestCallBack;",
            ")V"
        }
    .end annotation

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

    if-eqz p4, :cond_0

    .line 38
    invoke-interface {p4}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_0

    move-object v0, p0

    move-object v1, p1

    move-object v2, p2

    move v3, p3

    move-object v4, p5

    move-object v5, p4

    move-object v6, p6

    .line 39
    invoke-direct/range {v0 .. v6}, Lcom/moji/mjad/third/LoadGDTAd;->a(Landroid/content/Context;Ljava/lang/String;ZLcom/moji/mjad/common/data/AdCommon;Ljava/util/List;Lcom/moji/mjad/common/network/AdCommonRequestCallBack;)V

    goto :goto_0

    :cond_0
    if-eqz p6, :cond_1

    .line 42
    sget-object p1, Lcom/moji/mjad/enumdata/ERROR_CODE;->NODATA:Lcom/moji/mjad/enumdata/ERROR_CODE;

    invoke-virtual {p6, p1, p2}, Lcom/moji/mjad/common/network/AdCommonRequestCallBack;->a(Lcom/moji/mjad/enumdata/ERROR_CODE;Ljava/lang/String;)V

    :cond_1
    :goto_0
    return-void
.end method

.method private a(Landroid/content/Context;Ljava/lang/String;ZLcom/moji/mjad/common/data/AdCommon;Ljava/util/List;Lcom/moji/mjad/common/network/AdCommonRequestCallBack;)V
    .locals 14
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/lang/String;",
            "Z",
            "Lcom/moji/mjad/common/data/AdCommon;",
            "Ljava/util/List<",
            "Lcom/moji/mjad/common/data/AdCommon;",
            ">;",
            "Lcom/moji/mjad/common/network/AdCommonRequestCallBack;",
            ")V"
        }
    .end annotation

    move-object/from16 v7, p2

    move-object/from16 v8, p4

    move-object/from16 v9, p6

    const/4 v0, 0x1

    if-eqz p3, :cond_0

    .line 82
    invoke-static {v0}, Lcom/qq/e/ads/cfg/MultiProcessFlag;->setMultiProcess(Z)V

    :cond_0
    if-eqz v8, :cond_4

    .line 84
    iget-object v1, v8, Lcom/moji/mjad/common/data/AdCommon;->appId:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_4

    iget-object v1, v8, Lcom/moji/mjad/common/data/AdCommon;->adRequeestId:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_4

    .line 85
    invoke-direct {p0, p1}, Lcom/moji/mjad/third/LoadGDTAd;->a(Landroid/content/Context;)Z

    move-result v1

    if-eqz v1, :cond_2

    .line 86
    new-instance v10, Lcom/qq/e/ads/nativ/NativeAD;

    iget-object v1, v8, Lcom/moji/mjad/common/data/AdCommon;->appId:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v11

    iget-object v1, v8, Lcom/moji/mjad/common/data/AdCommon;->adRequeestId:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v12

    new-instance v13, Lcom/moji/mjad/third/LoadGDTAd$1;

    move-object v1, v13

    move-object v2, p0

    move-object/from16 v3, p4

    move-object/from16 v4, p2

    move-object/from16 v5, p6

    move-object/from16 v6, p5

    invoke-direct/range {v1 .. v6}, Lcom/moji/mjad/third/LoadGDTAd$1;-><init>(Lcom/moji/mjad/third/LoadGDTAd;Lcom/moji/mjad/common/data/AdCommon;Ljava/lang/String;Lcom/moji/mjad/common/network/AdCommonRequestCallBack;Ljava/util/List;)V

    move-object v1, p1

    invoke-direct {v10, p1, v11, v12, v13}, Lcom/qq/e/ads/nativ/NativeAD;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lcom/qq/e/ads/nativ/NativeAD$NativeAdListener;)V

    .line 151
    :try_start_0
    invoke-virtual {v10, v0}, Lcom/qq/e/ads/nativ/NativeAD;->loadAD(I)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    move-object v1, v0

    const-string v0, "LoadGDTAd"

    .line 153
    invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V

    if-eqz v8, :cond_1

    .line 154
    iget-object v0, v8, Lcom/moji/mjad/common/data/AdCommon;->position:Lcom/moji/mjad/enumdata/MojiAdPosition;

    if-eqz v0, :cond_1

    .line 155
    invoke-static {}, Lcom/moji/mjad/statistics/AdStatistics;->a()Lcom/moji/mjad/statistics/AdStatistics;

    move-result-object v0

    iget-object v1, v8, Lcom/moji/mjad/common/data/AdCommon;->position:Lcom/moji/mjad/enumdata/MojiAdPosition;

    iget v1, v1, Lcom/moji/mjad/enumdata/MojiAdPosition;->value:I

    invoke-virtual {v0, v7, v1}, Lcom/moji/mjad/statistics/AdStatistics;->g(Ljava/lang/String;I)V

    :cond_1
    if-eqz v9, :cond_6

    .line 158
    sget-object v0, Lcom/moji/mjad/enumdata/ERROR_CODE;->NODATA:Lcom/moji/mjad/enumdata/ERROR_CODE;

    invoke-virtual {v9, v0, v7}, Lcom/moji/mjad/common/network/AdCommonRequestCallBack;->a(Lcom/moji/mjad/enumdata/ERROR_CODE;Ljava/lang/String;)V

    goto :goto_0

    .line 162
    :cond_2
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object v0

    sget-object v1, Lcom/moji/statistics/EVENT_TAG;->NEW_AD_GDT_SMALL_SPLASH_GET_STAT:Lcom/moji/statistics/EVENT_TAG;

    const-string v2, "No Permissions2"

    invoke-virtual {v0, v1, v2}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;

    const-string v0, "LoadGDTAd"

    const-string v1, "LoadGDTAd---No Permissions"

    .line 163
    invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V

    if-eqz v8, :cond_3

    .line 164
    iget-object v0, v8, Lcom/moji/mjad/common/data/AdCommon;->position:Lcom/moji/mjad/enumdata/MojiAdPosition;

    if-eqz v0, :cond_3

    .line 165
    invoke-static {}, Lcom/moji/mjad/statistics/AdStatistics;->a()Lcom/moji/mjad/statistics/AdStatistics;

    move-result-object v0

    iget-object v1, v8, Lcom/moji/mjad/common/data/AdCommon;->position:Lcom/moji/mjad/enumdata/MojiAdPosition;

    iget v1, v1, Lcom/moji/mjad/enumdata/MojiAdPosition;->value:I

    invoke-virtual {v0, v7, v1}, Lcom/moji/mjad/statistics/AdStatistics;->g(Ljava/lang/String;I)V

    :cond_3
    if-eqz v9, :cond_6

    .line 168
    sget-object v0, Lcom/moji/mjad/enumdata/ERROR_CODE;->NODATA:Lcom/moji/mjad/enumdata/ERROR_CODE;

    invoke-virtual {v9, v0, v7}, Lcom/moji/mjad/common/network/AdCommonRequestCallBack;->a(Lcom/moji/mjad/enumdata/ERROR_CODE;Ljava/lang/String;)V

    goto :goto_0

    :cond_4
    if-eqz v8, :cond_5

    .line 172
    iget-object v0, v8, Lcom/moji/mjad/common/data/AdCommon;->position:Lcom/moji/mjad/enumdata/MojiAdPosition;

    if-eqz v0, :cond_5

    .line 173
    invoke-static {}, Lcom/moji/mjad/statistics/AdStatistics;->a()Lcom/moji/mjad/statistics/AdStatistics;

    move-result-object v0

    iget-object v1, v8, Lcom/moji/mjad/common/data/AdCommon;->position:Lcom/moji/mjad/enumdata/MojiAdPosition;

    iget v1, v1, Lcom/moji/mjad/enumdata/MojiAdPosition;->value:I

    invoke-virtual {v0, v7, v1}, Lcom/moji/mjad/statistics/AdStatistics;->g(Ljava/lang/String;I)V

    :cond_5
    if-eqz v9, :cond_6

    .line 176
    sget-object v0, Lcom/moji/mjad/enumdata/ERROR_CODE;->NODATA:Lcom/moji/mjad/enumdata/ERROR_CODE;

    invoke-virtual {v9, v0, v7}, Lcom/moji/mjad/common/network/AdCommonRequestCallBack;->a(Lcom/moji/mjad/enumdata/ERROR_CODE;Ljava/lang/String;)V

    :cond_6
    :goto_0
    return-void
.end method

.method private a(Landroid/content/Context;)Z
    .locals 5

    const/4 v0, 0x3

    .line 67
    new-array v0, v0, [Ljava/lang/String;

    const-string v1, "android.permission.READ_PHONE_STATE"

    const/4 v2, 0x0

    aput-object v1, v0, v2

    const-string v1, "android.permission.WRITE_EXTERNAL_STORAGE"

    const/4 v3, 0x1

    aput-object v1, v0, v3

    const-string v1, "android.permission.ACCESS_FINE_LOCATION"

    const/4 v4, 0x2

    aput-object v1, v0, v4

    .line 68
    invoke-static {}, Lcom/moji/tool/DeviceTool;->N()Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-static {p1, v0}, Lcom/moji/tool/permission/EasyPermissions;->a(Landroid/content/Context;[Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_1

    :cond_0
    const/4 v2, 0x1

    :cond_1
    return v2
.end method

.method static synthetic a(Lcom/moji/mjad/third/LoadGDTAd;Lcom/qq/e/ads/nativ/NativeADDataRef;Lcom/moji/mjad/common/data/AdCommon;Z)Z
    .locals 0

    .line 35
    invoke-direct {p0, p1, p2, p3}, Lcom/moji/mjad/third/LoadGDTAd;->a(Lcom/qq/e/ads/nativ/NativeADDataRef;Lcom/moji/mjad/common/data/AdCommon;Z)Z

    move-result p0

    return p0
.end method

.method static synthetic a(Lcom/moji/mjad/third/LoadGDTAd;Lcom/qq/e/ads/nativ/NativeMediaADData;Lcom/moji/mjad/common/data/AdCommon;Z)Z
    .locals 0

    .line 35
    invoke-direct {p0, p1, p2, p3}, Lcom/moji/mjad/third/LoadGDTAd;->a(Lcom/qq/e/ads/nativ/NativeMediaADData;Lcom/moji/mjad/common/data/AdCommon;Z)Z

    move-result p0

    return p0
.end method

.method private a(Lcom/qq/e/ads/nativ/NativeADDataRef;Lcom/moji/mjad/common/data/AdCommon;Z)Z
    .locals 3

    const/4 v0, 0x0

    if-eqz p1, :cond_4

    if-eqz p2, :cond_4

    .line 432
    iput-object p1, p2, Lcom/moji/mjad/common/data/AdCommon;->tencentAd:Lcom/qq/e/ads/nativ/NativeADDataRef;

    .line 433
    invoke-interface {p1}, Lcom/qq/e/ads/nativ/NativeADDataRef;->getTitle()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_0

    .line 434
    invoke-interface {p1}, Lcom/qq/e/ads/nativ/NativeADDataRef;->getTitle()Ljava/lang/String;

    move-result-object v1

    iput-object v1, p2, Lcom/moji/mjad/common/data/AdCommon;->title:Ljava/lang/String;

    :cond_0
    if-eqz p3, :cond_1

    .line 437
    invoke-interface {p1}, Lcom/qq/e/ads/nativ/NativeADDataRef;->getTitle()Ljava/lang/String;

    move-result-object p3

    invoke-static {p3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p3

    if-nez p3, :cond_2

    .line 438
    invoke-interface {p1}, Lcom/qq/e/ads/nativ/NativeADDataRef;->getTitle()Ljava/lang/String;

    move-result-object p3

    iput-object p3, p2, Lcom/moji/mjad/common/data/AdCommon;->description:Ljava/lang/String;

    goto :goto_0

    .line 441
    :cond_1
    invoke-interface {p1}, Lcom/qq/e/ads/nativ/NativeADDataRef;->getDesc()Ljava/lang/String;

    move-result-object p3

    invoke-static {p3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p3

    if-nez p3, :cond_2

    .line 442
    invoke-interface {p1}, Lcom/qq/e/ads/nativ/NativeADDataRef;->getDesc()Ljava/lang/String;

    move-result-object p3

    iput-object p3, p2, Lcom/moji/mjad/common/data/AdCommon;->description:Ljava/lang/String;

    .line 446
    :cond_2
    :goto_0
    iget-object p3, p2, Lcom/moji/mjad/common/data/AdCommon;->position:Lcom/moji/mjad/enumdata/MojiAdPosition;

    sget-object v1, Lcom/moji/mjad/enumdata/MojiAdPosition;->POS_MY_PAGE_DYNAMIC_MENU:Lcom/moji/mjad/enumdata/MojiAdPosition;

    if-eq p3, v1, :cond_3

    iget-object p3, p2, Lcom/moji/mjad/common/data/AdCommon;->position:Lcom/moji/mjad/enumdata/MojiAdPosition;

    sget-object v1, Lcom/moji/mjad/enumdata/MojiAdPosition;->POS_MY_PAGE_DYNAMIC_MENU_TWO:Lcom/moji/mjad/enumdata/MojiAdPosition;

    if-eq p3, v1, :cond_3

    iget p3, p2, Lcom/moji/mjad/common/data/AdCommon;->adStyle:I

    const/16 v1, 0x9

    if-eq p3, v1, :cond_3

    .line 449
    invoke-interface {p1}, Lcom/qq/e/ads/nativ/NativeADDataRef;->getIconUrl()Ljava/lang/String;

    move-result-object p3

    invoke-static {p3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p3

    if-nez p3, :cond_3

    .line 450
    new-instance p3, Lcom/moji/mjad/base/data/AdIconInfo;

    invoke-direct {p3}, Lcom/moji/mjad/base/data/AdIconInfo;-><init>()V

    .line 451
    invoke-interface {p1}, Lcom/qq/e/ads/nativ/NativeADDataRef;->getIconUrl()Ljava/lang/String;

    move-result-object v1

    iput-object v1, p3, Lcom/moji/mjad/base/data/AdIconInfo;->iconUrl:Ljava/lang/String;

    .line 452
    iput-object p3, p2, Lcom/moji/mjad/common/data/AdCommon;->iconInfo:Lcom/moji/mjad/base/data/AdIconInfo;

    .line 455
    :cond_3
    invoke-interface {p1}, Lcom/qq/e/ads/nativ/NativeADDataRef;->getAPPScore()I

    move-result p3

    iput p3, p2, Lcom/moji/mjad/common/data/AdCommon;->appStar:I

    .line 456
    invoke-interface {p1}, Lcom/qq/e/ads/nativ/NativeADDataRef;->getAPPPrice()D

    move-result-wide v1

    iput-wide v1, p2, Lcom/moji/mjad/common/data/AdCommon;->appPrice:D

    .line 457
    iput-boolean v0, p2, Lcom/moji/mjad/common/data/AdCommon;->isRecord:Z

    .line 458
    invoke-interface {p1}, Lcom/qq/e/ads/nativ/NativeADDataRef;->getImgUrl()Ljava/lang/String;

    move-result-object p3

    invoke-static {p3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p3

    if-nez p3, :cond_4

    .line 459
    new-instance p3, Lcom/moji/mjad/base/data/AdImageInfo;

    invoke-direct {p3}, Lcom/moji/mjad/base/data/AdImageInfo;-><init>()V

    .line 460
    invoke-interface {p1}, Lcom/qq/e/ads/nativ/NativeADDataRef;->getImgUrl()Ljava/lang/String;

    move-result-object p1

    iput-object p1, p3, Lcom/moji/mjad/base/data/AdImageInfo;->imageUrl:Ljava/lang/String;

    .line 461
    iput-object p3, p2, Lcom/moji/mjad/common/data/AdCommon;->imageInfo:Lcom/moji/mjad/base/data/AdImageInfo;

    const/4 p1, 0x1

    return p1

    :cond_4
    return v0
.end method

.method private a(Lcom/qq/e/ads/nativ/NativeMediaADData;Lcom/moji/mjad/common/data/AdCommon;Z)Z
    .locals 3

    const/4 v0, 0x0

    if-eqz p1, :cond_3

    if-eqz p2, :cond_3

    .line 470
    iput-object p1, p2, Lcom/moji/mjad/common/data/AdCommon;->gdtMediaAd:Lcom/qq/e/ads/nativ/NativeMediaADData;

    .line 471
    invoke-interface {p1}, Lcom/qq/e/ads/nativ/NativeMediaADData;->getTitle()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_0

    .line 472
    invoke-interface {p1}, Lcom/qq/e/ads/nativ/NativeMediaADData;->getTitle()Ljava/lang/String;

    move-result-object v1

    iput-object v1, p2, Lcom/moji/mjad/common/data/AdCommon;->title:Ljava/lang/String;

    :cond_0
    if-eqz p3, :cond_1

    .line 475
    invoke-interface {p1}, Lcom/qq/e/ads/nativ/NativeMediaADData;->getTitle()Ljava/lang/String;

    move-result-object p3

    invoke-static {p3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p3

    if-nez p3, :cond_2

    .line 476
    invoke-interface {p1}, Lcom/qq/e/ads/nativ/NativeMediaADData;->getTitle()Ljava/lang/String;

    move-result-object p3

    iput-object p3, p2, Lcom/moji/mjad/common/data/AdCommon;->description:Ljava/lang/String;

    goto :goto_0

    .line 478
    :cond_1
    invoke-interface {p1}, Lcom/qq/e/ads/nativ/NativeMediaADData;->getDesc()Ljava/lang/String;

    move-result-object p3

    invoke-static {p3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p3

    if-nez p3, :cond_2

    .line 479
    invoke-interface {p1}, Lcom/qq/e/ads/nativ/NativeMediaADData;->getDesc()Ljava/lang/String;

    move-result-object p3

    iput-object p3, p2, Lcom/moji/mjad/common/data/AdCommon;->description:Ljava/lang/String;

    .line 490
    :cond_2
    :goto_0
    invoke-interface {p1}, Lcom/qq/e/ads/nativ/NativeMediaADData;->getAPPScore()I

    move-result p3

    iput p3, p2, Lcom/moji/mjad/common/data/AdCommon;->appStar:I

    .line 491
    invoke-interface {p1}, Lcom/qq/e/ads/nativ/NativeMediaADData;->getAPPPrice()D

    move-result-wide v1

    iput-wide v1, p2, Lcom/moji/mjad/common/data/AdCommon;->appPrice:D

    .line 492
    iput-boolean v0, p2, Lcom/moji/mjad/common/data/AdCommon;->isRecord:Z

    .line 493
    invoke-interface {p1}, Lcom/qq/e/ads/nativ/NativeMediaADData;->getImgUrl()Ljava/lang/String;

    move-result-object p3

    invoke-static {p3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p3

    if-nez p3, :cond_3

    .line 494
    new-instance p3, Lcom/moji/mjad/base/data/AdImageInfo;

    invoke-direct {p3}, Lcom/moji/mjad/base/data/AdImageInfo;-><init>()V

    .line 495
    invoke-interface {p1}, Lcom/qq/e/ads/nativ/NativeMediaADData;->getImgUrl()Ljava/lang/String;

    move-result-object p1

    iput-object p1, p3, Lcom/moji/mjad/base/data/AdImageInfo;->imageUrl:Ljava/lang/String;

    .line 496
    iput-object p3, p2, Lcom/moji/mjad/common/data/AdCommon;->imageInfo:Lcom/moji/mjad/base/data/AdImageInfo;

    const/4 p1, 0x1

    return p1

    :cond_3
    return v0
.end method

.method private b(Landroid/content/Context;Ljava/lang/String;ZLcom/moji/mjad/common/data/AdCommon;Lcom/moji/mjad/common/network/ISDKRequestCallBack;)V
    .locals 3

    if-eqz p3, :cond_0

    const/4 p3, 0x1

    .line 192
    invoke-static {p3}, Lcom/qq/e/ads/cfg/MultiProcessFlag;->setMultiProcess(Z)V

    :cond_0
    if-eqz p4, :cond_6

    .line 194
    iget-object p3, p4, Lcom/moji/mjad/common/data/AdCommon;->appId:Ljava/lang/String;

    invoke-static {p3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p3

    if-nez p3, :cond_6

    iget-object p3, p4, Lcom/moji/mjad/common/data/AdCommon;->adRequeestId:Ljava/lang/String;

    invoke-static {p3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p3

    if-nez p3, :cond_6

    .line 195
    invoke-direct {p0, p1}, Lcom/moji/mjad/third/LoadGDTAd;->a(Landroid/content/Context;)Z

    move-result p3

    if-eqz p3, :cond_4

    .line 197
    invoke-static {}, Lcom/moji/mjad/common/data/AdGDTCacheManager;->a()Lcom/moji/mjad/common/data/AdGDTCacheManager;

    move-result-object p3

    iget-object v0, p4, Lcom/moji/mjad/common/data/AdCommon;->position:Lcom/moji/mjad/enumdata/MojiAdPosition;

    invoke-virtual {p3, v0}, Lcom/moji/mjad/common/data/AdGDTCacheManager;->a(Lcom/moji/mjad/enumdata/MojiAdPosition;)Lcom/qq/e/ads/nativ/NativeADDataRef;

    move-result-object p3

    const-string v0, "LoadGDTAd"

    .line 198
    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, "LoadGDTAd---onADLoaded:"

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

    iget-object v2, p4, Lcom/moji/mjad/common/data/AdCommon;->position:Lcom/moji/mjad/enumdata/MojiAdPosition;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

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

    move-result-object v1

    invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V

    if-eqz p3, :cond_2

    const-string p1, "LoadGDTAd"

    const-string v0, " -------- \u4f7f\u7528\u672c\u5730\u7f13\u5b58\u6570\u636e\u6e32\u67d3 "

    .line 200
    invoke-static {p1, v0}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/String;)V

    const/4 p1, 0x0

    .line 201
    invoke-direct {p0, p3, p4, p1}, Lcom/moji/mjad/third/LoadGDTAd;->a(Lcom/qq/e/ads/nativ/NativeADDataRef;Lcom/moji/mjad/common/data/AdCommon;Z)Z

    .line 202
    iget-object p1, p4, Lcom/moji/mjad/common/data/AdCommon;->position:Lcom/moji/mjad/enumdata/MojiAdPosition;

    if-eqz p1, :cond_1

    .line 203
    invoke-static {}, Lcom/moji/mjad/statistics/AdStatistics;->a()Lcom/moji/mjad/statistics/AdStatistics;

    move-result-object p1

    iget-object p3, p4, Lcom/moji/mjad/common/data/AdCommon;->position:Lcom/moji/mjad/enumdata/MojiAdPosition;

    iget p3, p3, Lcom/moji/mjad/enumdata/MojiAdPosition;->value:I

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    invoke-virtual {p1, p2, p3, v0, v1}, Lcom/moji/mjad/statistics/AdStatistics;->g(Ljava/lang/String;IJ)V

    :cond_1
    if-eqz p5, :cond_8

    .line 206
    invoke-interface {p5, p4, p2}, Lcom/moji/mjad/common/network/ISDKRequestCallBack;->a(Lcom/moji/mjad/common/data/AdCommon;Ljava/lang/String;)V

    goto/16 :goto_0

    :cond_2
    const-string p3, "LoadGDTAd"

    .line 209
    new-instance v0, Ljava/lang/StringBuilder;

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

    const-string v1, " -------- \u8bf7\u6c42\u5e7f\u70b9\u901a\u6570\u636e\u6e32\u67d3 appid -- "

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

    iget-object v1, p4, Lcom/moji/mjad/common/data/AdCommon;->appId:Ljava/lang/String;

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

    const-string v1, "     adCommon.adRequeestId ---- "

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

    iget-object v1, p4, Lcom/moji/mjad/common/data/AdCommon;->adRequeestId:Ljava/lang/String;

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

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

    move-result-object v0

    invoke-static {p3, v0}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 211
    new-instance p3, Lcom/qq/e/ads/nativ/NativeAD;

    iget-object v0, p4, Lcom/moji/mjad/common/data/AdCommon;->appId:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    iget-object v1, p4, Lcom/moji/mjad/common/data/AdCommon;->adRequeestId:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v1

    new-instance v2, Lcom/moji/mjad/third/LoadGDTAd$2;

    invoke-direct {v2, p0, p4, p2, p5}, Lcom/moji/mjad/third/LoadGDTAd$2;-><init>(Lcom/moji/mjad/third/LoadGDTAd;Lcom/moji/mjad/common/data/AdCommon;Ljava/lang/String;Lcom/moji/mjad/common/network/ISDKRequestCallBack;)V

    invoke-direct {p3, p1, v0, v1, v2}, Lcom/qq/e/ads/nativ/NativeAD;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lcom/qq/e/ads/nativ/NativeAD$NativeAdListener;)V

    const/16 p1, 0xa

    .line 275
    :try_start_0
    invoke-virtual {p3, p1}, Lcom/qq/e/ads/nativ/NativeAD;->loadAD(I)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    const-string p3, "LoadGDTAd"

    .line 277
    invoke-static {p3, p1}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V

    if-eqz p4, :cond_3

    .line 278
    iget-object p1, p4, Lcom/moji/mjad/common/data/AdCommon;->position:Lcom/moji/mjad/enumdata/MojiAdPosition;

    if-eqz p1, :cond_3

    .line 279
    invoke-static {}, Lcom/moji/mjad/statistics/AdStatistics;->a()Lcom/moji/mjad/statistics/AdStatistics;

    move-result-object p1

    iget-object p3, p4, Lcom/moji/mjad/common/data/AdCommon;->position:Lcom/moji/mjad/enumdata/MojiAdPosition;

    iget p3, p3, Lcom/moji/mjad/enumdata/MojiAdPosition;->value:I

    invoke-virtual {p1, p2, p3}, Lcom/moji/mjad/statistics/AdStatistics;->g(Ljava/lang/String;I)V

    :cond_3
    if-eqz p5, :cond_8

    .line 282
    sget-object p1, Lcom/moji/mjad/enumdata/ERROR_CODE;->NODATA:Lcom/moji/mjad/enumdata/ERROR_CODE;

    invoke-interface {p5, p1, p2}, Lcom/moji/mjad/common/network/ISDKRequestCallBack;->a(Lcom/moji/mjad/enumdata/ERROR_CODE;Ljava/lang/String;)V

    goto :goto_0

    .line 287
    :cond_4
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object p1

    sget-object p3, Lcom/moji/statistics/EVENT_TAG;->NEW_AD_GDT_SMALL_SPLASH_GET_STAT:Lcom/moji/statistics/EVENT_TAG;

    const-string v0, "No Permissions2"

    invoke-virtual {p1, p3, v0}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;

    const-string p1, "LoadGDTAd"

    const-string p3, "LoadGDTAd---No Permissions"

    .line 288
    invoke-static {p1, p3}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V

    if-eqz p4, :cond_5

    .line 289
    iget-object p1, p4, Lcom/moji/mjad/common/data/AdCommon;->position:Lcom/moji/mjad/enumdata/MojiAdPosition;

    if-eqz p1, :cond_5

    .line 290
    invoke-static {}, Lcom/moji/mjad/statistics/AdStatistics;->a()Lcom/moji/mjad/statistics/AdStatistics;

    move-result-object p1

    iget-object p3, p4, Lcom/moji/mjad/common/data/AdCommon;->position:Lcom/moji/mjad/enumdata/MojiAdPosition;

    iget p3, p3, Lcom/moji/mjad/enumdata/MojiAdPosition;->value:I

    invoke-virtual {p1, p2, p3}, Lcom/moji/mjad/statistics/AdStatistics;->g(Ljava/lang/String;I)V

    :cond_5
    if-eqz p5, :cond_8

    .line 293
    sget-object p1, Lcom/moji/mjad/enumdata/ERROR_CODE;->NODATA:Lcom/moji/mjad/enumdata/ERROR_CODE;

    invoke-interface {p5, p1, p2}, Lcom/moji/mjad/common/network/ISDKRequestCallBack;->a(Lcom/moji/mjad/enumdata/ERROR_CODE;Ljava/lang/String;)V

    goto :goto_0

    :cond_6
    if-eqz p4, :cond_7

    .line 297
    iget-object p1, p4, Lcom/moji/mjad/common/data/AdCommon;->position:Lcom/moji/mjad/enumdata/MojiAdPosition;

    if-eqz p1, :cond_7

    .line 298
    invoke-static {}, Lcom/moji/mjad/statistics/AdStatistics;->a()Lcom/moji/mjad/statistics/AdStatistics;

    move-result-object p1

    iget-object p3, p4, Lcom/moji/mjad/common/data/AdCommon;->position:Lcom/moji/mjad/enumdata/MojiAdPosition;

    iget p3, p3, Lcom/moji/mjad/enumdata/MojiAdPosition;->value:I

    invoke-virtual {p1, p2, p3}, Lcom/moji/mjad/statistics/AdStatistics;->g(Ljava/lang/String;I)V

    :cond_7
    if-eqz p5, :cond_8

    .line 301
    sget-object p1, Lcom/moji/mjad/enumdata/ERROR_CODE;->NODATA:Lcom/moji/mjad/enumdata/ERROR_CODE;

    invoke-interface {p5, p1, p2}, Lcom/moji/mjad/common/network/ISDKRequestCallBack;->a(Lcom/moji/mjad/enumdata/ERROR_CODE;Ljava/lang/String;)V

    :cond_8
    :goto_0
    return-void
.end method


# virtual methods
.method public a(Landroid/content/Context;Ljava/lang/String;ZLcom/moji/mjad/common/data/AdCommon;Lcom/moji/mjad/common/network/ISDKRequestCallBack;)V
    .locals 1

    const/4 v0, 0x1

    if-eqz p3, :cond_0

    .line 316
    invoke-static {v0}, Lcom/qq/e/ads/cfg/MultiProcessFlag;->setMultiProcess(Z)V

    :cond_0
    if-eqz p4, :cond_1

    .line 318
    iget-object p3, p4, Lcom/moji/mjad/common/data/AdCommon;->appId:Ljava/lang/String;

    invoke-static {p3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p3

    if-nez p3, :cond_1

    iget-object p3, p4, Lcom/moji/mjad/common/data/AdCommon;->adRequeestId:Ljava/lang/String;

    invoke-static {p3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p3

    if-nez p3, :cond_1

    .line 319
    invoke-direct {p0, p1}, Lcom/moji/mjad/third/LoadGDTAd;->a(Landroid/content/Context;)Z

    move-result p3

    if-eqz p3, :cond_1

    .line 320
    new-instance p3, Lcom/moji/mjad/third/LoadGDTAd$3;

    invoke-direct {p3, p0, p4, p2, p5}, Lcom/moji/mjad/third/LoadGDTAd$3;-><init>(Lcom/moji/mjad/third/LoadGDTAd;Lcom/moji/mjad/common/data/AdCommon;Ljava/lang/String;Lcom/moji/mjad/common/network/ISDKRequestCallBack;)V

    .line 424
    new-instance p2, Lcom/qq/e/ads/nativ/NativeMediaAD;

    iget-object p5, p4, Lcom/moji/mjad/common/data/AdCommon;->appId:Ljava/lang/String;

    iget-object p4, p4, Lcom/moji/mjad/common/data/AdCommon;->adRequeestId:Ljava/lang/String;

    invoke-direct {p2, p1, p5, p4, p3}, Lcom/qq/e/ads/nativ/NativeMediaAD;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lcom/qq/e/ads/nativ/NativeMediaAD$NativeMediaADListener;)V

    invoke-virtual {p2, v0}, Lcom/qq/e/ads/nativ/NativeMediaAD;->loadAD(I)V

    :cond_1
    return-void
.end method
