ResultPagePluginDelegate.smali
.class public Lcom/cleanmaster/hpsharelib/resultpage/plugin/ResultPagePluginDelegate;
.super Ljava/lang/Object;
.source "ResultPagePluginDelegate.java"
# static fields
.field private static sPluginModule:Lcom/cm/plugincluster/common/ModuleInterface;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/cm/plugincluster/common/ModuleInterface",
"<",
"Lcom/cm/plugincluster/resultpage/interfaces/IResultPagePluginModule;",
">;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.registers 3
.prologue
.line 13
new-instance v0, Lcom/cm/plugincluster/common/ModuleInterface;
const v1, 0x12e001
new-instance v2, Lcom/cleanmaster/hpsharelib/resultpage/plugin/SimpleResultPagePluginModule;
invoke-direct {v2}, Lcom/cleanmaster/hpsharelib/resultpage/plugin/SimpleResultPagePluginModule;-><init>()V
invoke-direct {v0, v1, v2}, Lcom/cm/plugincluster/common/ModuleInterface;-><init>(ILjava/lang/Object;)V
sput-object v0, Lcom/cleanmaster/hpsharelib/resultpage/plugin/ResultPagePluginDelegate;->sPluginModule:Lcom/cm/plugincluster/common/ModuleInterface;
return-void
.end method
.method public constructor <init>()V
.registers 1
.prologue
.line 12
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static getResultPageModule()Lcom/cm/plugincluster/resultpage/interfaces/IResultPagePluginModule;
.registers 2
.prologue
.line 17
sget-object v0, Lcom/cleanmaster/hpsharelib/resultpage/plugin/ResultPagePluginDelegate;->sPluginModule:Lcom/cm/plugincluster/common/ModuleInterface;
invoke-virtual {v0}, Lcom/cm/plugincluster/common/ModuleInterface;->getInterfaceImpl()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/cm/plugincluster/resultpage/interfaces/IResultPagePluginModule;
.line 18
instance-of v1, v0, Lcom/cleanmaster/hpsharelib/resultpage/plugin/SimpleResultPagePluginModule;
if-eqz v1, :cond_1c
.line 19
invoke-static {}, Lcom/cm/plugincluster/pluginmgr/PluginManagerHostProxy;->getInstance()Lcom/cm/plugincluster/pluginmgr/interfaces/IPluginManager;
move-result-object v0
const/4 v1, 0x2
invoke-interface {v0, v1}, Lcom/cm/plugincluster/pluginmgr/interfaces/IPluginManager;->initPlugin(I)I
.line 20
sget-object v0, Lcom/cleanmaster/hpsharelib/resultpage/plugin/ResultPagePluginDelegate;->sPluginModule:Lcom/cm/plugincluster/common/ModuleInterface;
invoke-virtual {v0}, Lcom/cm/plugincluster/common/ModuleInterface;->getInterfaceImpl()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/cm/plugincluster/resultpage/interfaces/IResultPagePluginModule;
.line 22
:cond_1c
return-object v0
.end method
.method public static getResultPageModule(Z)Lcom/cm/plugincluster/resultpage/interfaces/IResultPagePluginModule;
.registers 5
.prologue
const/4 v3, 0x2
.line 27
if-nez p0, :cond_8
.line 28
invoke-static {}, Lcom/cleanmaster/hpsharelib/resultpage/plugin/ResultPagePluginDelegate;->getResultPageModule()Lcom/cm/plugincluster/resultpage/interfaces/IResultPagePluginModule;
move-result-object v0
.line 33
:goto_7
return-object v0
.line 31
:cond_8
invoke-static {}, Lcom/cm/plugincluster/pluginmgr/PluginManagerHostProxy;->getInstance()Lcom/cm/plugincluster/pluginmgr/interfaces/IPluginManager;
move-result-object v0
const/4 v1, 0x1
new-array v1, v1, [I
const/4 v2, 0x0
aput v3, v1, v2
invoke-interface {v0, v1}, Lcom/cm/plugincluster/pluginmgr/interfaces/IPluginManager;->installPlugin([I)Landroid/util/SparseIntArray;
.line 32
invoke-static {}, Lcom/cm/plugincluster/pluginmgr/PluginManagerHostProxy;->getInstance()Lcom/cm/plugincluster/pluginmgr/interfaces/IPluginManager;
move-result-object v0
invoke-interface {v0, v3}, Lcom/cm/plugincluster/pluginmgr/interfaces/IPluginManager;->initPlugin(I)I
.line 33
invoke-static {}, Lcom/cleanmaster/hpsharelib/resultpage/plugin/ResultPagePluginDelegate;->getResultPageModule()Lcom/cm/plugincluster/resultpage/interfaces/IResultPagePluginModule;
move-result-object v0
goto :goto_7
.end method