o.smali

.class public Lcom/cleanmaster/internalapp/ad/control/o;
.super Ljava/lang/Object;
.source "InternalAppPolicyParser.java"


# instance fields
.field private a:J

.field private b:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map",
            "<",
            "Ljava/lang/Integer;",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/cm/plugincluster/adv/spec/InternalAppItem;",
            ">;>;"
        }
    .end annotation
.end field

.field private c:J


# direct methods
.method public constructor <init>()V
    .registers 5

    .prologue
    const-wide/16 v2, 0x0

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

    .line 55
    iput-wide v2, p0, Lcom/cleanmaster/internalapp/ad/control/o;->a:J

    .line 56
    new-instance v0, Ljava/util/HashMap;

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

    iput-object v0, p0, Lcom/cleanmaster/internalapp/ad/control/o;->b:Ljava/util/Map;

    .line 58
    iput-wide v2, p0, Lcom/cleanmaster/internalapp/ad/control/o;->c:J

    return-void
.end method

.method private static a(Ljava/lang/String;)Lorg/json/JSONObject;
    .registers 11

    .prologue
    const/4 v1, 0x0

    .line 99
    if-eqz p0, :cond_9

    invoke-virtual {p0}, Ljava/lang/String;->length()I

    move-result v0

    if-nez v0, :cond_a

    .line 165
    :cond_9
    :goto_9
    return-object v1

    .line 103
    :cond_a
    :try_start_a
    new-instance v0, Ljava/io/File;

    invoke-direct {v0, p0}, Ljava/io/File;-><init>(Ljava/lang/String;)V
    :try_end_f
    .catch Ljava/lang/Exception; {:try_start_a .. :try_end_f} :catch_d2

    .line 107
    if-eqz v0, :cond_9

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v0

    if-eqz v0, :cond_9

    .line 112
    :try_start_17
    new-instance v3, Ljava/io/FileInputStream;

    invoke-direct {v3, p0}, Ljava/io/FileInputStream;-><init>(Ljava/lang/String;)V
    :try_end_1c
    .catch Ljava/io/FileNotFoundException; {:try_start_17 .. :try_end_1c} :catch_5c

    .line 117
    new-instance v0, Ljava/io/InputStreamReader;

    invoke-direct {v0, v3}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;)V

    .line 118
    new-instance v2, Ljava/io/BufferedReader;

    invoke-direct {v2, v0}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;)V

    .line 120
    new-instance v4, Ljava/lang/StringBuilder;

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

    .line 121
    const/4 v0, 0x0

    .line 123
    :cond_2c
    :try_start_2c
    invoke-virtual {v2}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;

    move-result-object v5

    if-eqz v5, :cond_42

    .line 125
    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 126
    invoke-virtual {v4}, Ljava/lang/StringBuilder;->length()I

    move-result v5

    int-to-long v6, v5

    const-wide/32 v8, 0x300000

    cmp-long v5, v6, v8

    if-lez v5, :cond_2c

    .line 127
    const/4 v0, 0x1

    .line 131
    :cond_42
    invoke-virtual {v2}, Ljava/io/BufferedReader;->close()V
    :try_end_45
    .catch Ljava/io/IOException; {:try_start_2c .. :try_end_45} :catch_7b
    .catch Ljava/lang/OutOfMemoryError; {:try_start_2c .. :try_end_45} :catch_8f
    .catchall {:try_start_2c .. :try_end_45} :catchall_a3

    .line 132
    const/4 v2, 0x0

    .line 133
    :try_start_46
    invoke-virtual {v3}, Ljava/io/FileInputStream;->close()V
    :try_end_49
    .catch Ljava/io/IOException; {:try_start_46 .. :try_end_49} :catch_cf
    .catch Ljava/lang/OutOfMemoryError; {:try_start_46 .. :try_end_49} :catch_cc
    .catchall {:try_start_46 .. :try_end_49} :catchall_c9

    .line 134
    const/4 v3, 0x0

    .line 135
    if-eqz v0, :cond_61

    .line 143
    if-eqz v1, :cond_51

    .line 144
    :try_start_4e
    invoke-virtual {v2}, Ljava/io/BufferedReader;->close()V

    .line 146
    :cond_51
    if-eqz v1, :cond_9

    .line 147
    invoke-virtual {v3}, Ljava/io/FileInputStream;->close()V
    :try_end_56
    .catch Ljava/io/IOException; {:try_start_4e .. :try_end_56} :catch_57

    goto :goto_9

    .line 149
    :catch_57
    move-exception v0

    .line 150
    invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V

    goto :goto_9

    .line 113
    :catch_5c
    move-exception v0

    .line 114
    invoke-virtual {v0}, Ljava/io/FileNotFoundException;->printStackTrace()V

    goto :goto_9

    .line 143
    :cond_61
    if-eqz v1, :cond_66

    .line 144
    :try_start_63
    invoke-virtual {v2}, Ljava/io/BufferedReader;->close()V

    .line 146
    :cond_66
    if-eqz v1, :cond_6b

    .line 147
    invoke-virtual {v3}, Ljava/io/FileInputStream;->close()V
    :try_end_6b
    .catch Ljava/io/IOException; {:try_start_63 .. :try_end_6b} :catch_76

    .line 156
    :cond_6b
    :goto_6b
    :try_start_6b
    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .line 157
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0, v2}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
    :try_end_74
    .catch Lorg/json/JSONException; {:try_start_6b .. :try_end_74} :catch_b4
    .catch Ljava/lang/Exception; {:try_start_6b .. :try_end_74} :catch_ba

    :goto_74
    move-object v1, v0

    .line 165
    goto :goto_9

    .line 149
    :catch_76
    move-exception v0

    .line 150
    invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V

    goto :goto_6b

    .line 137
    :catch_7b
    move-exception v0

    .line 138
    :goto_7c
    :try_start_7c
    invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
    :try_end_7f
    .catchall {:try_start_7c .. :try_end_7f} :catchall_a3

    .line 143
    if-eqz v2, :cond_84

    .line 144
    :try_start_81
    invoke-virtual {v2}, Ljava/io/BufferedReader;->close()V

    .line 146
    :cond_84
    if-eqz v3, :cond_6b

    .line 147
    invoke-virtual {v3}, Ljava/io/FileInputStream;->close()V
    :try_end_89
    .catch Ljava/io/IOException; {:try_start_81 .. :try_end_89} :catch_8a

    goto :goto_6b

    .line 149
    :catch_8a
    move-exception v0

    .line 150
    invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V

    goto :goto_6b

    .line 139
    :catch_8f
    move-exception v0

    .line 140
    :goto_90
    :try_start_90
    invoke-virtual {v0}, Ljava/lang/OutOfMemoryError;->printStackTrace()V
    :try_end_93
    .catchall {:try_start_90 .. :try_end_93} :catchall_a3

    .line 143
    if-eqz v2, :cond_98

    .line 144
    :try_start_95
    invoke-virtual {v2}, Ljava/io/BufferedReader;->close()V

    .line 146
    :cond_98
    if-eqz v3, :cond_6b

    .line 147
    invoke-virtual {v3}, Ljava/io/FileInputStream;->close()V
    :try_end_9d
    .catch Ljava/io/IOException; {:try_start_95 .. :try_end_9d} :catch_9e

    goto :goto_6b

    .line 149
    :catch_9e
    move-exception v0

    .line 150
    invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V

    goto :goto_6b

    .line 142
    :catchall_a3
    move-exception v0

    .line 143
    :goto_a4
    if-eqz v2, :cond_a9

    .line 144
    :try_start_a6
    invoke-virtual {v2}, Ljava/io/BufferedReader;->close()V

    .line 146
    :cond_a9
    if-eqz v3, :cond_ae

    .line 147
    invoke-virtual {v3}, Ljava/io/FileInputStream;->close()V
    :try_end_ae
    .catch Ljava/io/IOException; {:try_start_a6 .. :try_end_ae} :catch_af

    .line 151
    :cond_ae
    :goto_ae
    throw v0

    .line 149
    :catch_af
    move-exception v1

    .line 150
    invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V

    goto :goto_ae

    .line 158
    :catch_b4
    move-exception v0

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

    move-object v0, v1

    .line 163
    goto :goto_74

    .line 160
    :catch_ba
    move-exception v0

    .line 161
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    .line 162
    invoke-static {}, Lcom/cleanmaster/base/crash/j;->e()Lcom/cleanmaster/base/crash/j;

    move-result-object v2

    const-string v3, "3003"

    invoke-virtual {v2, v3, v0}, Lcom/cleanmaster/base/crash/j;->a(Ljava/lang/String;Ljava/lang/Throwable;)V

    move-object v0, v1

    goto :goto_74

    .line 142
    :catchall_c9
    move-exception v0

    move-object v2, v1

    goto :goto_a4

    .line 139
    :catch_cc
    move-exception v0

    move-object v2, v1

    goto :goto_90

    .line 137
    :catch_cf
    move-exception v0

    move-object v2, v1

    goto :goto_7c

    .line 104
    :catch_d2
    move-exception v0

    goto/16 :goto_9
