Files
ctf/2024/insomnihack/mobile/Notes/smali/androidx/constraintlayout/widget/ConstraintSet$Motion.smali
2025-06-06 03:13:31 +02:00

586 lines
16 KiB
Smali

.class public Landroidx/constraintlayout/widget/ConstraintSet$Motion;
.super Ljava/lang/Object;
.source "ConstraintSet.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/constraintlayout/widget/ConstraintSet;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Motion"
.end annotation
# static fields
.field private static final ANIMATE_CIRCLE_ANGLE_TO:I = 0x6
.field private static final ANIMATE_RELATIVE_TO:I = 0x5
.field private static final INTERPOLATOR_REFERENCE_ID:I = -0x2
.field private static final INTERPOLATOR_UNDEFINED:I = -0x3
.field private static final MOTION_DRAW_PATH:I = 0x4
.field private static final MOTION_STAGGER:I = 0x7
.field private static final PATH_MOTION_ARC:I = 0x2
.field private static final QUANTIZE_MOTION_INTERPOLATOR:I = 0xa
.field private static final QUANTIZE_MOTION_PHASE:I = 0x9
.field private static final QUANTIZE_MOTION_STEPS:I = 0x8
.field private static final SPLINE_STRING:I = -0x1
.field private static final TRANSITION_EASING:I = 0x3
.field private static final TRANSITION_PATH_ROTATE:I = 0x1
.field private static mapToConstant:Landroid/util/SparseIntArray;
# instance fields
.field public mAnimateCircleAngleTo:I
.field public mAnimateRelativeTo:I
.field public mApply:Z
.field public mDrawPath:I
.field public mMotionStagger:F
.field public mPathMotionArc:I
.field public mPathRotate:F
.field public mPolarRelativeTo:I
.field public mQuantizeInterpolatorID:I
.field public mQuantizeInterpolatorString:Ljava/lang/String;
.field public mQuantizeInterpolatorType:I
.field public mQuantizeMotionPhase:F
.field public mQuantizeMotionSteps:I
.field public mTransitionEasing:Ljava/lang/String;
# direct methods
.method static constructor <clinit>()V
.locals 3
.line 1731
new-instance v0, Landroid/util/SparseIntArray;
invoke-direct {v0}, Landroid/util/SparseIntArray;-><init>()V
sput-object v0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mapToConstant:Landroid/util/SparseIntArray;
.line 1745
sget v1, Landroidx/constraintlayout/widget/R$styleable;->Motion_motionPathRotate:I
const/4 v2, 0x1
invoke-virtual {v0, v1, v2}, Landroid/util/SparseIntArray;->append(II)V
.line 1746
sget-object v0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mapToConstant:Landroid/util/SparseIntArray;
sget v1, Landroidx/constraintlayout/widget/R$styleable;->Motion_pathMotionArc:I
const/4 v2, 0x2
invoke-virtual {v0, v1, v2}, Landroid/util/SparseIntArray;->append(II)V
.line 1747
sget-object v0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mapToConstant:Landroid/util/SparseIntArray;
sget v1, Landroidx/constraintlayout/widget/R$styleable;->Motion_transitionEasing:I
const/4 v2, 0x3
invoke-virtual {v0, v1, v2}, Landroid/util/SparseIntArray;->append(II)V
.line 1748
sget-object v0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mapToConstant:Landroid/util/SparseIntArray;
sget v1, Landroidx/constraintlayout/widget/R$styleable;->Motion_drawPath:I
const/4 v2, 0x4
invoke-virtual {v0, v1, v2}, Landroid/util/SparseIntArray;->append(II)V
.line 1749
sget-object v0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mapToConstant:Landroid/util/SparseIntArray;
sget v1, Landroidx/constraintlayout/widget/R$styleable;->Motion_animateRelativeTo:I
const/4 v2, 0x5
invoke-virtual {v0, v1, v2}, Landroid/util/SparseIntArray;->append(II)V
.line 1750
sget-object v0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mapToConstant:Landroid/util/SparseIntArray;
sget v1, Landroidx/constraintlayout/widget/R$styleable;->Motion_animateCircleAngleTo:I
const/4 v2, 0x6
invoke-virtual {v0, v1, v2}, Landroid/util/SparseIntArray;->append(II)V
.line 1751
sget-object v0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mapToConstant:Landroid/util/SparseIntArray;
sget v1, Landroidx/constraintlayout/widget/R$styleable;->Motion_motionStagger:I
const/4 v2, 0x7
invoke-virtual {v0, v1, v2}, Landroid/util/SparseIntArray;->append(II)V
.line 1752
sget-object v0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mapToConstant:Landroid/util/SparseIntArray;
sget v1, Landroidx/constraintlayout/widget/R$styleable;->Motion_quantizeMotionSteps:I
const/16 v2, 0x8
invoke-virtual {v0, v1, v2}, Landroid/util/SparseIntArray;->append(II)V
.line 1753
sget-object v0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mapToConstant:Landroid/util/SparseIntArray;
sget v1, Landroidx/constraintlayout/widget/R$styleable;->Motion_quantizeMotionPhase:I
const/16 v2, 0x9
invoke-virtual {v0, v1, v2}, Landroid/util/SparseIntArray;->append(II)V
.line 1754
sget-object v0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mapToConstant:Landroid/util/SparseIntArray;
sget v1, Landroidx/constraintlayout/widget/R$styleable;->Motion_quantizeMotionInterpolator:I
const/16 v2, 0xa
invoke-virtual {v0, v1, v2}, Landroid/util/SparseIntArray;->append(II)V
return-void
.end method
.method public constructor <init>()V
.locals 3
.line 1700
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
.line 1701
iput-boolean v0, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mApply:Z
const/4 v1, -0x1
.line 1702
iput v1, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mAnimateRelativeTo:I
.line 1703
iput v0, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mAnimateCircleAngleTo:I
const/4 v2, 0x0
.line 1704
iput-object v2, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mTransitionEasing:Ljava/lang/String;
.line 1705
iput v1, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mPathMotionArc:I
.line 1706
iput v0, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mDrawPath:I
const/high16 v0, 0x7fc00000 # Float.NaN
.line 1707
iput v0, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mMotionStagger:F
.line 1708
iput v1, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mPolarRelativeTo:I
.line 1709
iput v0, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mPathRotate:F
.line 1710
iput v0, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mQuantizeMotionPhase:F
.line 1711
iput v1, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mQuantizeMotionSteps:I
.line 1712
iput-object v2, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mQuantizeInterpolatorString:Ljava/lang/String;
const/4 v0, -0x3
.line 1713
iput v0, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mQuantizeInterpolatorType:I
.line 1714
iput v1, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mQuantizeInterpolatorID:I
return-void
.end method
# virtual methods
.method public copyFrom(Landroidx/constraintlayout/widget/ConstraintSet$Motion;)V
.locals 1
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"src"
}
.end annotation
.line 1721
iget-boolean v0, p1, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mApply:Z
iput-boolean v0, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mApply:Z
.line 1722
iget v0, p1, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mAnimateRelativeTo:I
iput v0, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mAnimateRelativeTo:I
.line 1723
iget-object v0, p1, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mTransitionEasing:Ljava/lang/String;
iput-object v0, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mTransitionEasing:Ljava/lang/String;
.line 1724
iget v0, p1, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mPathMotionArc:I
iput v0, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mPathMotionArc:I
.line 1725
iget v0, p1, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mDrawPath:I
iput v0, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mDrawPath:I
.line 1726
iget v0, p1, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mPathRotate:F
iput v0, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mPathRotate:F
.line 1727
iget v0, p1, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mMotionStagger:F
iput v0, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mMotionStagger:F
.line 1728
iget p1, p1, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mPolarRelativeTo:I
iput p1, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mPolarRelativeTo:I
return-void
.end method
.method fillFromAttributeList(Landroid/content/Context;Landroid/util/AttributeSet;)V
.locals 9
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0,
0x0
}
names = {
"context",
"attrs"
}
.end annotation
.line 1758
sget-object v0, Landroidx/constraintlayout/widget/R$styleable;->Motion:[I
invoke-virtual {p1, p2, v0}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;
move-result-object p1
const/4 p2, 0x1
.line 1759
iput-boolean p2, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mApply:Z
.line 1760
invoke-virtual {p1}, Landroid/content/res/TypedArray;->getIndexCount()I
move-result v0
const/4 v1, 0x0
move v2, v1
:goto_0
if-ge v2, v0, :cond_5
.line 1762
invoke-virtual {p1, v2}, Landroid/content/res/TypedArray;->getIndex(I)I
move-result v3
.line 1764
sget-object v4, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mapToConstant:Landroid/util/SparseIntArray;
invoke-virtual {v4, v3}, Landroid/util/SparseIntArray;->get(I)I
move-result v4
const/4 v5, 0x3
packed-switch v4, :pswitch_data_0
goto/16 :goto_1
.line 1798
:pswitch_0
invoke-virtual {p1, v3}, Landroid/content/res/TypedArray;->peekValue(I)Landroid/util/TypedValue;
move-result-object v4
.line 1800
iget v6, v4, Landroid/util/TypedValue;->type:I
const/4 v7, -0x2
const/4 v8, -0x1
if-ne v6, p2, :cond_0
.line 1801
invoke-virtual {p1, v3, v8}, Landroid/content/res/TypedArray;->getResourceId(II)I
move-result v3
iput v3, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mQuantizeInterpolatorID:I
if-eq v3, v8, :cond_4
.line 1803
iput v7, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mQuantizeInterpolatorType:I
goto/16 :goto_1
.line 1805
:cond_0
iget v4, v4, Landroid/util/TypedValue;->type:I
if-ne v4, v5, :cond_2
.line 1806
invoke-virtual {p1, v3}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
move-result-object v4
iput-object v4, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mQuantizeInterpolatorString:Ljava/lang/String;
.line 1807
const-string v5, "/"
invoke-virtual {v4, v5}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I
move-result v4
if-lez v4, :cond_1
.line 1808
invoke-virtual {p1, v3, v8}, Landroid/content/res/TypedArray;->getResourceId(II)I
move-result v3
iput v3, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mQuantizeInterpolatorID:I
.line 1809
iput v7, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mQuantizeInterpolatorType:I
goto/16 :goto_1
.line 1811
:cond_1
iput v8, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mQuantizeInterpolatorType:I
goto/16 :goto_1
.line 1814
:cond_2
iget v4, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mQuantizeInterpolatorID:I
invoke-virtual {p1, v3, v4}, Landroid/content/res/TypedArray;->getInteger(II)I
move-result v3
iput v3, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mQuantizeInterpolatorType:I
goto :goto_1
.line 1795
:pswitch_1
iget v4, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mQuantizeMotionPhase:F
invoke-virtual {p1, v3, v4}, Landroid/content/res/TypedArray;->getFloat(IF)F
move-result v3
iput v3, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mQuantizeMotionPhase:F
goto :goto_1
.line 1792
:pswitch_2
iget v4, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mQuantizeMotionSteps:I
invoke-virtual {p1, v3, v4}, Landroid/content/res/TypedArray;->getInteger(II)I
move-result v3
iput v3, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mQuantizeMotionSteps:I
goto :goto_1
.line 1789
:pswitch_3
iget v4, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mMotionStagger:F
invoke-virtual {p1, v3, v4}, Landroid/content/res/TypedArray;->getFloat(IF)F
move-result v3
iput v3, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mMotionStagger:F
goto :goto_1
.line 1786
:pswitch_4
iget v4, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mAnimateCircleAngleTo:I
invoke-virtual {p1, v3, v4}, Landroid/content/res/TypedArray;->getInteger(II)I
move-result v3
iput v3, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mAnimateCircleAngleTo:I
goto :goto_1
.line 1783
:pswitch_5
iget v4, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mAnimateRelativeTo:I
invoke-static {p1, v3, v4}, Landroidx/constraintlayout/widget/ConstraintSet;->access$100(Landroid/content/res/TypedArray;II)I
move-result v3
iput v3, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mAnimateRelativeTo:I
goto :goto_1
.line 1780
:pswitch_6
invoke-virtual {p1, v3, v1}, Landroid/content/res/TypedArray;->getInt(II)I
move-result v3
iput v3, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mDrawPath:I
goto :goto_1
.line 1772
:pswitch_7
invoke-virtual {p1, v3}, Landroid/content/res/TypedArray;->peekValue(I)Landroid/util/TypedValue;
move-result-object v4
.line 1773
iget v4, v4, Landroid/util/TypedValue;->type:I
if-ne v4, v5, :cond_3
.line 1774
invoke-virtual {p1, v3}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
move-result-object v3
iput-object v3, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mTransitionEasing:Ljava/lang/String;
goto :goto_1
.line 1776
:cond_3
sget-object v4, Landroidx/constraintlayout/core/motion/utils/Easing;->NAMED_EASING:[Ljava/lang/String;
invoke-virtual {p1, v3, v1}, Landroid/content/res/TypedArray;->getInteger(II)I
move-result v3
aget-object v3, v4, v3
iput-object v3, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mTransitionEasing:Ljava/lang/String;
goto :goto_1
.line 1769
:pswitch_8
iget v4, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mPathMotionArc:I
invoke-virtual {p1, v3, v4}, Landroid/content/res/TypedArray;->getInt(II)I
move-result v3
iput v3, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mPathMotionArc:I
goto :goto_1
.line 1766
:pswitch_9
iget v4, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mPathRotate:F
invoke-virtual {p1, v3, v4}, Landroid/content/res/TypedArray;->getFloat(IF)F
move-result v3
iput v3, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mPathRotate:F
:cond_4
:goto_1
add-int/lit8 v2, v2, 0x1
goto/16 :goto_0
.line 1820
:cond_5
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
return-void
nop
:pswitch_data_0
.packed-switch 0x1
:pswitch_9
:pswitch_8
:pswitch_7
:pswitch_6
:pswitch_5
:pswitch_4
:pswitch_3
:pswitch_2
:pswitch_1
:pswitch_0
.end packed-switch
.end method