2020-09-16 23:45:23 +00:00
|
|
|
.class public Landroidx/constraintlayout/solver/PriorityGoalRow;
|
|
|
|
.super Landroidx/constraintlayout/solver/ArrayRow;
|
|
|
|
.source "PriorityGoalRow.java"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Landroidx/constraintlayout/solver/PriorityGoalRow$GoalVariableAccessor;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field public static final DEBUG:Z = false
|
|
|
|
|
|
|
|
.field public static final NOT_FOUND:I = -0x1
|
|
|
|
|
|
|
|
.field public static final epsilon:F = 1.0E-4f
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public TABLE_SIZE:I
|
|
|
|
|
|
|
|
.field public accessor:Landroidx/constraintlayout/solver/PriorityGoalRow$GoalVariableAccessor;
|
|
|
|
|
|
|
|
.field public arrayGoals:[Landroidx/constraintlayout/solver/SolverVariable;
|
|
|
|
|
|
|
|
.field public mCache:Landroidx/constraintlayout/solver/Cache;
|
|
|
|
|
|
|
|
.field public numGoals:I
|
|
|
|
|
|
|
|
.field public sortArray:[Landroidx/constraintlayout/solver/SolverVariable;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Landroidx/constraintlayout/solver/Cache;)V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Landroidx/constraintlayout/solver/ArrayRow;-><init>(Landroidx/constraintlayout/solver/Cache;)V
|
|
|
|
|
|
|
|
const/16 v0, 0x80
|
|
|
|
|
|
|
|
iput v0, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->TABLE_SIZE:I
|
|
|
|
|
|
|
|
new-array v1, v0, [Landroidx/constraintlayout/solver/SolverVariable;
|
|
|
|
|
|
|
|
iput-object v1, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->arrayGoals:[Landroidx/constraintlayout/solver/SolverVariable;
|
|
|
|
|
|
|
|
new-array v0, v0, [Landroidx/constraintlayout/solver/SolverVariable;
|
|
|
|
|
|
|
|
iput-object v0, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->sortArray:[Landroidx/constraintlayout/solver/SolverVariable;
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
iput v0, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->numGoals:I
|
|
|
|
|
|
|
|
new-instance v0, Landroidx/constraintlayout/solver/PriorityGoalRow$GoalVariableAccessor;
|
|
|
|
|
|
|
|
invoke-direct {v0, p0, p0}, Landroidx/constraintlayout/solver/PriorityGoalRow$GoalVariableAccessor;-><init>(Landroidx/constraintlayout/solver/PriorityGoalRow;Landroidx/constraintlayout/solver/PriorityGoalRow;)V
|
|
|
|
|
|
|
|
iput-object v0, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->accessor:Landroidx/constraintlayout/solver/PriorityGoalRow$GoalVariableAccessor;
|
|
|
|
|
|
|
|
iput-object p1, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->mCache:Landroidx/constraintlayout/solver/Cache;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static synthetic access$000(Landroidx/constraintlayout/solver/PriorityGoalRow;Landroidx/constraintlayout/solver/SolverVariable;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Landroidx/constraintlayout/solver/PriorityGoalRow;->removeGoal(Landroidx/constraintlayout/solver/SolverVariable;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final addToGoal(Landroidx/constraintlayout/solver/SolverVariable;)V
|
|
|
|
.locals 5
|
|
|
|
|
|
|
|
iget v0, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->numGoals:I
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
|
|
|
|
iget-object v2, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->arrayGoals:[Landroidx/constraintlayout/solver/SolverVariable;
|
|
|
|
|
|
|
|
array-length v3, v2
|
|
|
|
|
|
|
|
if-le v0, v3, :cond_0
|
|
|
|
|
|
|
|
array-length v0, v2
|
|
|
|
|
|
|
|
mul-int/lit8 v0, v0, 0x2
|
|
|
|
|
|
|
|
invoke-static {v2, v0}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, [Landroidx/constraintlayout/solver/SolverVariable;
|
|
|
|
|
|
|
|
iput-object v0, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->arrayGoals:[Landroidx/constraintlayout/solver/SolverVariable;
|
|
|
|
|
|
|
|
array-length v2, v0
|
|
|
|
|
|
|
|
mul-int/lit8 v2, v2, 0x2
|
|
|
|
|
|
|
|
invoke-static {v0, v2}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, [Landroidx/constraintlayout/solver/SolverVariable;
|
|
|
|
|
|
|
|
iput-object v0, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->sortArray:[Landroidx/constraintlayout/solver/SolverVariable;
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->arrayGoals:[Landroidx/constraintlayout/solver/SolverVariable;
|
|
|
|
|
|
|
|
iget v2, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->numGoals:I
|
|
|
|
|
|
|
|
aput-object p1, v0, v2
|
|
|
|
|
|
|
|
add-int/2addr v2, v1
|
|
|
|
|
|
|
|
iput v2, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->numGoals:I
|
|
|
|
|
|
|
|
if-le v2, v1, :cond_2
|
|
|
|
|
|
|
|
sub-int/2addr v2, v1
|
|
|
|
|
|
|
|
aget-object v0, v0, v2
|
|
|
|
|
|
|
|
iget v0, v0, Landroidx/constraintlayout/solver/SolverVariable;->id:I
|
|
|
|
|
|
|
|
iget v2, p1, Landroidx/constraintlayout/solver/SolverVariable;->id:I
|
|
|
|
|
|
|
|
if-le v0, v2, :cond_2
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
iget v3, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->numGoals:I
|
|
|
|
|
|
|
|
if-ge v2, v3, :cond_1
|
|
|
|
|
|
|
|
iget-object v3, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->sortArray:[Landroidx/constraintlayout/solver/SolverVariable;
|
|
|
|
|
|
|
|
iget-object v4, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->arrayGoals:[Landroidx/constraintlayout/solver/SolverVariable;
|
|
|
|
|
|
|
|
aget-object v4, v4, v2
|
|
|
|
|
|
|
|
aput-object v4, v3, v2
|
|
|
|
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
iget-object v2, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->sortArray:[Landroidx/constraintlayout/solver/SolverVariable;
|
|
|
|
|
|
|
|
new-instance v4, Landroidx/constraintlayout/solver/PriorityGoalRow$1;
|
|
|
|
|
|
|
|
invoke-direct {v4, p0}, Landroidx/constraintlayout/solver/PriorityGoalRow$1;-><init>(Landroidx/constraintlayout/solver/PriorityGoalRow;)V
|
|
|
|
|
|
|
|
invoke-static {v2, v0, v3, v4}, Ljava/util/Arrays;->sort([Ljava/lang/Object;IILjava/util/Comparator;)V
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
iget v2, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->numGoals:I
|
|
|
|
|
|
|
|
if-ge v0, v2, :cond_2
|
|
|
|
|
|
|
|
iget-object v2, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->arrayGoals:[Landroidx/constraintlayout/solver/SolverVariable;
|
|
|
|
|
|
|
|
iget-object v3, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->sortArray:[Landroidx/constraintlayout/solver/SolverVariable;
|
|
|
|
|
|
|
|
aget-object v3, v3, v0
|
|
|
|
|
|
|
|
aput-object v3, v2, v0
|
|
|
|
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
iput-boolean v1, p1, Landroidx/constraintlayout/solver/SolverVariable;->inGoal:Z
|
|
|
|
|
|
|
|
invoke-virtual {p1, p0}, Landroidx/constraintlayout/solver/SolverVariable;->addToRow(Landroidx/constraintlayout/solver/ArrayRow;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final removeGoal(Landroidx/constraintlayout/solver/SolverVariable;)V
|
|
|
|
.locals 5
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
iget v2, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->numGoals:I
|
|
|
|
|
|
|
|
if-ge v1, v2, :cond_2
|
|
|
|
|
|
|
|
iget-object v2, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->arrayGoals:[Landroidx/constraintlayout/solver/SolverVariable;
|
|
|
|
|
|
|
|
aget-object v2, v2, v1
|
|
|
|
|
|
|
|
if-ne v2, p1, :cond_1
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
iget v2, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->numGoals:I
|
|
|
|
|
|
|
|
add-int/lit8 v3, v2, -0x1
|
|
|
|
|
|
|
|
if-ge v1, v3, :cond_0
|
|
|
|
|
|
|
|
iget-object v2, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->arrayGoals:[Landroidx/constraintlayout/solver/SolverVariable;
|
|
|
|
|
|
|
|
add-int/lit8 v3, v1, 0x1
|
|
|
|
|
|
|
|
aget-object v4, v2, v3
|
|
|
|
|
|
|
|
aput-object v4, v2, v1
|
|
|
|
|
|
|
|
move v1, v3
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
add-int/lit8 v2, v2, -0x1
|
|
|
|
|
|
|
|
iput v2, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->numGoals:I
|
|
|
|
|
|
|
|
iput-boolean v0, p1, Landroidx/constraintlayout/solver/SolverVariable;->inGoal:Z
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public addError(Landroidx/constraintlayout/solver/SolverVariable;)V
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->accessor:Landroidx/constraintlayout/solver/PriorityGoalRow$GoalVariableAccessor;
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Landroidx/constraintlayout/solver/PriorityGoalRow$GoalVariableAccessor;->init(Landroidx/constraintlayout/solver/SolverVariable;)V
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->accessor:Landroidx/constraintlayout/solver/PriorityGoalRow$GoalVariableAccessor;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroidx/constraintlayout/solver/PriorityGoalRow$GoalVariableAccessor;->reset()V
|
|
|
|
|
|
|
|
iget-object v0, p1, Landroidx/constraintlayout/solver/SolverVariable;->goalStrengthVector:[F
|
|
|
|
|
|
|
|
iget v1, p1, Landroidx/constraintlayout/solver/SolverVariable;->strength:I
|
|
|
|
|
|
|
|
const/high16 v2, 0x3f800000 # 1.0f
|
|
|
|
|
|
|
|
aput v2, v0, v1
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Landroidx/constraintlayout/solver/PriorityGoalRow;->addToGoal(Landroidx/constraintlayout/solver/SolverVariable;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public clear()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
iput v0, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->numGoals:I
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
iput v0, p0, Landroidx/constraintlayout/solver/ArrayRow;->constantValue:F
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getPivotCandidate(Landroidx/constraintlayout/solver/LinearSystem;[Z)Landroidx/constraintlayout/solver/SolverVariable;
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
const/4 p1, -0x1
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
const/4 v1, -0x1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
iget v2, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->numGoals:I
|
|
|
|
|
|
|
|
if-ge v0, v2, :cond_3
|
|
|
|
|
|
|
|
iget-object v2, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->arrayGoals:[Landroidx/constraintlayout/solver/SolverVariable;
|
|
|
|
|
|
|
|
aget-object v2, v2, v0
|
|
|
|
|
|
|
|
iget v3, v2, Landroidx/constraintlayout/solver/SolverVariable;->id:I
|
|
|
|
|
|
|
|
aget-boolean v3, p2, v3
|
|
|
|
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object v3, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->accessor:Landroidx/constraintlayout/solver/PriorityGoalRow$GoalVariableAccessor;
|
|
|
|
|
|
|
|
invoke-virtual {v3, v2}, Landroidx/constraintlayout/solver/PriorityGoalRow$GoalVariableAccessor;->init(Landroidx/constraintlayout/solver/SolverVariable;)V
|
|
|
|
|
|
|
|
if-ne v1, p1, :cond_1
|
|
|
|
|
|
|
|
iget-object v2, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->accessor:Landroidx/constraintlayout/solver/PriorityGoalRow$GoalVariableAccessor;
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Landroidx/constraintlayout/solver/PriorityGoalRow$GoalVariableAccessor;->isNegative()Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
iget-object v2, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->accessor:Landroidx/constraintlayout/solver/PriorityGoalRow$GoalVariableAccessor;
|
|
|
|
|
|
|
|
iget-object v3, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->arrayGoals:[Landroidx/constraintlayout/solver/SolverVariable;
|
|
|
|
|
|
|
|
aget-object v3, v3, v1
|
|
|
|
|
|
|
|
invoke-virtual {v2, v3}, Landroidx/constraintlayout/solver/PriorityGoalRow$GoalVariableAccessor;->isSmallerThan(Landroidx/constraintlayout/solver/SolverVariable;)Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
move v1, v0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
:goto_2
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
if-ne v1, p1, :cond_4
|
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
iget-object p1, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->arrayGoals:[Landroidx/constraintlayout/solver/SolverVariable;
|
|
|
|
|
|
|
|
aget-object p1, p1, v1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
const-string v0, ""
|
|
|
|
|
|
|
|
const-string v1, " goal -> ("
|
|
|
|
|
2020-09-23 03:12:49 +00:00
|
|
|
invoke-static {v0, v1}, Lf/e/c/a/a;->K(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iget v1, p0, Landroidx/constraintlayout/solver/ArrayRow;->constantValue:F
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ") : "
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
iget v2, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->numGoals:I
|
|
|
|
|
|
|
|
if-ge v1, v2, :cond_0
|
|
|
|
|
|
|
|
iget-object v2, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->arrayGoals:[Landroidx/constraintlayout/solver/SolverVariable;
|
|
|
|
|
|
|
|
aget-object v2, v2, v1
|
|
|
|
|
|
|
|
iget-object v3, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->accessor:Landroidx/constraintlayout/solver/PriorityGoalRow$GoalVariableAccessor;
|
|
|
|
|
|
|
|
invoke-virtual {v3, v2}, Landroidx/constraintlayout/solver/PriorityGoalRow$GoalVariableAccessor;->init(Landroidx/constraintlayout/solver/SolverVariable;)V
|
|
|
|
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->accessor:Landroidx/constraintlayout/solver/PriorityGoalRow$GoalVariableAccessor;
|
|
|
|
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v0, " "
|
|
|
|
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public updateFromRow(Landroidx/constraintlayout/solver/ArrayRow;Z)V
|
|
|
|
.locals 6
|
|
|
|
|
|
|
|
iget-object p2, p1, Landroidx/constraintlayout/solver/ArrayRow;->variable:Landroidx/constraintlayout/solver/SolverVariable;
|
|
|
|
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object v0, p1, Landroidx/constraintlayout/solver/ArrayRow;->variables:Landroidx/constraintlayout/solver/ArrayRow$ArrayRowVariables;
|
|
|
|
|
|
|
|
invoke-interface {v0}, Landroidx/constraintlayout/solver/ArrayRow$ArrayRowVariables;->getCurrentSize()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-ge v2, v1, :cond_2
|
|
|
|
|
|
|
|
invoke-interface {v0, v2}, Landroidx/constraintlayout/solver/ArrayRow$ArrayRowVariables;->getVariable(I)Landroidx/constraintlayout/solver/SolverVariable;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-interface {v0, v2}, Landroidx/constraintlayout/solver/ArrayRow$ArrayRowVariables;->getVariableValue(I)F
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
iget-object v5, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->accessor:Landroidx/constraintlayout/solver/PriorityGoalRow$GoalVariableAccessor;
|
|
|
|
|
|
|
|
invoke-virtual {v5, v3}, Landroidx/constraintlayout/solver/PriorityGoalRow$GoalVariableAccessor;->init(Landroidx/constraintlayout/solver/SolverVariable;)V
|
|
|
|
|
|
|
|
iget-object v5, p0, Landroidx/constraintlayout/solver/PriorityGoalRow;->accessor:Landroidx/constraintlayout/solver/PriorityGoalRow$GoalVariableAccessor;
|
|
|
|
|
|
|
|
invoke-virtual {v5, p2, v4}, Landroidx/constraintlayout/solver/PriorityGoalRow$GoalVariableAccessor;->addToGoal(Landroidx/constraintlayout/solver/SolverVariable;F)Z
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
if-eqz v5, :cond_1
|
|
|
|
|
|
|
|
invoke-direct {p0, v3}, Landroidx/constraintlayout/solver/PriorityGoalRow;->addToGoal(Landroidx/constraintlayout/solver/SolverVariable;)V
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
iget v3, p0, Landroidx/constraintlayout/solver/ArrayRow;->constantValue:F
|
|
|
|
|
|
|
|
iget v5, p1, Landroidx/constraintlayout/solver/ArrayRow;->constantValue:F
|
|
|
|
|
|
|
|
mul-float v5, v5, v4
|
|
|
|
|
|
|
|
add-float/2addr v5, v3
|
|
|
|
|
|
|
|
iput v5, p0, Landroidx/constraintlayout/solver/ArrayRow;->constantValue:F
|
|
|
|
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
invoke-direct {p0, p2}, Landroidx/constraintlayout/solver/PriorityGoalRow;->removeGoal(Landroidx/constraintlayout/solver/SolverVariable;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|