at.smali

.class Lcom/cleanmaster/screensave/a/at;
.super Ljava/lang/Object;
.source "ScreenSaverDataProvider.java"

# interfaces
.implements Lcom/cm/plugincluster/spec/CommandInvoker;


# instance fields
.field final synthetic a:Lcom/cleanmaster/screensave/a/af;


# direct methods
.method constructor <init>(Lcom/cleanmaster/screensave/a/af;)V
    .registers 2

    .prologue
    .line 369
    iput-object p1, p0, Lcom/cleanmaster/screensave/a/at;->a:Lcom/cleanmaster/screensave/a/af;

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

    return-void
.end method


# virtual methods
.method public varargs invoke([Ljava/lang/Object;)Ljava/lang/Object;
    .registers 10

    .prologue
    const/4 v7, 0x1

    const/4 v2, 0x0

    .line 372
    if-eqz p1, :cond_7

    array-length v0, p1

    if-nez v0, :cond_8

    .line 408
    :cond_7
    :goto_7
    return-object v2

    .line 375
    :cond_8
    array-length v0, p1

    const/4 v1, 0x2

    if-ne v0, v1, :cond_86

    .line 376
    const/4 v0, 0x0

    aget-object v0, p1, v0

    check-cast v0, Lcom/cm/plugincluster/ad/IAd;

    .line 377
    aget-object v1, p1, v7

    check-cast v1, Ljava/util/List;

    move-object v3, v0

    move-object v0, v1

    .line 379
    :goto_17
    if-eqz v3, :cond_7

    .line 380
    if-nez v0, :cond_20

    new-instance v0, Ljava/util/ArrayList;

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

    .line 381
    :cond_20
    new-instance v4, Lcom/cmcm/ad/b/a/a;

    invoke-direct {v4}, Lcom/cmcm/ad/b/a/a;-><init>()V

    .line 382
    new-instance v5, Lcom/cmcm/ad/adhandlelogic/a/a;

    invoke-direct {v5}, Lcom/cmcm/ad/adhandlelogic/a/a;-><init>()V

    .line 383
    const-string v1, ""

    .line 384
    invoke-static {}, Lcom/cleanmaster/pluginscommonlib/k;->a()Z

    move-result v6

    if-eqz v6, :cond_6b

    .line 385
    const-string v1, "com.xiaomi.market"

    .line 393
    :cond_34
    :goto_34
    invoke-virtual {v5}, Lcom/cmcm/ad/adhandlelogic/a/a;->clear()V

    .line 394
    invoke-interface {v3}, Lcom/cm/plugincluster/ad/IAd;->getAdBehaviorType()I

    move-result v6

    invoke-virtual {v5, v6}, Lcom/cmcm/ad/adhandlelogic/a/a;->setAdBehaviorType(I)V

    .line 395
    const-string v6, ""

    invoke-virtual {v5, v6}, Lcom/cmcm/ad/adhandlelogic/a/a;->setAdExtension(Ljava/lang/String;)V

    .line 396
    invoke-static {}, Lcom/cleanmaster/hpcommonlib/HostHelper;->getAppContext()Landroid/content/Context;

    move-result-object v6

    invoke-virtual {v5, v6}, Lcom/cmcm/ad/adhandlelogic/a/a;->setViewContext(Landroid/content/Context;)V

    .line 397
    invoke-virtual {v5, v3}, Lcom/cmcm/ad/adhandlelogic/a/a;->setAd(Lcom/cm/plugincluster/ad/IAd;)V

    .line 398
    const-string v3, "market_package_name"

    invoke-virtual {v5, v3, v1}, Lcom/cmcm/ad/adhandlelogic/a/a;->setCommon(Ljava/lang/String;Ljava/lang/Object;)V

    .line 399
    const-string v1, "market_brands"

    invoke-virtual {v5, v1, v0}, Lcom/cmcm/ad/adhandlelogic/a/a;->setCommon(Ljava/lang/String;Ljava/lang/Object;)V

    .line 400
    invoke-virtual {v5, v7}, Lcom/cmcm/ad/adhandlelogic/a/a;->setNeedHandleClickOutter(Z)V

    .line 401
    invoke-virtual {v5, v2}, Lcom/cmcm/ad/adhandlelogic/a/a;->setClickHandleInnerCallBack(Lcom/cm/plugincluster/ad/adhandle/IClickHandlerData$IClickHandleInnerCallBack;)V

    .line 402
    new-instance v0, Lcom/cleanmaster/ad/b/a;

    invoke-direct {v0}, Lcom/cleanmaster/ad/b/a;-><init>()V

    .line 403
    new-instance v1, Lcom/cleanmaster/screensave/a/au;

    invoke-direct {v1, p0}, Lcom/cleanmaster/screensave/a/au;-><init>(Lcom/cleanmaster/screensave/a/at;)V

    invoke-virtual {v0, v4, v5, v1}, Lcom/cleanmaster/ad/b/a;->handleClick(Lcom/cm/plugincluster/ad/adhandle/IBusinessRptData;Lcom/cm/plugincluster/ad/adhandle/IClickHandlerData;Lcom/cm/plugincluster/ad/adhandle/IClickHandlerOutter$IClickReporter;)V

    goto :goto_7

    .line 386
    :cond_6b
    invoke-static {}, Lcom/cleanmaster/pluginscommonlib/k;->c()Z

    move-result v6

    if-eqz v6, :cond_74

    .line 387
    const-string v1, "com.huawei.appmarket"

    goto :goto_34

    .line 388
    :cond_74
    invoke-static {}, Lcom/cleanmaster/pluginscommonlib/k;->b()Z

    move-result v6

    if-eqz v6, :cond_7d

    .line 389
    const-string v1, "com.oppo.market"

    goto :goto_34

    .line 390
    :cond_7d
    invoke-static {}, Lcom/cleanmaster/pluginscommonlib/k;->n()Z

    move-result v6

    if-eqz v6, :cond_34

    .line 391
    const-string v1, "com.bbk.appstore"

    goto :goto_34

    :cond_86
    move-object v0, v2

    move-object v3, v2

    goto :goto_17
.end method