AppInfoCacheMgr$8.smali
.class Lcom/cleanmaster/util/AppInfoCacheMgr$8;
.super Ljava/lang/Object;
.source "AppInfoCacheMgr.java"
# interfaces
.implements Lcom/cleanmaster/base/util/concurrent/AsyncConsumer$ConsumerCallback;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lcom/cleanmaster/base/util/concurrent/AsyncConsumer$ConsumerCallback",
"<",
"Lcom/cleanmaster/util/AppInfoCacheMgr$RecordInfo;",
">;"
}
.end annotation
# instance fields
.field private mAppInfoCacheDao:Lcom/cleanmaster/hpsharelib/dao/AppInfoCacheDaoImp;
.field final synthetic this$0:Lcom/cleanmaster/util/AppInfoCacheMgr;
# direct methods
.method constructor <init>(Lcom/cleanmaster/util/AppInfoCacheMgr;)V
.registers 3
.prologue
.line 499
iput-object p1, p0, Lcom/cleanmaster/util/AppInfoCacheMgr$8;->this$0:Lcom/cleanmaster/util/AppInfoCacheMgr;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 579
const/4 v0, 0x0
iput-object v0, p0, Lcom/cleanmaster/util/AppInfoCacheMgr$8;->mAppInfoCacheDao:Lcom/cleanmaster/hpsharelib/dao/AppInfoCacheDaoImp;
return-void
.end method
.method static synthetic access$500(Lcom/cleanmaster/util/AppInfoCacheMgr$8;)Lcom/cleanmaster/hpsharelib/dao/AppInfoCacheDaoImp;
.registers 2
.prologue
.line 499
iget-object v0, p0, Lcom/cleanmaster/util/AppInfoCacheMgr$8;->mAppInfoCacheDao:Lcom/cleanmaster/hpsharelib/dao/AppInfoCacheDaoImp;
return-object v0
.end method
# virtual methods
.method public consumeProduct(Lcom/cleanmaster/util/AppInfoCacheMgr$RecordInfo;)V
.registers 6
.prologue
const/4 v1, 0x0
const/4 v0, 0x0
.line 504
iget-object v2, p0, Lcom/cleanmaster/util/AppInfoCacheMgr$8;->mAppInfoCacheDao:Lcom/cleanmaster/hpsharelib/dao/AppInfoCacheDaoImp;
if-nez v2, :cond_14
.line 506
invoke-static {}, Lcom/keniu/security/m;->d()Landroid/content/Context;
move-result-object v2
invoke-virtual {v2}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v2
.line 505
invoke-static {v2}, Lcom/cleanmaster/hpsharelib/dao/DaoFactory;->getAppInfoCacheDao(Landroid/content/Context;)Lcom/cleanmaster/hpsharelib/dao/AppInfoCacheDaoImp;
move-result-object v2
iput-object v2, p0, Lcom/cleanmaster/util/AppInfoCacheMgr$8;->mAppInfoCacheDao:Lcom/cleanmaster/hpsharelib/dao/AppInfoCacheDaoImp;
.line 512
:cond_14
iget-boolean v2, p1, Lcom/cleanmaster/util/AppInfoCacheMgr$RecordInfo;->mInstall:Z
if-nez v2, :cond_1a
if-nez v1, :cond_53
.line 515
:cond_1a
invoke-static {}, Lcom/keniu/security/m;->d()Landroid/content/Context;
move-result-object v0
invoke-virtual {v0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v0
.line 517
:try_start_22
iget-object v2, p1, Lcom/cleanmaster/util/AppInfoCacheMgr$RecordInfo;->mPkgName:Ljava/lang/String;
const/4 v3, 0x0
invoke-virtual {v0, v2, v3}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;
:try_end_28
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_22 .. :try_end_28} :catch_3e
move-result-object v0
.line 522
:goto_29
if-nez v1, :cond_44
iget-boolean v1, p1, Lcom/cleanmaster/util/AppInfoCacheMgr$RecordInfo;->mIsReplace:Z
if-nez v1, :cond_44
.line 524
if-eqz v0, :cond_3d
.line 525
iget-object v1, p0, Lcom/cleanmaster/util/AppInfoCacheMgr$8;->this$0:Lcom/cleanmaster/util/AppInfoCacheMgr;
sget-object v2, Lcom/cleanmaster/util/AppInfoCacheMgr$CHECK_TYPE;->INSTALL:Lcom/cleanmaster/util/AppInfoCacheMgr$CHECK_TYPE;
new-instance v3, Lcom/cleanmaster/util/AppInfoCacheMgr$8$1;
invoke-direct {v3, p0}, Lcom/cleanmaster/util/AppInfoCacheMgr$8$1;-><init>(Lcom/cleanmaster/util/AppInfoCacheMgr$8;)V
# invokes: Lcom/cleanmaster/util/AppInfoCacheMgr;->checkPkgInfoCloud(Lcom/cleanmaster/util/AppInfoCacheMgr$CHECK_TYPE;Landroid/content/pm/PackageInfo;Lcom/cleanmaster/util/AppInfoCacheMgr$ICheckCloudResult;)V
invoke-static {v1, v2, v0, v3}, Lcom/cleanmaster/util/AppInfoCacheMgr;->access$200(Lcom/cleanmaster/util/AppInfoCacheMgr;Lcom/cleanmaster/util/AppInfoCacheMgr$CHECK_TYPE;Landroid/content/pm/PackageInfo;Lcom/cleanmaster/util/AppInfoCacheMgr$ICheckCloudResult;)V
.line 577
:cond_3d
:goto_3d
return-void
.line 518
:catch_3e
move-exception v0
.line 519
invoke-virtual {v0}, Landroid/content/pm/PackageManager$NameNotFoundException;->printStackTrace()V
move-object v0, v1
goto :goto_29
.line 545
:cond_44
if-eqz v0, :cond_3d
.line 547
iget-object v1, p0, Lcom/cleanmaster/util/AppInfoCacheMgr$8;->this$0:Lcom/cleanmaster/util/AppInfoCacheMgr;
sget-object v2, Lcom/cleanmaster/util/AppInfoCacheMgr$CHECK_TYPE;->UPDATE:Lcom/cleanmaster/util/AppInfoCacheMgr$CHECK_TYPE;
new-instance v3, Lcom/cleanmaster/util/AppInfoCacheMgr$8$2;
invoke-direct {v3, p0}, Lcom/cleanmaster/util/AppInfoCacheMgr$8$2;-><init>(Lcom/cleanmaster/util/AppInfoCacheMgr$8;)V
# invokes: Lcom/cleanmaster/util/AppInfoCacheMgr;->checkPkgInfoCloud(Lcom/cleanmaster/util/AppInfoCacheMgr$CHECK_TYPE;Landroid/content/pm/PackageInfo;Lcom/cleanmaster/util/AppInfoCacheMgr$ICheckCloudResult;)V
invoke-static {v1, v2, v0, v3}, Lcom/cleanmaster/util/AppInfoCacheMgr;->access$200(Lcom/cleanmaster/util/AppInfoCacheMgr;Lcom/cleanmaster/util/AppInfoCacheMgr$CHECK_TYPE;Landroid/content/pm/PackageInfo;Lcom/cleanmaster/util/AppInfoCacheMgr$ICheckCloudResult;)V
goto :goto_3d
.line 568
:cond_53
iget-object v2, p0, Lcom/cleanmaster/util/AppInfoCacheMgr$8;->this$0:Lcom/cleanmaster/util/AppInfoCacheMgr;
iget-object v3, p1, Lcom/cleanmaster/util/AppInfoCacheMgr$RecordInfo;->mPkgName:Ljava/lang/String;
if-eqz v1, :cond_5b
iget v0, v1, Lcom/cleanmaster/util/AppInfoCacheMgr$AppInfoItem;->mPkgVersionCode:I
:cond_5b
new-instance v1, Lcom/cleanmaster/util/AppInfoCacheMgr$8$3;
invoke-direct {v1, p0}, Lcom/cleanmaster/util/AppInfoCacheMgr$8$3;-><init>(Lcom/cleanmaster/util/AppInfoCacheMgr$8;)V
# invokes: Lcom/cleanmaster/util/AppInfoCacheMgr;->notifyCloudUninstallPkgInfo(Ljava/lang/String;ILcom/cleanmaster/util/AppInfoCacheMgr$ICheckCloudResult2;)V
invoke-static {v2, v3, v0, v1}, Lcom/cleanmaster/util/AppInfoCacheMgr;->access$700(Lcom/cleanmaster/util/AppInfoCacheMgr;Ljava/lang/String;ILcom/cleanmaster/util/AppInfoCacheMgr$ICheckCloudResult2;)V
goto :goto_3d
.end method
.method public bridge synthetic consumeProduct(Ljava/lang/Object;)V
.registers 2
.prologue
.line 499
check-cast p1, Lcom/cleanmaster/util/AppInfoCacheMgr$RecordInfo;
invoke-virtual {p0, p1}, Lcom/cleanmaster/util/AppInfoCacheMgr$8;->consumeProduct(Lcom/cleanmaster/util/AppInfoCacheMgr$RecordInfo;)V
return-void
.end method