AutoInstallDefs.smali

.class public Lcom/cleanmaster/hpsharelib/service/acc4install/AutoInstallDefs;
.super Ljava/lang/Object;
.source "AutoInstallDefs.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/cleanmaster/hpsharelib/service/acc4install/AutoInstallDefs$NodeTarget;
    }
.end annotation


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

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

    return-void
.end method

.method public static parseTargetNode(Lorg/json/JSONObject;Lcom/cleanmaster/hpsharelib/service/acc4install/AutoInstallDefs$NodeTarget;)Z
    .registers 9

    .prologue
    const/4 v1, 0x1

    const/4 v0, 0x0

    .line 21
    if-eqz p0, :cond_6

    if-nez p1, :cond_7

    .line 68
    :cond_6
    :goto_6
    return v0

    .line 26
    :cond_7
    :try_start_7
    const-string v2, "class_name"

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

    move-result-object v2

    iput-object v2, p1, Lcom/cleanmaster/hpsharelib/service/acc4install/AutoInstallDefs$NodeTarget;->mstrUIClassName:Ljava/lang/String;

    .line 27
    iget-object v2, p1, Lcom/cleanmaster/hpsharelib/service/acc4install/AutoInstallDefs$NodeTarget;->mstrUIClassName:Ljava/lang/String;
    :try_end_11
    .catch Lorg/json/JSONException; {:try_start_7 .. :try_end_11} :catch_1d

    if-eqz v2, :cond_6

    .line 37
    :try_start_13
    const-string v2, "text"

    invoke-virtual {p0, v2}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;
    :try_end_18
    .catch Lorg/json/JSONException; {:try_start_13 .. :try_end_18} :catch_22

    move-result-object v4

    .line 38
    if-nez v4, :cond_28

    move v0, v1

    .line 39
    goto :goto_6

    .line 29
    :catch_1d
    move-exception v1

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

    goto :goto_6

    .line 40
    :catch_22
    move-exception v0

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

    move v0, v1

    .line 42
    goto :goto_6

    .line 45
    :cond_28
    invoke-virtual {v4}, Lorg/json/JSONArray;->length()I

    move-result v5

    move v3, v0

    .line 46
    :goto_2d
    if-ge v3, v5, :cond_4a

    .line 48
    :try_start_2f
    invoke-virtual {v4, v3}, Lorg/json/JSONArray;->getString(I)Ljava/lang/String;

    move-result-object v2

    .line 49
    if-eqz v2, :cond_3b

    invoke-virtual {v2}, Ljava/lang/String;->length()I
    :try_end_38
    .catch Lorg/json/JSONException; {:try_start_2f .. :try_end_38} :catch_3f

    move-result v6

    if-nez v6, :cond_44

    .line 46
    :cond_3b
    :goto_3b
    add-int/lit8 v2, v3, 0x1

    move v3, v2

    goto :goto_2d

    .line 51
    :catch_3f
    move-exception v2

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

    goto :goto_3b

    .line 56
    :cond_44
    iget-object v6, p1, Lcom/cleanmaster/hpsharelib/service/acc4install/AutoInstallDefs$NodeTarget;->mListUIText:Ljava/util/List;

    invoke-interface {v6, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_3b

    .line 62
    :cond_4a
    :try_start_4a
    const-string v2, "action"

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

    move-result v2

    iput v2, p1, Lcom/cleanmaster/hpsharelib/service/acc4install/AutoInstallDefs$NodeTarget;->mAction:I
    :try_end_52
    .catch Lorg/json/JSONException; {:try_start_4a .. :try_end_52} :catch_54

    move v0, v1

    .line 68
    goto :goto_6

    .line 63
    :catch_54
    move-exception v1

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

    goto :goto_6
.end method