317 lines
7.5 KiB
Smali
317 lines
7.5 KiB
Smali
.class public Landroidx/constraintlayout/widget/Guideline;
|
|
.super Landroid/view/View;
|
|
.source "Guideline.java"
|
|
|
|
|
|
# instance fields
|
|
.field private mFilterRedundantCalls:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0
|
|
}
|
|
names = {
|
|
"context"
|
|
}
|
|
.end annotation
|
|
|
|
.line 56
|
|
invoke-direct {p0, p1}, Landroid/view/View;-><init>(Landroid/content/Context;)V
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 54
|
|
iput-boolean p1, p0, Landroidx/constraintlayout/widget/Guideline;->mFilterRedundantCalls:Z
|
|
|
|
const/16 p1, 0x8
|
|
|
|
.line 57
|
|
invoke-super {p0, p1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0,
|
|
0x0
|
|
}
|
|
names = {
|
|
"context",
|
|
"attrs"
|
|
}
|
|
.end annotation
|
|
|
|
.line 61
|
|
invoke-direct {p0, p1, p2}, Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 54
|
|
iput-boolean p1, p0, Landroidx/constraintlayout/widget/Guideline;->mFilterRedundantCalls:Z
|
|
|
|
const/16 p1, 0x8
|
|
|
|
.line 62
|
|
invoke-super {p0, p1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0,
|
|
0x0,
|
|
0x0
|
|
}
|
|
names = {
|
|
"context",
|
|
"attrs",
|
|
"defStyleAttr"
|
|
}
|
|
.end annotation
|
|
|
|
.line 66
|
|
invoke-direct {p0, p1, p2, p3}, Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 54
|
|
iput-boolean p1, p0, Landroidx/constraintlayout/widget/Guideline;->mFilterRedundantCalls:Z
|
|
|
|
const/16 p1, 0x8
|
|
|
|
.line 67
|
|
invoke-super {p0, p1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0,
|
|
0x0,
|
|
0x0,
|
|
0x0
|
|
}
|
|
names = {
|
|
"context",
|
|
"attrs",
|
|
"defStyleAttr",
|
|
"defStyleRes"
|
|
}
|
|
.end annotation
|
|
|
|
.line 71
|
|
invoke-direct {p0, p1, p2, p3}, Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 54
|
|
iput-boolean p1, p0, Landroidx/constraintlayout/widget/Guideline;->mFilterRedundantCalls:Z
|
|
|
|
const/16 p1, 0x8
|
|
|
|
.line 72
|
|
invoke-super {p0, p1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public draw(Landroid/graphics/Canvas;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0
|
|
}
|
|
names = {
|
|
"canvas"
|
|
}
|
|
.end annotation
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected onMeasure(II)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0,
|
|
0x0
|
|
}
|
|
names = {
|
|
"widthMeasureSpec",
|
|
"heightMeasureSpec"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 98
|
|
invoke-virtual {p0, p1, p1}, Landroidx/constraintlayout/widget/Guideline;->setMeasuredDimension(II)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setFilterRedundantCalls(Z)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0
|
|
}
|
|
names = {
|
|
"filter"
|
|
}
|
|
.end annotation
|
|
|
|
.line 152
|
|
iput-boolean p1, p0, Landroidx/constraintlayout/widget/Guideline;->mFilterRedundantCalls:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setGuidelineBegin(I)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0
|
|
}
|
|
names = {
|
|
"margin"
|
|
}
|
|
.end annotation
|
|
|
|
.line 107
|
|
invoke-virtual {p0}, Landroidx/constraintlayout/widget/Guideline;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroidx/constraintlayout/widget/ConstraintLayout$LayoutParams;
|
|
|
|
.line 108
|
|
iget-boolean v1, p0, Landroidx/constraintlayout/widget/Guideline;->mFilterRedundantCalls:Z
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
iget v1, v0, Landroidx/constraintlayout/widget/ConstraintLayout$LayoutParams;->guideBegin:I
|
|
|
|
if-ne v1, p1, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 111
|
|
:cond_0
|
|
iput p1, v0, Landroidx/constraintlayout/widget/ConstraintLayout$LayoutParams;->guideBegin:I
|
|
|
|
.line 112
|
|
invoke-virtual {p0, v0}, Landroidx/constraintlayout/widget/Guideline;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setGuidelineEnd(I)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0
|
|
}
|
|
names = {
|
|
"margin"
|
|
}
|
|
.end annotation
|
|
|
|
.line 121
|
|
invoke-virtual {p0}, Landroidx/constraintlayout/widget/Guideline;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroidx/constraintlayout/widget/ConstraintLayout$LayoutParams;
|
|
|
|
.line 122
|
|
iget-boolean v1, p0, Landroidx/constraintlayout/widget/Guideline;->mFilterRedundantCalls:Z
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
iget v1, v0, Landroidx/constraintlayout/widget/ConstraintLayout$LayoutParams;->guideEnd:I
|
|
|
|
if-ne v1, p1, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 125
|
|
:cond_0
|
|
iput p1, v0, Landroidx/constraintlayout/widget/ConstraintLayout$LayoutParams;->guideEnd:I
|
|
|
|
.line 126
|
|
invoke-virtual {p0, v0}, Landroidx/constraintlayout/widget/Guideline;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setGuidelinePercent(F)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0
|
|
}
|
|
names = {
|
|
"ratio"
|
|
}
|
|
.end annotation
|
|
|
|
.line 134
|
|
invoke-virtual {p0}, Landroidx/constraintlayout/widget/Guideline;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroidx/constraintlayout/widget/ConstraintLayout$LayoutParams;
|
|
|
|
.line 135
|
|
iget-boolean v1, p0, Landroidx/constraintlayout/widget/Guideline;->mFilterRedundantCalls:Z
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
iget v1, v0, Landroidx/constraintlayout/widget/ConstraintLayout$LayoutParams;->guidePercent:F
|
|
|
|
cmpl-float v1, v1, p1
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 138
|
|
:cond_0
|
|
iput p1, v0, Landroidx/constraintlayout/widget/ConstraintLayout$LayoutParams;->guidePercent:F
|
|
|
|
.line 139
|
|
invoke-virtual {p0, v0}, Landroidx/constraintlayout/widget/Guideline;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setVisibility(I)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0
|
|
}
|
|
names = {
|
|
"visibility"
|
|
}
|
|
.end annotation
|
|
|
|
return-void
|
|
.end method
|