327 lines
9 KiB
Smali
327 lines
9 KiB
Smali
|
.class public Landroidx/constraintlayout/solver/widgets/WidgetContainer;
|
||
|
.super Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
||
|
.source "WidgetContainer.java"
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field public mChildren: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>()V
|
||
|
.locals 1
|
||
|
|
||
|
invoke-direct {p0}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;-><init>()V
|
||
|
|
||
|
new-instance v0, Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
||
|
|
||
|
iput-object v0, p0, Landroidx/constraintlayout/solver/widgets/WidgetContainer;->mChildren:Ljava/util/ArrayList;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public constructor <init>(II)V
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0, p1, p2}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;-><init>(II)V
|
||
|
|
||
|
new-instance p1, Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
|
||
|
|
||
|
iput-object p1, p0, Landroidx/constraintlayout/solver/widgets/WidgetContainer;->mChildren:Ljava/util/ArrayList;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public constructor <init>(IIII)V
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0, p1, p2, p3, p4}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;-><init>(IIII)V
|
||
|
|
||
|
new-instance p1, Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
|
||
|
|
||
|
iput-object p1, p0, Landroidx/constraintlayout/solver/widgets/WidgetContainer;->mChildren:Ljava/util/ArrayList;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public add(Landroidx/constraintlayout/solver/widgets/ConstraintWidget;)V
|
||
|
.locals 1
|
||
|
|
||
|
iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/WidgetContainer;->mChildren:Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
||
|
|
||
|
invoke-virtual {p1}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getParent()Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
invoke-virtual {p1}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getParent()Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Landroidx/constraintlayout/solver/widgets/WidgetContainer;
|
||
|
|
||
|
invoke-virtual {v0, p1}, Landroidx/constraintlayout/solver/widgets/WidgetContainer;->remove(Landroidx/constraintlayout/solver/widgets/ConstraintWidget;)V
|
||
|
|
||
|
:cond_0
|
||
|
invoke-virtual {p1, p0}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->setParent(Landroidx/constraintlayout/solver/widgets/ConstraintWidget;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public varargs add([Landroidx/constraintlayout/solver/widgets/ConstraintWidget;)V
|
||
|
.locals 3
|
||
|
|
||
|
array-length v0, p1
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
if-ge v1, v0, :cond_0
|
||
|
|
||
|
aget-object v2, p1, v1
|
||
|
|
||
|
invoke-virtual {p0, v2}, Landroidx/constraintlayout/solver/widgets/WidgetContainer;->add(Landroidx/constraintlayout/solver/widgets/ConstraintWidget;)V
|
||
|
|
||
|
add-int/lit8 v1, v1, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public getChildren()Ljava/util/ArrayList;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"()",
|
||
|
"Ljava/util/ArrayList<",
|
||
|
"Landroidx/constraintlayout/solver/widgets/ConstraintWidget;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/WidgetContainer;->mChildren:Ljava/util/ArrayList;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public getRootConstraintContainer()Landroidx/constraintlayout/solver/widgets/ConstraintWidgetContainer;
|
||
|
.locals 4
|
||
|
|
||
|
invoke-virtual {p0}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getParent()Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
instance-of v1, p0, Landroidx/constraintlayout/solver/widgets/ConstraintWidgetContainer;
|
||
|
|
||
|
if-eqz v1, :cond_0
|
||
|
|
||
|
move-object v1, p0
|
||
|
|
||
|
check-cast v1, Landroidx/constraintlayout/solver/widgets/ConstraintWidgetContainer;
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
if-eqz v0, :cond_2
|
||
|
|
||
|
invoke-virtual {v0}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getParent()Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
instance-of v3, v0, Landroidx/constraintlayout/solver/widgets/ConstraintWidgetContainer;
|
||
|
|
||
|
if-eqz v3, :cond_1
|
||
|
|
||
|
move-object v1, v0
|
||
|
|
||
|
check-cast v1, Landroidx/constraintlayout/solver/widgets/ConstraintWidgetContainer;
|
||
|
|
||
|
:cond_1
|
||
|
move-object v0, v2
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_2
|
||
|
return-object v1
|
||
|
.end method
|
||
|
|
||
|
.method public layout()V
|
||
|
.locals 4
|
||
|
|
||
|
iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/WidgetContainer;->mChildren:Ljava/util/ArrayList;
|
||
|
|
||
|
if-nez v0, :cond_0
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:cond_0
|
||
|
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, p0, 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;
|
||
|
|
||
|
instance-of v3, v2, Landroidx/constraintlayout/solver/widgets/WidgetContainer;
|
||
|
|
||
|
if-eqz v3, :cond_1
|
||
|
|
||
|
check-cast v2, Landroidx/constraintlayout/solver/widgets/WidgetContainer;
|
||
|
|
||
|
invoke-virtual {v2}, Landroidx/constraintlayout/solver/widgets/WidgetContainer;->layout()V
|
||
|
|
||
|
:cond_1
|
||
|
add-int/lit8 v1, v1, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_2
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public remove(Landroidx/constraintlayout/solver/widgets/ConstraintWidget;)V
|
||
|
.locals 1
|
||
|
|
||
|
iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/WidgetContainer;->mChildren:Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
invoke-virtual {p1, v0}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->setParent(Landroidx/constraintlayout/solver/widgets/ConstraintWidget;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public removeAllChildren()V
|
||
|
.locals 1
|
||
|
|
||
|
iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/WidgetContainer;->mChildren:Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public reset()V
|
||
|
.locals 1
|
||
|
|
||
|
iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/WidgetContainer;->mChildren:Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V
|
||
|
|
||
|
invoke-super {p0}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->reset()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public resetSolverVariables(Landroidx/constraintlayout/solver/Cache;)V
|
||
|
.locals 3
|
||
|
|
||
|
invoke-super {p0, p1}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->resetSolverVariables(Landroidx/constraintlayout/solver/Cache;)V
|
||
|
|
||
|
iget-object v0, p0, 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_0
|
||
|
|
||
|
iget-object v2, p0, 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, p1}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->resetSolverVariables(Landroidx/constraintlayout/solver/Cache;)V
|
||
|
|
||
|
add-int/lit8 v1, v1, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public setOffset(II)V
|
||
|
.locals 3
|
||
|
|
||
|
invoke-super {p0, p1, p2}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->setOffset(II)V
|
||
|
|
||
|
iget-object p1, p0, Landroidx/constraintlayout/solver/widgets/WidgetContainer;->mChildren:Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-virtual {p1}, Ljava/util/ArrayList;->size()I
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
const/4 p2, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
if-ge p2, p1, :cond_0
|
||
|
|
||
|
iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/WidgetContainer;->mChildren:Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-virtual {v0, p2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
||
|
|
||
|
invoke-virtual {p0}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getRootX()I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
invoke-virtual {p0}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getRootY()I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
invoke-virtual {v0, v1, v2}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->setOffset(II)V
|
||
|
|
||
|
add-int/lit8 p2, p2, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
return-void
|
||
|
.end method
|