.end method

.method private a(II)V
    .registers 5

    .prologue
    .line 257
    invoke-static {}, Lcom/cleanmaster/internalapp/ad/control/a;->a()Lcom/cleanmaster/internalapp/ad/control/a;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, p1, p2, v1}, Lcom/cleanmaster/internalapp/ad/control/a;->c(III)V

    .line 258
    return-void
.end method

.method private a(Lorg/json/JSONObject;)V
    .registers 8

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

    move-result-wide v2

    .line 79
    if-eqz p1, :cond_36

    .line 94
    :cond_6
    invoke-direct {p0, p1}, Lcom/cleanmaster/internalapp/ad/control/o;->b(Lorg/json/JSONObject;)V

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

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

    const-string v1, "parsePolicy spend:"

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

    move-result-object v0

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

    move-result-wide v4

    sub-long v2, v4, v2

    invoke-virtual {v0, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ", datasize:"

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

    move-result-object v0

    iget-object v1, p0, Lcom/cleanmaster/internalapp/ad/control/o;->b:Ljava/util/Map;

    invoke-interface {v1}, Ljava/util/Map;->size()I

    move-result v1

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

    move-result-object v0

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

    move-result-object v0

    invoke-static {v0}, Lcom/cleanmaster/hpsharelib/utils/InternalAppLog;->ADLOG(Ljava/lang/String;)V

    .line 96
    :cond_35
    :goto_35
    return-void

    .line 82
    :cond_36
    invoke-static {}, Lcom/keniu/security/update/c/b;->a()Ljava/lang/String;

    move-result-object v0

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

    move-result v1

    if-nez v1, :cond_35

    .line 86
    sget-boolean v1, Lcom/cleanmaster/internalapp/ad/control/b;->a:Z

    if-eqz v1, :cond_46

    .line 87
    const-string v0, "/sdcard/_debug_cm/ad_control_cfg_res.dwn"

    .line 90
    :cond_46
    invoke-static {v0}, Lcom/cleanmaster/internalapp/ad/control/o;->a(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object p1

    .line 91
    if-nez p1, :cond_6

    goto :goto_35
.end method

.method private a(Lcom/cm/plugincluster/adv/spec/InternalAppItem;)Z
    .registers 3

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

    return v0
.end method

.method private b(Lorg/json/JSONObject;)V
    .registers 19

    .prologue
    .line 170
    if-eqz p1, :cond_18d

    .line 171
    move-object/from16 v0, p0

    iget-object v4, v0, Lcom/cleanmaster/internalapp/ad/control/o;->b:Ljava/util/Map;

    monitor-enter v4

    .line 173
    :try_start_7
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/cleanmaster/internalapp/ad/control/o;->b:Ljava/util/Map;

    invoke-interface {v2}, Ljava/util/Map;->clear()V

    .line 174
    const-string v2, "interval"

    move-object/from16 v0, p1

    invoke-virtual {v0, v2}, Lorg/json/JSONObject;->getLong(Ljava/lang/String;)J

    move-result-wide v2

    move-object/from16 v0, p0

    iput-wide v2, v0, Lcom/cleanmaster/internalapp/ad/control/o;->a:J

    .line 175
    const-string v2, "data"

    move-object/from16 v0, p1

    invoke-virtual {v0, v2}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v5

    .line 176
    invoke-virtual {v5}, Lorg/json/JSONArray;->length()I

    move-result v6

    .line 178
    const/4 v2, 0x0

    move v3, v2

    :goto_28
    if-ge v3, v6, :cond_18c

    .line 179
    invoke-virtual {v5, v3}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v2

    .line 180
    const-string v7, "source"

    invoke-virtual {v2, v7}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v7

    .line 182
    const-string v8, "apps"

    invoke-virtual {v2, v8}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v8

    .line 183
    invoke-virtual {v8}, Lorg/json/JSONArray;->length()I

    move-result v9

    .line 184
    if-gtz v9, :cond_44

    .line 178
    :goto_40
    add-int/lit8 v2, v3, 0x1

    move v3, v2

    goto :goto_28

    .line 188
    :cond_44
    new-instance v10, Ljava/util/ArrayList;

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

    .line 189
    const/4 v2, 0x0

    :goto_4a
    if-ge v2, v9, :cond_17b

    .line 190
    invoke-virtual {v8, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v11

    .line 191
    new-instance v12, Lcom/cm/plugincluster/adv/spec/InternalAppItem;

    invoke-direct {v12}, Lcom/cm/plugincluster/adv/spec/InternalAppItem;-><init>()V

    .line 192
    invoke-virtual {v12, v7}, Lcom/cm/plugincluster/adv/spec/InternalAppItem;->setSource(I)V

    .line 193
    const-string v13, "content"

    invoke-virtual {v11, v13}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v12, v13}, Lcom/cm/plugincluster/adv/spec/InternalAppItem;->setContent(Ljava/lang/String;)V

    .line 194
    const-string v13, "icon"

    invoke-virtual {v11, v13}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v12, v13}, Lcom/cm/plugincluster/adv/spec/InternalAppItem;->setIcon(Ljava/lang/String;)V

    .line 195
    const-string v13, "title"

    invoke-virtual {v11, v13}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v12, v13}, Lcom/cm/plugincluster/adv/spec/InternalAppItem;->setTitle(Ljava/lang/String;)V

    .line 196
    const-string v13, "apptitle"

    invoke-virtual {v11, v13}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v12, v13}, Lcom/cm/plugincluster/adv/spec/InternalAppItem;->setAppTitle(Ljava/lang/String;)V

    .line 197
    const-string v13, "btncontent"

    invoke-virtual {v11, v13}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v12, v13}, Lcom/cm/plugincluster/adv/spec/InternalAppItem;->setButtonContent(Ljava/lang/String;)V

    .line 198
    const-string v13, "gpurl"

    invoke-virtual {v11, v13}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v12, v13}, Lcom/cm/plugincluster/adv/spec/InternalAppItem;->setGpUrl(Ljava/lang/String;)V

    .line 199
    const-string v13, "bkgimg"

    invoke-virtual {v11, v13}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v12, v13}, Lcom/cm/plugincluster/adv/spec/InternalAppItem;->setBkgImg(Ljava/lang/String;)V

    .line 200
    const-string v13, "fre"

    invoke-virtual {v11, v13}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v13

    invoke-virtual {v12, v13}, Lcom/cm/plugincluster/adv/spec/InternalAppItem;->setShowCount(I)V

    .line 201
    const-string v13, "interval_ignore"

    const/4 v14, 0x0

    invoke-virtual {v11, v13, v14}, Lorg/json/JSONObject;->optBoolean(Ljava/lang/String;Z)Z

    move-result v13

    invoke-virtual {v12, v13}, Lcom/cm/plugincluster/adv/spec/InternalAppItem;->setIsIgnoreIntervalTime(Z)V

    .line 202
    const-string v13, "appid"

    invoke-virtual {v11, v13}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v13

    if-eqz v13, :cond_bb

    .line 203
    const-string v13, "appid"

    invoke-virtual {v11, v13}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v13

    invoke-virtual {v12, v13}, Lcom/cm/plugincluster/adv/spec/InternalAppItem;->setSoftmgrAppId(I)V

    .line 205
    :cond_bb
    const-string v13, "inneractiontype"

    invoke-virtual {v11, v13}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v13

    if-eqz v13, :cond_cc

    .line 206
    const-string v13, "inneractiontype"

    invoke-virtual {v11, v13}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v13

    invoke-virtual {v12, v13}, Lcom/cm/plugincluster/adv/spec/InternalAppItem;->setInneraction(I)V

    .line 208
    :cond_cc
    const-string v13, "invoke_service_name"

    invoke-virtual {v11, v13}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v13

    if-eqz v13, :cond_dd

    .line 209
    const-string v13, "invoke_service_name"

    invoke-virtual {v11, v13}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v12, v13}, Lcom/cm/plugincluster/adv/spec/InternalAppItem;->setInvokeServiceName(Ljava/lang/String;)V

    .line 211
    :cond_dd
    const-string v13, "invoke_service_action"

    invoke-virtual {v11, v13}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v13

    if-eqz v13, :cond_ee

    .line 212
    const-string v13, "invoke_service_action"

    invoke-virtual {v11, v13}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v12, v13}, Lcom/cm/plugincluster/adv/spec/InternalAppItem;->setInvokeServiceAction(Ljava/lang/String;)V

    .line 214
    :cond_ee
    const-string v13, "invoke_type"

    invoke-virtual {v11, v13}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v13

    if-eqz v13, :cond_ff

    .line 215
    const-string v13, "invoke_type"

    invoke-virtual {v11, v13}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I

    move-result v13

    invoke-virtual {v12, v13}, Lcom/cm/plugincluster/adv/spec/InternalAppItem;->setmInvokeType(I)V

    .line 217
    :cond_ff
    const-string v13, "extra"

    invoke-virtual {v11, v13}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v13

    if-eqz v13, :cond_110

    .line 218
    const-string v13, "extra"

    invoke-virtual {v11, v13}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v12, v13}, Lcom/cm/plugincluster/adv/spec/InternalAppItem;->setStrExtra(Ljava/lang/String;)V

    .line 220
    :cond_110
    const-string v13, "pkg"

    invoke-virtual {v11, v13}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    .line 221
    invoke-static {v13}, Lcom/cleanmaster/internalapp/ad/control/m;->a(Ljava/lang/String;)I

    move-result v14

    .line 222
    invoke-virtual {v12, v14}, Lcom/cm/plugincluster/adv/spec/InternalAppItem;->setAdType(I)V

    .line 223
    const-string v15, "fre_ver"

    invoke-virtual {v11, v15}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v15

    .line 224
    invoke-static {}, Lcom/cleanmaster/internalapp/ad/control/a;->a()Lcom/cleanmaster/internalapp/ad/control/a;

    move-result-object v16

    move-object/from16 v0, v16

    invoke-virtual {v0, v7, v13}, Lcom/cleanmaster/internalapp/ad/control/a;->a(ILjava/lang/String;)I

    move-result v16

    .line 225
    move/from16 v0, v16

    if-le v15, v0, :cond_136

    .line 226
    move-object/from16 v0, p0

    invoke-direct {v0, v14, v7}, Lcom/cleanmaster/internalapp/ad/control/o;->a(II)V

    .line 228
    :cond_136
    invoke-static {}, Lcom/cleanmaster/internalapp/ad/control/a;->a()Lcom/cleanmaster/internalapp/ad/control/a;

    move-result-object v14

    const-string v16, "pkg"

    move-object/from16 v0, v16

    invoke-virtual {v11, v0}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v16

    move-object/from16 v0, v16

    invoke-virtual {v14, v7, v0, v15}, Lcom/cleanmaster/internalapp/ad/control/a;->a(ILjava/lang/String;I)V

    .line 229
    invoke-virtual {v12, v13}, Lcom/cm/plugincluster/adv/spec/InternalAppItem;->setPkgName(Ljava/lang/String;)V

    .line 230
    invoke-virtual {v12, v15}, Lcom/cm/plugincluster/adv/spec/InternalAppItem;->setShowCountVer(I)V

    .line 231
    const-string v13, "iscommon"

    invoke-virtual {v11, v13}, Lorg/json/JSONObject;->optBoolean(Ljava/lang/String;)Z

    move-result v13

    invoke-virtual {v12, v13}, Lcom/cm/plugincluster/adv/spec/InternalAppItem;->setCommon(Z)V

    .line 232
    const-string v13, "isdetails"

    invoke-virtual {v11, v13}, Lorg/json/JSONObject;->optBoolean(Ljava/lang/String;)Z

    move-result v13

    invoke-virtual {v12, v13}, Lcom/cm/plugincluster/adv/spec/InternalAppItem;->setDetails(Z)V

    .line 233
    invoke-virtual {v12, v2}, Lcom/cm/plugincluster/adv/spec/InternalAppItem;->setPrority(I)V

    .line 234
    const-string v13, "interval"

    invoke-virtual {v11, v13}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v11

    int-to-long v14, v11

    invoke-virtual {v12, v14, v15}, Lcom/cm/plugincluster/adv/spec/InternalAppItem;->setmInterval(J)V

    .line 235
    move-object/from16 v0, p0

    invoke-direct {v0, v12}, Lcom/cleanmaster/internalapp/ad/control/o;->a(Lcom/cm/plugincluster/adv/spec/InternalAppItem;)Z

    move-result v11

    if-eqz v11, :cond_177

    .line 236
    invoke-virtual {v10, v12}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 189
    :cond_177
    add-int/lit8 v2, v2, 0x1

    goto/16 :goto_4a

    .line 240
    :cond_17b
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/cleanmaster/internalapp/ad/control/o;->b:Ljava/util/Map;

    invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v7

    invoke-interface {v2, v7, v10}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_186
    .catch Lorg/json/JSONException; {:try_start_7 .. :try_end_186} :catch_188
    .catchall {:try_start_7 .. :try_end_186} :catchall_18e

    goto/16 :goto_40

    .line 242
    :catch_188
    move-exception v2

    .line 243
    :try_start_189
    invoke-virtual {v2}, Lorg/json/JSONException;->printStackTrace()V

    .line 245
    :cond_18c
    monitor-exit v4

    .line 247
    :cond_18d
    return-void

    .line 245
    :catchall_18e
    move-exception v2

    monitor-exit v4
    :try_end_190
    .catchall {:try_start_189 .. :try_end_190} :catchall_18e

    throw v2
