2020-11-12 02:11:44 +00:00
|
|
|
.class public Landroidx/constraintlayout/solver/widgets/ChainHead;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "ChainHead.java"
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2020-11-14 02:19:59 +00:00
|
|
|
.field public mDefined:Z
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
.field public mFirst:Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
|
|
|
|
.field public mFirstMatchConstraintWidget:Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
|
|
|
|
.field public mFirstVisibleWidget:Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
|
|
|
|
.field public mHasComplexMatchWeights:Z
|
|
|
|
|
|
|
|
.field public mHasDefinedWeights:Z
|
|
|
|
|
|
|
|
.field public mHasRatio:Z
|
|
|
|
|
|
|
|
.field public mHasUndefinedWeights:Z
|
|
|
|
|
|
|
|
.field public mHead:Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
.field public mIsRtl:Z
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
.field public mLast:Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
|
|
|
|
.field public mLastMatchConstraintWidget:Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
|
|
|
|
.field public mLastVisibleWidget:Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
|
|
|
|
.field public mOptimizable:Z
|
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
.field public mOrientation:I
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
.field public mTotalMargins:I
|
|
|
|
|
|
|
|
.field public mTotalSize:I
|
|
|
|
|
|
|
|
.field public mTotalWeight:F
|
|
|
|
|
|
|
|
.field public mVisibleWidgets:I
|
|
|
|
|
|
|
|
.field public mWeightedMatchConstraintsWidgets:Ljava/util/ArrayList;
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/ArrayList<",
|
|
|
|
"Landroidx/constraintlayout/solver/widgets/ConstraintWidget;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
.field public mWidgetsCount:I
|
|
|
|
|
|
|
|
.field public mWidgetsMatchCount:I
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Landroidx/constraintlayout/solver/widgets/ConstraintWidget;IZ)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
iput v0, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mTotalWeight:F
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
iput-boolean v0, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mIsRtl:Z
|
|
|
|
|
|
|
|
iput-object p1, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mFirst:Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
|
|
|
|
iput p2, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mOrientation:I
|
|
|
|
|
|
|
|
iput-boolean p3, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mIsRtl:Z
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private defineChainProperties()V
|
|
|
|
.locals 13
|
|
|
|
|
|
|
|
iget v0, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mOrientation:I
|
|
|
|
|
|
|
|
const/4 v1, 0x2
|
|
|
|
|
|
|
|
mul-int/lit8 v0, v0, 0x2
|
|
|
|
|
|
|
|
iget-object v2, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mFirst:Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
|
|
|
|
const/4 v3, 0x1
|
|
|
|
|
|
|
|
iput-boolean v3, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mOptimizable:Z
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
move-object v5, v2
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-nez v6, :cond_15
|
|
|
|
|
|
|
|
iget v7, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mWidgetsCount:I
|
|
|
|
|
|
|
|
add-int/2addr v7, v3
|
|
|
|
|
|
|
|
iput v7, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mWidgetsCount:I
|
|
|
|
|
|
|
|
iget-object v7, v2, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->mNextChainWidget:[Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
|
|
|
|
iget v8, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mOrientation:I
|
|
|
|
|
|
|
|
const/4 v9, 0x0
|
|
|
|
|
|
|
|
aput-object v9, v7, v8
|
|
|
|
|
|
|
|
iget-object v7, v2, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->mListNextMatchConstraintsWidget:[Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
|
|
|
|
aput-object v9, v7, v8
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getVisibility()I
|
|
|
|
|
|
|
|
move-result v7
|
|
|
|
|
|
|
|
const/16 v8, 0x8
|
|
|
|
|
|
|
|
if-eq v7, v8, :cond_10
|
|
|
|
|
|
|
|
iget v7, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mVisibleWidgets:I
|
|
|
|
|
|
|
|
add-int/2addr v7, v3
|
|
|
|
|
|
|
|
iput v7, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mVisibleWidgets:I
|
|
|
|
|
|
|
|
iget v7, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mOrientation:I
|
|
|
|
|
|
|
|
invoke-virtual {v2, v7}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getDimensionBehaviour(I)Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;
|
|
|
|
|
|
|
|
move-result-object v7
|
|
|
|
|
|
|
|
sget-object v8, Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;->MATCH_CONSTRAINT:Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;
|
|
|
|
|
|
|
|
if-eq v7, v8, :cond_0
|
|
|
|
|
|
|
|
iget v7, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mTotalSize:I
|
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
iget v8, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mOrientation:I
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
invoke-virtual {v2, v8}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getLength(I)I
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
move-result v8
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
add-int/2addr v8, v7
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
iput v8, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mTotalSize:I
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget v7, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mTotalSize:I
|
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
iget-object v8, v2, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->mListAnchors:[Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
aget-object v8, v8, v0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
invoke-virtual {v8}, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->getMargin()I
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
move-result v8
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
add-int/2addr v8, v7
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
iput v8, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mTotalSize:I
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
iget-object v7, v2, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->mListAnchors:[Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;
|
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
add-int/lit8 v10, v0, 0x1
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
aget-object v7, v7, v10
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
invoke-virtual {v7}, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->getMargin()I
|
|
|
|
|
|
|
|
move-result v7
|
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
add-int/2addr v7, v8
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
iput v7, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mTotalSize:I
|
|
|
|
|
|
|
|
iget v7, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mTotalMargins:I
|
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
iget-object v8, v2, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->mListAnchors:[Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
aget-object v8, v8, v0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
invoke-virtual {v8}, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->getMargin()I
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
move-result v8
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
add-int/2addr v8, v7
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
iput v8, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mTotalMargins:I
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
iget-object v7, v2, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->mListAnchors:[Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;
|
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
aget-object v7, v7, v10
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
invoke-virtual {v7}, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->getMargin()I
|
|
|
|
|
|
|
|
move-result v7
|
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
add-int/2addr v7, v8
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
iput v7, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mTotalMargins:I
|
|
|
|
|
|
|
|
iget-object v7, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mFirstVisibleWidget:Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
|
|
|
|
if-nez v7, :cond_1
|
|
|
|
|
|
|
|
iput-object v2, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mFirstVisibleWidget:Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
iput-object v2, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mLastVisibleWidget:Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
|
|
|
|
iget-object v7, v2, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->mListDimensionBehaviors:[Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;
|
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
iget v8, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mOrientation:I
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
aget-object v7, v7, v8
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
sget-object v10, Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;->MATCH_CONSTRAINT:Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;
|
|
|
|
|
|
|
|
if-ne v7, v10, :cond_10
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
iget-object v7, v2, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->mResolvedMatchConstraintDefault:[I
|
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
aget v10, v7, v8
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
const/4 v11, 0x0
|
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
if-eqz v10, :cond_2
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
aget v10, v7, v8
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
const/4 v12, 0x3
|
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
if-eq v10, v12, :cond_2
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
aget v7, v7, v8
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
if-ne v7, v1, :cond_9
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
iget v7, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mWidgetsMatchCount:I
|
|
|
|
|
|
|
|
add-int/2addr v7, v3
|
|
|
|
|
|
|
|
iput v7, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mWidgetsMatchCount:I
|
|
|
|
|
|
|
|
iget-object v7, v2, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->mWeight:[F
|
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
iget v8, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mOrientation:I
|
|
|
|
|
|
|
|
aget v10, v7, v8
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
cmpl-float v12, v10, v11
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
if-lez v12, :cond_3
|
|
|
|
|
|
|
|
iget v12, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mTotalWeight:F
|
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
aget v7, v7, v8
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
add-float/2addr v12, v7
|
|
|
|
|
|
|
|
iput v12, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mTotalWeight:F
|
|
|
|
|
|
|
|
:cond_3
|
2020-11-14 02:19:59 +00:00
|
|
|
iget v7, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mOrientation:I
|
|
|
|
|
|
|
|
invoke-static {v2, v7}, Landroidx/constraintlayout/solver/widgets/ChainHead;->isMatchConstraintEqualityCandidate(Landroidx/constraintlayout/solver/widgets/ConstraintWidget;I)Z
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
move-result v7
|
|
|
|
|
|
|
|
if-eqz v7, :cond_6
|
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
cmpg-float v7, v10, v11
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
if-gez v7, :cond_4
|
|
|
|
|
|
|
|
iput-boolean v3, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mHasUndefinedWeights:Z
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
iput-boolean v3, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mHasDefinedWeights:Z
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
iget-object v7, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mWeightedMatchConstraintsWidgets:Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
if-nez v7, :cond_5
|
|
|
|
|
|
|
|
new-instance v7, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-direct {v7}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
|
|
|
|
iput-object v7, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mWeightedMatchConstraintsWidgets:Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
iget-object v7, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mWeightedMatchConstraintsWidgets:Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-virtual {v7, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
iget-object v7, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mFirstMatchConstraintWidget:Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
|
|
|
|
if-nez v7, :cond_7
|
|
|
|
|
|
|
|
iput-object v2, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mFirstMatchConstraintWidget:Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
iget-object v7, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mLastMatchConstraintWidget:Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
|
|
|
|
if-eqz v7, :cond_8
|
|
|
|
|
|
|
|
iget-object v7, v7, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->mListNextMatchConstraintsWidget:[Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
|
|
|
|
iget v8, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mOrientation:I
|
|
|
|
|
|
|
|
aput-object v2, v7, v8
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
iput-object v2, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mLastMatchConstraintWidget:Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
|
|
|
|
:cond_9
|
|
|
|
iget v7, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mOrientation:I
|
|
|
|
|
|
|
|
if-nez v7, :cond_c
|
|
|
|
|
|
|
|
iget v7, v2, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->mMatchConstraintDefaultWidth:I
|
|
|
|
|
|
|
|
if-eqz v7, :cond_a
|
|
|
|
|
|
|
|
iput-boolean v4, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mOptimizable:Z
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_a
|
|
|
|
iget v7, v2, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->mMatchConstraintMinWidth:I
|
|
|
|
|
|
|
|
if-nez v7, :cond_b
|
|
|
|
|
|
|
|
iget v7, v2, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->mMatchConstraintMaxWidth:I
|
|
|
|
|
|
|
|
if-eqz v7, :cond_f
|
|
|
|
|
|
|
|
:cond_b
|
|
|
|
iput-boolean v4, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mOptimizable:Z
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_c
|
|
|
|
iget v7, v2, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->mMatchConstraintDefaultHeight:I
|
|
|
|
|
|
|
|
if-eqz v7, :cond_d
|
|
|
|
|
|
|
|
iput-boolean v4, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mOptimizable:Z
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_d
|
|
|
|
iget v7, v2, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->mMatchConstraintMinHeight:I
|
|
|
|
|
|
|
|
if-nez v7, :cond_e
|
|
|
|
|
|
|
|
iget v7, v2, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->mMatchConstraintMaxHeight:I
|
|
|
|
|
|
|
|
if-eqz v7, :cond_f
|
|
|
|
|
|
|
|
:cond_e
|
|
|
|
iput-boolean v4, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mOptimizable:Z
|
|
|
|
|
|
|
|
:cond_f
|
|
|
|
:goto_2
|
|
|
|
iget v7, v2, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->mDimensionRatio:F
|
|
|
|
|
|
|
|
cmpl-float v7, v7, v11
|
|
|
|
|
|
|
|
if-eqz v7, :cond_10
|
|
|
|
|
|
|
|
iput-boolean v4, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mOptimizable:Z
|
|
|
|
|
|
|
|
iput-boolean v3, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mHasRatio:Z
|
|
|
|
|
|
|
|
:cond_10
|
|
|
|
if-eq v5, v2, :cond_11
|
|
|
|
|
|
|
|
iget-object v5, v5, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->mNextChainWidget:[Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
|
|
|
|
iget v7, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mOrientation:I
|
|
|
|
|
|
|
|
aput-object v2, v5, v7
|
|
|
|
|
|
|
|
:cond_11
|
|
|
|
iget-object v5, v2, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->mListAnchors:[Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;
|
|
|
|
|
|
|
|
add-int/lit8 v7, v0, 0x1
|
|
|
|
|
|
|
|
aget-object v5, v5, v7
|
|
|
|
|
|
|
|
iget-object v5, v5, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mTarget:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;
|
|
|
|
|
|
|
|
if-eqz v5, :cond_13
|
|
|
|
|
|
|
|
iget-object v5, v5, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mOwner:Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
|
|
|
|
iget-object v7, v5, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->mListAnchors:[Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;
|
|
|
|
|
|
|
|
aget-object v8, v7, v0
|
|
|
|
|
|
|
|
iget-object v8, v8, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mTarget:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;
|
|
|
|
|
|
|
|
if-eqz v8, :cond_13
|
|
|
|
|
|
|
|
aget-object v7, v7, v0
|
|
|
|
|
|
|
|
iget-object v7, v7, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mTarget:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;
|
|
|
|
|
|
|
|
iget-object v7, v7, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mOwner:Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
|
|
|
|
if-eq v7, v2, :cond_12
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_12
|
|
|
|
move-object v9, v5
|
|
|
|
|
|
|
|
:cond_13
|
|
|
|
:goto_3
|
|
|
|
if-eqz v9, :cond_14
|
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_14
|
|
|
|
move-object v9, v2
|
|
|
|
|
|
|
|
const/4 v6, 0x1
|
|
|
|
|
|
|
|
:goto_4
|
|
|
|
move-object v5, v2
|
|
|
|
|
|
|
|
move-object v2, v9
|
|
|
|
|
|
|
|
goto/16 :goto_0
|
|
|
|
|
|
|
|
:cond_15
|
|
|
|
iget-object v1, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mFirstVisibleWidget:Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
|
|
|
|
if-eqz v1, :cond_16
|
|
|
|
|
|
|
|
iget v5, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mTotalSize:I
|
|
|
|
|
|
|
|
iget-object v1, v1, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->mListAnchors:[Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;
|
|
|
|
|
|
|
|
aget-object v1, v1, v0
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->getMargin()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
sub-int/2addr v5, v1
|
|
|
|
|
|
|
|
iput v5, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mTotalSize:I
|
|
|
|
|
|
|
|
:cond_16
|
|
|
|
iget-object v1, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mLastVisibleWidget:Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
|
|
|
|
if-eqz v1, :cond_17
|
|
|
|
|
|
|
|
iget v5, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mTotalSize:I
|
|
|
|
|
|
|
|
iget-object v1, v1, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->mListAnchors:[Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;
|
|
|
|
|
|
|
|
add-int/2addr v0, v3
|
|
|
|
|
|
|
|
aget-object v0, v1, v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->getMargin()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
sub-int/2addr v5, v0
|
|
|
|
|
|
|
|
iput v5, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mTotalSize:I
|
|
|
|
|
|
|
|
:cond_17
|
|
|
|
iput-object v2, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mLast:Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
|
|
|
|
iget v0, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mOrientation:I
|
|
|
|
|
|
|
|
if-nez v0, :cond_18
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mIsRtl:Z
|
|
|
|
|
|
|
|
if-eqz v0, :cond_18
|
|
|
|
|
|
|
|
iput-object v2, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mHead:Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
|
|
|
|
goto :goto_5
|
|
|
|
|
|
|
|
:cond_18
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mFirst:Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
|
|
|
|
iput-object v0, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mHead:Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
|
|
|
|
:goto_5
|
|
|
|
iget-boolean v0, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mHasDefinedWeights:Z
|
|
|
|
|
|
|
|
if-eqz v0, :cond_19
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mHasUndefinedWeights:Z
|
|
|
|
|
|
|
|
if-eqz v0, :cond_19
|
|
|
|
|
|
|
|
goto :goto_6
|
|
|
|
|
|
|
|
:cond_19
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
:goto_6
|
|
|
|
iput-boolean v3, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mHasComplexMatchWeights:Z
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
.method public static isMatchConstraintEqualityCandidate(Landroidx/constraintlayout/solver/widgets/ConstraintWidget;I)Z
|
2020-11-12 02:11:44 +00:00
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getVisibility()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/16 v1, 0x8
|
|
|
|
|
|
|
|
if-eq v0, v1, :cond_1
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->mListDimensionBehaviors:[Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;
|
|
|
|
|
|
|
|
aget-object v0, v0, p1
|
|
|
|
|
|
|
|
sget-object v1, Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;->MATCH_CONSTRAINT:Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;
|
|
|
|
|
|
|
|
if-ne v0, v1, :cond_1
|
|
|
|
|
|
|
|
iget-object p0, p0, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->mResolvedMatchConstraintDefault:[I
|
|
|
|
|
|
|
|
aget v0, p0, p1
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
aget p0, p0, p1
|
|
|
|
|
|
|
|
const/4 p1, 0x3
|
|
|
|
|
|
|
|
if-ne p0, p1, :cond_1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/4 p0, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
return p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public define()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mDefined:Z
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Landroidx/constraintlayout/solver/widgets/ChainHead;->defineChainProperties()V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
iput-boolean v0, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mDefined:Z
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getFirst()Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mFirst:Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getFirstMatchConstraintWidget()Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mFirstMatchConstraintWidget:Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getFirstVisibleWidget()Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mFirstVisibleWidget:Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getHead()Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mHead:Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getLast()Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mLast:Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getLastMatchConstraintWidget()Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mLastMatchConstraintWidget:Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getLastVisibleWidget()Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mLastVisibleWidget:Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getTotalWeight()F
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget v0, p0, Landroidx/constraintlayout/solver/widgets/ChainHead;->mTotalWeight:F
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|