1434 lines
43 KiB
Smali
1434 lines
43 KiB
Smali
.class public Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure;
|
|
.super Ljava/lang/Object;
|
|
.source "BasicMeasure.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measure;,
|
|
Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measurer;,
|
|
Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$MeasureType;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final AT_MOST:I = -0x80000000
|
|
|
|
.field public static final DEBUG:Z = false
|
|
|
|
.field public static final EXACTLY:I = 0x40000000
|
|
|
|
.field public static final FIXED:I = -0x3
|
|
|
|
.field public static final MATCH_PARENT:I = -0x1
|
|
|
|
.field public static final MODE_SHIFT:I = 0x1e
|
|
|
|
.field public static final UNSPECIFIED:I = 0x0
|
|
|
|
.field public static final WRAP_CONTENT:I = -0x2
|
|
|
|
|
|
# instance fields
|
|
.field public constraintWidgetContainer:Landroidx/constraintlayout/solver/widgets/ConstraintWidgetContainer;
|
|
|
|
.field public mMeasure:Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measure;
|
|
|
|
.field public final mVariableDimensionsWidgets:Ljava/util/ArrayList;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/ArrayList<",
|
|
"Landroidx/constraintlayout/solver/widgets/ConstraintWidget;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroidx/constraintlayout/solver/widgets/ConstraintWidgetContainer;)V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object v0, p0, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure;->mVariableDimensionsWidgets:Ljava/util/ArrayList;
|
|
|
|
new-instance v0, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measure;
|
|
|
|
invoke-direct {v0}, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measure;-><init>()V
|
|
|
|
iput-object v0, p0, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure;->mMeasure:Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measure;
|
|
|
|
iput-object p1, p0, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure;->constraintWidgetContainer:Landroidx/constraintlayout/solver/widgets/ConstraintWidgetContainer;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private measure(Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measurer;Landroidx/constraintlayout/solver/widgets/ConstraintWidget;Z)Z
|
|
.locals 5
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure;->mMeasure:Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measure;
|
|
|
|
invoke-virtual {p2}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getHorizontalDimensionBehaviour()Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, v0, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measure;->horizontalBehavior:Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure;->mMeasure:Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measure;
|
|
|
|
invoke-virtual {p2}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getVerticalDimensionBehaviour()Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, v0, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measure;->verticalBehavior:Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure;->mMeasure:Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measure;
|
|
|
|
invoke-virtual {p2}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getWidth()I
|
|
|
|
move-result v1
|
|
|
|
iput v1, v0, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measure;->horizontalDimension:I
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure;->mMeasure:Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measure;
|
|
|
|
invoke-virtual {p2}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getHeight()I
|
|
|
|
move-result v1
|
|
|
|
iput v1, v0, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measure;->verticalDimension:I
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure;->mMeasure:Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measure;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
iput-boolean v1, v0, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measure;->measuredNeedsSolverPass:Z
|
|
|
|
iput-boolean p3, v0, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measure;->useCurrentDimensions:Z
|
|
|
|
iget-object p3, v0, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measure;->horizontalBehavior:Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;
|
|
|
|
sget-object v0, Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;->MATCH_CONSTRAINT:Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-ne p3, v0, :cond_0
|
|
|
|
const/4 p3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p3, 0x0
|
|
|
|
:goto_0
|
|
iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure;->mMeasure:Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measure;
|
|
|
|
iget-object v0, v0, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measure;->verticalBehavior:Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;
|
|
|
|
sget-object v3, Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;->MATCH_CONSTRAINT:Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;
|
|
|
|
if-ne v0, v3, :cond_1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
:goto_1
|
|
const/4 v3, 0x0
|
|
|
|
if-eqz p3, :cond_2
|
|
|
|
iget p3, p2, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->mDimensionRatio:F
|
|
|
|
cmpl-float p3, p3, v3
|
|
|
|
if-lez p3, :cond_2
|
|
|
|
const/4 p3, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
const/4 p3, 0x0
|
|
|
|
:goto_2
|
|
if-eqz v0, :cond_3
|
|
|
|
iget v0, p2, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->mDimensionRatio:F
|
|
|
|
cmpl-float v0, v0, v3
|
|
|
|
if-lez v0, :cond_3
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
const/4 v0, 0x0
|
|
|
|
:goto_3
|
|
const/4 v3, 0x4
|
|
|
|
if-eqz p3, :cond_4
|
|
|
|
iget-object p3, p2, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->mResolvedMatchConstraintDefault:[I
|
|
|
|
aget p3, p3, v1
|
|
|
|
if-ne p3, v3, :cond_4
|
|
|
|
iget-object p3, p0, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure;->mMeasure:Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measure;
|
|
|
|
sget-object v4, Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;->FIXED:Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;
|
|
|
|
iput-object v4, p3, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measure;->horizontalBehavior:Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;
|
|
|
|
:cond_4
|
|
if-eqz v0, :cond_5
|
|
|
|
iget-object p3, p2, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->mResolvedMatchConstraintDefault:[I
|
|
|
|
aget p3, p3, v2
|
|
|
|
if-ne p3, v3, :cond_5
|
|
|
|
iget-object p3, p0, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure;->mMeasure:Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measure;
|
|
|
|
sget-object v0, Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;->FIXED:Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;
|
|
|
|
iput-object v0, p3, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measure;->verticalBehavior:Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;
|
|
|
|
:cond_5
|
|
iget-object p3, p0, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure;->mMeasure:Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measure;
|
|
|
|
invoke-interface {p1, p2, p3}, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measurer;->measure(Landroidx/constraintlayout/solver/widgets/ConstraintWidget;Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measure;)V
|
|
|
|
iget-object p1, p0, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure;->mMeasure:Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measure;
|
|
|
|
iget p1, p1, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measure;->measuredWidth:I
|
|
|
|
invoke-virtual {p2, p1}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->setWidth(I)V
|
|
|
|
iget-object p1, p0, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure;->mMeasure:Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measure;
|
|
|
|
iget p1, p1, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measure;->measuredHeight:I
|
|
|
|
invoke-virtual {p2, p1}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->setHeight(I)V
|
|
|
|
iget-object p1, p0, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure;->mMeasure:Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measure;
|
|
|
|
iget-boolean p1, p1, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measure;->measuredHasBaseline:Z
|
|
|
|
invoke-virtual {p2, p1}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->setHasBaseline(Z)V
|
|
|
|
iget-object p1, p0, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure;->mMeasure:Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measure;
|
|
|
|
iget p1, p1, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measure;->measuredBaseline:I
|
|
|
|
invoke-virtual {p2, p1}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->setBaselineDistance(I)V
|
|
|
|
iget-object p1, p0, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure;->mMeasure:Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measure;
|
|
|
|
iput-boolean v1, p1, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measure;->useCurrentDimensions:Z
|
|
|
|
iget-boolean p1, p1, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measure;->measuredNeedsSolverPass:Z
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method private measureChildren(Landroidx/constraintlayout/solver/widgets/ConstraintWidgetContainer;)V
|
|
.locals 9
|
|
|
|
iget-object v0, p1, Landroidx/constraintlayout/solver/widgets/WidgetContainer;->mChildren:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p1}, Landroidx/constraintlayout/solver/widgets/ConstraintWidgetContainer;->getMeasurer()Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measurer;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
:goto_0
|
|
if-ge v3, v0, :cond_5
|
|
|
|
iget-object v4, p1, Landroidx/constraintlayout/solver/widgets/WidgetContainer;->mChildren:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v4, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
instance-of v5, v4, Landroidx/constraintlayout/solver/widgets/Guideline;
|
|
|
|
if-eqz v5, :cond_0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_0
|
|
iget-object v5, v4, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->horizontalRun:Landroidx/constraintlayout/solver/widgets/analyzer/HorizontalWidgetRun;
|
|
|
|
iget-object v5, v5, Landroidx/constraintlayout/solver/widgets/analyzer/WidgetRun;->dimension:Landroidx/constraintlayout/solver/widgets/analyzer/DimensionDependency;
|
|
|
|
iget-boolean v5, v5, Landroidx/constraintlayout/solver/widgets/analyzer/DependencyNode;->resolved:Z
|
|
|
|
if-eqz v5, :cond_1
|
|
|
|
iget-object v5, v4, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->verticalRun:Landroidx/constraintlayout/solver/widgets/analyzer/VerticalWidgetRun;
|
|
|
|
iget-object v5, v5, Landroidx/constraintlayout/solver/widgets/analyzer/WidgetRun;->dimension:Landroidx/constraintlayout/solver/widgets/analyzer/DimensionDependency;
|
|
|
|
iget-boolean v5, v5, Landroidx/constraintlayout/solver/widgets/analyzer/DependencyNode;->resolved:Z
|
|
|
|
if-eqz v5, :cond_1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_1
|
|
invoke-virtual {v4, v2}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getDimensionBehaviour(I)Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;
|
|
|
|
move-result-object v5
|
|
|
|
const/4 v6, 0x1
|
|
|
|
invoke-virtual {v4, v6}, 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-ne v5, v8, :cond_2
|
|
|
|
iget v5, v4, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->mMatchConstraintDefaultWidth:I
|
|
|
|
if-eq v5, v6, :cond_2
|
|
|
|
if-ne v7, v8, :cond_2
|
|
|
|
iget v5, v4, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->mMatchConstraintDefaultHeight:I
|
|
|
|
if-eq v5, v6, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const/4 v6, 0x0
|
|
|
|
:goto_1
|
|
if-eqz v6, :cond_3
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
invoke-direct {p0, v1, v4, v2}, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure;->measure(Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measurer;Landroidx/constraintlayout/solver/widgets/ConstraintWidget;Z)Z
|
|
|
|
iget-object v4, p1, Landroidx/constraintlayout/solver/widgets/ConstraintWidgetContainer;->mMetrics:Landroidx/constraintlayout/solver/Metrics;
|
|
|
|
if-eqz v4, :cond_4
|
|
|
|
iget-wide v5, v4, Landroidx/constraintlayout/solver/Metrics;->measuredWidgets:J
|
|
|
|
const-wide/16 v7, 0x1
|
|
|
|
add-long/2addr v5, v7
|
|
|
|
iput-wide v5, v4, Landroidx/constraintlayout/solver/Metrics;->measuredWidgets:J
|
|
|
|
:cond_4
|
|
:goto_2
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_5
|
|
invoke-interface {v1}, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measurer;->didMeasures()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private solveLinearSystem(Landroidx/constraintlayout/solver/widgets/ConstraintWidgetContainer;Ljava/lang/String;II)V
|
|
.locals 2
|
|
|
|
invoke-virtual {p1}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getMinWidth()I
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p1}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getMinHeight()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {p1, v1}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->setMinWidth(I)V
|
|
|
|
invoke-virtual {p1, v1}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->setMinHeight(I)V
|
|
|
|
invoke-virtual {p1, p3}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->setWidth(I)V
|
|
|
|
invoke-virtual {p1, p4}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->setHeight(I)V
|
|
|
|
invoke-virtual {p1, p2}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->setMinWidth(I)V
|
|
|
|
invoke-virtual {p1, v0}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->setMinHeight(I)V
|
|
|
|
iget-object p1, p0, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure;->constraintWidgetContainer:Landroidx/constraintlayout/solver/widgets/ConstraintWidgetContainer;
|
|
|
|
invoke-virtual {p1}, Landroidx/constraintlayout/solver/widgets/ConstraintWidgetContainer;->layout()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public solverMeasure(Landroidx/constraintlayout/solver/widgets/ConstraintWidgetContainer;IIIIIIIII)J
|
|
.locals 22
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move-object/from16 v1, p1
|
|
|
|
move/from16 v2, p2
|
|
|
|
move/from16 v3, p5
|
|
|
|
move/from16 v4, p7
|
|
|
|
invoke-virtual/range {p1 .. p1}, Landroidx/constraintlayout/solver/widgets/ConstraintWidgetContainer;->getMeasurer()Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measurer;
|
|
|
|
move-result-object v5
|
|
|
|
iget-object v6, v1, Landroidx/constraintlayout/solver/widgets/WidgetContainer;->mChildren:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v6}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result v6
|
|
|
|
invoke-virtual/range {p1 .. p1}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getWidth()I
|
|
|
|
move-result v7
|
|
|
|
invoke-virtual/range {p1 .. p1}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getHeight()I
|
|
|
|
move-result v8
|
|
|
|
const/16 v9, 0x80
|
|
|
|
invoke-static {v2, v9}, Landroidx/constraintlayout/solver/widgets/Optimizer;->enabled(II)Z
|
|
|
|
move-result v9
|
|
|
|
const/4 v10, 0x0
|
|
|
|
if-nez v9, :cond_1
|
|
|
|
const/16 v12, 0x40
|
|
|
|
invoke-static {v2, v12}, Landroidx/constraintlayout/solver/widgets/Optimizer;->enabled(II)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v2, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 v2, 0x1
|
|
|
|
:goto_1
|
|
if-eqz v2, :cond_a
|
|
|
|
const/4 v12, 0x0
|
|
|
|
:goto_2
|
|
if-ge v12, v6, :cond_a
|
|
|
|
iget-object v13, v1, Landroidx/constraintlayout/solver/widgets/WidgetContainer;->mChildren:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v13, v12}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v13
|
|
|
|
check-cast v13, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
invoke-virtual {v13}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getHorizontalDimensionBehaviour()Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;
|
|
|
|
move-result-object v14
|
|
|
|
sget-object v15, Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;->MATCH_CONSTRAINT:Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;
|
|
|
|
if-ne v14, v15, :cond_2
|
|
|
|
const/4 v14, 0x1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_2
|
|
const/4 v14, 0x0
|
|
|
|
:goto_3
|
|
invoke-virtual {v13}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getVerticalDimensionBehaviour()Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;
|
|
|
|
move-result-object v15
|
|
|
|
sget-object v11, Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;->MATCH_CONSTRAINT:Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;
|
|
|
|
if-ne v15, v11, :cond_3
|
|
|
|
const/4 v11, 0x1
|
|
|
|
goto :goto_4
|
|
|
|
:cond_3
|
|
const/4 v11, 0x0
|
|
|
|
:goto_4
|
|
if-eqz v14, :cond_4
|
|
|
|
if-eqz v11, :cond_4
|
|
|
|
invoke-virtual {v13}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getDimensionRatio()F
|
|
|
|
move-result v11
|
|
|
|
const/4 v14, 0x0
|
|
|
|
cmpl-float v11, v11, v14
|
|
|
|
if-lez v11, :cond_4
|
|
|
|
const/4 v11, 0x1
|
|
|
|
goto :goto_5
|
|
|
|
:cond_4
|
|
const/4 v11, 0x0
|
|
|
|
:goto_5
|
|
invoke-virtual {v13}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->isInHorizontalChain()Z
|
|
|
|
move-result v14
|
|
|
|
if-eqz v14, :cond_6
|
|
|
|
if-eqz v11, :cond_6
|
|
|
|
:cond_5
|
|
:goto_6
|
|
const/4 v2, 0x0
|
|
|
|
goto :goto_7
|
|
|
|
:cond_6
|
|
invoke-virtual {v13}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->isInVerticalChain()Z
|
|
|
|
move-result v14
|
|
|
|
if-eqz v14, :cond_7
|
|
|
|
if-eqz v11, :cond_7
|
|
|
|
goto :goto_6
|
|
|
|
:cond_7
|
|
instance-of v11, v13, Landroidx/constraintlayout/solver/widgets/VirtualLayout;
|
|
|
|
if-eqz v11, :cond_8
|
|
|
|
goto :goto_6
|
|
|
|
:cond_8
|
|
invoke-virtual {v13}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->isInHorizontalChain()Z
|
|
|
|
move-result v11
|
|
|
|
if-nez v11, :cond_5
|
|
|
|
invoke-virtual {v13}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->isInVerticalChain()Z
|
|
|
|
move-result v11
|
|
|
|
if-eqz v11, :cond_9
|
|
|
|
goto :goto_6
|
|
|
|
:cond_9
|
|
add-int/lit8 v12, v12, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_a
|
|
:goto_7
|
|
const-wide/16 v11, 0x1
|
|
|
|
if-eqz v2, :cond_b
|
|
|
|
sget-object v13, Landroidx/constraintlayout/solver/LinearSystem;->sMetrics:Landroidx/constraintlayout/solver/Metrics;
|
|
|
|
if-eqz v13, :cond_b
|
|
|
|
iget-wide v14, v13, Landroidx/constraintlayout/solver/Metrics;->measures:J
|
|
|
|
add-long/2addr v14, v11
|
|
|
|
iput-wide v14, v13, Landroidx/constraintlayout/solver/Metrics;->measures:J
|
|
|
|
:cond_b
|
|
const/high16 v13, 0x40000000 # 2.0f
|
|
|
|
if-ne v3, v13, :cond_c
|
|
|
|
if-eq v4, v13, :cond_d
|
|
|
|
:cond_c
|
|
if-eqz v9, :cond_e
|
|
|
|
:cond_d
|
|
const/4 v14, 0x1
|
|
|
|
goto :goto_8
|
|
|
|
:cond_e
|
|
const/4 v14, 0x0
|
|
|
|
:goto_8
|
|
and-int/2addr v2, v14
|
|
|
|
const/4 v14, 0x2
|
|
|
|
if-eqz v2, :cond_16
|
|
|
|
invoke-virtual/range {p1 .. p1}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getMaxWidth()I
|
|
|
|
move-result v2
|
|
|
|
move/from16 v15, p6
|
|
|
|
invoke-static {v2, v15}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual/range {p1 .. p1}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getMaxHeight()I
|
|
|
|
move-result v15
|
|
|
|
move/from16 v11, p8
|
|
|
|
invoke-static {v15, v11}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v11
|
|
|
|
if-ne v3, v13, :cond_f
|
|
|
|
invoke-virtual/range {p1 .. p1}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getWidth()I
|
|
|
|
move-result v12
|
|
|
|
if-eq v12, v2, :cond_f
|
|
|
|
invoke-virtual {v1, v2}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->setWidth(I)V
|
|
|
|
invoke-virtual/range {p1 .. p1}, Landroidx/constraintlayout/solver/widgets/ConstraintWidgetContainer;->invalidateGraph()V
|
|
|
|
:cond_f
|
|
if-ne v4, v13, :cond_10
|
|
|
|
invoke-virtual/range {p1 .. p1}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getHeight()I
|
|
|
|
move-result v2
|
|
|
|
if-eq v2, v11, :cond_10
|
|
|
|
invoke-virtual {v1, v11}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->setHeight(I)V
|
|
|
|
invoke-virtual/range {p1 .. p1}, Landroidx/constraintlayout/solver/widgets/ConstraintWidgetContainer;->invalidateGraph()V
|
|
|
|
:cond_10
|
|
if-ne v3, v13, :cond_11
|
|
|
|
if-ne v4, v13, :cond_11
|
|
|
|
invoke-virtual {v1, v9}, Landroidx/constraintlayout/solver/widgets/ConstraintWidgetContainer;->directMeasure(Z)Z
|
|
|
|
move-result v2
|
|
|
|
const/4 v9, 0x2
|
|
|
|
goto :goto_a
|
|
|
|
:cond_11
|
|
invoke-virtual {v1, v9}, Landroidx/constraintlayout/solver/widgets/ConstraintWidgetContainer;->directMeasureSetup(Z)Z
|
|
|
|
move-result v2
|
|
|
|
if-ne v3, v13, :cond_12
|
|
|
|
invoke-virtual {v1, v9, v10}, Landroidx/constraintlayout/solver/widgets/ConstraintWidgetContainer;->directMeasureWithOrientation(ZI)Z
|
|
|
|
move-result v11
|
|
|
|
and-int/2addr v2, v11
|
|
|
|
move v11, v2
|
|
|
|
const/4 v2, 0x1
|
|
|
|
goto :goto_9
|
|
|
|
:cond_12
|
|
move v11, v2
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:goto_9
|
|
if-ne v4, v13, :cond_13
|
|
|
|
const/4 v12, 0x1
|
|
|
|
invoke-virtual {v1, v9, v12}, Landroidx/constraintlayout/solver/widgets/ConstraintWidgetContainer;->directMeasureWithOrientation(ZI)Z
|
|
|
|
move-result v9
|
|
|
|
and-int/2addr v9, v11
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
move/from16 v21, v9
|
|
|
|
move v9, v2
|
|
|
|
move/from16 v2, v21
|
|
|
|
goto :goto_a
|
|
|
|
:cond_13
|
|
move v9, v2
|
|
|
|
move v2, v11
|
|
|
|
:goto_a
|
|
if-eqz v2, :cond_17
|
|
|
|
if-ne v3, v13, :cond_14
|
|
|
|
const/4 v3, 0x1
|
|
|
|
goto :goto_b
|
|
|
|
:cond_14
|
|
const/4 v3, 0x0
|
|
|
|
:goto_b
|
|
if-ne v4, v13, :cond_15
|
|
|
|
const/4 v4, 0x1
|
|
|
|
goto :goto_c
|
|
|
|
:cond_15
|
|
const/4 v4, 0x0
|
|
|
|
:goto_c
|
|
invoke-virtual {v1, v3, v4}, Landroidx/constraintlayout/solver/widgets/ConstraintWidgetContainer;->updateFromRuns(ZZ)V
|
|
|
|
goto :goto_d
|
|
|
|
:cond_16
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v9, 0x0
|
|
|
|
:cond_17
|
|
:goto_d
|
|
if-eqz v2, :cond_18
|
|
|
|
if-eq v9, v14, :cond_37
|
|
|
|
:cond_18
|
|
if-lez v6, :cond_19
|
|
|
|
invoke-direct/range {p0 .. p1}, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure;->measureChildren(Landroidx/constraintlayout/solver/widgets/ConstraintWidgetContainer;)V
|
|
|
|
:cond_19
|
|
invoke-virtual/range {p1 .. p1}, Landroidx/constraintlayout/solver/widgets/ConstraintWidgetContainer;->getOptimizationLevel()I
|
|
|
|
move-result v2
|
|
|
|
iget-object v3, v0, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure;->mVariableDimensionsWidgets:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v3}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result v3
|
|
|
|
if-lez v6, :cond_1a
|
|
|
|
const-string v4, "First pass"
|
|
|
|
invoke-direct {v0, v1, v4, v7, v8}, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure;->solveLinearSystem(Landroidx/constraintlayout/solver/widgets/ConstraintWidgetContainer;Ljava/lang/String;II)V
|
|
|
|
:cond_1a
|
|
if-lez v3, :cond_36
|
|
|
|
invoke-virtual/range {p1 .. p1}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getHorizontalDimensionBehaviour()Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;
|
|
|
|
move-result-object v4
|
|
|
|
sget-object v6, Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;->WRAP_CONTENT:Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;
|
|
|
|
if-ne v4, v6, :cond_1b
|
|
|
|
const/4 v12, 0x1
|
|
|
|
goto :goto_e
|
|
|
|
:cond_1b
|
|
const/4 v12, 0x0
|
|
|
|
:goto_e
|
|
invoke-virtual/range {p1 .. p1}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getVerticalDimensionBehaviour()Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;
|
|
|
|
move-result-object v4
|
|
|
|
sget-object v6, Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;->WRAP_CONTENT:Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;
|
|
|
|
if-ne v4, v6, :cond_1c
|
|
|
|
const/4 v4, 0x1
|
|
|
|
goto :goto_f
|
|
|
|
:cond_1c
|
|
const/4 v4, 0x0
|
|
|
|
:goto_f
|
|
invoke-virtual/range {p1 .. p1}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getWidth()I
|
|
|
|
move-result v6
|
|
|
|
iget-object v9, v0, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure;->constraintWidgetContainer:Landroidx/constraintlayout/solver/widgets/ConstraintWidgetContainer;
|
|
|
|
invoke-virtual {v9}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getMinWidth()I
|
|
|
|
move-result v9
|
|
|
|
invoke-static {v6, v9}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v6
|
|
|
|
invoke-virtual/range {p1 .. p1}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getHeight()I
|
|
|
|
move-result v9
|
|
|
|
iget-object v11, v0, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure;->constraintWidgetContainer:Landroidx/constraintlayout/solver/widgets/ConstraintWidgetContainer;
|
|
|
|
invoke-virtual {v11}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getMinHeight()I
|
|
|
|
move-result v11
|
|
|
|
invoke-static {v9, v11}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v9
|
|
|
|
const/4 v11, 0x0
|
|
|
|
const/4 v13, 0x0
|
|
|
|
:goto_10
|
|
if-ge v11, v3, :cond_23
|
|
|
|
iget-object v15, v0, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure;->mVariableDimensionsWidgets:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v15, v11}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v15
|
|
|
|
check-cast v15, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
instance-of v10, v15, Landroidx/constraintlayout/solver/widgets/VirtualLayout;
|
|
|
|
if-nez v10, :cond_1d
|
|
|
|
move/from16 p5, v2
|
|
|
|
move/from16 v16, v7
|
|
|
|
move/from16 v17, v8
|
|
|
|
goto/16 :goto_11
|
|
|
|
:cond_1d
|
|
invoke-virtual {v15}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getWidth()I
|
|
|
|
move-result v10
|
|
|
|
invoke-virtual {v15}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getHeight()I
|
|
|
|
move-result v14
|
|
|
|
move/from16 p5, v2
|
|
|
|
const/4 v2, 0x1
|
|
|
|
invoke-direct {v0, v5, v15, v2}, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure;->measure(Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measurer;Landroidx/constraintlayout/solver/widgets/ConstraintWidget;Z)Z
|
|
|
|
move-result v16
|
|
|
|
or-int v2, v13, v16
|
|
|
|
iget-object v13, v1, Landroidx/constraintlayout/solver/widgets/ConstraintWidgetContainer;->mMetrics:Landroidx/constraintlayout/solver/Metrics;
|
|
|
|
move/from16 v16, v7
|
|
|
|
move/from16 v17, v8
|
|
|
|
if-eqz v13, :cond_1e
|
|
|
|
iget-wide v7, v13, Landroidx/constraintlayout/solver/Metrics;->measuredMatchWidgets:J
|
|
|
|
const-wide/16 v18, 0x1
|
|
|
|
add-long v7, v7, v18
|
|
|
|
iput-wide v7, v13, Landroidx/constraintlayout/solver/Metrics;->measuredMatchWidgets:J
|
|
|
|
:cond_1e
|
|
invoke-virtual {v15}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getWidth()I
|
|
|
|
move-result v7
|
|
|
|
invoke-virtual {v15}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getHeight()I
|
|
|
|
move-result v8
|
|
|
|
if-eq v7, v10, :cond_20
|
|
|
|
invoke-virtual {v15, v7}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->setWidth(I)V
|
|
|
|
if-eqz v12, :cond_1f
|
|
|
|
invoke-virtual {v15}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getRight()I
|
|
|
|
move-result v2
|
|
|
|
if-le v2, v6, :cond_1f
|
|
|
|
invoke-virtual {v15}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getRight()I
|
|
|
|
move-result v2
|
|
|
|
sget-object v7, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type;->RIGHT:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type;
|
|
|
|
invoke-virtual {v15, v7}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getAnchor(Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type;)Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-virtual {v7}, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->getMargin()I
|
|
|
|
move-result v7
|
|
|
|
add-int/2addr v7, v2
|
|
|
|
invoke-static {v6, v7}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v2
|
|
|
|
move v6, v2
|
|
|
|
:cond_1f
|
|
const/4 v2, 0x1
|
|
|
|
:cond_20
|
|
if-eq v8, v14, :cond_22
|
|
|
|
invoke-virtual {v15, v8}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->setHeight(I)V
|
|
|
|
if-eqz v4, :cond_21
|
|
|
|
invoke-virtual {v15}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getBottom()I
|
|
|
|
move-result v2
|
|
|
|
if-le v2, v9, :cond_21
|
|
|
|
invoke-virtual {v15}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getBottom()I
|
|
|
|
move-result v2
|
|
|
|
sget-object v7, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type;->BOTTOM:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type;
|
|
|
|
invoke-virtual {v15, v7}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getAnchor(Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type;)Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-virtual {v7}, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->getMargin()I
|
|
|
|
move-result v7
|
|
|
|
add-int/2addr v7, v2
|
|
|
|
invoke-static {v9, v7}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v2
|
|
|
|
move v9, v2
|
|
|
|
:cond_21
|
|
const/4 v2, 0x1
|
|
|
|
:cond_22
|
|
check-cast v15, Landroidx/constraintlayout/solver/widgets/VirtualLayout;
|
|
|
|
invoke-virtual {v15}, Landroidx/constraintlayout/solver/widgets/VirtualLayout;->needSolverPass()Z
|
|
|
|
move-result v7
|
|
|
|
or-int v13, v2, v7
|
|
|
|
:goto_11
|
|
add-int/lit8 v11, v11, 0x1
|
|
|
|
move/from16 v2, p5
|
|
|
|
move/from16 v7, v16
|
|
|
|
move/from16 v8, v17
|
|
|
|
const/4 v10, 0x0
|
|
|
|
const/4 v14, 0x2
|
|
|
|
goto/16 :goto_10
|
|
|
|
:cond_23
|
|
move/from16 p5, v2
|
|
|
|
move/from16 v16, v7
|
|
|
|
move/from16 v17, v8
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v7, 0x2
|
|
|
|
:goto_12
|
|
if-ge v2, v7, :cond_32
|
|
|
|
const/4 v8, 0x0
|
|
|
|
:goto_13
|
|
if-ge v8, v3, :cond_30
|
|
|
|
iget-object v10, v0, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure;->mVariableDimensionsWidgets:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v10, v8}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v10
|
|
|
|
check-cast v10, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
instance-of v11, v10, Landroidx/constraintlayout/solver/widgets/Helper;
|
|
|
|
if-eqz v11, :cond_24
|
|
|
|
instance-of v11, v10, Landroidx/constraintlayout/solver/widgets/VirtualLayout;
|
|
|
|
if-eqz v11, :cond_28
|
|
|
|
:cond_24
|
|
instance-of v11, v10, Landroidx/constraintlayout/solver/widgets/Guideline;
|
|
|
|
if-eqz v11, :cond_25
|
|
|
|
goto :goto_14
|
|
|
|
:cond_25
|
|
invoke-virtual {v10}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getVisibility()I
|
|
|
|
move-result v11
|
|
|
|
const/16 v14, 0x8
|
|
|
|
if-ne v11, v14, :cond_26
|
|
|
|
goto :goto_14
|
|
|
|
:cond_26
|
|
iget-object v11, v10, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->horizontalRun:Landroidx/constraintlayout/solver/widgets/analyzer/HorizontalWidgetRun;
|
|
|
|
iget-object v11, v11, Landroidx/constraintlayout/solver/widgets/analyzer/WidgetRun;->dimension:Landroidx/constraintlayout/solver/widgets/analyzer/DimensionDependency;
|
|
|
|
iget-boolean v11, v11, Landroidx/constraintlayout/solver/widgets/analyzer/DependencyNode;->resolved:Z
|
|
|
|
if-eqz v11, :cond_27
|
|
|
|
iget-object v11, v10, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->verticalRun:Landroidx/constraintlayout/solver/widgets/analyzer/VerticalWidgetRun;
|
|
|
|
iget-object v11, v11, Landroidx/constraintlayout/solver/widgets/analyzer/WidgetRun;->dimension:Landroidx/constraintlayout/solver/widgets/analyzer/DimensionDependency;
|
|
|
|
iget-boolean v11, v11, Landroidx/constraintlayout/solver/widgets/analyzer/DependencyNode;->resolved:Z
|
|
|
|
if-eqz v11, :cond_27
|
|
|
|
goto :goto_14
|
|
|
|
:cond_27
|
|
instance-of v11, v10, Landroidx/constraintlayout/solver/widgets/VirtualLayout;
|
|
|
|
if-eqz v11, :cond_29
|
|
|
|
:cond_28
|
|
:goto_14
|
|
move/from16 v18, v2
|
|
|
|
move/from16 p6, v3
|
|
|
|
const-wide/16 v19, 0x1
|
|
|
|
goto/16 :goto_16
|
|
|
|
:cond_29
|
|
invoke-virtual {v10}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getWidth()I
|
|
|
|
move-result v11
|
|
|
|
invoke-virtual {v10}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getHeight()I
|
|
|
|
move-result v14
|
|
|
|
invoke-virtual {v10}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getBaselineDistance()I
|
|
|
|
move-result v15
|
|
|
|
const/4 v7, 0x1
|
|
|
|
invoke-direct {v0, v5, v10, v7}, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure;->measure(Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure$Measurer;Landroidx/constraintlayout/solver/widgets/ConstraintWidget;Z)Z
|
|
|
|
move-result v18
|
|
|
|
or-int v13, v13, v18
|
|
|
|
iget-object v7, v1, Landroidx/constraintlayout/solver/widgets/ConstraintWidgetContainer;->mMetrics:Landroidx/constraintlayout/solver/Metrics;
|
|
|
|
move/from16 v18, v2
|
|
|
|
move/from16 p6, v3
|
|
|
|
if-eqz v7, :cond_2a
|
|
|
|
iget-wide v2, v7, Landroidx/constraintlayout/solver/Metrics;->measuredMatchWidgets:J
|
|
|
|
const-wide/16 v19, 0x1
|
|
|
|
add-long v2, v2, v19
|
|
|
|
iput-wide v2, v7, Landroidx/constraintlayout/solver/Metrics;->measuredMatchWidgets:J
|
|
|
|
goto :goto_15
|
|
|
|
:cond_2a
|
|
const-wide/16 v19, 0x1
|
|
|
|
:goto_15
|
|
invoke-virtual {v10}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getWidth()I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {v10}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getHeight()I
|
|
|
|
move-result v3
|
|
|
|
if-eq v2, v11, :cond_2c
|
|
|
|
invoke-virtual {v10, v2}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->setWidth(I)V
|
|
|
|
if-eqz v12, :cond_2b
|
|
|
|
invoke-virtual {v10}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getRight()I
|
|
|
|
move-result v2
|
|
|
|
if-le v2, v6, :cond_2b
|
|
|
|
invoke-virtual {v10}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getRight()I
|
|
|
|
move-result v2
|
|
|
|
sget-object v7, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type;->RIGHT:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type;
|
|
|
|
invoke-virtual {v10, v7}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getAnchor(Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type;)Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-virtual {v7}, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->getMargin()I
|
|
|
|
move-result v7
|
|
|
|
add-int/2addr v7, v2
|
|
|
|
invoke-static {v6, v7}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v6
|
|
|
|
:cond_2b
|
|
const/4 v13, 0x1
|
|
|
|
:cond_2c
|
|
if-eq v3, v14, :cond_2e
|
|
|
|
invoke-virtual {v10, v3}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->setHeight(I)V
|
|
|
|
if-eqz v4, :cond_2d
|
|
|
|
invoke-virtual {v10}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getBottom()I
|
|
|
|
move-result v2
|
|
|
|
if-le v2, v9, :cond_2d
|
|
|
|
invoke-virtual {v10}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getBottom()I
|
|
|
|
move-result v2
|
|
|
|
sget-object v3, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type;->BOTTOM:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type;
|
|
|
|
invoke-virtual {v10, v3}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getAnchor(Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type;)Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v3}, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->getMargin()I
|
|
|
|
move-result v3
|
|
|
|
add-int/2addr v3, v2
|
|
|
|
invoke-static {v9, v3}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v2
|
|
|
|
move v9, v2
|
|
|
|
:cond_2d
|
|
const/4 v13, 0x1
|
|
|
|
:cond_2e
|
|
invoke-virtual {v10}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->hasBaseline()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_2f
|
|
|
|
invoke-virtual {v10}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getBaselineDistance()I
|
|
|
|
move-result v2
|
|
|
|
if-eq v15, v2, :cond_2f
|
|
|
|
const/4 v13, 0x1
|
|
|
|
:cond_2f
|
|
:goto_16
|
|
add-int/lit8 v8, v8, 0x1
|
|
|
|
move/from16 v3, p6
|
|
|
|
move/from16 v2, v18
|
|
|
|
const/4 v7, 0x2
|
|
|
|
goto/16 :goto_13
|
|
|
|
:cond_30
|
|
move/from16 v18, v2
|
|
|
|
move/from16 p6, v3
|
|
|
|
const-wide/16 v19, 0x1
|
|
|
|
if-eqz v13, :cond_31
|
|
|
|
const-string v2, "intermediate pass"
|
|
|
|
move/from16 v3, v16
|
|
|
|
move/from16 v7, v17
|
|
|
|
invoke-direct {v0, v1, v2, v3, v7}, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure;->solveLinearSystem(Landroidx/constraintlayout/solver/widgets/ConstraintWidgetContainer;Ljava/lang/String;II)V
|
|
|
|
const/4 v13, 0x0
|
|
|
|
goto :goto_17
|
|
|
|
:cond_31
|
|
move/from16 v3, v16
|
|
|
|
move/from16 v7, v17
|
|
|
|
:goto_17
|
|
add-int/lit8 v2, v18, 0x1
|
|
|
|
move/from16 v16, v3
|
|
|
|
move/from16 v17, v7
|
|
|
|
const/4 v7, 0x2
|
|
|
|
move/from16 v3, p6
|
|
|
|
goto/16 :goto_12
|
|
|
|
:cond_32
|
|
move/from16 v3, v16
|
|
|
|
move/from16 v7, v17
|
|
|
|
if-eqz v13, :cond_35
|
|
|
|
const-string v2, "2nd pass"
|
|
|
|
invoke-direct {v0, v1, v2, v3, v7}, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure;->solveLinearSystem(Landroidx/constraintlayout/solver/widgets/ConstraintWidgetContainer;Ljava/lang/String;II)V
|
|
|
|
invoke-virtual/range {p1 .. p1}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getWidth()I
|
|
|
|
move-result v2
|
|
|
|
if-ge v2, v6, :cond_33
|
|
|
|
invoke-virtual {v1, v6}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->setWidth(I)V
|
|
|
|
const/4 v10, 0x1
|
|
|
|
goto :goto_18
|
|
|
|
:cond_33
|
|
const/4 v10, 0x0
|
|
|
|
:goto_18
|
|
invoke-virtual/range {p1 .. p1}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getHeight()I
|
|
|
|
move-result v2
|
|
|
|
if-ge v2, v9, :cond_34
|
|
|
|
invoke-virtual {v1, v9}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->setHeight(I)V
|
|
|
|
const/4 v11, 0x1
|
|
|
|
goto :goto_19
|
|
|
|
:cond_34
|
|
move v11, v10
|
|
|
|
:goto_19
|
|
if-eqz v11, :cond_35
|
|
|
|
const-string v2, "3rd pass"
|
|
|
|
invoke-direct {v0, v1, v2, v3, v7}, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure;->solveLinearSystem(Landroidx/constraintlayout/solver/widgets/ConstraintWidgetContainer;Ljava/lang/String;II)V
|
|
|
|
:cond_35
|
|
move/from16 v2, p5
|
|
|
|
:cond_36
|
|
invoke-virtual {v1, v2}, Landroidx/constraintlayout/solver/widgets/ConstraintWidgetContainer;->setOptimizationLevel(I)V
|
|
|
|
:cond_37
|
|
const-wide/16 v1, 0x0
|
|
|
|
return-wide v1
|
|
.end method
|
|
|
|
.method public updateHierarchy(Landroidx/constraintlayout/solver/widgets/ConstraintWidgetContainer;)V
|
|
.locals 5
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure;->mVariableDimensionsWidgets:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V
|
|
|
|
iget-object v0, p1, Landroidx/constraintlayout/solver/widgets/WidgetContainer;->mChildren:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-ge v1, v0, :cond_2
|
|
|
|
iget-object v2, p1, Landroidx/constraintlayout/solver/widgets/WidgetContainer;->mChildren:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v2, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
invoke-virtual {v2}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getHorizontalDimensionBehaviour()Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;
|
|
|
|
move-result-object v3
|
|
|
|
sget-object v4, Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;->MATCH_CONSTRAINT:Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;
|
|
|
|
if-eq v3, v4, :cond_0
|
|
|
|
invoke-virtual {v2}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getHorizontalDimensionBehaviour()Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;
|
|
|
|
move-result-object v3
|
|
|
|
sget-object v4, Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;->MATCH_PARENT:Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;
|
|
|
|
if-eq v3, v4, :cond_0
|
|
|
|
invoke-virtual {v2}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getVerticalDimensionBehaviour()Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;
|
|
|
|
move-result-object v3
|
|
|
|
sget-object v4, Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;->MATCH_CONSTRAINT:Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;
|
|
|
|
if-eq v3, v4, :cond_0
|
|
|
|
invoke-virtual {v2}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getVerticalDimensionBehaviour()Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;
|
|
|
|
move-result-object v3
|
|
|
|
sget-object v4, Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;->MATCH_PARENT:Landroidx/constraintlayout/solver/widgets/ConstraintWidget$DimensionBehaviour;
|
|
|
|
if-ne v3, v4, :cond_1
|
|
|
|
:cond_0
|
|
iget-object v3, p0, Landroidx/constraintlayout/solver/widgets/analyzer/BasicMeasure;->mVariableDimensionsWidgets:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v3, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_1
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
invoke-virtual {p1}, Landroidx/constraintlayout/solver/widgets/ConstraintWidgetContainer;->invalidateGraph()V
|
|
|
|
return-void
|
|
.end method
|