TableLayout$Bounds.smali

.class Lim/tpelyyftgw/ui/components/TableLayout$Bounds;
.super Ljava/lang/Object;
.source "TableLayout.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lim/tpelyyftgw/ui/components/TableLayout;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = "Bounds"
.end annotation


# instance fields
.field public after:I

.field public before:I

.field public flexibility:I


# direct methods
.method static constructor <clinit>()V
    .registers 1

    return-void
.end method

.method private constructor <init>()V
    .registers 1

    .line 1731
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 1732
    invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/TableLayout$Bounds;->reset()V

    .line 1733
    return-void
.end method

.method synthetic constructor <init>(Lim/tpelyyftgw/ui/components/TableLayout$1;)V
    .registers 2
    .param p1, "x0"    # Lim/tpelyyftgw/ui/components/TableLayout$1;

    .line 1726
    invoke-direct {p0}, Lim/tpelyyftgw/ui/components/TableLayout$Bounds;-><init>()V

    return-void
.end method


# virtual methods
.method protected getOffset(Lim/tpelyyftgw/ui/components/TableLayout;Lim/tpelyyftgw/ui/components/TableLayout$Child;Lim/tpelyyftgw/ui/components/TableLayout$Alignment;IZ)I
    .registers 8
    .param p1, "gl"    # Lim/tpelyyftgw/ui/components/TableLayout;
    .param p2, "c"    # Lim/tpelyyftgw/ui/components/TableLayout$Child;
    .param p3, "a"    # Lim/tpelyyftgw/ui/components/TableLayout$Alignment;
    .param p4, "size"    # I
    .param p5, "horizontal"    # Z

    .line 1756
    iget v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Bounds;->before:I

    invoke-virtual {p3, p2, p4}, Lim/tpelyyftgw/ui/components/TableLayout$Alignment;->getAlignmentValue(Lim/tpelyyftgw/ui/components/TableLayout$Child;I)I

    move-result v1

    sub-int/2addr v0, v1

    return v0
.end method

.method protected include(II)V
    .registers 4
    .param p1, "before"    # I
    .param p2, "after"    # I

    .line 1742
    iget v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Bounds;->before:I

    invoke-static {v0, p1}, Ljava/lang/Math;->max(II)I

    move-result v0

    iput v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Bounds;->before:I

    .line 1743
    iget v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Bounds;->after:I

    invoke-static {v0, p2}, Ljava/lang/Math;->max(II)I

    move-result v0

    iput v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Bounds;->after:I

    .line 1744
    return-void
.end method

.method protected final include(Lim/tpelyyftgw/ui/components/TableLayout;Lim/tpelyyftgw/ui/components/TableLayout$Child;Lim/tpelyyftgw/ui/components/TableLayout$Spec;Lim/tpelyyftgw/ui/components/TableLayout$Axis;I)V
    .registers 10
    .param p1, "gl"    # Lim/tpelyyftgw/ui/components/TableLayout;
    .param p2, "c"    # Lim/tpelyyftgw/ui/components/TableLayout$Child;
    .param p3, "spec"    # Lim/tpelyyftgw/ui/components/TableLayout$Spec;
    .param p4, "axis"    # Lim/tpelyyftgw/ui/components/TableLayout$Axis;
    .param p5, "size"    # I

    .line 1760
    iget v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Bounds;->flexibility:I

    invoke-virtual {p3}, Lim/tpelyyftgw/ui/components/TableLayout$Spec;->getFlexibility()I

    move-result v1

    and-int/2addr v0, v1

    iput v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Bounds;->flexibility:I

    .line 1761
    iget-boolean v0, p4, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->horizontal:Z

    .line 1762
    .local v0, "horizontal":Z
    iget-boolean v1, p4, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->horizontal:Z

    # invokes: Lim/tpelyyftgw/ui/components/TableLayout$Spec;->getAbsoluteAlignment(Z)Lim/tpelyyftgw/ui/components/TableLayout$Alignment;
    invoke-static {p3, v1}, Lim/tpelyyftgw/ui/components/TableLayout$Spec;->access$1200(Lim/tpelyyftgw/ui/components/TableLayout$Spec;Z)Lim/tpelyyftgw/ui/components/TableLayout$Alignment;

    move-result-object v1

    .line 1763
    .local v1, "alignment":Lim/tpelyyftgw/ui/components/TableLayout$Alignment;
    invoke-virtual {v1, p2, p5}, Lim/tpelyyftgw/ui/components/TableLayout$Alignment;->getAlignmentValue(Lim/tpelyyftgw/ui/components/TableLayout$Child;I)I

    move-result v2

    .line 1764
    .local v2, "before":I
    sub-int v3, p5, v2

    invoke-virtual {p0, v2, v3}, Lim/tpelyyftgw/ui/components/TableLayout$Bounds;->include(II)V

    .line 1765
    return-void
.end method

.method protected reset()V
    .registers 2

    .line 1736
    const/high16 v0, -0x80000000

    iput v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Bounds;->before:I

    .line 1737
    iput v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Bounds;->after:I

    .line 1738
    const/4 v0, 0x2

    iput v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Bounds;->flexibility:I

    .line 1739
    return-void
.end method

.method protected size(Z)I
    .registers 4
    .param p1, "min"    # Z

    .line 1747
    if-nez p1, :cond_e

    .line 1748
    iget v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Bounds;->flexibility:I

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/TableLayout;->canStretch(I)Z

    move-result v0

    if-eqz v0, :cond_e

    .line 1749
    const v0, 0x186a0

    return v0

    .line 1752
    :cond_e
    iget v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Bounds;->before:I

    iget v1, p0, Lim/tpelyyftgw/ui/components/TableLayout$Bounds;->after:I

    add-int/2addr v0, v1

    return v0
.end method