.end method


# virtual methods
.method public a()J
    .registers 3

    .prologue
    .line 62
    iget-wide v0, p0, Lcom/cleanmaster/internalapp/ad/control/o;->a:J

    return-wide v0
.end method

.method public a(I)Ljava/util/ArrayList;
    .registers 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(I)",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/cm/plugincluster/adv/spec/InternalAppItem;",
            ">;"
        }
    .end annotation

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

    move-result-wide v0

    iget-wide v2, p0, Lcom/cleanmaster/internalapp/ad/control/o;->c:J

    sub-long/2addr v0, v2

    const-wide/32 v2, 0x6ddd00

    cmp-long v0, v0, v2

    if-ltz v0, :cond_18

    .line 67
    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lcom/cleanmaster/internalapp/ad/control/o;->a(Lorg/json/JSONObject;)V

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

    move-result-wide v0

    iput-wide v0, p0, Lcom/cleanmaster/internalapp/ad/control/o;->c:J

    .line 71
    :cond_18
    iget-object v1, p0, Lcom/cleanmaster/internalapp/ad/control/o;->b:Ljava/util/Map;

    monitor-enter v1

    .line 72
    :try_start_1b
    iget-object v0, p0, Lcom/cleanmaster/internalapp/ad/control/o;->b:Ljava/util/Map;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-interface {v0, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/ArrayList;

    monitor-exit v1

    return-object v0

    .line 73
    :catchall_29
    move-exception v0

    monitor-exit v1
    :try_end_2b
    .catchall {:try_start_1b .. :try_end_2b} :catchall_29

    throw v0
.end method