e.smali

.class public Lcom/keniu/security/util/e;
.super Ljava/lang/Object;
.source "FindTopAdUtil.java"


# direct methods
.method public static a()V
    .registers 3

    .prologue
    .line 35
    invoke-static {}, Lcom/keniu/security/util/e;->c()Z

    move-result v0

    if-eqz v0, :cond_10

    .line 36
    invoke-static {}, Lcom/cm/plugincluster/ad/AdDelegate;->getAdSdk()Lcom/cm/plugincluster/ad/IAdSdk;

    move-result-object v0

    const-string v1, ""

    const/4 v2, 0x0

    invoke-interface {v0, v1, v2}, Lcom/cm/plugincluster/ad/IAdSdk;->startPreload(Ljava/lang/String;Lcom/cm/plugincluster/ad/data/IAdPreloadListener;)V

    .line 38
    :cond_10
    return-void
.end method

.method public static a(Landroid/content/Context;Landroid/widget/ListView;)V
    .registers 8

    .prologue
    const/4 v5, 0x0

    const/4 v4, 0x1

    const/4 v3, 0x0

    .line 41
    invoke-static {}, Lcom/keniu/security/util/e;->c()Z

    move-result v0

    if-eqz v0, :cond_2f

    .line 42
    new-instance v0, Lcom/cleanmaster/findtopad/a/a;

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

    invoke-virtual {v0, v4}, Lcom/cleanmaster/findtopad/a/a;->a(I)Lcom/cleanmaster/findtopad/a/a;

    move-result-object v0

    invoke-virtual {v0, v3}, Lcom/cleanmaster/findtopad/a/a;->b(I)Lcom/cleanmaster/findtopad/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cleanmaster/findtopad/a/a;->report()V

    .line 43
    invoke-static {}, Lcom/cm/plugincluster/ad/AdDelegate;->getAdSdk()Lcom/cm/plugincluster/ad/IAdSdk;

    move-result-object v0

    const-string v1, ""

    const/4 v2, 0x2

    invoke-interface {v0, v1, v3, v2, v5}, Lcom/cm/plugincluster/ad/IAdSdk;->reportAdView(Ljava/lang/String;IILcom/cm/plugincluster/ad/IAd;)V

    .line 44
    invoke-static {}, Lcom/cm/plugincluster/ad/AdDelegate;->getAdSdk()Lcom/cm/plugincluster/ad/IAdSdk;

    move-result-object v0

    const-string v1, ""

    invoke-interface {v0, v1, v5, v4}, Lcom/cm/plugincluster/ad/IAdSdk;->fetchAd(Ljava/lang/String;Lcom/cm/plugincluster/ad/data/IAdFetchListener;Z)Lcom/cm/plugincluster/ad/IAd;

    move-result-object v0

    .line 45
    if-nez v0, :cond_30

    .line 93
    :cond_2f
    :goto_2f
    return-void

    .line 48
    :cond_30
    new-instance v1, Lcom/cleanmaster/findtopad/a/a;

    invoke-direct {v1}, Lcom/cleanmaster/findtopad/a/a;-><init>()V

    const/4 v2, 0x3

    invoke-virtual {v1, v2}, Lcom/cleanmaster/findtopad/a/a;->a(I)Lcom/cleanmaster/findtopad/a/a;

    move-result-object v1

    invoke-virtual {v1, v3}, Lcom/cleanmaster/findtopad/a/a;->b(I)Lcom/cleanmaster/findtopad/a/a;

    move-result-object v1

    invoke-virtual {v1}, Lcom/cleanmaster/findtopad/a/a;->report()V

    .line 49
    invoke-interface {v0}, Lcom/cm/plugincluster/ad/IAd;->getAdCoverImageUrl()Ljava/lang/String;

    move-result-object v1

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

    move-result v2

    if-nez v2, :cond_2f

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

    move-result v2

    if-nez v2, :cond_2f

    .line 54
    invoke-static {}, Lcom/cleanmaster/bitmapcache/MyVolley;->getInstance()Lcom/cleanmaster/bitmapcache/MyVolley;

    move-result-object v2

    invoke-virtual {v2}, Lcom/cleanmaster/bitmapcache/MyVolley;->getImageLoader()Lcom/android/volley/toolbox/ImageLoader;

    move-result-object v2

    new-instance v3, Lcom/keniu/security/util/f;

    invoke-direct {v3, p1, p0, v0}, Lcom/keniu/security/util/f;-><init>(Landroid/widget/ListView;Landroid/content/Context;Lcom/cm/plugincluster/ad/IAd;)V

    invoke-virtual {v2, v1, v3}, Lcom/android/volley/toolbox/ImageLoader;->get(Ljava/lang/String;Lcom/android/volley/toolbox/ImageLoader$ImageListener;)Lcom/android/volley/toolbox/ImageLoader$ImageContainer;

    goto :goto_2f
