q.smali

.class public Lcom/cmcm/ad/ui/a/b/q;
.super Lcom/cmcm/ad/ui/a/b/l;
.source "RewardVideoAdProcessor.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/cmcm/ad/ui/a/b/q$a;
    }
.end annotation


# instance fields
.field private h:Landroid/widget/ImageView;

.field private i:Landroid/widget/ImageView;

.field private j:Landroid/widget/ImageView;

.field private k:Lcom/cmcm/ad/ui/view/widget/DynamicImageView;

.field private l:Landroid/widget/RatingBar;

.field private m:Landroid/widget/Button;

.field private n:Landroid/widget/FrameLayout;

.field private o:Landroid/widget/FrameLayout;

.field private p:Landroid/widget/FrameLayout;

.field private q:Landroid/widget/TextView;

.field private r:Landroid/widget/TextView;

.field private s:Ljava/lang/ref/WeakReference;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/lang/ref/WeakReference",
            "<",
            "Landroid/graphics/Bitmap;",
            ">;"
        }
    .end annotation
.end field

.field private t:Ljava/lang/ref/WeakReference;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/lang/ref/WeakReference",
            "<",
            "Landroid/graphics/Bitmap;",
            ">;"
        }
    .end annotation
.end field

.field private u:Lcom/cm/plugincluster/ad/IAd;

.field private v:Lcom/cmcm/ad/data/vast/VastAgent;

.field private w:Landroid/widget/TextView;

.field private x:Lcom/cmcm/ad/ui/a/b/q$a;


# direct methods
.method public constructor <init>()V
    .registers 1

    .prologue
    .line 49
    invoke-direct {p0}, Lcom/cmcm/ad/ui/a/b/l;-><init>()V

    return-void
.end method

.method private a(III)I
    .registers 5

    .prologue
    .line 449
    mul-int v0, p3, p2

    div-int/2addr v0, p1

    return v0
.end method

.method private a(Landroid/content/Context;)I
    .registers 4

    .prologue
    const/4 v1, 0x0

    .line 453
    if-nez p1, :cond_5

    move v0, v1

    .line 464
    :goto_4
    return v0

    .line 456
    :cond_5
    const-string/jumbo v0, "window"

    invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/WindowManager;

    .line 457
    if-nez v0, :cond_12

    move v0, v1

    .line 458
    goto :goto_4

    .line 460
    :cond_12
    invoke-interface {v0}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v0

    .line 461
    if-nez v0, :cond_1a

    move v0, v1

    .line 462
    goto :goto_4

    .line 464
    :cond_1a
    invoke-virtual {v0}, Landroid/view/Display;->getWidth()I

    move-result v0

    goto :goto_4
.end method

.method static synthetic a(Lcom/cmcm/ad/ui/a/b/q;)Landroid/widget/TextView;
    .registers 2

    .prologue
    .line 49
    iget-object v0, p0, Lcom/cmcm/ad/ui/a/b/q;->w:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic a(Lcom/cmcm/ad/ui/a/b/q;Ljava/lang/ref/WeakReference;)Ljava/lang/ref/WeakReference;
    .registers 2

    .prologue
    .line 49
    iput-object p1, p0, Lcom/cmcm/ad/ui/a/b/q;->t:Ljava/lang/ref/WeakReference;

    return-object p1
.end method

