242 lines
7.6 KiB
Smali
242 lines
7.6 KiB
Smali
.class public Landroidx/constraintlayout/solver/state/helpers/VerticalChainReference;
|
|
.super Landroidx/constraintlayout/solver/state/helpers/ChainReference;
|
|
.source "VerticalChainReference.java"
|
|
|
|
|
|
# instance fields
|
|
.field public mBottomToBottom:Ljava/lang/Object;
|
|
|
|
.field public mBottomToTop:Ljava/lang/Object;
|
|
|
|
.field public mTopToBottom:Ljava/lang/Object;
|
|
|
|
.field public mTopToTop:Ljava/lang/Object;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroidx/constraintlayout/solver/state/State;)V
|
|
.locals 1
|
|
|
|
sget-object v0, Landroidx/constraintlayout/solver/state/State$Helper;->VERTICAL_CHAIN:Landroidx/constraintlayout/solver/state/State$Helper;
|
|
|
|
invoke-direct {p0, p1, v0}, Landroidx/constraintlayout/solver/state/helpers/ChainReference;-><init>(Landroidx/constraintlayout/solver/state/State;Landroidx/constraintlayout/solver/state/State$Helper;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public apply()V
|
|
.locals 5
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/solver/state/HelperReference;->mReferences:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_0
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, p0, Landroidx/constraintlayout/solver/state/HelperReference;->mState:Landroidx/constraintlayout/solver/state/State;
|
|
|
|
invoke-virtual {v2, v1}, Landroidx/constraintlayout/solver/state/State;->constraints(Ljava/lang/Object;)Landroidx/constraintlayout/solver/state/ConstraintReference;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Landroidx/constraintlayout/solver/state/ConstraintReference;->clearVertical()Landroidx/constraintlayout/solver/state/ConstraintReference;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Landroidx/constraintlayout/solver/state/HelperReference;->mReferences:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
move-object v2, v1
|
|
|
|
:goto_1
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_5
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
iget-object v4, p0, Landroidx/constraintlayout/solver/state/HelperReference;->mState:Landroidx/constraintlayout/solver/state/State;
|
|
|
|
invoke-virtual {v4, v3}, Landroidx/constraintlayout/solver/state/State;->constraints(Ljava/lang/Object;)Landroidx/constraintlayout/solver/state/ConstraintReference;
|
|
|
|
move-result-object v3
|
|
|
|
if-nez v2, :cond_3
|
|
|
|
iget-object v2, p0, Landroidx/constraintlayout/solver/state/helpers/VerticalChainReference;->mTopToTop:Ljava/lang/Object;
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
invoke-virtual {v3, v2}, Landroidx/constraintlayout/solver/state/ConstraintReference;->topToTop(Ljava/lang/Object;)Landroidx/constraintlayout/solver/state/ConstraintReference;
|
|
|
|
goto :goto_2
|
|
|
|
:cond_1
|
|
iget-object v2, p0, Landroidx/constraintlayout/solver/state/helpers/VerticalChainReference;->mTopToBottom:Ljava/lang/Object;
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
invoke-virtual {v3, v2}, Landroidx/constraintlayout/solver/state/ConstraintReference;->topToBottom(Ljava/lang/Object;)Landroidx/constraintlayout/solver/state/ConstraintReference;
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
sget-object v2, Landroidx/constraintlayout/solver/state/State;->PARENT:Ljava/lang/Integer;
|
|
|
|
invoke-virtual {v3, v2}, Landroidx/constraintlayout/solver/state/ConstraintReference;->topToTop(Ljava/lang/Object;)Landroidx/constraintlayout/solver/state/ConstraintReference;
|
|
|
|
:goto_2
|
|
move-object v2, v3
|
|
|
|
:cond_3
|
|
if-eqz v1, :cond_4
|
|
|
|
invoke-virtual {v3}, Landroidx/constraintlayout/solver/state/ConstraintReference;->getKey()Ljava/lang/Object;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v1, v4}, Landroidx/constraintlayout/solver/state/ConstraintReference;->bottomToTop(Ljava/lang/Object;)Landroidx/constraintlayout/solver/state/ConstraintReference;
|
|
|
|
invoke-virtual {v1}, Landroidx/constraintlayout/solver/state/ConstraintReference;->getKey()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v3, v1}, Landroidx/constraintlayout/solver/state/ConstraintReference;->topToBottom(Ljava/lang/Object;)Landroidx/constraintlayout/solver/state/ConstraintReference;
|
|
|
|
:cond_4
|
|
move-object v1, v3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_5
|
|
if-eqz v1, :cond_8
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/solver/state/helpers/VerticalChainReference;->mBottomToTop:Ljava/lang/Object;
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
invoke-virtual {v1, v0}, Landroidx/constraintlayout/solver/state/ConstraintReference;->bottomToTop(Ljava/lang/Object;)Landroidx/constraintlayout/solver/state/ConstraintReference;
|
|
|
|
goto :goto_3
|
|
|
|
:cond_6
|
|
iget-object v0, p0, Landroidx/constraintlayout/solver/state/helpers/VerticalChainReference;->mBottomToBottom:Ljava/lang/Object;
|
|
|
|
if-eqz v0, :cond_7
|
|
|
|
invoke-virtual {v1, v0}, Landroidx/constraintlayout/solver/state/ConstraintReference;->bottomToBottom(Ljava/lang/Object;)Landroidx/constraintlayout/solver/state/ConstraintReference;
|
|
|
|
goto :goto_3
|
|
|
|
:cond_7
|
|
sget-object v0, Landroidx/constraintlayout/solver/state/State;->PARENT:Ljava/lang/Integer;
|
|
|
|
invoke-virtual {v1, v0}, Landroidx/constraintlayout/solver/state/ConstraintReference;->bottomToBottom(Ljava/lang/Object;)Landroidx/constraintlayout/solver/state/ConstraintReference;
|
|
|
|
:cond_8
|
|
:goto_3
|
|
if-eqz v2, :cond_9
|
|
|
|
iget v0, p0, Landroidx/constraintlayout/solver/state/helpers/ChainReference;->mBias:F
|
|
|
|
const/high16 v1, 0x3f000000 # 0.5f
|
|
|
|
cmpl-float v1, v0, v1
|
|
|
|
if-eqz v1, :cond_9
|
|
|
|
invoke-virtual {v2, v0}, Landroidx/constraintlayout/solver/state/ConstraintReference;->verticalBias(F)Landroidx/constraintlayout/solver/state/ConstraintReference;
|
|
|
|
:cond_9
|
|
iget-object v0, p0, Landroidx/constraintlayout/solver/state/helpers/ChainReference;->mStyle:Landroidx/constraintlayout/solver/state/State$Chain;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_c
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eq v0, v1, :cond_b
|
|
|
|
const/4 v1, 0x2
|
|
|
|
if-eq v0, v1, :cond_a
|
|
|
|
goto :goto_4
|
|
|
|
:cond_a
|
|
invoke-virtual {v2, v1}, Landroidx/constraintlayout/solver/state/ConstraintReference;->setVerticalChainStyle(I)V
|
|
|
|
goto :goto_4
|
|
|
|
:cond_b
|
|
invoke-virtual {v2, v1}, Landroidx/constraintlayout/solver/state/ConstraintReference;->setVerticalChainStyle(I)V
|
|
|
|
goto :goto_4
|
|
|
|
:cond_c
|
|
const/4 v0, 0x0
|
|
|
|
invoke-virtual {v2, v0}, Landroidx/constraintlayout/solver/state/ConstraintReference;->setVerticalChainStyle(I)V
|
|
|
|
:goto_4
|
|
return-void
|
|
.end method
|
|
|
|
.method public bottomToBottom(Ljava/lang/Object;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Landroidx/constraintlayout/solver/state/helpers/VerticalChainReference;->mBottomToBottom:Ljava/lang/Object;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public bottomToTop(Ljava/lang/Object;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Landroidx/constraintlayout/solver/state/helpers/VerticalChainReference;->mBottomToTop:Ljava/lang/Object;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public topToBottom(Ljava/lang/Object;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Landroidx/constraintlayout/solver/state/helpers/VerticalChainReference;->mTopToBottom:Ljava/lang/Object;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public topToTop(Ljava/lang/Object;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Landroidx/constraintlayout/solver/state/helpers/VerticalChainReference;->mTopToTop:Ljava/lang/Object;
|
|
|
|
return-void
|
|
.end method
|