.end method

.method static synthetic b()Z
    .registers 1

    .prologue
    .line 26
    invoke-static {}, Lcom/keniu/security/util/e;->e()Z

    move-result v0

    return v0
.end method

.method private static c()Z
    .registers 4

    .prologue
    .line 97
    const/4 v0, 0x1

    const-string v1, "cm_find_tab_top_ad"

    const-string v2, "switch"

    const/4 v3, 0x0

    invoke-static {v0, v1, v2, v3}, Lcom/cleanmaster/hpsharelib/recommendapps/CloudConfigDataGetter;->getBooleanValue(ILjava/lang/String;Ljava/lang/String;Z)Z

    move-result v0

    return v0
.end method

.method private static d()I
    .registers 3

    .prologue
    const/4 v2, 0x1

    .line 101
    const-string v0, "cm_find_tab_top_ad"

    const-string v1, "auto_times"

    invoke-static {v2, v0, v1, v2}, Lcom/cleanmaster/hpsharelib/recommendapps/CloudConfigDataGetter;->getIntValue(ILjava/lang/String;Ljava/lang/String;I)I

    move-result v0

    return v0
.end method

.method private static e()Z
    .registers 7

    .prologue
    const/4 v1, 0x0

    const/4 v0, 0x1

    .line 105
    invoke-static {}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstance()Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;

    move-result-object v2

    const-string v3, "key_last_auto_animitor_time"

    const-wide/16 v4, 0x0

    invoke-virtual {v2, v3, v4, v5}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getLongValue(Ljava/lang/String;J)J

    move-result-wide v2

    .line 106
    invoke-static {}, Lcom/keniu/security/util/e;->d()I

    move-result v4

    .line 107
    invoke-static {}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstance()Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;

    move-result-object v5

    const-string v6, "key_already_auto_animitor_times"

    invoke-virtual {v5, v6, v1}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getIntValue(Ljava/lang/String;I)I

    move-result v5

    .line 108
    invoke-static {v2, v3}, Lcom/cleanmaster/hpsharelib/base/util/datetime/DateUtil;->isToday(J)Z

    move-result v2

    if-eqz v2, :cond_32

    .line 109
    if-ge v5, v4, :cond_30

    .line 110
    invoke-static {}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstance()Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;

    move-result-object v1

    const-string v2, "key_already_auto_animitor_times"

    add-int/lit8 v3, v5, 0x1

    invoke-virtual {v1, v2, v3}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setIntValue(Ljava/lang/String;I)V

    .line 118
    :goto_2f
    return v0

    :cond_30
    move v0, v1

    .line 113
    goto :goto_2f

    .line 116
    :cond_32
    invoke-static {}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstance()Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;

    move-result-object v1

    const-string v2, "key_already_auto_animitor_times"

    invoke-virtual {v1, v2, v0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setIntValue(Ljava/lang/String;I)V

    .line 117
    invoke-static {}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstance()Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;

    move-result-object v1

    const-string v2, "key_last_auto_animitor_time"

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

    move-result-wide v4

    invoke-virtual {v1, v2, v4, v5}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setLongValue(Ljava/lang/String;J)V

    goto :goto_2f
.end method