150 lines
4.5 KiB
Smali
150 lines
4.5 KiB
Smali
.class public Landroidx/constraintlayout/solver/widgets/HelperWidget;
|
|
.super Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
.source "HelperWidget.java"
|
|
|
|
# interfaces
|
|
.implements Landroidx/constraintlayout/solver/widgets/Helper;
|
|
|
|
|
|
# instance fields
|
|
.field public mWidgets:[Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
.field public mWidgetsCount:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;-><init>()V
|
|
|
|
const/4 v0, 0x4
|
|
|
|
new-array v0, v0, [Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
iput-object v0, p0, Landroidx/constraintlayout/solver/widgets/HelperWidget;->mWidgets:[Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput v0, p0, Landroidx/constraintlayout/solver/widgets/HelperWidget;->mWidgetsCount:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public add(Landroidx/constraintlayout/solver/widgets/ConstraintWidget;)V
|
|
.locals 3
|
|
|
|
if-eq p1, p0, :cond_2
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget v0, p0, Landroidx/constraintlayout/solver/widgets/HelperWidget;->mWidgetsCount:I
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
iget-object v1, p0, Landroidx/constraintlayout/solver/widgets/HelperWidget;->mWidgets:[Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
array-length v2, v1
|
|
|
|
if-le v0, v2, :cond_1
|
|
|
|
array-length v0, v1
|
|
|
|
mul-int/lit8 v0, v0, 0x2
|
|
|
|
invoke-static {v1, v0}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, [Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
iput-object v0, p0, Landroidx/constraintlayout/solver/widgets/HelperWidget;->mWidgets:[Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
:cond_1
|
|
iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/HelperWidget;->mWidgets:[Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
iget v1, p0, Landroidx/constraintlayout/solver/widgets/HelperWidget;->mWidgetsCount:I
|
|
|
|
aput-object p1, v0, v1
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
iput v1, p0, Landroidx/constraintlayout/solver/widgets/HelperWidget;->mWidgetsCount:I
|
|
|
|
:cond_2
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public copy(Landroidx/constraintlayout/solver/widgets/ConstraintWidget;Ljava/util/HashMap;)V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroidx/constraintlayout/solver/widgets/ConstraintWidget;",
|
|
"Ljava/util/HashMap<",
|
|
"Landroidx/constraintlayout/solver/widgets/ConstraintWidget;",
|
|
"Landroidx/constraintlayout/solver/widgets/ConstraintWidget;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-super {p0, p1, p2}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->copy(Landroidx/constraintlayout/solver/widgets/ConstraintWidget;Ljava/util/HashMap;)V
|
|
|
|
check-cast p1, Landroidx/constraintlayout/solver/widgets/HelperWidget;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput v0, p0, Landroidx/constraintlayout/solver/widgets/HelperWidget;->mWidgetsCount:I
|
|
|
|
iget v1, p1, Landroidx/constraintlayout/solver/widgets/HelperWidget;->mWidgetsCount:I
|
|
|
|
:goto_0
|
|
if-ge v0, v1, :cond_0
|
|
|
|
iget-object v2, p1, Landroidx/constraintlayout/solver/widgets/HelperWidget;->mWidgets:[Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
aget-object v2, v2, v0
|
|
|
|
invoke-virtual {p2, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
invoke-virtual {p0, v2}, Landroidx/constraintlayout/solver/widgets/HelperWidget;->add(Landroidx/constraintlayout/solver/widgets/ConstraintWidget;)V
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public removeAllIds()V
|
|
.locals 2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput v0, p0, Landroidx/constraintlayout/solver/widgets/HelperWidget;->mWidgetsCount:I
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/HelperWidget;->mWidgets:[Landroidx/constraintlayout/solver/widgets/ConstraintWidget;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-static {v0, v1}, Ljava/util/Arrays;->fill([Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public updateConstraints(Landroidx/constraintlayout/solver/widgets/ConstraintWidgetContainer;)V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|