apkfuckery/com.discord/smali/androidx/constraintlayout/widget/Barrier.smali

258 lines
6.6 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public Landroidx/constraintlayout/widget/Barrier;
.super Landroidx/constraintlayout/widget/ConstraintHelper;
.source "Barrier.java"
# static fields
.field public static final BOTTOM:I = 0x3
.field public static final END:I = 0x6
.field public static final LEFT:I = 0x0
.field public static final RIGHT:I = 0x1
.field public static final START:I = 0x5
.field public static final TOP:I = 0x2
# instance fields
2019-12-06 03:29:40 +00:00
.field public mBarrier:Landroidx/constraintlayout/solver/widgets/Barrier;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mIndicatedType:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mResolvedType:I
2019-07-24 11:27:29 +00:00
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.locals 0
invoke-direct {p0, p1}, Landroidx/constraintlayout/widget/ConstraintHelper;-><init>(Landroid/content/Context;)V
const/16 p1, 0x8
2019-12-06 03:29:40 +00:00
invoke-super {p0, p1}, Landroid/view/View;->setVisibility(I)V
2019-07-24 11:27:29 +00:00
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.locals 0
invoke-direct {p0, p1, p2}, Landroidx/constraintlayout/widget/ConstraintHelper;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
const/16 p1, 0x8
2019-12-06 03:29:40 +00:00
invoke-super {p0, p1}, Landroid/view/View;->setVisibility(I)V
2019-07-24 11:27:29 +00:00
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
.locals 0
invoke-direct {p0, p1, p2, p3}, Landroidx/constraintlayout/widget/ConstraintHelper;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
const/16 p1, 0x8
2019-12-06 03:29:40 +00:00
invoke-super {p0, p1}, Landroid/view/View;->setVisibility(I)V
2019-07-24 11:27:29 +00:00
return-void
.end method
# virtual methods
.method public allowsGoneWidget()Z
.locals 1
iget-object v0, p0, Landroidx/constraintlayout/widget/Barrier;->mBarrier:Landroidx/constraintlayout/solver/widgets/Barrier;
invoke-virtual {v0}, Landroidx/constraintlayout/solver/widgets/Barrier;->allowsGoneWidget()Z
move-result v0
return v0
.end method
.method public getType()I
.locals 1
iget v0, p0, Landroidx/constraintlayout/widget/Barrier;->mIndicatedType:I
return v0
.end method
2019-12-06 03:29:40 +00:00
.method public init(Landroid/util/AttributeSet;)V
2019-07-24 11:27:29 +00:00
.locals 6
invoke-super {p0, p1}, Landroidx/constraintlayout/widget/ConstraintHelper;->init(Landroid/util/AttributeSet;)V
new-instance v0, Landroidx/constraintlayout/solver/widgets/Barrier;
invoke-direct {v0}, Landroidx/constraintlayout/solver/widgets/Barrier;-><init>()V
iput-object v0, p0, Landroidx/constraintlayout/widget/Barrier;->mBarrier:Landroidx/constraintlayout/solver/widgets/Barrier;
if-eqz p1, :cond_2
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
2019-07-24 11:27:29 +00:00
move-result-object v0
sget-object v1, Landroidx/constraintlayout/widget/R$styleable;->ConstraintLayout_Layout:[I
invoke-virtual {v0, p1, v1}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;
move-result-object p1
invoke-virtual {p1}, Landroid/content/res/TypedArray;->getIndexCount()I
move-result v0
const/4 v1, 0x0
const/4 v2, 0x0
:goto_0
if-ge v2, v0, :cond_2
invoke-virtual {p1, v2}, Landroid/content/res/TypedArray;->getIndex(I)I
move-result v3
sget v4, Landroidx/constraintlayout/widget/R$styleable;->ConstraintLayout_Layout_barrierDirection:I
if-ne v3, v4, :cond_0
invoke-virtual {p1, v3, v1}, Landroid/content/res/TypedArray;->getInt(II)I
move-result v3
invoke-virtual {p0, v3}, Landroidx/constraintlayout/widget/Barrier;->setType(I)V
goto :goto_1
:cond_0
sget v4, Landroidx/constraintlayout/widget/R$styleable;->ConstraintLayout_Layout_barrierAllowsGoneWidgets:I
if-ne v3, v4, :cond_1
iget-object v4, p0, Landroidx/constraintlayout/widget/Barrier;->mBarrier:Landroidx/constraintlayout/solver/widgets/Barrier;
const/4 v5, 0x1
invoke-virtual {p1, v3, v5}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result v3
invoke-virtual {v4, v3}, Landroidx/constraintlayout/solver/widgets/Barrier;->setAllowsGoneWidget(Z)V
:cond_1
:goto_1
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_2
iget-object p1, p0, Landroidx/constraintlayout/widget/Barrier;->mBarrier:Landroidx/constraintlayout/solver/widgets/Barrier;
2019-12-06 03:29:40 +00:00
iput-object p1, p0, Landroidx/constraintlayout/widget/ConstraintHelper;->mHelperWidget:Landroidx/constraintlayout/solver/widgets/Helper;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Landroidx/constraintlayout/widget/ConstraintHelper;->validateParams()V
2019-07-24 11:27:29 +00:00
return-void
.end method
.method public setAllowsGoneWidget(Z)V
.locals 1
iget-object v0, p0, Landroidx/constraintlayout/widget/Barrier;->mBarrier:Landroidx/constraintlayout/solver/widgets/Barrier;
invoke-virtual {v0, p1}, Landroidx/constraintlayout/solver/widgets/Barrier;->setAllowsGoneWidget(Z)V
return-void
.end method
.method public setType(I)V
2019-12-06 03:29:40 +00:00
.locals 4
2019-07-24 11:27:29 +00:00
iput p1, p0, Landroidx/constraintlayout/widget/Barrier;->mIndicatedType:I
iput p1, p0, Landroidx/constraintlayout/widget/Barrier;->mResolvedType:I
sget p1, Landroid/os/Build$VERSION;->SDK_INT:I
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
2019-07-24 11:27:29 +00:00
move-result-object p1
invoke-virtual {p1}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
move-result-object p1
invoke-virtual {p1}, Landroid/content/res/Configuration;->getLayoutDirection()I
move-result p1
2019-12-06 03:29:40 +00:00
const/4 v0, 0x0
const/4 v1, 0x1
if-ne v1, p1, :cond_0
2019-07-24 11:27:29 +00:00
const/4 p1, 0x1
goto :goto_0
2019-12-06 03:29:40 +00:00
:cond_0
2019-07-24 11:27:29 +00:00
const/4 p1, 0x0
:goto_0
2019-12-06 03:29:40 +00:00
const/4 v2, 0x6
const/4 v3, 0x5
if-eqz p1, :cond_2
2019-07-24 11:27:29 +00:00
iget p1, p0, Landroidx/constraintlayout/widget/Barrier;->mIndicatedType:I
2019-12-06 03:29:40 +00:00
if-ne p1, v3, :cond_1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iput v1, p0, Landroidx/constraintlayout/widget/Barrier;->mResolvedType:I
2019-07-24 11:27:29 +00:00
goto :goto_1
2019-12-06 03:29:40 +00:00
:cond_1
if-ne p1, v2, :cond_4
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iput v0, p0, Landroidx/constraintlayout/widget/Barrier;->mResolvedType:I
2019-07-24 11:27:29 +00:00
goto :goto_1
2019-12-06 03:29:40 +00:00
:cond_2
2019-07-24 11:27:29 +00:00
iget p1, p0, Landroidx/constraintlayout/widget/Barrier;->mIndicatedType:I
2019-12-06 03:29:40 +00:00
if-ne p1, v3, :cond_3
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iput v0, p0, Landroidx/constraintlayout/widget/Barrier;->mResolvedType:I
2019-07-24 11:27:29 +00:00
goto :goto_1
2019-12-06 03:29:40 +00:00
:cond_3
if-ne p1, v2, :cond_4
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iput v1, p0, Landroidx/constraintlayout/widget/Barrier;->mResolvedType:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
:cond_4
2019-07-24 11:27:29 +00:00
:goto_1
iget-object p1, p0, Landroidx/constraintlayout/widget/Barrier;->mBarrier:Landroidx/constraintlayout/solver/widgets/Barrier;
iget v0, p0, Landroidx/constraintlayout/widget/Barrier;->mResolvedType:I
invoke-virtual {p1, v0}, Landroidx/constraintlayout/solver/widgets/Barrier;->setBarrierType(I)V
return-void
.end method