FileCloudService.smali
.class public Lcom/cleanmaster/filecloud/FileCloudService;
.super Landroid/app/IntentService;
.source "FileCloudService.java"
# static fields
.field public static final ACTION_FILE_CLOUD_START_SCAN:I = 0x100
.field public static final ACTION_INVALID:I = 0x0
.field public static final KEY_ACTION:Ljava/lang/String; = "key_action"
.field public static final KEY_VALUE:Ljava/lang/String; = "key_value"
.field private static final TAG:Ljava/lang/String; = "FileCloudService"
# direct methods
.method public constructor <init>()V
.registers 2
.prologue
.line 37
const-string v0, "FileCloudService"
invoke-direct {p0, v0}, Landroid/app/IntentService;-><init>(Ljava/lang/String;)V
.line 38
return-void
.end method
.method private startFileCloudScan(Landroid/content/Intent;)V
.registers 11
.prologue
.line 69
:try_start_0
const-string v0, "key_value"
invoke-virtual {p1, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
.line 71
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-eqz v1, :cond_12
.line 72
const/16 v0, 0x2717
invoke-static {v0}, Lcom/cleanmaster/filecloud/report/cm_cn_wechat_cloud_dev;->reportLuaEnd(I)V
.line 99
:goto_11
return-void
.line 76
:cond_12
new-instance v3, Ljava/util/ArrayList;
invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V
.line 77
new-instance v4, Lorg/json/JSONObject;
invoke-direct {v4, v0}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
.line 78
invoke-virtual {v4}, Lorg/json/JSONObject;->keys()Ljava/util/Iterator;
move-result-object v5
.line 80
:cond_20
:goto_20
invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_65
.line 81
invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
.line 82
invoke-virtual {v4, v0}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;
move-result-object v6
.line 83
if-eqz v6, :cond_20
.line 87
invoke-virtual {v6}, Lorg/json/JSONArray;->length()I
move-result v7
.line 88
new-instance v8, Ljava/util/ArrayList;
invoke-direct {v8}, Ljava/util/ArrayList;-><init>()V
.line 89
const/4 v1, 0x0
move v2, v1
:goto_3d
if-ge v2, v7, :cond_4c
.line 90
invoke-virtual {v6, v2}, Lorg/json/JSONArray;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/String;
invoke-interface {v8, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 89
add-int/lit8 v1, v2, 0x1
move v2, v1
goto :goto_3d
.line 92
:cond_4c
new-instance v1, Lcom/cleanmaster/filecloud/beans/ScanItem;
invoke-direct {v1, v0, v8}, Lcom/cleanmaster/filecloud/beans/ScanItem;-><init>(Ljava/lang/String;Ljava/util/List;)V
invoke-interface {v3, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:try_end_54
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_54} :catch_55
goto :goto_20
.line 95
:catch_55
move-exception v0
.line 96
const/16 v1, 0x2718
invoke-static {v1}, Lcom/cleanmaster/filecloud/report/cm_cn_wechat_cloud_dev;->reportLuaEnd(I)V
.line 97
const-string v1, "FileCloudService"
invoke-virtual {v0}, Ljava/lang/Throwable;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v1, v0}, Lcom/cleanmaster/filecloud/utils/LogUtils;->e(Ljava/lang/String;Ljava/lang/String;)V
goto :goto_11
.line 94
:cond_65
:try_start_65
invoke-static {v3}, Lcom/cleanmaster/filecloud/FileCloudManager;->scan(Ljava/util/List;)V
:try_end_68
.catch Ljava/lang/Throwable; {:try_start_65 .. :try_end_68} :catch_55
goto :goto_11
.end method
# virtual methods
.method protected onHandleIntent(Landroid/content/Intent;)V
.registers 5
.param p1 # Landroid/content/Intent;
.annotation build Landroid/support/annotation/Nullable;
.end annotation
.end param
.prologue
const/4 v1, 0x0
.line 42
if-nez p1, :cond_4
.line 65
:goto_3
return-void
.line 48
:cond_4
:try_start_4
const-string v0, "key_action"
const/4 v2, 0x0
invoke-virtual {p1, v0, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I
:try_end_a
.catch Ljava/lang/Throwable; {:try_start_4 .. :try_end_a} :catch_13
move-result v0
.line 53
:goto_b
if-nez v0, :cond_1f
.line 54
const/16 v0, 0x2716
invoke-static {v0}, Lcom/cleanmaster/filecloud/report/cm_cn_wechat_cloud_dev;->reportLuaEnd(I)V
goto :goto_3
.line 49
:catch_13
move-exception v0
.line 50
const-string v2, "FileCloudService"
invoke-virtual {v0}, Ljava/lang/Throwable;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v2, v0}, Lcom/cleanmaster/filecloud/utils/LogUtils;->e(Ljava/lang/String;Ljava/lang/String;)V
move v0, v1
goto :goto_b
.line 58
:cond_1f
packed-switch v0, :pswitch_data_28
goto :goto_3
.line 60
:pswitch_23
invoke-direct {p0, p1}, Lcom/cleanmaster/filecloud/FileCloudService;->startFileCloudScan(Landroid/content/Intent;)V
goto :goto_3
.line 58
nop
:pswitch_data_28
.packed-switch 0x100
:pswitch_23
.end packed-switch
.end method