316 lines
9.1 KiB
Smali
316 lines
9.1 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 public static final ANIMATE_RELATIVE_TO:I = 0x5
|
|
|
|
.field public static final MOTION_DRAW_PATH:I = 0x4
|
|
|
|
.field public static final MOTION_STAGGER:I = 0x6
|
|
|
|
.field public static final PATH_MOTION_ARC:I = 0x2
|
|
|
|
.field public static final TRANSITION_EASING:I = 0x3
|
|
|
|
.field public static final TRANSITION_PATH_ROTATE:I = 0x1
|
|
|
|
.field public static mapToConstant:Landroid/util/SparseIntArray;
|
|
|
|
|
|
# instance fields
|
|
.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 mTransitionEasing:Ljava/lang/String;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 3
|
|
|
|
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;
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
sget-object v0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mapToConstant:Landroid/util/SparseIntArray;
|
|
|
|
sget v1, Landroidx/constraintlayout/widget/R$styleable;->Motion_animate_relativeTo:I
|
|
|
|
const/4 v2, 0x5
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/util/SparseIntArray;->append(II)V
|
|
|
|
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, 0x6
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/util/SparseIntArray;->append(II)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 3
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-boolean v0, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mApply:Z
|
|
|
|
const/4 v1, -0x1
|
|
|
|
iput v1, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mAnimateRelativeTo:I
|
|
|
|
const/4 v2, 0x0
|
|
|
|
iput-object v2, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mTransitionEasing:Ljava/lang/String;
|
|
|
|
iput v1, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mPathMotionArc:I
|
|
|
|
iput v0, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mDrawPath:I
|
|
|
|
const/high16 v0, 0x7fc00000 # Float.NaN
|
|
|
|
iput v0, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mMotionStagger:F
|
|
|
|
iput v0, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mPathRotate:F
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public copyFrom(Landroidx/constraintlayout/widget/ConstraintSet$Motion;)V
|
|
.locals 1
|
|
|
|
iget-boolean v0, p1, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mApply:Z
|
|
|
|
iput-boolean v0, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mApply:Z
|
|
|
|
iget v0, p1, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mAnimateRelativeTo:I
|
|
|
|
iput v0, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mAnimateRelativeTo:I
|
|
|
|
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;
|
|
|
|
iget v0, p1, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mPathMotionArc:I
|
|
|
|
iput v0, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mPathMotionArc:I
|
|
|
|
iget v0, p1, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mDrawPath:I
|
|
|
|
iput v0, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mDrawPath:I
|
|
|
|
iget v0, p1, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mPathRotate:F
|
|
|
|
iput v0, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mPathRotate:F
|
|
|
|
iget p1, p1, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mMotionStagger:F
|
|
|
|
iput p1, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mMotionStagger:F
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public fillFromAttributeList(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 5
|
|
|
|
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
|
|
|
|
iput-boolean p2, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mApply:Z
|
|
|
|
invoke-virtual {p1}, Landroid/content/res/TypedArray;->getIndexCount()I
|
|
|
|
move-result p2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-ge v1, p2, :cond_1
|
|
|
|
invoke-virtual {p1, v1}, Landroid/content/res/TypedArray;->getIndex(I)I
|
|
|
|
move-result v2
|
|
|
|
sget-object v3, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mapToConstant:Landroid/util/SparseIntArray;
|
|
|
|
invoke-virtual {v3, v2}, Landroid/util/SparseIntArray;->get(I)I
|
|
|
|
move-result v3
|
|
|
|
packed-switch v3, :pswitch_data_0
|
|
|
|
goto :goto_1
|
|
|
|
:pswitch_0
|
|
iget v3, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mMotionStagger:F
|
|
|
|
invoke-virtual {p1, v2, v3}, Landroid/content/res/TypedArray;->getFloat(IF)F
|
|
|
|
move-result v2
|
|
|
|
iput v2, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mMotionStagger:F
|
|
|
|
goto :goto_1
|
|
|
|
:pswitch_1
|
|
iget v3, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mAnimateRelativeTo:I
|
|
|
|
invoke-static {p1, v2, v3}, Landroidx/constraintlayout/widget/ConstraintSet;->access$100(Landroid/content/res/TypedArray;II)I
|
|
|
|
move-result v2
|
|
|
|
iput v2, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mAnimateRelativeTo:I
|
|
|
|
goto :goto_1
|
|
|
|
:pswitch_2
|
|
invoke-virtual {p1, v2, v0}, Landroid/content/res/TypedArray;->getInt(II)I
|
|
|
|
move-result v2
|
|
|
|
iput v2, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mDrawPath:I
|
|
|
|
goto :goto_1
|
|
|
|
:pswitch_3
|
|
invoke-virtual {p1, v2}, Landroid/content/res/TypedArray;->peekValue(I)Landroid/util/TypedValue;
|
|
|
|
move-result-object v3
|
|
|
|
iget v3, v3, Landroid/util/TypedValue;->type:I
|
|
|
|
const/4 v4, 0x3
|
|
|
|
if-ne v3, v4, :cond_0
|
|
|
|
invoke-virtual {p1, v2}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
iput-object v2, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mTransitionEasing:Ljava/lang/String;
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
sget-object v3, Landroidx/constraintlayout/motion/utils/Easing;->NAMED_EASING:[Ljava/lang/String;
|
|
|
|
invoke-virtual {p1, v2, v0}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
move-result v2
|
|
|
|
aget-object v2, v3, v2
|
|
|
|
iput-object v2, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mTransitionEasing:Ljava/lang/String;
|
|
|
|
goto :goto_1
|
|
|
|
:pswitch_4
|
|
iget v3, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mPathMotionArc:I
|
|
|
|
invoke-virtual {p1, v2, v3}, Landroid/content/res/TypedArray;->getInt(II)I
|
|
|
|
move-result v2
|
|
|
|
iput v2, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mPathMotionArc:I
|
|
|
|
goto :goto_1
|
|
|
|
:pswitch_5
|
|
iget v3, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mPathRotate:F
|
|
|
|
invoke-virtual {p1, v2, v3}, Landroid/content/res/TypedArray;->getFloat(IF)F
|
|
|
|
move-result v2
|
|
|
|
iput v2, p0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mPathRotate:F
|
|
|
|
:goto_1
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
return-void
|
|
|
|
nop
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x1
|
|
:pswitch_5
|
|
:pswitch_4
|
|
:pswitch_3
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|