.class public Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator;
.super Ljava/lang/Object;
.source "MultiAdViewAnimGenerator.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$Builder;
    }
.end annotation


# instance fields
.field private a:Lcom/moji/launchserver/AdCommonInterface$AdPosition;

.field private b:I

.field private c:Landroid/view/View;

.field private d:Lcom/moji/mjad/enumdata/MojiAdGoneType;

.field private e:I

.field private f:I


# direct methods
.method public constructor <init>(Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$Builder;)V
    .locals 1

    .line 31
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/16 v0, 0x8

    .line 30
    iput v0, p0, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator;->f:I

    if-eqz p1, :cond_1

    .line 32
    iget-object v0, p1, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$Builder;->a:Lcom/moji/launchserver/AdCommonInterface$AdPosition;

    if-eqz v0, :cond_1

    iget-object v0, p1, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$Builder;->d:Landroid/view/View;

    if-nez v0, :cond_0

    goto :goto_0

    .line 36
    :cond_0
    iget-object v0, p1, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$Builder;->a:Lcom/moji/launchserver/AdCommonInterface$AdPosition;

    iput-object v0, p0, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator;->a:Lcom/moji/launchserver/AdCommonInterface$AdPosition;

    .line 37
    iget v0, p1, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$Builder;->b:I

    iput v0, p0, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator;->b:I

    .line 38
    iget-object v0, p1, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$Builder;->d:Landroid/view/View;

    iput-object v0, p0, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator;->c:Landroid/view/View;

    .line 39
    iget-object v0, p1, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$Builder;->e:Lcom/moji/mjad/enumdata/MojiAdGoneType;

    iput-object v0, p0, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator;->d:Lcom/moji/mjad/enumdata/MojiAdGoneType;

    .line 40
    iget p1, p1, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$Builder;->c:I

    iput p1, p0, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator;->f:I

    return-void

    :cond_1
    :goto_0
    const-string p1, "zdxmulti"

    const-string v0, "-----MultiAdViewAnimGenerator  builder ---- builder  return 11"

    .line 33
    invoke-static {p1, v0}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method private a(Lcom/moji/launchserver/AdCommonInterface$AdPosition;Landroid/view/View;)V
    .locals 4

    if-eqz p1, :cond_4

    if-nez p2, :cond_0

    goto/16 :goto_2

    .line 59
    :cond_0
    sget-object v0, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$4;->a:[I

    invoke-virtual {p1}, Lcom/moji/launchserver/AdCommonInterface$AdPosition;->ordinal()I

    move-result p1

    aget p1, v0, p1

    const/4 v0, 0x1

    const/4 v1, 0x0

    packed-switch p1, :pswitch_data_0

    goto :goto_0

    .line 93
    :pswitch_0
    invoke-virtual {p2}, Landroid/view/View;->getVisibility()I

    move-result p1

    if-eqz p1, :cond_3

    .line 95
    new-instance p1, Landroid/view/animation/AlphaAnimation;

    const/4 v2, 0x0

    const/high16 v3, 0x3f800000    # 1.0f

    invoke-direct {p1, v2, v3}, Landroid/view/animation/AlphaAnimation;-><init>(FF)V

    const-wide/16 v2, 0x12c

    .line 96
    invoke-virtual {p1, v2, v3}, Landroid/view/animation/AlphaAnimation;->setDuration(J)V

    .line 97
    invoke-virtual {p1, v0}, Landroid/view/animation/AlphaAnimation;->setFillAfter(Z)V

    .line 98
    invoke-virtual {p2}, Landroid/view/View;->clearAnimation()V

    .line 99
    invoke-virtual {p2, p1}, Landroid/view/View;->startAnimation(Landroid/view/animation/Animation;)V

    goto :goto_0

    .line 66
    :pswitch_1
    iget p1, p0, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator;->f:I

    if-eqz p1, :cond_2

    invoke-virtual {p2}, Landroid/view/View;->getVisibility()I

    move-result p1

    if-eqz p1, :cond_2

    .line 68
    iget p1, p0, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator;->e:I

    if-gtz p1, :cond_1

    .line 69
    invoke-virtual {p2}, Landroid/view/View;->getHeight()I

    move-result p1

    iput p1, p0, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator;->e:I

    :cond_1
    const/4 p1, 0x2

    .line 71
    new-array p1, p1, [I

    iget v2, p0, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator;->e:I

    neg-int v2, v2

    aput v2, p1, v1

    aput v1, p1, v0

    invoke-static {p1}, Landroid/animation/ValueAnimator;->ofInt([I)Landroid/animation/ValueAnimator;

    move-result-object p1

    const-wide/16 v2, 0x17c

    .line 72
    invoke-virtual {p1, v2, v3}, Landroid/animation/ValueAnimator;->setDuration(J)Landroid/animation/ValueAnimator;

    .line 73
    new-instance v0, Landroid/view/animation/DecelerateInterpolator;

    invoke-direct {v0}, Landroid/view/animation/DecelerateInterpolator;-><init>()V

    invoke-virtual {p1, v0}, Landroid/animation/ValueAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)V

    .line 74
    new-instance v0, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$1;

    invoke-direct {v0, p0, p2}, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$1;-><init>(Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator;Landroid/view/View;)V

    invoke-virtual {p1, v0}, Landroid/animation/ValueAnimator;->addUpdateListener(Landroid/animation/ValueAnimator$AnimatorUpdateListener;)V

    .line 85
    invoke-virtual {p1}, Landroid/animation/ValueAnimator;->start()V

    .line 86
    invoke-virtual {p2, v1}, Landroid/view/View;->setVisibility(I)V

    goto :goto_1

    .line 89
    :cond_2
    invoke-virtual {p2, v1}, Landroid/view/View;->setVisibility(I)V

    goto :goto_1

    .line 102
    :cond_3
    :goto_0
    invoke-virtual {p2, v1}, Landroid/view/View;->setVisibility(I)V

    :goto_1
    return-void

    :cond_4
    :goto_2
    return-void

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_1
        :pswitch_1
        :pswitch_1
        :pswitch_1
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method

.method private a(Lcom/moji/launchserver/AdCommonInterface$AdPosition;Landroid/view/View;Lcom/moji/mjad/enumdata/MojiAdGoneType;I)V
    .locals 1

    if-eqz p1, :cond_3

    if-eqz p2, :cond_3

    if-eqz p3, :cond_3

    .line 114
    sget-object v0, Lcom/moji/mjad/enumdata/MojiAdGoneType;->GONE_WITH_NORMAL:Lcom/moji/mjad/enumdata/MojiAdGoneType;

    .line 115
    invoke-virtual {p3, v0}, Lcom/moji/mjad/enumdata/MojiAdGoneType;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    sget-object v0, Lcom/moji/mjad/enumdata/MojiAdGoneType;->GONE_WITH_CLICK_CLOSE:Lcom/moji/mjad/enumdata/MojiAdGoneType;

    invoke-virtual {p3, v0}, Lcom/moji/mjad/enumdata/MojiAdGoneType;->equals(Ljava/lang/Object;)Z

    move-result p3

    if-nez p3, :cond_0

    goto :goto_1

    .line 121
    :cond_0
    invoke-virtual {p2}, Landroid/view/View;->clearAnimation()V

    .line 122
    sget-object p3, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$4;->a:[I

    invoke-virtual {p1}, Lcom/moji/launchserver/AdCommonInterface$AdPosition;->ordinal()I

    move-result p1

    aget p1, p3, p1

    const/4 p3, 0x6

    const/16 v0, 0x8

    if-eq p1, p3, :cond_2

    packed-switch p1, :pswitch_data_0

    .line 168
    invoke-virtual {p2, v0}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0

    :pswitch_0
    if-gtz p4, :cond_1

    .line 131
    invoke-virtual {p2}, Landroid/view/View;->getHeight()I

    move-result p4

    :cond_1
    const/4 p1, 0x2

    .line 133
    new-array p1, p1, [I

    const/4 p3, 0x0

    aput p3, p1, p3

    const/4 p3, 0x1

    neg-int p4, p4

    aput p4, p1, p3

    invoke-static {p1}, Landroid/animation/ValueAnimator;->ofInt([I)Landroid/animation/ValueAnimator;

    move-result-object p1

    const-wide/16 p3, 0x17c

    .line 134
    invoke-virtual {p1, p3, p4}, Landroid/animation/ValueAnimator;->setDuration(J)Landroid/animation/ValueAnimator;

    .line 135
    new-instance p3, Landroid/view/animation/DecelerateInterpolator;

    invoke-direct {p3}, Landroid/view/animation/DecelerateInterpolator;-><init>()V

    invoke-virtual {p1, p3}, Landroid/animation/ValueAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)V

    .line 136
    new-instance p3, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$2;

    invoke-direct {p3, p0, p2}, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$2;-><init>(Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator;Landroid/view/View;)V

    invoke-virtual {p1, p3}, Landroid/animation/ValueAnimator;->addUpdateListener(Landroid/animation/ValueAnimator$AnimatorUpdateListener;)V

    .line 147
    invoke-virtual {p1}, Landroid/animation/ValueAnimator;->start()V

    .line 148
    new-instance p3, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$3;

    invoke-direct {p3, p0, p2}, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator$3;-><init>(Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator;Landroid/view/View;)V

    invoke-virtual {p1, p3}, Landroid/animation/ValueAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V

    goto :goto_0

    .line 125
    :cond_2
    invoke-virtual {p2, v0}, Landroid/view/View;->setVisibility(I)V

    :goto_0
    return-void

    :cond_3
    :goto_1
    return-void

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_0
    .end packed-switch
.end method


# virtual methods
.method public a()V
    .locals 4

    .line 44
    iget-object v0, p0, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator;->a:Lcom/moji/launchserver/AdCommonInterface$AdPosition;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator;->c:Landroid/view/View;

    if-nez v0, :cond_0

    goto :goto_1

    .line 47
    :cond_0
    iget v0, p0, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator;->b:I

    const/16 v1, 0x8

    if-ne v0, v1, :cond_1

    .line 48
    iget-object v0, p0, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator;->a:Lcom/moji/launchserver/AdCommonInterface$AdPosition;

    iget-object v1, p0, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator;->c:Landroid/view/View;

    iget-object v2, p0, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator;->d:Lcom/moji/mjad/enumdata/MojiAdGoneType;

    iget v3, p0, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator;->e:I

    invoke-direct {p0, v0, v1, v2, v3}, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator;->a(Lcom/moji/launchserver/AdCommonInterface$AdPosition;Landroid/view/View;Lcom/moji/mjad/enumdata/MojiAdGoneType;I)V

    goto :goto_0

    .line 49
    :cond_1
    iget v0, p0, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator;->b:I

    if-nez v0, :cond_2

    .line 50
    iget-object v0, p0, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator;->a:Lcom/moji/launchserver/AdCommonInterface$AdPosition;

    iget-object v1, p0, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator;->c:Landroid/view/View;

    invoke-direct {p0, v0, v1}, Lcom/moji/mjad/common/view/multi/anim/MultiAdViewAnimGenerator;->a(Lcom/moji/launchserver/AdCommonInterface$AdPosition;Landroid/view/View;)V

    :cond_2
    :goto_0
    return-void

    :cond_3
    :goto_1
    return-void
.end method
