.class public Landroidx/constraintlayout/solver/widgets/ConstraintAnchor; .super Ljava/lang/Object; .source "ConstraintAnchor.java" # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$ConnectionType;, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Strength;, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; } .end annotation # static fields .field public static final ALLOW_BINARY:Z = false .field public static final AUTO_CONSTRAINT_CREATOR:I = 0x2 .field public static final SCOUT_CREATOR:I = 0x1 .field public static final UNSET_GONE_MARGIN:I = -0x1 .field public static final USER_CREATOR:I # instance fields .field public mConnectionCreator:I .field public mConnectionType:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$ConnectionType; .field public mGoneMargin:I .field public mMargin:I .field public final mOwner:Landroidx/constraintlayout/solver/widgets/ConstraintWidget; .field public mResolutionAnchor:Landroidx/constraintlayout/solver/widgets/ResolutionAnchor; .field public mSolverVariable:Landroidx/constraintlayout/solver/SolverVariable; .field public mStrength:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Strength; .field public mTarget:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor; .field public final mType:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; # direct methods .method public constructor (Landroidx/constraintlayout/solver/widgets/ConstraintWidget;Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type;)V .locals 2 invoke-direct {p0}, Ljava/lang/Object;->()V new-instance v0, Landroidx/constraintlayout/solver/widgets/ResolutionAnchor; invoke-direct {v0, p0}, Landroidx/constraintlayout/solver/widgets/ResolutionAnchor;->(Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;)V iput-object v0, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mResolutionAnchor:Landroidx/constraintlayout/solver/widgets/ResolutionAnchor; const/4 v0, 0x0 iput v0, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mMargin:I const/4 v1, -0x1 iput v1, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mGoneMargin:I sget-object v1, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Strength;->NONE:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Strength; iput-object v1, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mStrength:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Strength; sget-object v1, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$ConnectionType;->RELAXED:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$ConnectionType; iput-object v1, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mConnectionType:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$ConnectionType; iput v0, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mConnectionCreator:I iput-object p1, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mOwner:Landroidx/constraintlayout/solver/widgets/ConstraintWidget; iput-object p2, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mType:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; return-void .end method .method private isConnectionToMe(Landroidx/constraintlayout/solver/widgets/ConstraintWidget;Ljava/util/HashSet;)Z .locals 6 .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroidx/constraintlayout/solver/widgets/ConstraintWidget;", "Ljava/util/HashSet<", "Landroidx/constraintlayout/solver/widgets/ConstraintWidget;", ">;)Z" } .end annotation invoke-virtual {p2, p1}, Ljava/util/HashSet;->contains(Ljava/lang/Object;)Z move-result v0 const/4 v1, 0x0 if-eqz v0, :cond_0 return v1 :cond_0 invoke-virtual {p2, p1}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z invoke-virtual {p0}, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->getOwner()Landroidx/constraintlayout/solver/widgets/ConstraintWidget; move-result-object v0 const/4 v2, 0x1 if-ne p1, v0, :cond_1 return v2 :cond_1 invoke-virtual {p1}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getAnchors()Ljava/util/ArrayList; move-result-object p1 invoke-virtual {p1}, Ljava/util/ArrayList;->size()I move-result v0 const/4 v3, 0x0 :goto_0 if-ge v3, v0, :cond_3 invoke-virtual {p1, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; move-result-object v4 check-cast v4, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor; invoke-virtual {v4, p0}, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->isSimilarDimensionConnection(Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;)Z move-result v5 if-eqz v5, :cond_2 invoke-virtual {v4}, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->isConnected()Z move-result v5 if-eqz v5, :cond_2 invoke-virtual {v4}, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->getTarget()Landroidx/constraintlayout/solver/widgets/ConstraintAnchor; move-result-object v4 invoke-virtual {v4}, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->getOwner()Landroidx/constraintlayout/solver/widgets/ConstraintWidget; move-result-object v4 invoke-direct {p0, v4, p2}, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->isConnectionToMe(Landroidx/constraintlayout/solver/widgets/ConstraintWidget;Ljava/util/HashSet;)Z move-result v4 if-eqz v4, :cond_2 return v2 :cond_2 add-int/lit8 v3, v3, 0x1 goto :goto_0 :cond_3 return v1 .end method # virtual methods .method public connect(Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;I)Z .locals 7 sget-object v4, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Strength;->STRONG:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Strength; const/4 v3, -0x1 const/4 v5, 0x0 const/4 v6, 0x0 move-object v0, p0 move-object v1, p1 move v2, p2 invoke-virtual/range {v0 .. v6}, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->connect(Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;IILandroidx/constraintlayout/solver/widgets/ConstraintAnchor$Strength;IZ)Z move-result p1 return p1 .end method .method public connect(Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;II)Z .locals 7 sget-object v4, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Strength;->STRONG:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Strength; const/4 v3, -0x1 const/4 v6, 0x0 move-object v0, p0 move-object v1, p1 move v2, p2 move v5, p3 invoke-virtual/range {v0 .. v6}, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->connect(Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;IILandroidx/constraintlayout/solver/widgets/ConstraintAnchor$Strength;IZ)Z move-result p1 return p1 .end method .method public connect(Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;IILandroidx/constraintlayout/solver/widgets/ConstraintAnchor$Strength;IZ)Z .locals 2 const/4 v0, 0x1 const/4 v1, 0x0 if-nez p1, :cond_0 const/4 p1, 0x0 iput-object p1, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mTarget:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor; iput v1, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mMargin:I const/4 p1, -0x1 iput p1, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mGoneMargin:I sget-object p1, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Strength;->NONE:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Strength; iput-object p1, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mStrength:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Strength; const/4 p1, 0x2 iput p1, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mConnectionCreator:I return v0 :cond_0 if-nez p6, :cond_1 invoke-virtual {p0, p1}, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->isValidConnection(Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;)Z move-result p6 if-nez p6, :cond_1 return v1 :cond_1 iput-object p1, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mTarget:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor; if-lez p2, :cond_2 iput p2, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mMargin:I goto :goto_0 :cond_2 iput v1, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mMargin:I :goto_0 iput p3, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mGoneMargin:I iput-object p4, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mStrength:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Strength; iput p5, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mConnectionCreator:I return v0 .end method .method public connect(Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;ILandroidx/constraintlayout/solver/widgets/ConstraintAnchor$Strength;I)Z .locals 7 const/4 v3, -0x1 const/4 v6, 0x0 move-object v0, p0 move-object v1, p1 move v2, p2 move-object v4, p3 move v5, p4 invoke-virtual/range {v0 .. v6}, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->connect(Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;IILandroidx/constraintlayout/solver/widgets/ConstraintAnchor$Strength;IZ)Z move-result p1 return p1 .end method .method public getConnectionCreator()I .locals 1 iget v0, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mConnectionCreator:I return v0 .end method .method public getConnectionType()Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$ConnectionType; .locals 1 iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mConnectionType:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$ConnectionType; return-object v0 .end method .method public getMargin()I .locals 3 iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mOwner:Landroidx/constraintlayout/solver/widgets/ConstraintWidget; invoke-virtual {v0}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getVisibility()I move-result v0 const/16 v1, 0x8 if-ne v0, v1, :cond_0 const/4 v0, 0x0 return v0 :cond_0 iget v0, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mGoneMargin:I const/4 v2, -0x1 if-le v0, v2, :cond_1 iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mTarget:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor; if-eqz v0, :cond_1 iget-object v0, v0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mOwner:Landroidx/constraintlayout/solver/widgets/ConstraintWidget; invoke-virtual {v0}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getVisibility()I move-result v0 if-ne v0, v1, :cond_1 iget v0, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mGoneMargin:I return v0 :cond_1 iget v0, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mMargin:I return v0 .end method .method public final getOpposite()Landroidx/constraintlayout/solver/widgets/ConstraintAnchor; .locals 2 iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mType:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; invoke-virtual {v0}, Ljava/lang/Enum;->ordinal()I move-result v0 packed-switch v0, :pswitch_data_0 new-instance v0, Ljava/lang/AssertionError; iget-object v1, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mType:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; invoke-virtual {v1}, Ljava/lang/Enum;->name()Ljava/lang/String; move-result-object v1 invoke-direct {v0, v1}, Ljava/lang/AssertionError;->(Ljava/lang/Object;)V throw v0 :pswitch_0 iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mOwner:Landroidx/constraintlayout/solver/widgets/ConstraintWidget; iget-object v0, v0, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->mTop:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor; return-object v0 :pswitch_1 iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mOwner:Landroidx/constraintlayout/solver/widgets/ConstraintWidget; iget-object v0, v0, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->mBottom:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor; return-object v0 :pswitch_2 iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mOwner:Landroidx/constraintlayout/solver/widgets/ConstraintWidget; iget-object v0, v0, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->mLeft:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor; return-object v0 :pswitch_3 iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mOwner:Landroidx/constraintlayout/solver/widgets/ConstraintWidget; iget-object v0, v0, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->mRight:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor; return-object v0 :pswitch_4 const/4 v0, 0x0 return-object v0 nop :pswitch_data_0 .packed-switch 0x0 :pswitch_4 :pswitch_3 :pswitch_1 :pswitch_2 :pswitch_0 :pswitch_4 :pswitch_4 :pswitch_4 :pswitch_4 .end packed-switch .end method .method public getOwner()Landroidx/constraintlayout/solver/widgets/ConstraintWidget; .locals 1 iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mOwner:Landroidx/constraintlayout/solver/widgets/ConstraintWidget; return-object v0 .end method .method public getPriorityLevel()I .locals 3 iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mType:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; invoke-virtual {v0}, Ljava/lang/Enum;->ordinal()I move-result v0 const/4 v1, 0x0 const/4 v2, 0x2 packed-switch v0, :pswitch_data_0 new-instance v0, Ljava/lang/AssertionError; iget-object v1, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mType:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; invoke-virtual {v1}, Ljava/lang/Enum;->name()Ljava/lang/String; move-result-object v1 invoke-direct {v0, v1}, Ljava/lang/AssertionError;->(Ljava/lang/Object;)V throw v0 :pswitch_0 return v1 :pswitch_1 const/4 v0, 0x1 return v0 :pswitch_2 return v2 nop :pswitch_data_0 .packed-switch 0x0 :pswitch_0 :pswitch_2 :pswitch_2 :pswitch_2 :pswitch_2 :pswitch_1 :pswitch_2 :pswitch_0 :pswitch_0 .end packed-switch .end method .method public getResolutionNode()Landroidx/constraintlayout/solver/widgets/ResolutionAnchor; .locals 1 iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mResolutionAnchor:Landroidx/constraintlayout/solver/widgets/ResolutionAnchor; return-object v0 .end method .method public getSnapPriorityLevel()I .locals 3 iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mType:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; invoke-virtual {v0}, Ljava/lang/Enum;->ordinal()I move-result v0 const/4 v1, 0x1 const/4 v2, 0x0 packed-switch v0, :pswitch_data_0 new-instance v0, Ljava/lang/AssertionError; iget-object v1, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mType:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; invoke-virtual {v1}, Ljava/lang/Enum;->name()Ljava/lang/String; move-result-object v1 invoke-direct {v0, v1}, Ljava/lang/AssertionError;->(Ljava/lang/Object;)V throw v0 :pswitch_0 return v2 :pswitch_1 return v1 :pswitch_2 return v2 :pswitch_3 const/4 v0, 0x2 return v0 :pswitch_4 return v2 :pswitch_5 return v1 :pswitch_6 const/4 v0, 0x3 return v0 :pswitch_data_0 .packed-switch 0x0 :pswitch_0 :pswitch_5 :pswitch_4 :pswitch_5 :pswitch_4 :pswitch_3 :pswitch_6 :pswitch_2 :pswitch_1 .end packed-switch .end method .method public getSolverVariable()Landroidx/constraintlayout/solver/SolverVariable; .locals 1 iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mSolverVariable:Landroidx/constraintlayout/solver/SolverVariable; return-object v0 .end method .method public getStrength()Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Strength; .locals 1 iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mStrength:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Strength; return-object v0 .end method .method public getTarget()Landroidx/constraintlayout/solver/widgets/ConstraintAnchor; .locals 1 iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mTarget:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor; return-object v0 .end method .method public getType()Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; .locals 1 iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mType:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; return-object v0 .end method .method public isConnected()Z .locals 1 iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mTarget:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor; if-eqz v0, :cond_0 const/4 v0, 0x1 goto :goto_0 :cond_0 const/4 v0, 0x0 :goto_0 return v0 .end method .method public isConnectionAllowed(Landroidx/constraintlayout/solver/widgets/ConstraintWidget;)Z .locals 3 new-instance v0, Ljava/util/HashSet; invoke-direct {v0}, Ljava/util/HashSet;->()V invoke-direct {p0, p1, v0}, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->isConnectionToMe(Landroidx/constraintlayout/solver/widgets/ConstraintWidget;Ljava/util/HashSet;)Z move-result v0 const/4 v1, 0x0 if-eqz v0, :cond_0 return v1 :cond_0 invoke-virtual {p0}, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->getOwner()Landroidx/constraintlayout/solver/widgets/ConstraintWidget; move-result-object v0 invoke-virtual {v0}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getParent()Landroidx/constraintlayout/solver/widgets/ConstraintWidget; move-result-object v0 const/4 v2, 0x1 if-ne v0, p1, :cond_1 return v2 :cond_1 invoke-virtual {p1}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getParent()Landroidx/constraintlayout/solver/widgets/ConstraintWidget; move-result-object p1 if-ne p1, v0, :cond_2 return v2 :cond_2 return v1 .end method .method public isConnectionAllowed(Landroidx/constraintlayout/solver/widgets/ConstraintWidget;Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;)Z .locals 0 invoke-virtual {p0, p1}, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->isConnectionAllowed(Landroidx/constraintlayout/solver/widgets/ConstraintWidget;)Z move-result p1 return p1 .end method .method public isSideAnchor()Z .locals 2 iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mType:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; invoke-virtual {v0}, Ljava/lang/Enum;->ordinal()I move-result v0 packed-switch v0, :pswitch_data_0 new-instance v0, Ljava/lang/AssertionError; iget-object v1, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mType:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; invoke-virtual {v1}, Ljava/lang/Enum;->name()Ljava/lang/String; move-result-object v1 invoke-direct {v0, v1}, Ljava/lang/AssertionError;->(Ljava/lang/Object;)V throw v0 :pswitch_0 const/4 v0, 0x1 return v0 :pswitch_1 const/4 v0, 0x0 return v0 nop :pswitch_data_0 .packed-switch 0x0 :pswitch_1 :pswitch_0 :pswitch_0 :pswitch_0 :pswitch_0 :pswitch_1 :pswitch_1 :pswitch_1 :pswitch_1 .end packed-switch .end method .method public isSimilarDimensionConnection(Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;)Z .locals 3 invoke-virtual {p1}, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->getType()Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; move-result-object p1 iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mType:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; const/4 v1, 0x1 if-ne p1, v0, :cond_0 return v1 :cond_0 invoke-virtual {v0}, Ljava/lang/Enum;->ordinal()I move-result v0 const/4 v2, 0x0 packed-switch v0, :pswitch_data_0 new-instance p1, Ljava/lang/AssertionError; iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mType:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; invoke-virtual {v0}, Ljava/lang/Enum;->name()Ljava/lang/String; move-result-object v0 invoke-direct {p1, v0}, Ljava/lang/AssertionError;->(Ljava/lang/Object;)V throw p1 :pswitch_0 return v2 :pswitch_1 sget-object v0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type;->TOP:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; if-eq p1, v0, :cond_2 sget-object v0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type;->BOTTOM:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; if-eq p1, v0, :cond_2 sget-object v0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type;->CENTER_Y:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; if-eq p1, v0, :cond_2 sget-object v0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type;->BASELINE:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; if-ne p1, v0, :cond_1 goto :goto_0 :cond_1 const/4 v1, 0x0 :cond_2 :goto_0 return v1 :pswitch_2 sget-object v0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type;->LEFT:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; if-eq p1, v0, :cond_4 sget-object v0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type;->RIGHT:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; if-eq p1, v0, :cond_4 sget-object v0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type;->CENTER_X:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; if-ne p1, v0, :cond_3 goto :goto_1 :cond_3 const/4 v1, 0x0 :cond_4 :goto_1 return v1 :pswitch_3 sget-object v0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type;->BASELINE:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; if-eq p1, v0, :cond_5 goto :goto_2 :cond_5 const/4 v1, 0x0 :goto_2 return v1 :pswitch_data_0 .packed-switch 0x0 :pswitch_0 :pswitch_2 :pswitch_1 :pswitch_2 :pswitch_1 :pswitch_1 :pswitch_3 :pswitch_2 :pswitch_1 .end packed-switch .end method .method public isSnapCompatibleWith(Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;)Z .locals 8 iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mType:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; sget-object v1, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type;->CENTER:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; const/4 v2, 0x0 if-ne v0, v1, :cond_0 return v2 :cond_0 invoke-virtual {p1}, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->getType()Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; move-result-object v1 const/4 v3, 0x1 if-ne v0, v1, :cond_1 return v3 :cond_1 iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mType:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; invoke-virtual {v0}, Ljava/lang/Enum;->ordinal()I move-result v0 const/4 v1, 0x2 const/16 v4, 0x8 const/4 v5, 0x4 const/4 v6, 0x7 const/4 v7, 0x3 packed-switch v0, :pswitch_data_0 new-instance p1, Ljava/lang/AssertionError; iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mType:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; invoke-virtual {v0}, Ljava/lang/Enum;->name()Ljava/lang/String; move-result-object v0 invoke-direct {p1, v0}, Ljava/lang/AssertionError;->(Ljava/lang/Object;)V throw p1 :pswitch_0 invoke-virtual {p1}, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->getType()Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; move-result-object p1 invoke-virtual {p1}, Ljava/lang/Enum;->ordinal()I move-result p1 if-eq p1, v1, :cond_2 if-eq p1, v5, :cond_2 return v2 :cond_2 return v3 :pswitch_1 invoke-virtual {p1}, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->getType()Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; move-result-object p1 invoke-virtual {p1}, Ljava/lang/Enum;->ordinal()I move-result p1 if-eq p1, v3, :cond_3 if-eq p1, v7, :cond_3 return v2 :cond_3 return v3 :pswitch_2 invoke-virtual {p1}, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->getType()Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; move-result-object p1 invoke-virtual {p1}, Ljava/lang/Enum;->ordinal()I move-result p1 if-eq p1, v1, :cond_4 if-eq p1, v4, :cond_4 return v2 :cond_4 return v3 :pswitch_3 invoke-virtual {p1}, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->getType()Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; move-result-object p1 invoke-virtual {p1}, Ljava/lang/Enum;->ordinal()I move-result p1 if-eq p1, v5, :cond_5 if-eq p1, v4, :cond_5 return v2 :cond_5 return v3 :pswitch_4 invoke-virtual {p1}, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->getType()Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; move-result-object p1 invoke-virtual {p1}, Ljava/lang/Enum;->ordinal()I move-result p1 if-eq p1, v3, :cond_6 if-eq p1, v6, :cond_6 return v2 :cond_6 return v3 :pswitch_5 invoke-virtual {p1}, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->getType()Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; move-result-object p1 invoke-virtual {p1}, Ljava/lang/Enum;->ordinal()I move-result p1 if-eq p1, v7, :cond_7 if-eq p1, v6, :cond_7 return v2 :cond_7 return v3 :pswitch_6 return v2 :pswitch_data_0 .packed-switch 0x0 :pswitch_6 :pswitch_5 :pswitch_3 :pswitch_4 :pswitch_2 :pswitch_6 :pswitch_6 :pswitch_1 :pswitch_0 .end packed-switch .end method .method public isValidConnection(Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;)Z .locals 4 const/4 v0, 0x0 if-nez p1, :cond_0 return v0 :cond_0 invoke-virtual {p1}, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->getType()Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; move-result-object v1 iget-object v2, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mType:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; const/4 v3, 0x1 if-ne v1, v2, :cond_3 sget-object v1, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type;->BASELINE:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; if-ne v2, v1, :cond_2 invoke-virtual {p1}, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->getOwner()Landroidx/constraintlayout/solver/widgets/ConstraintWidget; move-result-object p1 invoke-virtual {p1}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->hasBaseline()Z move-result p1 if-eqz p1, :cond_1 invoke-virtual {p0}, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->getOwner()Landroidx/constraintlayout/solver/widgets/ConstraintWidget; move-result-object p1 invoke-virtual {p1}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->hasBaseline()Z move-result p1 if-nez p1, :cond_2 :cond_1 return v0 :cond_2 return v3 :cond_3 invoke-virtual {v2}, Ljava/lang/Enum;->ordinal()I move-result v2 packed-switch v2, :pswitch_data_0 new-instance p1, Ljava/lang/AssertionError; iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mType:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; invoke-virtual {v0}, Ljava/lang/Enum;->name()Ljava/lang/String; move-result-object v0 invoke-direct {p1, v0}, Ljava/lang/AssertionError;->(Ljava/lang/Object;)V throw p1 :pswitch_0 return v0 :pswitch_1 sget-object v2, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type;->TOP:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; if-eq v1, v2, :cond_5 sget-object v2, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type;->BOTTOM:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; if-ne v1, v2, :cond_4 goto :goto_0 :cond_4 const/4 v2, 0x0 goto :goto_1 :cond_5 :goto_0 const/4 v2, 0x1 :goto_1 invoke-virtual {p1}, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->getOwner()Landroidx/constraintlayout/solver/widgets/ConstraintWidget; move-result-object p1 instance-of p1, p1, Landroidx/constraintlayout/solver/widgets/Guideline; if-eqz p1, :cond_8 if-nez v2, :cond_7 sget-object p1, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type;->CENTER_Y:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; if-ne v1, p1, :cond_6 goto :goto_2 :cond_6 const/4 v2, 0x0 goto :goto_3 :cond_7 :goto_2 const/4 v2, 0x1 :cond_8 :goto_3 return v2 :pswitch_2 sget-object v2, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type;->LEFT:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; if-eq v1, v2, :cond_a sget-object v2, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type;->RIGHT:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; if-ne v1, v2, :cond_9 goto :goto_4 :cond_9 const/4 v2, 0x0 goto :goto_5 :cond_a :goto_4 const/4 v2, 0x1 :goto_5 invoke-virtual {p1}, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->getOwner()Landroidx/constraintlayout/solver/widgets/ConstraintWidget; move-result-object p1 instance-of p1, p1, Landroidx/constraintlayout/solver/widgets/Guideline; if-eqz p1, :cond_d if-nez v2, :cond_c sget-object p1, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type;->CENTER_X:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; if-ne v1, p1, :cond_b goto :goto_6 :cond_b const/4 v2, 0x0 goto :goto_7 :cond_c :goto_6 const/4 v2, 0x1 :cond_d :goto_7 return v2 :pswitch_3 sget-object p1, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type;->BASELINE:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; if-eq v1, p1, :cond_e sget-object p1, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type;->CENTER_X:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; if-eq v1, p1, :cond_e sget-object p1, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type;->CENTER_Y:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; if-eq v1, p1, :cond_e const/4 v0, 0x1 :cond_e return v0 nop :pswitch_data_0 .packed-switch 0x0 :pswitch_0 :pswitch_2 :pswitch_1 :pswitch_2 :pswitch_1 :pswitch_0 :pswitch_3 :pswitch_0 :pswitch_0 .end packed-switch .end method .method public isVerticalAnchor()Z .locals 2 iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mType:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; invoke-virtual {v0}, Ljava/lang/Enum;->ordinal()I move-result v0 packed-switch v0, :pswitch_data_0 new-instance v0, Ljava/lang/AssertionError; iget-object v1, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mType:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; invoke-virtual {v1}, Ljava/lang/Enum;->name()Ljava/lang/String; move-result-object v1 invoke-direct {v0, v1}, Ljava/lang/AssertionError;->(Ljava/lang/Object;)V throw v0 :pswitch_0 const/4 v0, 0x1 return v0 :pswitch_1 const/4 v0, 0x0 return v0 nop :pswitch_data_0 .packed-switch 0x0 :pswitch_0 :pswitch_1 :pswitch_0 :pswitch_1 :pswitch_0 :pswitch_0 :pswitch_1 :pswitch_1 :pswitch_0 .end packed-switch .end method .method public reset()V .locals 2 const/4 v0, 0x0 iput-object v0, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mTarget:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor; const/4 v0, 0x0 iput v0, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mMargin:I const/4 v1, -0x1 iput v1, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mGoneMargin:I sget-object v1, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Strength;->STRONG:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Strength; iput-object v1, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mStrength:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Strength; iput v0, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mConnectionCreator:I sget-object v0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$ConnectionType;->RELAXED:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$ConnectionType; iput-object v0, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mConnectionType:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$ConnectionType; iget-object v0, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mResolutionAnchor:Landroidx/constraintlayout/solver/widgets/ResolutionAnchor; invoke-virtual {v0}, Landroidx/constraintlayout/solver/widgets/ResolutionAnchor;->reset()V return-void .end method .method public resetSolverVariable(Landroidx/constraintlayout/solver/Cache;)V .locals 2 iget-object p1, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mSolverVariable:Landroidx/constraintlayout/solver/SolverVariable; if-nez p1, :cond_0 new-instance p1, Landroidx/constraintlayout/solver/SolverVariable; sget-object v0, Landroidx/constraintlayout/solver/SolverVariable$Type;->UNRESTRICTED:Landroidx/constraintlayout/solver/SolverVariable$Type; const/4 v1, 0x0 invoke-direct {p1, v0, v1}, Landroidx/constraintlayout/solver/SolverVariable;->(Landroidx/constraintlayout/solver/SolverVariable$Type;Ljava/lang/String;)V iput-object p1, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mSolverVariable:Landroidx/constraintlayout/solver/SolverVariable; goto :goto_0 :cond_0 invoke-virtual {p1}, Landroidx/constraintlayout/solver/SolverVariable;->reset()V :goto_0 return-void .end method .method public setConnectionCreator(I)V .locals 0 iput p1, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mConnectionCreator:I return-void .end method .method public setConnectionType(Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$ConnectionType;)V .locals 0 iput-object p1, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mConnectionType:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$ConnectionType; return-void .end method .method public setGoneMargin(I)V .locals 1 invoke-virtual {p0}, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->isConnected()Z move-result v0 if-eqz v0, :cond_0 iput p1, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mGoneMargin:I :cond_0 return-void .end method .method public setMargin(I)V .locals 1 invoke-virtual {p0}, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->isConnected()Z move-result v0 if-eqz v0, :cond_0 iput p1, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mMargin:I :cond_0 return-void .end method .method public setStrength(Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Strength;)V .locals 1 invoke-virtual {p0}, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->isConnected()Z move-result v0 if-eqz v0, :cond_0 iput-object p1, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mStrength:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Strength; :cond_0 return-void .end method .method public toString()Ljava/lang/String; .locals 2 new-instance v0, Ljava/lang/StringBuilder; invoke-direct {v0}, Ljava/lang/StringBuilder;->()V iget-object v1, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mOwner:Landroidx/constraintlayout/solver/widgets/ConstraintWidget; invoke-virtual {v1}, Landroidx/constraintlayout/solver/widgets/ConstraintWidget;->getDebugName()Ljava/lang/String; move-result-object v1 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string v1, ":" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; iget-object v1, p0, Landroidx/constraintlayout/solver/widgets/ConstraintAnchor;->mType:Landroidx/constraintlayout/solver/widgets/ConstraintAnchor$Type; invoke-virtual {v1}, Ljava/lang/Enum;->toString()Ljava/lang/String; move-result-object 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 return-object v0 .end method