.class public Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache; .super Ljava/lang/Object; .source "MotionLayout.java" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Landroidx/constraintlayout/motion/widget/MotionLayout; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x1 name = "StateCache" .end annotation # instance fields .field public final KeyEndState:Ljava/lang/String; .field public final KeyProgress:Ljava/lang/String; .field public final KeyStartState:Ljava/lang/String; .field public final KeyVelocity:Ljava/lang/String; .field public endState:I .field public mProgress:F .field public mVelocity:F .field public startState:I .field public final synthetic this$0:Landroidx/constraintlayout/motion/widget/MotionLayout; # direct methods .method public constructor (Landroidx/constraintlayout/motion/widget/MotionLayout;)V .locals 0 iput-object p1, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->this$0:Landroidx/constraintlayout/motion/widget/MotionLayout; invoke-direct {p0}, Ljava/lang/Object;->()V const/high16 p1, 0x7fc00000 # Float.NaN iput p1, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->mProgress:F iput p1, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->mVelocity:F const/4 p1, -0x1 iput p1, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->startState:I iput p1, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->endState:I const-string p1, "motion.progress" iput-object p1, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->KeyProgress:Ljava/lang/String; const-string p1, "motion.velocity" iput-object p1, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->KeyVelocity:Ljava/lang/String; const-string p1, "motion.StartState" iput-object p1, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->KeyStartState:Ljava/lang/String; const-string p1, "motion.EndState" iput-object p1, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->KeyEndState:Ljava/lang/String; return-void .end method # virtual methods .method public apply()V .locals 4 iget v0, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->startState:I const/4 v1, -0x1 if-ne v0, v1, :cond_0 iget v2, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->endState:I if-eq v2, v1, :cond_3 :cond_0 if-ne v0, v1, :cond_1 iget-object v0, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->this$0:Landroidx/constraintlayout/motion/widget/MotionLayout; iget v2, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->endState:I invoke-virtual {v0, v2}, Landroidx/constraintlayout/motion/widget/MotionLayout;->transitionToState(I)V goto :goto_0 :cond_1 iget v2, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->endState:I if-ne v2, v1, :cond_2 iget-object v2, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->this$0:Landroidx/constraintlayout/motion/widget/MotionLayout; invoke-virtual {v2, v0, v1, v1}, Landroidx/constraintlayout/motion/widget/MotionLayout;->setState(III)V goto :goto_0 :cond_2 iget-object v3, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->this$0:Landroidx/constraintlayout/motion/widget/MotionLayout; invoke-virtual {v3, v0, v2}, Landroidx/constraintlayout/motion/widget/MotionLayout;->setTransition(II)V :goto_0 iget-object v0, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->this$0:Landroidx/constraintlayout/motion/widget/MotionLayout; sget-object v2, Landroidx/constraintlayout/motion/widget/MotionLayout$TransitionState;->SETUP:Landroidx/constraintlayout/motion/widget/MotionLayout$TransitionState; invoke-virtual {v0, v2}, Landroidx/constraintlayout/motion/widget/MotionLayout;->setState(Landroidx/constraintlayout/motion/widget/MotionLayout$TransitionState;)V :cond_3 iget v0, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->mVelocity:F invoke-static {v0}, Ljava/lang/Float;->isNaN(F)Z move-result v0 if-eqz v0, :cond_5 iget v0, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->mProgress:F invoke-static {v0}, Ljava/lang/Float;->isNaN(F)Z move-result v0 if-eqz v0, :cond_4 return-void :cond_4 iget-object v0, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->this$0:Landroidx/constraintlayout/motion/widget/MotionLayout; iget v1, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->mProgress:F invoke-virtual {v0, v1}, Landroidx/constraintlayout/motion/widget/MotionLayout;->setProgress(F)V return-void :cond_5 iget-object v0, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->this$0:Landroidx/constraintlayout/motion/widget/MotionLayout; iget v2, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->mProgress:F iget v3, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->mVelocity:F invoke-virtual {v0, v2, v3}, Landroidx/constraintlayout/motion/widget/MotionLayout;->setProgress(FF)V const/high16 v0, 0x7fc00000 # Float.NaN iput v0, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->mProgress:F iput v0, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->mVelocity:F iput v1, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->startState:I iput v1, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->endState:I return-void .end method .method public getTransitionState()Landroid/os/Bundle; .locals 3 new-instance v0, Landroid/os/Bundle; invoke-direct {v0}, Landroid/os/Bundle;->()V iget v1, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->mProgress:F const-string v2, "motion.progress" invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putFloat(Ljava/lang/String;F)V iget v1, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->mVelocity:F const-string v2, "motion.velocity" invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putFloat(Ljava/lang/String;F)V iget v1, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->startState:I const-string v2, "motion.StartState" invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V iget v1, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->endState:I const-string v2, "motion.EndState" invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V return-object v0 .end method .method public recordState()V .locals 1 iget-object v0, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->this$0:Landroidx/constraintlayout/motion/widget/MotionLayout; invoke-static {v0}, Landroidx/constraintlayout/motion/widget/MotionLayout;->access$000(Landroidx/constraintlayout/motion/widget/MotionLayout;)I move-result v0 iput v0, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->endState:I iget-object v0, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->this$0:Landroidx/constraintlayout/motion/widget/MotionLayout; invoke-static {v0}, Landroidx/constraintlayout/motion/widget/MotionLayout;->access$100(Landroidx/constraintlayout/motion/widget/MotionLayout;)I move-result v0 iput v0, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->startState:I iget-object v0, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->this$0:Landroidx/constraintlayout/motion/widget/MotionLayout; invoke-virtual {v0}, Landroidx/constraintlayout/motion/widget/MotionLayout;->getVelocity()F move-result v0 iput v0, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->mVelocity:F iget-object v0, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->this$0:Landroidx/constraintlayout/motion/widget/MotionLayout; invoke-virtual {v0}, Landroidx/constraintlayout/motion/widget/MotionLayout;->getProgress()F move-result v0 iput v0, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->mProgress:F return-void .end method .method public setEndState(I)V .locals 0 iput p1, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->endState:I return-void .end method .method public setProgress(F)V .locals 0 iput p1, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->mProgress:F return-void .end method .method public setStartState(I)V .locals 0 iput p1, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->startState:I return-void .end method .method public setTransitionState(Landroid/os/Bundle;)V .locals 1 const-string v0, "motion.progress" invoke-virtual {p1, v0}, Landroid/os/Bundle;->getFloat(Ljava/lang/String;)F move-result v0 iput v0, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->mProgress:F const-string v0, "motion.velocity" invoke-virtual {p1, v0}, Landroid/os/Bundle;->getFloat(Ljava/lang/String;)F move-result v0 iput v0, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->mVelocity:F const-string v0, "motion.StartState" invoke-virtual {p1, v0}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I move-result v0 iput v0, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->startState:I const-string v0, "motion.EndState" invoke-virtual {p1, v0}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I move-result p1 iput p1, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->endState:I return-void .end method .method public setVelocity(F)V .locals 0 iput p1, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->mVelocity:F return-void .end method