366 lines
7.6 KiB
Smali
366 lines
7.6 KiB
Smali
|
.class Landroidx/transition/ChangeTransform$Transforms;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "ChangeTransform.java"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
||
|
value = Landroidx/transition/ChangeTransform;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x8
|
||
|
name = "Transforms"
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field final mRotationX:F
|
||
|
|
||
|
.field final mRotationY:F
|
||
|
|
||
|
.field final mRotationZ:F
|
||
|
|
||
|
.field final mScaleX:F
|
||
|
|
||
|
.field final mScaleY:F
|
||
|
|
||
|
.field final mTranslationX:F
|
||
|
|
||
|
.field final mTranslationY:F
|
||
|
|
||
|
.field final mTranslationZ:F
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method constructor <init>(Landroid/view/View;)V
|
||
|
.locals 1
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
invoke-virtual {p1}, Landroid/view/View;->getTranslationX()F
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
iput v0, p0, Landroidx/transition/ChangeTransform$Transforms;->mTranslationX:F
|
||
|
|
||
|
invoke-virtual {p1}, Landroid/view/View;->getTranslationY()F
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
iput v0, p0, Landroidx/transition/ChangeTransform$Transforms;->mTranslationY:F
|
||
|
|
||
|
invoke-static {p1}, Landroidx/core/view/ViewCompat;->getTranslationZ(Landroid/view/View;)F
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
iput v0, p0, Landroidx/transition/ChangeTransform$Transforms;->mTranslationZ:F
|
||
|
|
||
|
invoke-virtual {p1}, Landroid/view/View;->getScaleX()F
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
iput v0, p0, Landroidx/transition/ChangeTransform$Transforms;->mScaleX:F
|
||
|
|
||
|
invoke-virtual {p1}, Landroid/view/View;->getScaleY()F
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
iput v0, p0, Landroidx/transition/ChangeTransform$Transforms;->mScaleY:F
|
||
|
|
||
|
invoke-virtual {p1}, Landroid/view/View;->getRotationX()F
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
iput v0, p0, Landroidx/transition/ChangeTransform$Transforms;->mRotationX:F
|
||
|
|
||
|
invoke-virtual {p1}, Landroid/view/View;->getRotationY()F
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
iput v0, p0, Landroidx/transition/ChangeTransform$Transforms;->mRotationY:F
|
||
|
|
||
|
invoke-virtual {p1}, Landroid/view/View;->getRotation()F
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
iput p1, p0, Landroidx/transition/ChangeTransform$Transforms;->mRotationZ:F
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public equals(Ljava/lang/Object;)Z
|
||
|
.locals 3
|
||
|
|
||
|
instance-of v0, p1, Landroidx/transition/ChangeTransform$Transforms;
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
if-nez v0, :cond_0
|
||
|
|
||
|
return v1
|
||
|
|
||
|
:cond_0
|
||
|
check-cast p1, Landroidx/transition/ChangeTransform$Transforms;
|
||
|
|
||
|
iget v0, p1, Landroidx/transition/ChangeTransform$Transforms;->mTranslationX:F
|
||
|
|
||
|
iget v2, p0, Landroidx/transition/ChangeTransform$Transforms;->mTranslationX:F
|
||
|
|
||
|
cmpl-float v0, v0, v2
|
||
|
|
||
|
if-nez v0, :cond_1
|
||
|
|
||
|
iget v0, p1, Landroidx/transition/ChangeTransform$Transforms;->mTranslationY:F
|
||
|
|
||
|
iget v2, p0, Landroidx/transition/ChangeTransform$Transforms;->mTranslationY:F
|
||
|
|
||
|
cmpl-float v0, v0, v2
|
||
|
|
||
|
if-nez v0, :cond_1
|
||
|
|
||
|
iget v0, p1, Landroidx/transition/ChangeTransform$Transforms;->mTranslationZ:F
|
||
|
|
||
|
iget v2, p0, Landroidx/transition/ChangeTransform$Transforms;->mTranslationZ:F
|
||
|
|
||
|
cmpl-float v0, v0, v2
|
||
|
|
||
|
if-nez v0, :cond_1
|
||
|
|
||
|
iget v0, p1, Landroidx/transition/ChangeTransform$Transforms;->mScaleX:F
|
||
|
|
||
|
iget v2, p0, Landroidx/transition/ChangeTransform$Transforms;->mScaleX:F
|
||
|
|
||
|
cmpl-float v0, v0, v2
|
||
|
|
||
|
if-nez v0, :cond_1
|
||
|
|
||
|
iget v0, p1, Landroidx/transition/ChangeTransform$Transforms;->mScaleY:F
|
||
|
|
||
|
iget v2, p0, Landroidx/transition/ChangeTransform$Transforms;->mScaleY:F
|
||
|
|
||
|
cmpl-float v0, v0, v2
|
||
|
|
||
|
if-nez v0, :cond_1
|
||
|
|
||
|
iget v0, p1, Landroidx/transition/ChangeTransform$Transforms;->mRotationX:F
|
||
|
|
||
|
iget v2, p0, Landroidx/transition/ChangeTransform$Transforms;->mRotationX:F
|
||
|
|
||
|
cmpl-float v0, v0, v2
|
||
|
|
||
|
if-nez v0, :cond_1
|
||
|
|
||
|
iget v0, p1, Landroidx/transition/ChangeTransform$Transforms;->mRotationY:F
|
||
|
|
||
|
iget v2, p0, Landroidx/transition/ChangeTransform$Transforms;->mRotationY:F
|
||
|
|
||
|
cmpl-float v0, v0, v2
|
||
|
|
||
|
if-nez v0, :cond_1
|
||
|
|
||
|
iget p1, p1, Landroidx/transition/ChangeTransform$Transforms;->mRotationZ:F
|
||
|
|
||
|
iget v0, p0, Landroidx/transition/ChangeTransform$Transforms;->mRotationZ:F
|
||
|
|
||
|
cmpl-float p1, p1, v0
|
||
|
|
||
|
if-nez p1, :cond_1
|
||
|
|
||
|
const/4 p1, 0x1
|
||
|
|
||
|
return p1
|
||
|
|
||
|
:cond_1
|
||
|
return v1
|
||
|
.end method
|
||
|
|
||
|
.method public hashCode()I
|
||
|
.locals 5
|
||
|
|
||
|
iget v0, p0, Landroidx/transition/ChangeTransform$Transforms;->mTranslationX:F
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
cmpl-float v3, v0, v2
|
||
|
|
||
|
if-eqz v3, :cond_0
|
||
|
|
||
|
invoke-static {v0}, Ljava/lang/Float;->floatToIntBits(F)I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
mul-int/lit8 v0, v0, 0x1f
|
||
|
|
||
|
iget v3, p0, Landroidx/transition/ChangeTransform$Transforms;->mTranslationY:F
|
||
|
|
||
|
cmpl-float v4, v3, v2
|
||
|
|
||
|
if-eqz v4, :cond_1
|
||
|
|
||
|
invoke-static {v3}, Ljava/lang/Float;->floatToIntBits(F)I
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_1
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
:goto_1
|
||
|
add-int/2addr v0, v3
|
||
|
|
||
|
mul-int/lit8 v0, v0, 0x1f
|
||
|
|
||
|
iget v3, p0, Landroidx/transition/ChangeTransform$Transforms;->mTranslationZ:F
|
||
|
|
||
|
cmpl-float v4, v3, v2
|
||
|
|
||
|
if-eqz v4, :cond_2
|
||
|
|
||
|
invoke-static {v3}, Ljava/lang/Float;->floatToIntBits(F)I
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:cond_2
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
:goto_2
|
||
|
add-int/2addr v0, v3
|
||
|
|
||
|
mul-int/lit8 v0, v0, 0x1f
|
||
|
|
||
|
iget v3, p0, Landroidx/transition/ChangeTransform$Transforms;->mScaleX:F
|
||
|
|
||
|
cmpl-float v4, v3, v2
|
||
|
|
||
|
if-eqz v4, :cond_3
|
||
|
|
||
|
invoke-static {v3}, Ljava/lang/Float;->floatToIntBits(F)I
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
:cond_3
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
:goto_3
|
||
|
add-int/2addr v0, v3
|
||
|
|
||
|
mul-int/lit8 v0, v0, 0x1f
|
||
|
|
||
|
iget v3, p0, Landroidx/transition/ChangeTransform$Transforms;->mScaleY:F
|
||
|
|
||
|
cmpl-float v4, v3, v2
|
||
|
|
||
|
if-eqz v4, :cond_4
|
||
|
|
||
|
invoke-static {v3}, Ljava/lang/Float;->floatToIntBits(F)I
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
goto :goto_4
|
||
|
|
||
|
:cond_4
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
:goto_4
|
||
|
add-int/2addr v0, v3
|
||
|
|
||
|
mul-int/lit8 v0, v0, 0x1f
|
||
|
|
||
|
iget v3, p0, Landroidx/transition/ChangeTransform$Transforms;->mRotationX:F
|
||
|
|
||
|
cmpl-float v4, v3, v2
|
||
|
|
||
|
if-eqz v4, :cond_5
|
||
|
|
||
|
invoke-static {v3}, Ljava/lang/Float;->floatToIntBits(F)I
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
goto :goto_5
|
||
|
|
||
|
:cond_5
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
:goto_5
|
||
|
add-int/2addr v0, v3
|
||
|
|
||
|
mul-int/lit8 v0, v0, 0x1f
|
||
|
|
||
|
iget v3, p0, Landroidx/transition/ChangeTransform$Transforms;->mRotationY:F
|
||
|
|
||
|
cmpl-float v4, v3, v2
|
||
|
|
||
|
if-eqz v4, :cond_6
|
||
|
|
||
|
invoke-static {v3}, Ljava/lang/Float;->floatToIntBits(F)I
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
goto :goto_6
|
||
|
|
||
|
:cond_6
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
:goto_6
|
||
|
add-int/2addr v0, v3
|
||
|
|
||
|
mul-int/lit8 v0, v0, 0x1f
|
||
|
|
||
|
iget v3, p0, Landroidx/transition/ChangeTransform$Transforms;->mRotationZ:F
|
||
|
|
||
|
cmpl-float v2, v3, v2
|
||
|
|
||
|
if-eqz v2, :cond_7
|
||
|
|
||
|
invoke-static {v3}, Ljava/lang/Float;->floatToIntBits(F)I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
:cond_7
|
||
|
add-int/2addr v0, v1
|
||
|
|
||
|
return v0
|
||
|
.end method
|
||
|
|
||
|
.method public restore(Landroid/view/View;)V
|
||
|
.locals 9
|
||
|
|
||
|
iget v1, p0, Landroidx/transition/ChangeTransform$Transforms;->mTranslationX:F
|
||
|
|
||
|
iget v2, p0, Landroidx/transition/ChangeTransform$Transforms;->mTranslationY:F
|
||
|
|
||
|
iget v3, p0, Landroidx/transition/ChangeTransform$Transforms;->mTranslationZ:F
|
||
|
|
||
|
iget v4, p0, Landroidx/transition/ChangeTransform$Transforms;->mScaleX:F
|
||
|
|
||
|
iget v5, p0, Landroidx/transition/ChangeTransform$Transforms;->mScaleY:F
|
||
|
|
||
|
iget v6, p0, Landroidx/transition/ChangeTransform$Transforms;->mRotationX:F
|
||
|
|
||
|
iget v7, p0, Landroidx/transition/ChangeTransform$Transforms;->mRotationY:F
|
||
|
|
||
|
iget v8, p0, Landroidx/transition/ChangeTransform$Transforms;->mRotationZ:F
|
||
|
|
||
|
move-object v0, p1
|
||
|
|
||
|
invoke-static/range {v0 .. v8}, Landroidx/transition/ChangeTransform;->setTransforms(Landroid/view/View;FFFFFFFF)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|