BaseLayoutAnimation.smali
.class abstract Lcom/facebook/react/uimanager/layoutanimation/BaseLayoutAnimation;
.super Lcom/facebook/react/uimanager/layoutanimation/AbstractLayoutAnimation;
.source "SourceFile"
# direct methods
.method public constructor <init>()V
.registers 1
invoke-direct {p0}, Lcom/facebook/react/uimanager/layoutanimation/AbstractLayoutAnimation;-><init>()V
return-void
.end method
# virtual methods
.method public createAnimationImpl(Landroid/view/View;IIII)Landroid/view/animation/Animation;
.registers 15
.line 1
iget-object p2, p0, Lcom/facebook/react/uimanager/layoutanimation/AbstractLayoutAnimation;->mAnimatedProperty:Lcom/facebook/react/uimanager/layoutanimation/AnimatedPropertyType;
if-eqz p2, :cond_c8
.line 2
sget-object p3, Lcom/facebook/react/uimanager/layoutanimation/BaseLayoutAnimation$1;->$SwitchMap$com$facebook$react$uimanager$layoutanimation$AnimatedPropertyType:[I
invoke-virtual {p2}, Ljava/lang/Enum;->ordinal()I
move-result p2
aget p2, p3, p2
const/4 p3, 0x1
const/4 p4, 0x0
if-eq p2, p3, :cond_ab
const/4 p1, 0x2
if-eq p2, p1, :cond_82
const/4 p1, 0x3
if-eq p2, p1, :cond_58
const/4 p1, 0x4
if-ne p2, p1, :cond_43
.line 3
invoke-virtual {p0}, Lcom/facebook/react/uimanager/layoutanimation/BaseLayoutAnimation;->isReverse()Z
move-result p1
if-eqz p1, :cond_24
const/high16 p1, 0x3f800000 # 1.0f
const/high16 v3, 0x3f800000 # 1.0f
goto :goto_26
:cond_24
const/4 p1, 0x0
const/4 v3, 0x0
.line 4
:goto_26
invoke-virtual {p0}, Lcom/facebook/react/uimanager/layoutanimation/BaseLayoutAnimation;->isReverse()Z
move-result p1
if-eqz p1, :cond_2f
const/4 p1, 0x0
const/4 v4, 0x0
goto :goto_33
:cond_2f
const/high16 p1, 0x3f800000 # 1.0f
const/high16 v4, 0x3f800000 # 1.0f
.line 5
:goto_33
new-instance p1, Landroid/view/animation/ScaleAnimation;
const/high16 v1, 0x3f800000 # 1.0f
const/high16 v2, 0x3f800000 # 1.0f
const/4 v5, 0x1
const/4 v6, 0x0
const/4 v7, 0x1
const/high16 v8, 0x3f000000 # 0.5f
move-object v0, p1
invoke-direct/range {v0 .. v8}, Landroid/view/animation/ScaleAnimation;-><init>(FFFFIFIF)V
return-object p1
.line 6
:cond_43
new-instance p1, Lcom/facebook/react/uimanager/IllegalViewOperationException;
const-string p2, "Missing animation for property : "
.line 7
invoke-static {p2}, Landroid/support/v4/media/c;->c(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p2
.line 8
iget-object p3, p0, Lcom/facebook/react/uimanager/layoutanimation/AbstractLayoutAnimation;->mAnimatedProperty:Lcom/facebook/react/uimanager/layoutanimation/AnimatedPropertyType;
invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Lcom/facebook/react/uimanager/IllegalViewOperationException;-><init>(Ljava/lang/String;)V
throw p1
.line 9
:cond_58
invoke-virtual {p0}, Lcom/facebook/react/uimanager/layoutanimation/BaseLayoutAnimation;->isReverse()Z
move-result p1
if-eqz p1, :cond_63
const/high16 p1, 0x3f800000 # 1.0f
const/high16 v1, 0x3f800000 # 1.0f
goto :goto_65
:cond_63
const/4 p1, 0x0
const/4 v1, 0x0
.line 10
:goto_65
invoke-virtual {p0}, Lcom/facebook/react/uimanager/layoutanimation/BaseLayoutAnimation;->isReverse()Z
move-result p1
if-eqz p1, :cond_6e
const/4 p1, 0x0
const/4 v2, 0x0
goto :goto_72
:cond_6e
const/high16 p1, 0x3f800000 # 1.0f
const/high16 v2, 0x3f800000 # 1.0f
.line 11
:goto_72
new-instance p1, Landroid/view/animation/ScaleAnimation;
const/high16 v3, 0x3f800000 # 1.0f
const/high16 v4, 0x3f800000 # 1.0f
const/4 v5, 0x1
const/high16 v6, 0x3f000000 # 0.5f
const/4 v7, 0x1
const/4 v8, 0x0
move-object v0, p1
invoke-direct/range {v0 .. v8}, Landroid/view/animation/ScaleAnimation;-><init>(FFFFIFIF)V
return-object p1
.line 12
:cond_82
invoke-virtual {p0}, Lcom/facebook/react/uimanager/layoutanimation/BaseLayoutAnimation;->isReverse()Z
move-result p1
if-eqz p1, :cond_8d
const/high16 p1, 0x3f800000 # 1.0f
const/high16 v3, 0x3f800000 # 1.0f
goto :goto_8f
:cond_8d
const/4 p1, 0x0
const/4 v3, 0x0
.line 13
:goto_8f
invoke-virtual {p0}, Lcom/facebook/react/uimanager/layoutanimation/BaseLayoutAnimation;->isReverse()Z
move-result p1
if-eqz p1, :cond_98
const/4 p1, 0x0
const/4 v4, 0x0
goto :goto_9c
:cond_98
const/high16 p1, 0x3f800000 # 1.0f
const/high16 v4, 0x3f800000 # 1.0f
.line 14
:goto_9c
new-instance p1, Landroid/view/animation/ScaleAnimation;
const/4 v5, 0x1
const/high16 v6, 0x3f000000 # 0.5f
const/4 v7, 0x1
const/high16 v8, 0x3f000000 # 0.5f
move-object v0, p1
move v1, v3
move v2, v4
invoke-direct/range {v0 .. v8}, Landroid/view/animation/ScaleAnimation;-><init>(FFFFIFIF)V
return-object p1
.line 15
:cond_ab
invoke-virtual {p0}, Lcom/facebook/react/uimanager/layoutanimation/BaseLayoutAnimation;->isReverse()Z
move-result p2
if-eqz p2, :cond_b6
invoke-virtual {p1}, Landroid/view/View;->getAlpha()F
move-result p2
goto :goto_b7
:cond_b6
const/4 p2, 0x0
.line 16
:goto_b7
invoke-virtual {p0}, Lcom/facebook/react/uimanager/layoutanimation/BaseLayoutAnimation;->isReverse()Z
move-result p3
if-eqz p3, :cond_be
goto :goto_c2
:cond_be
invoke-virtual {p1}, Landroid/view/View;->getAlpha()F
move-result p4
.line 17
:goto_c2
new-instance p3, Lcom/facebook/react/uimanager/layoutanimation/OpacityAnimation;
invoke-direct {p3, p1, p2, p4}, Lcom/facebook/react/uimanager/layoutanimation/OpacityAnimation;-><init>(Landroid/view/View;FF)V
return-object p3
.line 18
:cond_c8
new-instance p1, Lcom/facebook/react/uimanager/IllegalViewOperationException;
const-string p2, "Missing animated property from animation config"
invoke-direct {p1, p2}, Lcom/facebook/react/uimanager/IllegalViewOperationException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public abstract isReverse()Z
.end method
.method public isValid()Z
.registers 2
iget v0, p0, Lcom/facebook/react/uimanager/layoutanimation/AbstractLayoutAnimation;->mDurationMs:I
if-lez v0, :cond_a
iget-object v0, p0, Lcom/facebook/react/uimanager/layoutanimation/AbstractLayoutAnimation;->mAnimatedProperty:Lcom/facebook/react/uimanager/layoutanimation/AnimatedPropertyType;
if-eqz v0, :cond_a
const/4 v0, 0x1
goto :goto_b
:cond_a
const/4 v0, 0x0
:goto_b
return v0
.end method