DelInfoReport.smali
.class public Lcom/cleanmaster/junk/report/DelInfoReport;
.super Ljava/lang/Object;
.source "DelInfoReport.java"
# static fields
.field private static final APK_MODEL:Ljava/lang/String; = "APKModel"
.field private static final CAMERA_DELETE_STYLE:B = 0x2t
.field private static final CAMERA_PATH:Ljava/lang/String; = "dcim/camera"
.field private static final DEFAULT_DELETE_STYLE:B = 0x0t
.field private static final DEFAULT_STRING:Ljava/lang/String; = ""
.field private static final MEDIA_FILE:Ljava/lang/String; = "MediaFile"
.field private static final PIC_DELETE_STYLE:B = 0x1t
.field private static final THUMBNAIL_DELETE_STYLE:B = 0x3t
.field private static final THUMBNAIL_PATH:Ljava/lang/String; = "thumbnail"
.field private static final UNKNOW:Ljava/lang/String; = "unknow"
# direct methods
.method public constructor <init>()V
.registers 1
.prologue
.line 15
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method private checkDelInfoInvalid(Lcom/cleanmaster/junk/clean/PathCleanTask$DelPathInfo;)Z
.registers 8
.prologue
const/4 v0, 0x1
.line 48
if-nez p1, :cond_4
.line 59
:cond_3
:goto_3
return v0
.line 51
:cond_4
iget-object v1, p1, Lcom/cleanmaster/junk/clean/PathCleanTask$DelPathInfo;->mPathList:Ljava/util/List;
.line 52
if-eqz v1, :cond_3
invoke-interface {v1}, Ljava/util/List;->isEmpty()Z
move-result v1
if-nez v1, :cond_3
.line 55
iget-wide v2, p1, Lcom/cleanmaster/junk/clean/PathCleanTask$DelPathInfo;->mNeedDelSize:J
.line 56
const-wide/16 v4, 0x0
cmp-long v1, v2, v4
if-lez v1, :cond_3
.line 59
const/4 v0, 0x0
goto :goto_3
.end method
.method private getDeletePath(Lcom/cleanmaster/junk/clean/PathCleanTask$DelPathInfo;)Ljava/lang/String;
.registers 3
.prologue
.line 86
const-string v0, ""
.line 87
if-nez p1, :cond_5
.line 95
:cond_4
:goto_4
return-object v0
.line 91
:cond_5
invoke-virtual {p1}, Lcom/cleanmaster/junk/clean/PathCleanTask$DelPathInfo;->getFirstPath()Ljava/lang/String;
move-result-object v0
.line 92
if-nez v0, :cond_4
.line 93
const-string v0, ""
goto :goto_4
.end method
.method private getDeleteStyle(Lcom/cleanmaster/junk/clean/PathCleanTask$DelPathInfo;)B
.registers 8
.prologue
.line 63
const/4 v0, 0x0
.line 64
if-nez p1, :cond_4
.line 82
:cond_3
:goto_3
return v0
.line 67
:cond_4
invoke-direct {p0, p1}, Lcom/cleanmaster/junk/report/DelInfoReport;->getDeletePath(Lcom/cleanmaster/junk/clean/PathCleanTask$DelPathInfo;)Ljava/lang/String;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;
move-result-object v1
.line 68
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v2
if-nez v2, :cond_3
.line 71
const-string v2, ".jpg"
invoke-virtual {v1, v2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
move-result v2
if-nez v2, :cond_22
const-string v2, ".png"
invoke-virtual {v1, v2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
move-result v2
if-eqz v2, :cond_2d
.line 72
:cond_22
iget-wide v2, p1, Lcom/cleanmaster/junk/clean/PathCleanTask$DelPathInfo;->mNeedDelSize:J
.line 73
const-wide/32 v4, 0x100000
.line 74
cmp-long v1, v2, v4
if-ltz v1, :cond_3
.line 75
const/4 v0, 0x1
goto :goto_3
.line 77
:cond_2d
const-string v2, "dcim/camera"
invoke-virtual {v1, v2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
move-result v2
if-eqz v2, :cond_37
.line 78
const/4 v0, 0x2
goto :goto_3
.line 79
:cond_37
const-string v2, "thumbnail"
invoke-virtual {v1, v2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
move-result v1
if-eqz v1, :cond_3
.line 80
const/4 v0, 0x3
goto :goto_3
.end method
.method private getFileType(Lcom/cleanmaster/junk/clean/PathCleanTask$DelPathInfo;)Ljava/lang/String;
.registers 3
.prologue
.line 140
if-eqz p1, :cond_6
iget-object v0, p1, Lcom/cleanmaster/junk/clean/PathCleanTask$DelPathInfo;->mFileType:Lcom/cm/plugincluster/junkengine/junk/bean/JunkInfoBase$FileType;
if-nez v0, :cond_9
.line 141
:cond_6
const-string v0, ""
.line 143
:goto_8
return-object v0
:cond_9
iget-object v0, p1, Lcom/cleanmaster/junk/clean/PathCleanTask$DelPathInfo;->mFileType:Lcom/cm/plugincluster/junkengine/junk/bean/JunkInfoBase$FileType;
invoke-virtual {v0}, Lcom/cm/plugincluster/junkengine/junk/bean/JunkInfoBase$FileType;->toString()Ljava/lang/String;
move-result-object v0
goto :goto_8
.end method
.method private getJunkType(Lcom/cleanmaster/junk/clean/PathCleanTask$DelPathInfo;)Ljava/lang/String;
.registers 4
.prologue
.line 122
if-eqz p1, :cond_6
iget-object v0, p1, Lcom/cleanmaster/junk/clean/PathCleanTask$DelPathInfo;->mAttachInfo:Ljava/lang/Object;
if-nez v0, :cond_9
.line 123
:cond_6
const-string v0, ""
.line 136
:goto_8
return-object v0
.line 126
:cond_9
iget-object v0, p1, Lcom/cleanmaster/junk/clean/PathCleanTask$DelPathInfo;->mAttachInfo:Ljava/lang/Object;
.line 127
instance-of v1, v0, Lcom/cleanmaster/junk/bean/JunkCleanItemInfo;
if-eqz v1, :cond_1a
.line 128
check-cast v0, Lcom/cleanmaster/junk/bean/JunkCleanItemInfo;
invoke-virtual {v0}, Lcom/cleanmaster/junk/bean/JunkCleanItemInfo;->getJunkItem()Lcom/cm/plugincluster/junkengine/junk/bean/JunkInfoBase;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
goto :goto_8
.line 129
:cond_1a
instance-of v1, v0, Lcom/cleanmaster/junk/bean/APKModel;
if-eqz v1, :cond_21
.line 130
const-string v0, "APKModel"
goto :goto_8
.line 131
:cond_21
instance-of v0, v0, Lcom/cm/plugincluster/junkengine/junk/bean/MediaFile;
if-eqz v0, :cond_28
.line 132
const-string v0, "MediaFile"
goto :goto_8
.line 134
:cond_28
const-string/jumbo v0, "unknow"
goto :goto_8
.end method
.method private getPackageName(Lcom/cleanmaster/junk/clean/PathCleanTask$DelPathInfo;)Ljava/lang/String;
.registers 5
.prologue
.line 99
const-string/jumbo v1, "unknow"
.line 100
if-eqz p1, :cond_9
iget-object v0, p1, Lcom/cleanmaster/junk/clean/PathCleanTask$DelPathInfo;->mAttachInfo:Ljava/lang/Object;
if-nez v0, :cond_a
.line 118
:cond_9
:goto_9
return-object v1
.line 104
:cond_a
iget-object v0, p1, Lcom/cleanmaster/junk/clean/PathCleanTask$DelPathInfo;->mAttachInfo:Ljava/lang/Object;
.line 105
instance-of v2, v0, Lcom/cleanmaster/junk/bean/JunkCleanItemInfo;
if-eqz v2, :cond_23
.line 106
check-cast v0, Lcom/cleanmaster/junk/bean/JunkCleanItemInfo;
invoke-virtual {v0}, Lcom/cleanmaster/junk/bean/JunkCleanItemInfo;->getJunkItem()Lcom/cm/plugincluster/junkengine/junk/bean/JunkInfoBase;
move-result-object v0
.line 107
if-eqz v0, :cond_39
.line 108
invoke-virtual {v0}, Lcom/cm/plugincluster/junkengine/junk/bean/JunkInfoBase;->getName()Ljava/lang/String;
move-result-object v0
:goto_1c
move-object v1, v0
.line 115
:cond_1d
:goto_1d
if-nez v1, :cond_9
.line 116
const-string/jumbo v1, "unknow"
goto :goto_9
.line 110
:cond_23
instance-of v2, v0, Lcom/cleanmaster/junk/bean/APKModel;
if-eqz v2, :cond_2e
.line 111
check-cast v0, Lcom/cleanmaster/junk/bean/APKModel;
invoke-virtual {v0}, Lcom/cleanmaster/junk/bean/APKModel;->getPackageName()Ljava/lang/String;
move-result-object v1
goto :goto_1d
.line 112
:cond_2e
instance-of v2, v0, Lcom/cm/plugincluster/junkengine/junk/bean/MediaFile;
if-eqz v2, :cond_1d
.line 113
check-cast v0, Lcom/cm/plugincluster/junkengine/junk/bean/MediaFile;
invoke-virtual {v0}, Lcom/cm/plugincluster/junkengine/junk/bean/MediaFile;->getApkName()Ljava/lang/String;
move-result-object v1
goto :goto_1d
:cond_39
move-object v0, v1
goto :goto_1c
.end method
# virtual methods
.method public isNeedReport()Z
.registers 4
.prologue
const/4 v0, 0x0
.line 147
invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/system/DeviceUtils;->isOppo()Z
move-result v1
if-eqz v1, :cond_12
const-string v1, "junk_clean_eng_setting"
const-string v2, "junk_std_delete_info_switch"
invoke-static {v1, v2, v0}, Lcom/cleanmaster/junkengine/junk/util/JunkCloudConfig;->getBooleanValue(Ljava/lang/String;Ljava/lang/String;Z)Z
move-result v1
if-eqz v1, :cond_12
const/4 v0, 0x1
:cond_12
return v0
.end method
.method public reportDelInfo(Lcom/cleanmaster/junk/clean/PathCleanTask$DelPathInfo;Ljava/lang/String;)V
.registers 10
.prologue
.line 30
invoke-direct {p0, p1}, Lcom/cleanmaster/junk/report/DelInfoReport;->checkDelInfoInvalid(Lcom/cleanmaster/junk/clean/PathCleanTask$DelPathInfo;)Z
move-result v0
if-eqz v0, :cond_7
.line 45
:cond_6
:goto_6
return-void
.line 34
:cond_7
invoke-direct {p0, p1}, Lcom/cleanmaster/junk/report/DelInfoReport;->getDeleteStyle(Lcom/cleanmaster/junk/clean/PathCleanTask$DelPathInfo;)B
move-result v1
.line 35
if-eqz v1, :cond_6
.line 38
invoke-direct {p0, p1}, Lcom/cleanmaster/junk/report/DelInfoReport;->getDeletePath(Lcom/cleanmaster/junk/clean/PathCleanTask$DelPathInfo;)Ljava/lang/String;
move-result-object v2
.line 39
invoke-direct {p0, p1}, Lcom/cleanmaster/junk/report/DelInfoReport;->getPackageName(Lcom/cleanmaster/junk/clean/PathCleanTask$DelPathInfo;)Ljava/lang/String;
move-result-object v4
.line 40
invoke-direct {p0, p1}, Lcom/cleanmaster/junk/report/DelInfoReport;->getJunkType(Lcom/cleanmaster/junk/clean/PathCleanTask$DelPathInfo;)Ljava/lang/String;
move-result-object v5
.line 41
invoke-direct {p0, p1}, Lcom/cleanmaster/junk/report/DelInfoReport;->getFileType(Lcom/cleanmaster/junk/clean/PathCleanTask$DelPathInfo;)Ljava/lang/String;
move-result-object v6
.line 43
new-instance v0, Lcom/cleanmaster/junk/report/cm_junk_photo_info;
invoke-direct {v0}, Lcom/cleanmaster/junk/report/cm_junk_photo_info;-><init>()V
move-object v3, p2
.line 44
invoke-virtual/range {v0 .. v6}, Lcom/cleanmaster/junk/report/cm_junk_photo_info;->reportInfo(BLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
goto :goto_6
.end method