a.smali
.class public Lcom/cmcm/ad/e/a/a;
.super Ljava/lang/Object;
.source "FullScreenVideoAdLogic.java"
# interfaces
.implements Lcom/cm/plugincluster/ad/video/fullscreen/IFullScreenVideoAdLogic;
# instance fields
.field private a:Ljava/lang/String;
.field private b:Landroid/content/Context;
.field private c:Lcom/cmcm/ad/e/a/b/c;
# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;)V
.registers 4
.prologue
.line 26
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 27
iput-object p1, p0, Lcom/cmcm/ad/e/a/a;->b:Landroid/content/Context;
.line 28
iput-object p2, p0, Lcom/cmcm/ad/e/a/a;->a:Ljava/lang/String;
.line 29
new-instance v0, Lcom/cmcm/ad/e/a/b/c;
invoke-direct {v0, p1, p2}, Lcom/cmcm/ad/e/a/b/c;-><init>(Landroid/content/Context;Ljava/lang/String;)V
iput-object v0, p0, Lcom/cmcm/ad/e/a/a;->c:Lcom/cmcm/ad/e/a/b/c;
.line 30
return-void
.end method
.method static synthetic a(Lcom/cmcm/ad/e/a/a;)Landroid/content/Context;
.registers 2
.prologue
.line 18
iget-object v0, p0, Lcom/cmcm/ad/e/a/a;->b:Landroid/content/Context;
return-object v0
.end method
.method private a(ZILcom/cm/plugincluster/ad/video/fullscreen/IFullScreenVideoAdLoadListener;)V
.registers 6
.prologue
.line 113
iget-object v0, p0, Lcom/cmcm/ad/e/a/a;->c:Lcom/cmcm/ad/e/a/b/c;
new-instance v1, Lcom/cmcm/ad/e/a/c;
invoke-direct {v1, p0, p3}, Lcom/cmcm/ad/e/a/c;-><init>(Lcom/cmcm/ad/e/a/a;Lcom/cm/plugincluster/ad/video/fullscreen/IFullScreenVideoAdLoadListener;)V
invoke-virtual {v0, p1, p2, v1}, Lcom/cmcm/ad/e/a/b/c;->a(ZILcom/cm/plugincluster/ad/video/fullscreen/IFullScreenVideoAdLoadListener;)V
.line 135
return-void
.end method
# virtual methods
.method public fetchFullScreenVideoAd(ILcom/cm/plugincluster/ad/video/fullscreen/IFullScreenVideoAdLoadListener;)V
.registers 4
.prologue
.line 39
const/4 v0, 0x0
invoke-direct {p0, v0, p1, p2}, Lcom/cmcm/ad/e/a/a;->a(ZILcom/cm/plugincluster/ad/video/fullscreen/IFullScreenVideoAdLoadListener;)V
.line 40
return-void
.end method
.method public isFullScreenVideoAdValid(Z)Z
.registers 3
.prologue
.line 34
iget-object v0, p0, Lcom/cmcm/ad/e/a/a;->c:Lcom/cmcm/ad/e/a/b/c;
invoke-virtual {v0, p1}, Lcom/cmcm/ad/e/a/b/c;->a(Z)Z
move-result v0
return v0
.end method
.method public preloadFullScreenVideoAd(ILcom/cm/plugincluster/ad/video/fullscreen/IFullScreenVideoAdLoadListener;)V
.registers 6
.prologue
.line 44
iget-object v0, p0, Lcom/cmcm/ad/e/a/a;->c:Lcom/cmcm/ad/e/a/b/c;
invoke-virtual {v0}, Lcom/cmcm/ad/e/a/b/c;->a()Z
move-result v0
if-eqz v0, :cond_2c
.line 45
const-string v0, "FullScreenAd"
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
iget-object v2, p0, Lcom/cmcm/ad/e/a/a;->a:Ljava/lang/String;
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
const-string v2, ":FullScreenVideoAdLogic [preloadFullScreenVideoAd] already in fetch full screen video ad"
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v0, v1}, Lcom/cmcm/ad/c/a/a;->c(Ljava/lang/String;Ljava/lang/String;)V
.line 46
if-eqz p2, :cond_2b
.line 47
const/16 v0, 0x2713
const-string v1, "already in fetch full screen video ad"
invoke-interface {p2, v0, v1}, Lcom/cm/plugincluster/ad/video/fullscreen/IFullScreenVideoAdLoadListener;->onError(ILjava/lang/String;)V
.line 59
:cond_2b
:goto_2b
return-void
.line 51
:cond_2c
iget-object v0, p0, Lcom/cmcm/ad/e/a/a;->c:Lcom/cmcm/ad/e/a/b/c;
invoke-virtual {v0}, Lcom/cmcm/ad/e/a/b/c;->b()Z
move-result v0
if-eqz v0, :cond_58
.line 52
const-string v0, "FullScreenAd"
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
iget-object v2, p0, Lcom/cmcm/ad/e/a/a;->a:Ljava/lang/String;
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
const-string v2, ":FullScreenVideoAdLogic [preloadFullScreenVideoAd] already in preload full screen video ad"
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v0, v1}, Lcom/cmcm/ad/c/a/a;->c(Ljava/lang/String;Ljava/lang/String;)V
.line 53
if-eqz p2, :cond_2b
.line 54
const/16 v0, 0x2714
const-string v1, "already in preload full screen video ad"
invoke-interface {p2, v0, v1}, Lcom/cm/plugincluster/ad/video/fullscreen/IFullScreenVideoAdLoadListener;->onError(ILjava/lang/String;)V
goto :goto_2b
.line 58
:cond_58
const/4 v0, 0x1
invoke-direct {p0, v0, p1, p2}, Lcom/cmcm/ad/e/a/a;->a(ZILcom/cm/plugincluster/ad/video/fullscreen/IFullScreenVideoAdLoadListener;)V
goto :goto_2b
.end method
.method public showFullScreenVideoAd(Landroid/app/Activity;Lcom/cm/plugincluster/ad/video/fullscreen/IFullScreenVideoAd;Lcom/cm/plugincluster/ad/video/fullscreen/IFullScreenVideoAdInteractionListener;Lcom/cm/plugincluster/ad/video/fullscreen/IFullScreenVideoAdApkDownloadListener;)V
.registers 7
.prologue
.line 63
iget-object v0, p0, Lcom/cmcm/ad/e/a/a;->c:Lcom/cmcm/ad/e/a/b/c;
new-instance v1, Lcom/cmcm/ad/e/a/b;
invoke-direct {v1, p0, p3, p2}, Lcom/cmcm/ad/e/a/b;-><init>(Lcom/cmcm/ad/e/a/a;Lcom/cm/plugincluster/ad/video/fullscreen/IFullScreenVideoAdInteractionListener;Lcom/cm/plugincluster/ad/video/fullscreen/IFullScreenVideoAd;)V
invoke-virtual {v0, p1, p2, v1, p4}, Lcom/cmcm/ad/e/a/b/c;->a(Landroid/app/Activity;Lcom/cm/plugincluster/ad/video/fullscreen/IFullScreenVideoAd;Lcom/cm/plugincluster/ad/video/fullscreen/IFullScreenVideoAdInteractionListener;Lcom/cm/plugincluster/ad/video/fullscreen/IFullScreenVideoAdApkDownloadListener;)V
.line 110
return-void
.end method