.method private h()V
    .registers 5

    .prologue
    .line 241
    iget-object v0, p0, Lcom/cmcm/ad/ui/a/b/q;->v:Lcom/cmcm/ad/data/vast/VastAgent;

    if-eqz v0, :cond_93

    iget-object v0, p0, Lcom/cmcm/ad/ui/a/b/q;->v:Lcom/cmcm/ad/data/vast/VastAgent;

    invoke-virtual {v0}, Lcom/cmcm/ad/data/vast/VastAgent;->a()Lcom/cmcm/ad/data/vast/AdVastModel;

    move-result-object v0

    if-eqz v0, :cond_93

    .line 242
    const/4 v1, 0x0

    .line 243
    iget-object v0, p0, Lcom/cmcm/ad/ui/a/b/q;->s:Ljava/lang/ref/WeakReference;

    if-eqz v0, :cond_94

    iget-object v0, p0, Lcom/cmcm/ad/ui/a/b/q;->s:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_94

    .line 244
    iget-object v1, p0, Lcom/cmcm/ad/ui/a/b/q;->k:Lcom/cmcm/ad/ui/view/widget/DynamicImageView;

    iget-object v0, p0, Lcom/cmcm/ad/ui/a/b/q;->s:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/graphics/Bitmap;

    invoke-virtual {v1, v0}, Lcom/cmcm/ad/ui/view/widget/DynamicImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    .line 245
    iget-object v0, p0, Lcom/cmcm/ad/ui/a/b/q;->s:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/graphics/Bitmap;

    .line 262
    :goto_2e
    iget-object v1, p0, Lcom/cmcm/ad/ui/a/b/q;->v:Lcom/cmcm/ad/data/vast/VastAgent;

    invoke-virtual {v1}, Lcom/cmcm/ad/data/vast/VastAgent;->a()Lcom/cmcm/ad/data/vast/AdVastModel;

    move-result-object v1

    invoke-virtual {v1}, Lcom/cmcm/ad/data/vast/AdVastModel;->getButtonTxt()Ljava/lang/String;

    move-result-object v1

    .line 263
    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_4f

    const-string v2, "null"

    invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_4f

    .line 264
    iget-object v2, p0, Lcom/cmcm/ad/ui/a/b/q;->m:Landroid/widget/Button;

    invoke-virtual {v2, v1}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 267
    :cond_4f
    iget-object v1, p0, Lcom/cmcm/ad/ui/a/b/q;->v:Lcom/cmcm/ad/data/vast/VastAgent;

    invoke-virtual {v1}, Lcom/cmcm/ad/data/vast/VastAgent;->a()Lcom/cmcm/ad/data/vast/AdVastModel;

    move-result-object v1

    invoke-virtual {v1}, Lcom/cmcm/ad/data/vast/AdVastModel;->getAdTitle()Ljava/lang/String;

    move-result-object v1

    .line 268
    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_6b

    const-string v2, "null"

    invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_ac

    .line 269
    :cond_6b
    iget-object v1, p0, Lcom/cmcm/ad/ui/a/b/q;->v:Lcom/cmcm/ad/data/vast/VastAgent;

    invoke-virtual {v1}, Lcom/cmcm/ad/data/vast/VastAgent;->a()Lcom/cmcm/ad/data/vast/AdVastModel;

    move-result-object v1

    invoke-virtual {v1}, Lcom/cmcm/ad/data/vast/AdVastModel;->getDescription()Ljava/lang/String;

    move-result-object v1

    .line 273
    :goto_75
    iget-object v2, p0, Lcom/cmcm/ad/ui/a/b/q;->r:Landroid/widget/TextView;

    invoke-virtual {v2, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 275
    iget-object v1, p0, Lcom/cmcm/ad/ui/a/b/q;->t:Ljava/lang/ref/WeakReference;

    if-eqz v1, :cond_b9

    iget-object v1, p0, Lcom/cmcm/ad/ui/a/b/q;->t:Ljava/lang/ref/WeakReference;

    invoke-virtual {v1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v1

    if-eqz v1, :cond_b9

    .line 276
    iget-object v1, p0, Lcom/cmcm/ad/ui/a/b/q;->j:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/cmcm/ad/ui/a/b/q;->t:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/graphics/Bitmap;

    invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    .line 318
    :cond_93
    :goto_93
    return-void

    .line 248
    :cond_94
    iget-object v0, p0, Lcom/cmcm/ad/ui/a/b/q;->g:Ljava/lang/String;

    if-eqz v0, :cond_93

    .line 252
    :try_start_98
    iget-object v0, p0, Lcom/cmcm/ad/ui/a/b/q;->g:Ljava/lang/String;

    invoke-static {v0}, Lcom/cmcm/ad/data/vast/h;->b(Ljava/lang/String;)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 253
    if-eqz v0, :cond_aa

    .line 254
    iget-object v2, p0, Lcom/cmcm/ad/ui/a/b/q;->k:Lcom/cmcm/ad/ui/view/widget/DynamicImageView;

    invoke-virtual {v2, v0}, Lcom/cmcm/ad/ui/view/widget/DynamicImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V
    :try_end_a5
    .catch Ljava/lang/Exception; {:try_start_98 .. :try_end_a5} :catch_a6

    goto :goto_2e

    .line 257
    :catch_a6
    move-exception v0

    .line 258
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    :cond_aa
    move-object v0, v1

    goto :goto_2e

    .line 271
    :cond_ac
    const-string v2, "\n"

    const-string v3, ""

    invoke-virtual {v1, v2, v3}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v1

    goto :goto_75

    .line 277
    :cond_b9
    if-eqz v0, :cond_93

    .line 278
    iget-object v1, p0, Lcom/cmcm/ad/ui/a/b/q;->j:Landroid/widget/ImageView;

    invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    goto :goto_93
.end method

.method private i()V
    .registers 4

    .prologue
    .line 321
    iget-object v0, p0, Lcom/cmcm/ad/ui/a/b/q;->e:Lcom/cmcm/ad/data/vast/AdVastModel;

    if-nez v0, :cond_5

    .line 405
    :goto_4
    return-void

    .line 382
    :cond_5
    iget-object v0, p0, Lcom/cmcm/ad/ui/a/b/q;->e:Lcom/cmcm/ad/data/vast/AdVastModel;

    invoke-virtual {v0}, Lcom/cmcm/ad/data/vast/AdVastModel;->getIconUrl()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_28

    .line 383
    invoke-static {}, Lcom/cmcm/ad/ui/bitmapcache/d;->a()Lcom/cmcm/ad/ui/bitmapcache/d;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cmcm/ad/ui/bitmapcache/d;->b()Lcom/android/volley/toolbox/ImageLoader;

    move-result-object v0

    iget-object v1, p0, Lcom/cmcm/ad/ui/a/b/q;->e:Lcom/cmcm/ad/data/vast/AdVastModel;

    invoke-virtual {v1}, Lcom/cmcm/ad/data/vast/AdVastModel;->getIconUrl()Ljava/lang/String;

    move-result-object v1

    new-instance v2, Lcom/cmcm/ad/ui/a/b/r;

    invoke-direct {v2, p0}, Lcom/cmcm/ad/ui/a/b/r;-><init>(Lcom/cmcm/ad/ui/a/b/q;)V

    invoke-virtual {v0, v1, v2}, Lcom/android/volley/toolbox/ImageLoader;->get(Ljava/lang/String;Lcom/android/volley/toolbox/ImageLoader$ImageListener;)Lcom/android/volley/toolbox/ImageLoader$ImageContainer;

    goto :goto_4

    .line 403
    :cond_28
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/cmcm/ad/ui/a/b/q;->t:Ljava/lang/ref/WeakReference;

    goto :goto_4
.end method


# virtual methods
.method public a()V
    .registers 3

    .prologue
    .line 107
    invoke-super {p0}, Lcom/cmcm/ad/ui/a/b/l;->a()V

    .line 108
    iget-object v0, p0, Lcom/cmcm/ad/ui/a/b/q;->e:Lcom/cmcm/ad/data/vast/AdVastModel;

    sget-object v1, Lcom/cmcm/ad/data/vast/VastAgent$ReportEvent;->EXIT_FULL_SCREEN:Lcom/cmcm/ad/data/vast/VastAgent$ReportEvent;

    invoke-virtual {p0, v0, v1}, Lcom/cmcm/ad/ui/a/b/q;->a(Lcom/cmcm/ad/data/vast/AdVastModel;Lcom/cmcm/ad/data/vast/VastAgent$ReportEvent;)V

    .line 109
    return-void
.end method

.method public a(II)V
    .registers 5

    .prologue
    .line 410
    invoke-super {p0, p1, p2}, Lcom/cmcm/ad/ui/a/b/l;->a(II)V

    .line 411
    sub-int v0, p1, p2

    .line 412
    new-instance v1, Lcom/cmcm/ad/ui/a/b/s;

    invoke-direct {v1, p0, v0}, Lcom/cmcm/ad/ui/a/b/s;-><init>(Lcom/cmcm/ad/ui/a/b/q;I)V

    invoke-static {v1}, Lcom/cmcm/ad/data/vast/e;->a(Ljava/lang/Runnable;)V

    .line 420
    return-void
.end method

.method public a(Landroid/view/View;)V
    .registers 2

    .prologue
    .line 113
    invoke-super {p0, p1}, Lcom/cmcm/ad/ui/a/b/l;->a(Landroid/view/View;)V

    .line 114
    return-void
.end method

.method public a(Landroid/widget/Button;)V
    .registers 2

    .prologue
    .line 168
    iput-object p1, p0, Lcom/cmcm/ad/ui/a/b/q;->m:Landroid/widget/Button;

    .line 169
    return-void
.end method

.method public a(Landroid/widget/FrameLayout;)V
    .registers 2

    .prologue
    .line 172
    iput-object p1, p0, Lcom/cmcm/ad/ui/a/b/q;->n:Landroid/widget/FrameLayout;

    .line 173
    return-void
.end method

.method public a(Landroid/widget/ImageView;)V
    .registers 2

    .prologue
    .line 152
    iput-object p1, p0, Lcom/cmcm/ad/ui/a/b/q;->h:Landroid/widget/ImageView;

    .line 153
    return-void
.end method

.method public a(Landroid/widget/RatingBar;)V
    .registers 2

    .prologue
    .line 164
    iput-object p1, p0, Lcom/cmcm/ad/ui/a/b/q;->l:Landroid/widget/RatingBar;

    .line 165
    return-void
.end method

.method public a(Landroid/widget/TextView;)V
    .registers 2

    .prologue
    .line 176
    iput-object p1, p0, Lcom/cmcm/ad/ui/a/b/q;->q:Landroid/widget/TextView;

    .line 177
    return-void
.end method

.method public a(Lcom/cm/plugincluster/ad/IAd;)V
    .registers 2

    .prologue
    .line 92
    invoke-super {p0, p1}, Lcom/cmcm/ad/ui/a/b/l;->a(Lcom/cm/plugincluster/ad/IAd;)V

    .line 93
    return-void
.end method

.method public a(Lcom/cm/plugincluster/ad/IAd;Lcom/cmcm/ad/ui/view/a/a;)V
    .registers 5

    .prologue
    .line 77
    invoke-super {p0, p1, p2}, Lcom/cmcm/ad/ui/a/b/l;->a(Lcom/cm/plugincluster/ad/IAd;Lcom/cmcm/ad/ui/view/a/a;)V

    .line 78
    iput-object p1, p0, Lcom/cmcm/ad/ui/a/b/q;->u:Lcom/cm/plugincluster/ad/IAd;

    .line 79
    iget-object v0, p0, Lcom/cmcm/ad/ui/a/b/q;->e:Lcom/cmcm/ad/data/vast/AdVastModel;

    sget-object v1, Lcom/cmcm/ad/data/vast/VastAgent$ReportEvent;->CREATE_VIEW:Lcom/cmcm/ad/data/vast/VastAgent$ReportEvent;

    invoke-virtual {p0, v0, v1}, Lcom/cmcm/ad/ui/a/b/q;->a(Lcom/cmcm/ad/data/vast/AdVastModel;Lcom/cmcm/ad/data/vast/VastAgent$ReportEvent;)V

    .line 80
    instance-of v0, p1, Lcom/cmcm/ad/data/dataProvider/adlogic/a/j;

    if-eqz v0, :cond_22

    .line 81
    check-cast p1, Lcom/cmcm/ad/data/dataProvider/adlogic/a/j;

    .line 82
    invoke-virtual {p1}, Lcom/cmcm/ad/data/dataProvider/adlogic/a/j;->getOriginalAdShowType()I

    move-result v0

    .line 83
    const v1, 0xc35c

    if-ne v0, v1, :cond_22

    .line 84
    iget-object v0, p0, Lcom/cmcm/ad/ui/a/b/q;->e:Lcom/cmcm/ad/data/vast/AdVastModel;

    sget-object v1, Lcom/cmcm/ad/data/vast/VastAgent$ReportEvent;->FULL_SCREEN:Lcom/cmcm/ad/data/vast/VastAgent$ReportEvent;

    invoke-virtual {p0, v0, v1}, Lcom/cmcm/ad/ui/a/b/q;->a(Lcom/cmcm/ad/data/vast/AdVastModel;Lcom/cmcm/ad/data/vast/VastAgent$ReportEvent;)V

    .line 87
    :cond_22
    invoke-direct {p0}, Lcom/cmcm/ad/ui/a/b/q;->i()V

    .line 88
    return-void
.end method

.method public a(Lcom/cmcm/ad/ui/a/b/q$a;)V
    .registers 2

    .prologue
    .line 472
    iput-object p1, p0, Lcom/cmcm/ad/ui/a/b/q;->x:Lcom/cmcm/ad/ui/a/b/q$a;

    .line 473
    return-void
.end method

.method public a(Lcom/cmcm/ad/ui/view/widget/DynamicImageView;)V
    .registers 2

    .prologue
    .line 156
    iput-object p1, p0, Lcom/cmcm/ad/ui/a/b/q;->k:Lcom/cmcm/ad/ui/view/widget/DynamicImageView;

    .line 157
    return-void
.end method

.method public a(Lcom/cmcm/ad/ui/view/widget/FixedTextureVideoView;)V
    .registers 6

    .prologue
    const/4 v3, -0x1

    .line 424
    invoke-super {p0, p1}, Lcom/cmcm/ad/ui/a/b/l;->a(Lcom/cmcm/ad/ui/view/widget/FixedTextureVideoView;)V

    .line 425
    iget-object v0, p0, Lcom/cmcm/ad/ui/a/b/q;->e:Lcom/cmcm/ad/data/vast/AdVastModel;

    if-eqz v0, :cond_48

    .line 426
    iget-object v0, p0, Lcom/cmcm/ad/ui/a/b/q;->u:Lcom/cm/plugincluster/ad/IAd;

    instance-of v0, v0, Lcom/cmcm/ad/data/dataProvider/adlogic/a/j;

    if-eqz v0, :cond_48

    .line 427
    iget-object v0, p0, Lcom/cmcm/ad/ui/a/b/q;->u:Lcom/cm/plugincluster/ad/IAd;

    check-cast v0, Lcom/cmcm/ad/data/dataProvider/adlogic/a/j;

    .line 428
    invoke-virtual {v0}, Lcom/cmcm/ad/data/dataProvider/adlogic/a/j;->getOriginalAdShowType()I

    move-result v0

    .line 429
    const v1, 0xc35d

    if-ne v0, v1, :cond_48

    .line 430
    iget-object v0, p0, Lcom/cmcm/ad/ui/a/b/q;->e:Lcom/cmcm/ad/data/vast/AdVastModel;

    invoke-virtual {p1}, Lcom/cmcm/ad/ui/view/widget/FixedTextureVideoView;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/cmcm/ad/data/vast/AdVastModel;->getBestMediaFile(Landroid/content/Context;)Lcom/cmcm/ad/data/vast/AdVastModel$MediaFile;

    move-result-object v0

    .line 431
    if-eqz v0, :cond_48

    .line 432
    invoke-virtual {v0}, Lcom/cmcm/ad/data/vast/AdVastModel$MediaFile;->getVideoWidth()I

    move-result v1

    .line 433
    invoke-virtual {v0}, Lcom/cmcm/ad/data/vast/AdVastModel$MediaFile;->getVideoHeight()I

    move-result v0

    .line 434
    invoke-static {}, Lcom/cleanmaster/hpcommonlib/HostHelper;->getAppContext()Landroid/content/Context;

    move-result-object v2

    .line 435
    invoke-direct {p0, v2}, Lcom/cmcm/ad/ui/a/b/q;->a(Landroid/content/Context;)I

    move-result v2

    .line 436
    invoke-direct {p0, v1, v0, v2}, Lcom/cmcm/ad/ui/a/b/q;->a(III)I

    move-result v0

    .line 437
    new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v1, v3, v0}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    .line 440
    const/16 v0, 0xd

    invoke-virtual {v1, v0, v3}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    .line 441
    invoke-virtual {p1, v1}, Lcom/cmcm/ad/ui/view/widget/FixedTextureVideoView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 446
    :cond_48
    return-void
.end method

.method public b()V
    .registers 1

    .prologue
    .line 97
    invoke-super {p0}, Lcom/cmcm/ad/ui/a/b/l;->b()V

    .line 98
    return-void
.end method

.method public b(Landroid/widget/FrameLayout;)V
    .registers 2

    .prologue
    .line 188
    iput-object p1, p0, Lcom/cmcm/ad/ui/a/b/q;->o:Landroid/widget/FrameLayout;

    .line 189
    return-void
.end method

.method public b(Landroid/widget/TextView;)V
    .registers 2

    .prologue
    .line 180
    iput-object p1, p0, Lcom/cmcm/ad/ui/a/b/q;->r:Landroid/widget/TextView;

    .line 181
    return-void
.end method

.method public c()V
    .registers 1

    .prologue
    .line 102
    invoke-super {p0}, Lcom/cmcm/ad/ui/a/b/l;->c()V

    .line 103
    return-void
.end method

.method public c(Landroid/widget/FrameLayout;)V
    .registers 2

    .prologue
    .line 192
    iput-object p1, p0, Lcom/cmcm/ad/ui/a/b/q;->p:Landroid/widget/FrameLayout;

    .line 193
    return-void
.end method

.method public c(Landroid/widget/ImageView;)V
    .registers 2

    .prologue
    .line 160
    iput-object p1, p0, Lcom/cmcm/ad/ui/a/b/q;->i:Landroid/widget/ImageView;

    .line 161
    return-void
.end method

.method public c(Landroid/widget/TextView;)V
    .registers 2

    .prologue
    .line 468
    iput-object p1, p0, Lcom/cmcm/ad/ui/a/b/q;->w:Landroid/widget/TextView;

    .line 469
    return-void
.end method

.method public d(Landroid/widget/ImageView;)V
    .registers 2

    .prologue
    .line 184
    iput-object p1, p0, Lcom/cmcm/ad/ui/a/b/q;->j:Landroid/widget/ImageView;

    .line 185
    return-void
.end method

.method protected e()V
    .registers 3

    .prologue
    .line 197
    invoke-super {p0}, Lcom/cmcm/ad/ui/a/b/l;->e()V

    .line 198
    iget-object v0, p0, Lcom/cmcm/ad/ui/a/b/q;->l:Landroid/widget/RatingBar;

    const/high16 v1, 0x40a00000    # 5.0f

    invoke-virtual {v0, v1}, Landroid/widget/RatingBar;->setRating(F)V

    .line 238
    return-void
.end method

.method public onCompletion(Landroid/media/MediaPlayer;)V
    .registers 4

    .prologue
    .line 141
    invoke-super {p0, p1}, Lcom/cmcm/ad/ui/a/b/l;->onCompletion(Landroid/media/MediaPlayer;)V

    .line 142
    iget-object v0, p0, Lcom/cmcm/ad/ui/a/b/q;->x:Lcom/cmcm/ad/ui/a/b/q$a;

    if-eqz v0, :cond_22

    .line 143
    iget-object v0, p0, Lcom/cmcm/ad/ui/a/b/q;->v:Lcom/cmcm/ad/data/vast/VastAgent;

    if-eqz v0, :cond_1a

    iget-object v0, p0, Lcom/cmcm/ad/ui/a/b/q;->v:Lcom/cmcm/ad/data/vast/VastAgent;

    invoke-virtual {v0}, Lcom/cmcm/ad/data/vast/VastAgent;->b()Lcom/cmcm/ad/data/vast/AdVastModel$CompanionAds;

    move-result-object v0

    if-eqz v0, :cond_1a

    .line 144
    iget-object v0, p0, Lcom/cmcm/ad/ui/a/b/q;->e:Lcom/cmcm/ad/data/vast/AdVastModel;

    sget-object v1, Lcom/cmcm/ad/data/vast/VastAgent$ReportEvent;->COMPANION_CREATE_VIEW:Lcom/cmcm/ad/data/vast/VastAgent$ReportEvent;

    invoke-virtual {p0, v0, v1}, Lcom/cmcm/ad/ui/a/b/q;->a(Lcom/cmcm/ad/data/vast/AdVastModel;Lcom/cmcm/ad/data/vast/VastAgent$ReportEvent;)V

    .line 146
    :cond_1a
    iget-object v0, p0, Lcom/cmcm/ad/ui/a/b/q;->x:Lcom/cmcm/ad/ui/a/b/q$a;

    invoke-interface {v0}, Lcom/cmcm/ad/ui/a/b/q$a;->a()V

    .line 147
    invoke-direct {p0}, Lcom/cmcm/ad/ui/a/b/q;->h()V

    .line 149
    :cond_22
    return-void
.end method

.method public onError(Landroid/media/MediaPlayer;II)Z
    .registers 5

    .prologue
    .line 118
    invoke-super {p0, p1, p2, p3}, Lcom/cmcm/ad/ui/a/b/l;->onError(Landroid/media/MediaPlayer;II)Z

    move-result v0

    return v0
.end method

.method public onPrepared(Landroid/media/MediaPlayer;)V
    .registers 5

    .prologue
    const/4 v2, 0x1

    const/4 v1, 0x0

    .line 123
    invoke-super {p0, p1}, Lcom/cmcm/ad/ui/a/b/l;->onPrepared(Landroid/media/MediaPlayer;)V

    .line 124
    iget-object v0, p0, Lcom/cmcm/ad/ui/a/b/q;->w:Landroid/widget/TextView;

    if-eqz v0, :cond_e

    .line 125
    iget-object v0, p0, Lcom/cmcm/ad/ui/a/b/q;->w:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 127
    :cond_e
    iget-object v0, p0, Lcom/cmcm/ad/ui/a/b/q;->e:Lcom/cmcm/ad/data/vast/AdVastModel;

    if-eqz v0, :cond_24

    .line 128
    iget-object v0, p0, Lcom/cmcm/ad/ui/a/b/q;->e:Lcom/cmcm/ad/data/vast/AdVastModel;

    invoke-virtual {v0}, Lcom/cmcm/ad/data/vast/AdVastModel;->isMute()Z

    move-result v0

    .line 129
    if-eqz v0, :cond_25

    .line 130
    iget-object v0, p0, Lcom/cmcm/ad/ui/a/b/q;->b:Lcom/cmcm/ad/ui/view/widget/FixedTextureVideoView;

    invoke-virtual {v0, v1, v1}, Lcom/cmcm/ad/ui/view/widget/FixedTextureVideoView;->setVideoVolum(II)V

    .line 131
    iget-object v0, p0, Lcom/cmcm/ad/ui/a/b/q;->c:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setSelected(Z)V

    .line 137
    :cond_24
    :goto_24
    return-void

    .line 133
    :cond_25
    iget-object v0, p0, Lcom/cmcm/ad/ui/a/b/q;->b:Lcom/cmcm/ad/ui/view/widget/FixedTextureVideoView;

    invoke-virtual {v0, v2, v2}, Lcom/cmcm/ad/ui/view/widget/FixedTextureVideoView;->setVideoVolum(II)V

    .line 134
    iget-object v0, p0, Lcom/cmcm/ad/ui/a/b/q;->c:Landroid/widget/ImageView;

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setSelected(Z)V

    goto :goto_24
.end method