TableLayout$Axis.smali
.class final Lim/tpelyyftgw/ui/components/TableLayout$Axis;
.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 = 0x10
name = "Axis"
.end annotation
# static fields
.field private static final COMPLETE:I
.field private static final NEW:I
.field private static final PENDING:I
# instance fields
.field public arcs:[Lim/tpelyyftgw/ui/components/TableLayout$Arc;
.field public arcsValid:Z
.field backwardLinks:Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lim/tpelyyftgw/ui/components/TableLayout$PackedMap<",
"Lim/tpelyyftgw/ui/components/TableLayout$Interval;",
"Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;",
">;"
}
.end annotation
.end field
.field public backwardLinksValid:Z
.field public definedCount:I
.field public deltas:[I
.field forwardLinks:Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lim/tpelyyftgw/ui/components/TableLayout$PackedMap<",
"Lim/tpelyyftgw/ui/components/TableLayout$Interval;",
"Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;",
">;"
}
.end annotation
.end field
.field public forwardLinksValid:Z
.field groupBounds:Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lim/tpelyyftgw/ui/components/TableLayout$PackedMap<",
"Lim/tpelyyftgw/ui/components/TableLayout$Spec;",
"Lim/tpelyyftgw/ui/components/TableLayout$Bounds;",
">;"
}
.end annotation
.end field
.field public groupBoundsValid:Z
.field public hasWeights:Z
.field public hasWeightsValid:Z
.field public final horizontal:Z
.field public leadingMargins:[I
.field public leadingMarginsValid:Z
.field public locations:[I
.field public locationsValid:Z
.field private maxIndex:I
.field orderPreserved:Z
.field private parentMax:Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;
.field private parentMin:Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;
.field final synthetic this$0:Lim/tpelyyftgw/ui/components/TableLayout;
.field public trailingMargins:[I
.field public trailingMarginsValid:Z
# direct methods
.method static constructor <clinit>()V
.registers 1
const v0, 0x156d
invoke-static {v0}, Lnp/NPFog;->d(I)I
move-result v0
sput v0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->COMPLETE:I
const v0, 0x156f
invoke-static {v0}, Lnp/NPFog;->d(I)I
move-result v0
sput v0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->NEW:I
const v0, 0x156e
invoke-static {v0}, Lnp/NPFog;->d(I)I
move-result v0
sput v0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->PENDING:I
return-void
.end method
.method private constructor <init>(Lim/tpelyyftgw/ui/components/TableLayout;Z)V
.registers 5
.param p1, "this$0" # Lim/tpelyyftgw/ui/components/TableLayout;
.param p2, "horizontal" # Z
.line 1011
iput-object p1, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->this$0:Lim/tpelyyftgw/ui/components/TableLayout;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 978
const/high16 v0, -0x80000000
iput v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->definedCount:I
.line 979
iput v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->maxIndex:I
.line 982
const/4 v0, 0x0
iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->groupBoundsValid:Z
.line 985
iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->forwardLinksValid:Z
.line 988
iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->backwardLinksValid:Z
.line 991
iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->leadingMarginsValid:Z
.line 994
iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->trailingMarginsValid:Z
.line 997
iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->arcsValid:Z
.line 1000
iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->locationsValid:Z
.line 1003
iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->hasWeightsValid:Z
.line 1006
const/4 v1, 0x1
iput-boolean v1, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->orderPreserved:Z
.line 1008
new-instance v1, Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;
invoke-direct {v1, v0}, Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;-><init>(I)V
iput-object v1, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->parentMin:Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;
.line 1009
new-instance v0, Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;
const v1, -0x186a0
invoke-direct {v0, v1}, Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;-><init>(I)V
iput-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->parentMax:Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;
.line 1012
iput-boolean p2, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->horizontal:Z
.line 1013
return-void
.end method
.method synthetic constructor <init>(Lim/tpelyyftgw/ui/components/TableLayout;ZLim/tpelyyftgw/ui/components/TableLayout$1;)V
.registers 4
.param p1, "x0" # Lim/tpelyyftgw/ui/components/TableLayout;
.param p2, "x1" # Z
.param p3, "x2" # Lim/tpelyyftgw/ui/components/TableLayout$1;
.line 971
invoke-direct {p0, p1, p2}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;-><init>(Lim/tpelyyftgw/ui/components/TableLayout;Z)V
return-void
.end method
.method private addComponentSizes(Ljava/util/List;Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;)V
.registers 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lim/tpelyyftgw/ui/components/TableLayout$Arc;",
">;",
"Lim/tpelyyftgw/ui/components/TableLayout$PackedMap<",
"Lim/tpelyyftgw/ui/components/TableLayout$Interval;",
"Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;",
">;)V"
}
.end annotation
.line 1218
.local p1, "result":Ljava/util/List;, "Ljava/util/List<Lim/tpelyyftgw/ui/components/TableLayout$Arc;>;"
.local p2, "links":Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;, "Lim/tpelyyftgw/ui/components/TableLayout$PackedMap<Lim/tpelyyftgw/ui/components/TableLayout$Interval;Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;>;"
const/4 v0, 0x0
.local v0, "i":I
:goto_1
iget-object v1, p2, Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;->keys:[Ljava/lang/Object;
check-cast v1, [Lim/tpelyyftgw/ui/components/TableLayout$Interval;
array-length v1, v1
if-ge v0, v1, :cond_1b
.line 1219
iget-object v1, p2, Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;->keys:[Ljava/lang/Object;
check-cast v1, [Lim/tpelyyftgw/ui/components/TableLayout$Interval;
aget-object v1, v1, v0
.line 1220
.local v1, "key":Lim/tpelyyftgw/ui/components/TableLayout$Interval;
iget-object v2, p2, Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;->values:[Ljava/lang/Object;
check-cast v2, [Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;
aget-object v2, v2, v0
const/4 v3, 0x0
invoke-direct {p0, p1, v1, v2, v3}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->include(Ljava/util/List;Lim/tpelyyftgw/ui/components/TableLayout$Interval;Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;Z)V
.line 1218
.end local v1 # "key":Lim/tpelyyftgw/ui/components/TableLayout$Interval;
add-int/lit8 v0, v0, 0x1
goto :goto_1
.line 1222
.end local v0 # "i":I
:cond_1b
return-void
.end method
.method private calculateMaxIndex()I
.registers 9
.line 1016
const/4 v0, -0x1
.line 1017
.local v0, "result":I
const/4 v1, 0x0
.local v1, "i":I
iget-object v2, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->this$0:Lim/tpelyyftgw/ui/components/TableLayout;
invoke-virtual {v2}, Lim/tpelyyftgw/ui/components/TableLayout;->getChildCount()I
move-result v2
.local v2, "N":I
:goto_8
if-ge v1, v2, :cond_36
.line 1018
iget-object v3, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->this$0:Lim/tpelyyftgw/ui/components/TableLayout;
invoke-virtual {v3, v1}, Lim/tpelyyftgw/ui/components/TableLayout;->getChildAt(I)Lim/tpelyyftgw/ui/components/TableLayout$Child;
move-result-object v3
.line 1019
.local v3, "c":Lim/tpelyyftgw/ui/components/TableLayout$Child;
invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/TableLayout$Child;->getLayoutParams()Lim/tpelyyftgw/ui/components/TableLayout$LayoutParams;
move-result-object v4
.line 1020
.local v4, "params":Lim/tpelyyftgw/ui/components/TableLayout$LayoutParams;
iget-boolean v5, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->horizontal:Z
if-eqz v5, :cond_1b
iget-object v5, v4, Lim/tpelyyftgw/ui/components/TableLayout$LayoutParams;->columnSpec:Lim/tpelyyftgw/ui/components/TableLayout$Spec;
goto :goto_1d
:cond_1b
iget-object v5, v4, Lim/tpelyyftgw/ui/components/TableLayout$LayoutParams;->rowSpec:Lim/tpelyyftgw/ui/components/TableLayout$Spec;
.line 1021
.local v5, "spec":Lim/tpelyyftgw/ui/components/TableLayout$Spec;
:goto_1d
iget-object v6, v5, Lim/tpelyyftgw/ui/components/TableLayout$Spec;->span:Lim/tpelyyftgw/ui/components/TableLayout$Interval;
.line 1022
.local v6, "span":Lim/tpelyyftgw/ui/components/TableLayout$Interval;
iget v7, v6, Lim/tpelyyftgw/ui/components/TableLayout$Interval;->min:I
invoke-static {v0, v7}, Ljava/lang/Math;->max(II)I
move-result v0
.line 1023
iget v7, v6, Lim/tpelyyftgw/ui/components/TableLayout$Interval;->max:I
invoke-static {v0, v7}, Ljava/lang/Math;->max(II)I
move-result v0
.line 1024
invoke-virtual {v6}, Lim/tpelyyftgw/ui/components/TableLayout$Interval;->size()I
move-result v7
invoke-static {v0, v7}, Ljava/lang/Math;->max(II)I
move-result v0
.line 1017
.end local v3 # "c":Lim/tpelyyftgw/ui/components/TableLayout$Child;
.end local v4 # "params":Lim/tpelyyftgw/ui/components/TableLayout$LayoutParams;
.end local v5 # "spec":Lim/tpelyyftgw/ui/components/TableLayout$Spec;
.end local v6 # "span":Lim/tpelyyftgw/ui/components/TableLayout$Interval;
add-int/lit8 v1, v1, 0x1
goto :goto_8
.line 1026
.end local v1 # "i":I
.end local v2 # "N":I
:cond_36
const/4 v1, -0x1
if-ne v0, v1, :cond_3c
const/high16 v1, -0x80000000
goto :goto_3d
:cond_3c
move v1, v0
:goto_3d
return v1
.end method
.method private calculateTotalWeight()F
.registers 8
.line 1442
const/4 v0, 0x0
.line 1443
.local v0, "totalWeight":F
const/4 v1, 0x0
.local v1, "i":I
iget-object v2, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->this$0:Lim/tpelyyftgw/ui/components/TableLayout;
invoke-virtual {v2}, Lim/tpelyyftgw/ui/components/TableLayout;->getChildCount()I
move-result v2
.local v2, "N":I
:goto_8
if-ge v1, v2, :cond_23
.line 1444
iget-object v3, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->this$0:Lim/tpelyyftgw/ui/components/TableLayout;
invoke-virtual {v3, v1}, Lim/tpelyyftgw/ui/components/TableLayout;->getChildAt(I)Lim/tpelyyftgw/ui/components/TableLayout$Child;
move-result-object v3
.line 1445
.local v3, "c":Lim/tpelyyftgw/ui/components/TableLayout$Child;
invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/TableLayout$Child;->getLayoutParams()Lim/tpelyyftgw/ui/components/TableLayout$LayoutParams;
move-result-object v4
.line 1446
.local v4, "lp":Lim/tpelyyftgw/ui/components/TableLayout$LayoutParams;
iget-boolean v5, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->horizontal:Z
if-eqz v5, :cond_1b
iget-object v5, v4, Lim/tpelyyftgw/ui/components/TableLayout$LayoutParams;->columnSpec:Lim/tpelyyftgw/ui/components/TableLayout$Spec;
goto :goto_1d
:cond_1b
iget-object v5, v4, Lim/tpelyyftgw/ui/components/TableLayout$LayoutParams;->rowSpec:Lim/tpelyyftgw/ui/components/TableLayout$Spec;
.line 1447
.local v5, "spec":Lim/tpelyyftgw/ui/components/TableLayout$Spec;
:goto_1d
iget v6, v5, Lim/tpelyyftgw/ui/components/TableLayout$Spec;->weight:F
add-float/2addr v0, v6
.line 1443
.end local v3 # "c":Lim/tpelyyftgw/ui/components/TableLayout$Child;
.end local v4 # "lp":Lim/tpelyyftgw/ui/components/TableLayout$LayoutParams;
.end local v5 # "spec":Lim/tpelyyftgw/ui/components/TableLayout$Spec;
add-int/lit8 v1, v1, 0x1
goto :goto_8
.line 1449
.end local v1 # "i":I
.end local v2 # "N":I
:cond_23
return v0
.end method
.method private computeArcs()V
.registers 1
.line 1248
invoke-direct {p0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->getForwardLinks()Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;
.line 1249
invoke-direct {p0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->getBackwardLinks()Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;
.line 1250
return-void
.end method
.method private computeGroupBounds()V
.registers 14
.line 1069
iget-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->groupBounds:Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;
iget-object v0, v0, Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;->values:[Ljava/lang/Object;
check-cast v0, [Lim/tpelyyftgw/ui/components/TableLayout$Bounds;
.line 1070
.local v0, "values":[Lim/tpelyyftgw/ui/components/TableLayout$Bounds;
const/4 v1, 0x0
.local v1, "i":I
:goto_7
array-length v2, v0
if-ge v1, v2, :cond_12
.line 1071
aget-object v2, v0, v1
invoke-virtual {v2}, Lim/tpelyyftgw/ui/components/TableLayout$Bounds;->reset()V
.line 1070
add-int/lit8 v1, v1, 0x1
goto :goto_7
.line 1073
.end local v1 # "i":I
:cond_12
const/4 v1, 0x0
.restart local v1 # "i":I
iget-object v2, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->this$0:Lim/tpelyyftgw/ui/components/TableLayout;
invoke-virtual {v2}, Lim/tpelyyftgw/ui/components/TableLayout;->getChildCount()I
move-result v2
.local v2, "N":I
:goto_19
if-ge v1, v2, :cond_5a
.line 1074
iget-object v3, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->this$0:Lim/tpelyyftgw/ui/components/TableLayout;
invoke-virtual {v3, v1}, Lim/tpelyyftgw/ui/components/TableLayout;->getChildAt(I)Lim/tpelyyftgw/ui/components/TableLayout$Child;
move-result-object v3
.line 1075
.local v3, "c":Lim/tpelyyftgw/ui/components/TableLayout$Child;
invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/TableLayout$Child;->getLayoutParams()Lim/tpelyyftgw/ui/components/TableLayout$LayoutParams;
move-result-object v10
.line 1076
.local v10, "lp":Lim/tpelyyftgw/ui/components/TableLayout$LayoutParams;
iget-boolean v4, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->horizontal:Z
if-eqz v4, :cond_2c
iget-object v4, v10, Lim/tpelyyftgw/ui/components/TableLayout$LayoutParams;->columnSpec:Lim/tpelyyftgw/ui/components/TableLayout$Spec;
goto :goto_2e
:cond_2c
iget-object v4, v10, Lim/tpelyyftgw/ui/components/TableLayout$LayoutParams;->rowSpec:Lim/tpelyyftgw/ui/components/TableLayout$Spec;
:goto_2e
move-object v11, v4
.line 1077
.local v11, "spec":Lim/tpelyyftgw/ui/components/TableLayout$Spec;
iget-object v4, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->this$0:Lim/tpelyyftgw/ui/components/TableLayout;
iget-boolean v5, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->horizontal:Z
invoke-virtual {v4, v3, v5}, Lim/tpelyyftgw/ui/components/TableLayout;->getMeasurementIncludingMargin(Lim/tpelyyftgw/ui/components/TableLayout$Child;Z)I
move-result v4
iget v5, v11, Lim/tpelyyftgw/ui/components/TableLayout$Spec;->weight:F
const/4 v6, 0x0
cmpl-float v5, v5, v6
if-nez v5, :cond_40
const/4 v5, 0x0
goto :goto_44
:cond_40
iget-object v5, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->deltas:[I
aget v5, v5, v1
:goto_44
add-int v12, v4, v5
.line 1078
.local v12, "size":I
iget-object v4, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->groupBounds:Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;
invoke-virtual {v4, v1}, Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;->getValue(I)Ljava/lang/Object;
move-result-object v4
check-cast v4, Lim/tpelyyftgw/ui/components/TableLayout$Bounds;
iget-object v5, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->this$0:Lim/tpelyyftgw/ui/components/TableLayout;
move-object v6, v3
move-object v7, v11
move-object v8, p0
move v9, v12
invoke-virtual/range {v4 .. v9}, Lim/tpelyyftgw/ui/components/TableLayout$Bounds;->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
.line 1073
.end local v3 # "c":Lim/tpelyyftgw/ui/components/TableLayout$Child;
.end local v10 # "lp":Lim/tpelyyftgw/ui/components/TableLayout$LayoutParams;
.end local v11 # "spec":Lim/tpelyyftgw/ui/components/TableLayout$Spec;
.end local v12 # "size":I
add-int/lit8 v1, v1, 0x1
goto :goto_19
.line 1080
.end local v1 # "i":I
.end local v2 # "N":I
:cond_5a
return-void
.end method
.method private computeHasWeights()Z
.registers 8
.line 1367
const/4 v0, 0x0
.local v0, "i":I
iget-object v1, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->this$0:Lim/tpelyyftgw/ui/components/TableLayout;
invoke-virtual {v1}, Lim/tpelyyftgw/ui/components/TableLayout;->getChildCount()I
move-result v1
.local v1, "N":I
:goto_7
if-ge v0, v1, :cond_28
.line 1368
iget-object v2, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->this$0:Lim/tpelyyftgw/ui/components/TableLayout;
invoke-virtual {v2, v0}, Lim/tpelyyftgw/ui/components/TableLayout;->getChildAt(I)Lim/tpelyyftgw/ui/components/TableLayout$Child;
move-result-object v2
.line 1369
.local v2, "child":Lim/tpelyyftgw/ui/components/TableLayout$Child;
invoke-virtual {v2}, Lim/tpelyyftgw/ui/components/TableLayout$Child;->getLayoutParams()Lim/tpelyyftgw/ui/components/TableLayout$LayoutParams;
move-result-object v3
.line 1370
.local v3, "lp":Lim/tpelyyftgw/ui/components/TableLayout$LayoutParams;
iget-boolean v4, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->horizontal:Z
if-eqz v4, :cond_1a
iget-object v4, v3, Lim/tpelyyftgw/ui/components/TableLayout$LayoutParams;->columnSpec:Lim/tpelyyftgw/ui/components/TableLayout$Spec;
goto :goto_1c
:cond_1a
iget-object v4, v3, Lim/tpelyyftgw/ui/components/TableLayout$LayoutParams;->rowSpec:Lim/tpelyyftgw/ui/components/TableLayout$Spec;
.line 1371
.local v4, "spec":Lim/tpelyyftgw/ui/components/TableLayout$Spec;
:goto_1c
iget v5, v4, Lim/tpelyyftgw/ui/components/TableLayout$Spec;->weight:F
const/4 v6, 0x0
cmpl-float v5, v5, v6
if-eqz v5, :cond_25
.line 1372
const/4 v5, 0x1
return v5
.line 1367
.end local v2 # "child":Lim/tpelyyftgw/ui/components/TableLayout$Child;
.end local v3 # "lp":Lim/tpelyyftgw/ui/components/TableLayout$LayoutParams;
.end local v4 # "spec":Lim/tpelyyftgw/ui/components/TableLayout$Spec;
:cond_25
add-int/lit8 v0, v0, 0x1
goto :goto_7
.line 1375
.end local v0 # "i":I
.end local v1 # "N":I
:cond_28
const/4 v0, 0x0
return v0
.end method
.method private computeLinks(Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;Z)V
.registers 10
.param p2, "min" # Z
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lim/tpelyyftgw/ui/components/TableLayout$PackedMap<",
"Lim/tpelyyftgw/ui/components/TableLayout$Interval;",
"Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;",
">;Z)V"
}
.end annotation
.line 1104
.local p1, "links":Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;, "Lim/tpelyyftgw/ui/components/TableLayout$PackedMap<Lim/tpelyyftgw/ui/components/TableLayout$Interval;Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;>;"
iget-object v0, p1, Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;->values:[Ljava/lang/Object;
check-cast v0, [Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;
.line 1105
.local v0, "spans":[Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;
const/4 v1, 0x0
.local v1, "i":I
:goto_5
array-length v2, v0
if-ge v1, v2, :cond_10
.line 1106
aget-object v2, v0, v1
invoke-virtual {v2}, Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;->reset()V
.line 1105
add-int/lit8 v1, v1, 0x1
goto :goto_5
.line 1109
.end local v1 # "i":I
:cond_10
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->getGroupBounds()Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;
move-result-object v1
iget-object v1, v1, Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;->values:[Ljava/lang/Object;
check-cast v1, [Lim/tpelyyftgw/ui/components/TableLayout$Bounds;
.line 1110
.local v1, "bounds":[Lim/tpelyyftgw/ui/components/TableLayout$Bounds;
const/4 v2, 0x0
.local v2, "i":I
:goto_19
array-length v3, v1
if-ge v2, v3, :cond_38
.line 1111
aget-object v3, v1, v2
invoke-virtual {v3, p2}, Lim/tpelyyftgw/ui/components/TableLayout$Bounds;->size(Z)I
move-result v3
.line 1112
.local v3, "size":I
invoke-virtual {p1, v2}, Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;->getValue(I)Ljava/lang/Object;
move-result-object v4
check-cast v4, Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;
.line 1113
.local v4, "valueHolder":Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;
iget v5, v4, Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;->value:I
if-eqz p2, :cond_2e
move v6, v3
goto :goto_2f
:cond_2e
neg-int v6, v3
:goto_2f
invoke-static {v5, v6}, Ljava/lang/Math;->max(II)I
move-result v5
iput v5, v4, Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;->value:I
.line 1110
.end local v3 # "size":I
.end local v4 # "valueHolder":Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;
add-int/lit8 v2, v2, 0x1
goto :goto_19
.line 1115
.end local v2 # "i":I
:cond_38
return-void
.end method
.method private computeLocations([I)V
.registers 6
.param p1, "a" # [I
.line 1453
invoke-direct {p0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->hasWeights()Z
move-result v0
if-nez v0, :cond_a
.line 1454
invoke-direct {p0, p1}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->solve([I)Z
goto :goto_d
.line 1456
:cond_a
invoke-direct {p0, p1}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->solveAndDistributeSpace([I)V
.line 1458
:goto_d
iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->orderPreserved:Z
if-nez v0, :cond_20
.line 1459
const/4 v0, 0x0
aget v0, p1, v0
.line 1460
.local v0, "a0":I
const/4 v1, 0x0
.local v1, "i":I
array-length v2, p1
.local v2, "N":I
:goto_16
if-ge v1, v2, :cond_20
.line 1461
aget v3, p1, v1
sub-int/2addr v3, v0
aput v3, p1, v1
.line 1460
add-int/lit8 v1, v1, 0x1
goto :goto_16
.line 1464
.end local v0 # "a0":I
.end local v1 # "i":I
.end local v2 # "N":I
:cond_20
return-void
.end method
.method private computeMargins(Z)V
.registers 13
.param p1, "leading" # Z
.line 1329
if-eqz p1, :cond_5
iget-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->leadingMargins:[I
goto :goto_7
:cond_5
iget-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->trailingMargins:[I
.line 1330
.local v0, "margins":[I
:goto_7
const/4 v1, 0x0
.local v1, "i":I
iget-object v2, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->this$0:Lim/tpelyyftgw/ui/components/TableLayout;
invoke-virtual {v2}, Lim/tpelyyftgw/ui/components/TableLayout;->getChildCount()I
move-result v2
.local v2, "N":I
:goto_e
if-ge v1, v2, :cond_3f
.line 1331
iget-object v3, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->this$0:Lim/tpelyyftgw/ui/components/TableLayout;
invoke-virtual {v3, v1}, Lim/tpelyyftgw/ui/components/TableLayout;->getChildAt(I)Lim/tpelyyftgw/ui/components/TableLayout$Child;
move-result-object v3
.line 1332
.local v3, "c":Lim/tpelyyftgw/ui/components/TableLayout$Child;
invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/TableLayout$Child;->getLayoutParams()Lim/tpelyyftgw/ui/components/TableLayout$LayoutParams;
move-result-object v4
.line 1333
.local v4, "lp":Lim/tpelyyftgw/ui/components/TableLayout$LayoutParams;
iget-boolean v5, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->horizontal:Z
if-eqz v5, :cond_21
iget-object v5, v4, Lim/tpelyyftgw/ui/components/TableLayout$LayoutParams;->columnSpec:Lim/tpelyyftgw/ui/components/TableLayout$Spec;
goto :goto_23
:cond_21
iget-object v5, v4, Lim/tpelyyftgw/ui/components/TableLayout$LayoutParams;->rowSpec:Lim/tpelyyftgw/ui/components/TableLayout$Spec;
.line 1334
.local v5, "spec":Lim/tpelyyftgw/ui/components/TableLayout$Spec;
:goto_23
iget-object v6, v5, Lim/tpelyyftgw/ui/components/TableLayout$Spec;->span:Lim/tpelyyftgw/ui/components/TableLayout$Interval;
.line 1335
.local v6, "span":Lim/tpelyyftgw/ui/components/TableLayout$Interval;
if-eqz p1, :cond_2a
iget v7, v6, Lim/tpelyyftgw/ui/components/TableLayout$Interval;->min:I
goto :goto_2c
:cond_2a
iget v7, v6, Lim/tpelyyftgw/ui/components/TableLayout$Interval;->max:I
.line 1336
.local v7, "index":I
:goto_2c
aget v8, v0, v7
iget-object v9, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->this$0:Lim/tpelyyftgw/ui/components/TableLayout;
iget-boolean v10, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->horizontal:Z
invoke-virtual {v9, v3, v10, p1}, Lim/tpelyyftgw/ui/components/TableLayout;->getMargin1(Lim/tpelyyftgw/ui/components/TableLayout$Child;ZZ)I
move-result v9
invoke-static {v8, v9}, Ljava/lang/Math;->max(II)I
move-result v8
aput v8, v0, v7
.line 1330
.end local v3 # "c":Lim/tpelyyftgw/ui/components/TableLayout$Child;
.end local v4 # "lp":Lim/tpelyyftgw/ui/components/TableLayout$LayoutParams;
.end local v5 # "spec":Lim/tpelyyftgw/ui/components/TableLayout$Spec;
.end local v6 # "span":Lim/tpelyyftgw/ui/components/TableLayout$Interval;
.end local v7 # "index":I
add-int/lit8 v1, v1, 0x1
goto :goto_e
.line 1338
.end local v1 # "i":I
.end local v2 # "N":I
:cond_3f
return-void
.end method
.method private createArcs()[Lim/tpelyyftgw/ui/components/TableLayout$Arc;
.registers 7
.line 1225
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
.line 1226
.local v0, "mins":Ljava/util/List;, "Ljava/util/List<Lim/tpelyyftgw/ui/components/TableLayout$Arc;>;"
new-instance v1, Ljava/util/ArrayList;
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
.line 1228
.local v1, "maxs":Ljava/util/List;, "Ljava/util/List<Lim/tpelyyftgw/ui/components/TableLayout$Arc;>;"
invoke-direct {p0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->getForwardLinks()Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;
move-result-object v2
invoke-direct {p0, v0, v2}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->addComponentSizes(Ljava/util/List;Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;)V
.line 1229
invoke-direct {p0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->getBackwardLinks()Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;
move-result-object v2
invoke-direct {p0, v1, v2}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->addComponentSizes(Ljava/util/List;Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;)V
.line 1231
iget-boolean v2, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->orderPreserved:Z
const/4 v3, 0x0
if-eqz v2, :cond_36
.line 1232
const/4 v2, 0x0
.local v2, "i":I
:goto_1e
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->getCount()I
move-result v4
if-ge v2, v4, :cond_36
.line 1233
new-instance v4, Lim/tpelyyftgw/ui/components/TableLayout$Interval;
add-int/lit8 v5, v2, 0x1
invoke-direct {v4, v2, v5}, Lim/tpelyyftgw/ui/components/TableLayout$Interval;-><init>(II)V
new-instance v5, Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;
invoke-direct {v5, v3}, Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;-><init>(I)V
invoke-direct {p0, v0, v4, v5}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->include(Ljava/util/List;Lim/tpelyyftgw/ui/components/TableLayout$Interval;Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;)V
.line 1232
add-int/lit8 v2, v2, 0x1
goto :goto_1e
.line 1237
.end local v2 # "i":I
:cond_36
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->getCount()I
move-result v2
.line 1238
.local v2, "N":I
new-instance v4, Lim/tpelyyftgw/ui/components/TableLayout$Interval;
invoke-direct {v4, v3, v2}, Lim/tpelyyftgw/ui/components/TableLayout$Interval;-><init>(II)V
iget-object v5, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->parentMin:Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;
invoke-direct {p0, v0, v4, v5, v3}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->include(Ljava/util/List;Lim/tpelyyftgw/ui/components/TableLayout$Interval;Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;Z)V
.line 1239
new-instance v4, Lim/tpelyyftgw/ui/components/TableLayout$Interval;
invoke-direct {v4, v2, v3}, Lim/tpelyyftgw/ui/components/TableLayout$Interval;-><init>(II)V
iget-object v5, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->parentMax:Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;
invoke-direct {p0, v1, v4, v5, v3}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->include(Ljava/util/List;Lim/tpelyyftgw/ui/components/TableLayout$Interval;Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;Z)V
.line 1241
invoke-direct {p0, v0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->topologicalSort(Ljava/util/List;)[Lim/tpelyyftgw/ui/components/TableLayout$Arc;
move-result-object v3
.line 1242
.local v3, "sMins":[Lim/tpelyyftgw/ui/components/TableLayout$Arc;
invoke-direct {p0, v1}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->topologicalSort(Ljava/util/List;)[Lim/tpelyyftgw/ui/components/TableLayout$Arc;
move-result-object v4
.line 1244
.local v4, "sMaxs":[Lim/tpelyyftgw/ui/components/TableLayout$Arc;
invoke-static {v3, v4}, Lim/tpelyyftgw/ui/components/TableLayout;->append([Ljava/lang/Object;[Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object v5
check-cast v5, [Lim/tpelyyftgw/ui/components/TableLayout$Arc;
return-object v5
.end method
.method private createGroupBounds()Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;
.registers 8
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lim/tpelyyftgw/ui/components/TableLayout$PackedMap<",
"Lim/tpelyyftgw/ui/components/TableLayout$Spec;",
"Lim/tpelyyftgw/ui/components/TableLayout$Bounds;",
">;"
}
.end annotation
.line 1057
const-class v0, Lim/tpelyyftgw/ui/components/TableLayout$Spec;
const-class v1, Lim/tpelyyftgw/ui/components/TableLayout$Bounds;
invoke-static {v0, v1}, Lim/tpelyyftgw/ui/components/TableLayout$Assoc;->of(Ljava/lang/Class;Ljava/lang/Class;)Lim/tpelyyftgw/ui/components/TableLayout$Assoc;
move-result-object v0
.line 1058
.local v0, "assoc":Lim/tpelyyftgw/ui/components/TableLayout$Assoc;, "Lim/tpelyyftgw/ui/components/TableLayout$Assoc<Lim/tpelyyftgw/ui/components/TableLayout$Spec;Lim/tpelyyftgw/ui/components/TableLayout$Bounds;>;"
const/4 v1, 0x0
.local v1, "i":I
iget-object v2, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->this$0:Lim/tpelyyftgw/ui/components/TableLayout;
invoke-virtual {v2}, Lim/tpelyyftgw/ui/components/TableLayout;->getChildCount()I
move-result v2
.local v2, "N":I
:goto_f
if-ge v1, v2, :cond_34
.line 1059
iget-object v3, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->this$0:Lim/tpelyyftgw/ui/components/TableLayout;
invoke-virtual {v3, v1}, Lim/tpelyyftgw/ui/components/TableLayout;->getChildAt(I)Lim/tpelyyftgw/ui/components/TableLayout$Child;
move-result-object v3
.line 1060
.local v3, "c":Lim/tpelyyftgw/ui/components/TableLayout$Child;
invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/TableLayout$Child;->getLayoutParams()Lim/tpelyyftgw/ui/components/TableLayout$LayoutParams;
move-result-object v4
.line 1061
.local v4, "lp":Lim/tpelyyftgw/ui/components/TableLayout$LayoutParams;
iget-boolean v5, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->horizontal:Z
if-eqz v5, :cond_22
iget-object v5, v4, Lim/tpelyyftgw/ui/components/TableLayout$LayoutParams;->columnSpec:Lim/tpelyyftgw/ui/components/TableLayout$Spec;
goto :goto_24
:cond_22
iget-object v5, v4, Lim/tpelyyftgw/ui/components/TableLayout$LayoutParams;->rowSpec:Lim/tpelyyftgw/ui/components/TableLayout$Spec;
.line 1062
.local v5, "spec":Lim/tpelyyftgw/ui/components/TableLayout$Spec;
:goto_24
iget-boolean v6, p0, 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 {v5, v6}, Lim/tpelyyftgw/ui/components/TableLayout$Spec;->access$1200(Lim/tpelyyftgw/ui/components/TableLayout$Spec;Z)Lim/tpelyyftgw/ui/components/TableLayout$Alignment;
move-result-object v6
invoke-virtual {v6}, Lim/tpelyyftgw/ui/components/TableLayout$Alignment;->getBounds()Lim/tpelyyftgw/ui/components/TableLayout$Bounds;
move-result-object v6
.line 1063
.local v6, "bounds":Lim/tpelyyftgw/ui/components/TableLayout$Bounds;
invoke-virtual {v0, v5, v6}, Lim/tpelyyftgw/ui/components/TableLayout$Assoc;->put(Ljava/lang/Object;Ljava/lang/Object;)V
.line 1058
.end local v3 # "c":Lim/tpelyyftgw/ui/components/TableLayout$Child;
.end local v4 # "lp":Lim/tpelyyftgw/ui/components/TableLayout$LayoutParams;
.end local v5 # "spec":Lim/tpelyyftgw/ui/components/TableLayout$Spec;
.end local v6 # "bounds":Lim/tpelyyftgw/ui/components/TableLayout$Bounds;
add-int/lit8 v1, v1, 0x1
goto :goto_f
.line 1065
.end local v1 # "i":I
.end local v2 # "N":I
:cond_34
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/TableLayout$Assoc;->pack()Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;
move-result-object v1
return-object v1
.end method
.method private createLinks(Z)Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;
.registers 8
.param p1, "min" # Z
.annotation system Ldalvik/annotation/Signature;
value = {
"(Z)",
"Lim/tpelyyftgw/ui/components/TableLayout$PackedMap<",
"Lim/tpelyyftgw/ui/components/TableLayout$Interval;",
"Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;",
">;"
}
.end annotation
.line 1094
const-class v0, Lim/tpelyyftgw/ui/components/TableLayout$Interval;
const-class v1, Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;
invoke-static {v0, v1}, Lim/tpelyyftgw/ui/components/TableLayout$Assoc;->of(Ljava/lang/Class;Ljava/lang/Class;)Lim/tpelyyftgw/ui/components/TableLayout$Assoc;
move-result-object v0
.line 1095
.local v0, "result":Lim/tpelyyftgw/ui/components/TableLayout$Assoc;, "Lim/tpelyyftgw/ui/components/TableLayout$Assoc<Lim/tpelyyftgw/ui/components/TableLayout$Interval;Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;>;"
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->getGroupBounds()Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;
move-result-object v1
iget-object v1, v1, Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;->keys:[Ljava/lang/Object;
check-cast v1, [Lim/tpelyyftgw/ui/components/TableLayout$Spec;
.line 1096
.local v1, "keys":[Lim/tpelyyftgw/ui/components/TableLayout$Spec;
const/4 v2, 0x0
.local v2, "i":I
array-length v3, v1
.local v3, "N":I
:goto_12
if-ge v2, v3, :cond_2e
.line 1097
if-eqz p1, :cond_1b
aget-object v4, v1, v2
iget-object v4, v4, Lim/tpelyyftgw/ui/components/TableLayout$Spec;->span:Lim/tpelyyftgw/ui/components/TableLayout$Interval;
goto :goto_23
:cond_1b
aget-object v4, v1, v2
iget-object v4, v4, Lim/tpelyyftgw/ui/components/TableLayout$Spec;->span:Lim/tpelyyftgw/ui/components/TableLayout$Interval;
invoke-virtual {v4}, Lim/tpelyyftgw/ui/components/TableLayout$Interval;->inverse()Lim/tpelyyftgw/ui/components/TableLayout$Interval;
move-result-object v4
.line 1098
.local v4, "span":Lim/tpelyyftgw/ui/components/TableLayout$Interval;
:goto_23
new-instance v5, Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;
invoke-direct {v5}, Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;-><init>()V
invoke-virtual {v0, v4, v5}, Lim/tpelyyftgw/ui/components/TableLayout$Assoc;->put(Ljava/lang/Object;Ljava/lang/Object;)V
.line 1096
.end local v4 # "span":Lim/tpelyyftgw/ui/components/TableLayout$Interval;
add-int/lit8 v2, v2, 0x1
goto :goto_12
.line 1100
.end local v2 # "i":I
.end local v3 # "N":I
:cond_2e
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/TableLayout$Assoc;->pack()Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;
move-result-object v2
return-object v2
.end method
.method private getBackwardLinks()Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lim/tpelyyftgw/ui/components/TableLayout$PackedMap<",
"Lim/tpelyyftgw/ui/components/TableLayout$Interval;",
"Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;",
">;"
}
.end annotation
.line 1129
iget-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->backwardLinks:Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;
const/4 v1, 0x0
if-nez v0, :cond_b
.line 1130
invoke-direct {p0, v1}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->createLinks(Z)Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;
move-result-object v0
iput-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->backwardLinks:Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;
.line 1132
:cond_b
iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->backwardLinksValid:Z
if-nez v0, :cond_17
.line 1133
iget-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->backwardLinks:Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;
invoke-direct {p0, v0, v1}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->computeLinks(Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;Z)V
.line 1134
const/4 v0, 0x1
iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->backwardLinksValid:Z
.line 1136
:cond_17
iget-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->backwardLinks:Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;
return-object v0
.end method
.method private getForwardLinks()Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lim/tpelyyftgw/ui/components/TableLayout$PackedMap<",
"Lim/tpelyyftgw/ui/components/TableLayout$Interval;",
"Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;",
">;"
}
.end annotation
.line 1118
iget-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->forwardLinks:Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;
const/4 v1, 0x1
if-nez v0, :cond_b
.line 1119
invoke-direct {p0, v1}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->createLinks(Z)Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;
move-result-object v0
iput-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->forwardLinks:Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;
.line 1121
:cond_b
iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->forwardLinksValid:Z
if-nez v0, :cond_16
.line 1122
iget-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->forwardLinks:Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;
invoke-direct {p0, v0, v1}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->computeLinks(Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;Z)V
.line 1123
iput-boolean v1, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->forwardLinksValid:Z
.line 1125
:cond_16
iget-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->forwardLinks:Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;
return-object v0
.end method
.method private getMaxIndex()I
.registers 3
.line 1030
iget v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->maxIndex:I
const/high16 v1, -0x80000000
if-ne v0, v1, :cond_11
.line 1031
const/4 v0, 0x0
invoke-direct {p0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->calculateMaxIndex()I
move-result v1
invoke-static {v0, v1}, Ljava/lang/Math;->max(II)I
move-result v0
iput v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->maxIndex:I
.line 1033
:cond_11
iget v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->maxIndex:I
return v0
.end method
.method private getMeasure(II)I
.registers 4
.param p1, "min" # I
.param p2, "max" # I
.line 1489
invoke-direct {p0, p1, p2}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->setParentConstraints(II)V
.line 1490
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->getLocations()[I
move-result-object v0
invoke-direct {p0, v0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->size([I)I
move-result v0
return v0
.end method
.method private hasWeights()Z
.registers 2
.line 1379
iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->hasWeightsValid:Z
if-nez v0, :cond_d
.line 1380
invoke-direct {p0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->computeHasWeights()Z
move-result v0
iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->hasWeights:Z
.line 1381
const/4 v0, 0x1
iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->hasWeightsValid:Z
.line 1383
:cond_d
iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->hasWeights:Z
return v0
.end method
.method private include(Ljava/util/List;Lim/tpelyyftgw/ui/components/TableLayout$Interval;Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;)V
.registers 5
.param p2, "key" # Lim/tpelyyftgw/ui/components/TableLayout$Interval;
.param p3, "size" # Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lim/tpelyyftgw/ui/components/TableLayout$Arc;",
">;",
"Lim/tpelyyftgw/ui/components/TableLayout$Interval;",
"Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;",
")V"
}
.end annotation
.line 1155
.local p1, "arcs":Ljava/util/List;, "Ljava/util/List<Lim/tpelyyftgw/ui/components/TableLayout$Arc;>;"
const/4 v0, 0x1
invoke-direct {p0, p1, p2, p3, v0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->include(Ljava/util/List;Lim/tpelyyftgw/ui/components/TableLayout$Interval;Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;Z)V
.line 1156
return-void
.end method
.method private include(Ljava/util/List;Lim/tpelyyftgw/ui/components/TableLayout$Interval;Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;Z)V
.registers 9
.param p2, "key" # Lim/tpelyyftgw/ui/components/TableLayout$Interval;
.param p3, "size" # Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;
.param p4, "ignoreIfAlreadyPresent" # Z
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lim/tpelyyftgw/ui/components/TableLayout$Arc;",
">;",
"Lim/tpelyyftgw/ui/components/TableLayout$Interval;",
"Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;",
"Z)V"
}
.end annotation
.line 1140
.local p1, "arcs":Ljava/util/List;, "Ljava/util/List<Lim/tpelyyftgw/ui/components/TableLayout$Arc;>;"
invoke-virtual {p2}, Lim/tpelyyftgw/ui/components/TableLayout$Interval;->size()I
move-result v0
if-nez v0, :cond_7
.line 1141
return-void
.line 1143
:cond_7
if-eqz p4, :cond_23
.line 1144
invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_d
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_23
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lim/tpelyyftgw/ui/components/TableLayout$Arc;
.line 1145
.local v1, "arc":Lim/tpelyyftgw/ui/components/TableLayout$Arc;
iget-object v2, v1, Lim/tpelyyftgw/ui/components/TableLayout$Arc;->span:Lim/tpelyyftgw/ui/components/TableLayout$Interval;
.line 1146
.local v2, "span":Lim/tpelyyftgw/ui/components/TableLayout$Interval;
invoke-virtual {v2, p2}, Lim/tpelyyftgw/ui/components/TableLayout$Interval;->equals(Ljava/lang/Object;)Z
move-result v3
if-eqz v3, :cond_22
.line 1147
return-void
.line 1149
.end local v1 # "arc":Lim/tpelyyftgw/ui/components/TableLayout$Arc;
.end local v2 # "span":Lim/tpelyyftgw/ui/components/TableLayout$Interval;
:cond_22
goto :goto_d
.line 1151
:cond_23
new-instance v0, Lim/tpelyyftgw/ui/components/TableLayout$Arc;
invoke-direct {v0, p2, p3}, Lim/tpelyyftgw/ui/components/TableLayout$Arc;-><init>(Lim/tpelyyftgw/ui/components/TableLayout$Interval;Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;)V
invoke-interface {p1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 1152
return-void
.end method
.method private init([I)V
.registers 3
.param p1, "locations" # [I
.line 1280
const/4 v0, 0x0
invoke-static {p1, v0}, Ljava/util/Arrays;->fill([II)V
.line 1281
return-void
.end method
.method private relax([ILim/tpelyyftgw/ui/components/TableLayout$Arc;)Z
.registers 10
.param p1, "locations" # [I
.param p2, "entry" # Lim/tpelyyftgw/ui/components/TableLayout$Arc;
.line 1264
iget-boolean v0, p2, Lim/tpelyyftgw/ui/components/TableLayout$Arc;->valid:Z
const/4 v1, 0x0
if-nez v0, :cond_6
.line 1265
return v1
.line 1267
:cond_6
iget-object v0, p2, Lim/tpelyyftgw/ui/components/TableLayout$Arc;->span:Lim/tpelyyftgw/ui/components/TableLayout$Interval;
.line 1268
.local v0, "span":Lim/tpelyyftgw/ui/components/TableLayout$Interval;
iget v2, v0, Lim/tpelyyftgw/ui/components/TableLayout$Interval;->min:I
.line 1269
.local v2, "u":I
iget v3, v0, Lim/tpelyyftgw/ui/components/TableLayout$Interval;->max:I
.line 1270
.local v3, "v":I
iget-object v4, p2, Lim/tpelyyftgw/ui/components/TableLayout$Arc;->value:Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;
iget v4, v4, Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;->value:I
.line 1271
.local v4, "value":I
aget v5, p1, v2
add-int/2addr v5, v4
.line 1272
.local v5, "candidate":I
aget v6, p1, v3
if-le v5, v6, :cond_1b
.line 1273
aput v5, p1, v3
.line 1274
const/4 v1, 0x1
return v1
.line 1276
:cond_1b
return v1
.end method
.method private setParentConstraints(II)V
.registers 5
.param p1, "min" # I
.param p2, "max" # I
.line 1483
iget-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->parentMin:Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;
iput p1, v0, Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;->value:I
.line 1484
iget-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->parentMax:Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;
neg-int v1, p2
iput v1, v0, Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;->value:I
.line 1485
const/4 v0, 0x0
iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->locationsValid:Z
.line 1486
return-void
.end method
.method private shareOutDelta(IF)V
.registers 11
.param p1, "totalDelta" # I
.param p2, "totalWeight" # F
.line 1394
iget-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->deltas:[I
const/4 v1, 0x0
invoke-static {v0, v1}, Ljava/util/Arrays;->fill([II)V
.line 1395
const/4 v0, 0x0
.local v0, "i":I
iget-object v1, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->this$0:Lim/tpelyyftgw/ui/components/TableLayout;
invoke-virtual {v1}, Lim/tpelyyftgw/ui/components/TableLayout;->getChildCount()I
move-result v1
.local v1, "N":I
:goto_d
if-ge v0, v1, :cond_3a
.line 1396
iget-object v2, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->this$0:Lim/tpelyyftgw/ui/components/TableLayout;
invoke-virtual {v2, v0}, Lim/tpelyyftgw/ui/components/TableLayout;->getChildAt(I)Lim/tpelyyftgw/ui/components/TableLayout$Child;
move-result-object v2
.line 1397
.local v2, "c":Lim/tpelyyftgw/ui/components/TableLayout$Child;
invoke-virtual {v2}, Lim/tpelyyftgw/ui/components/TableLayout$Child;->getLayoutParams()Lim/tpelyyftgw/ui/components/TableLayout$LayoutParams;
move-result-object v3
.line 1398
.local v3, "lp":Lim/tpelyyftgw/ui/components/TableLayout$LayoutParams;
iget-boolean v4, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->horizontal:Z
if-eqz v4, :cond_20
iget-object v4, v3, Lim/tpelyyftgw/ui/components/TableLayout$LayoutParams;->columnSpec:Lim/tpelyyftgw/ui/components/TableLayout$Spec;
goto :goto_22
:cond_20
iget-object v4, v3, Lim/tpelyyftgw/ui/components/TableLayout$LayoutParams;->rowSpec:Lim/tpelyyftgw/ui/components/TableLayout$Spec;
.line 1399
.local v4, "spec":Lim/tpelyyftgw/ui/components/TableLayout$Spec;
:goto_22
iget v5, v4, Lim/tpelyyftgw/ui/components/TableLayout$Spec;->weight:F
.line 1400
.local v5, "weight":F
const/4 v6, 0x0
cmpl-float v6, v5, v6
if-eqz v6, :cond_37
.line 1401
int-to-float v6, p1
mul-float v6, v6, v5
div-float/2addr v6, p2
invoke-static {v6}, Ljava/lang/Math;->round(F)I
move-result v6
.line 1402
.local v6, "delta":I
iget-object v7, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->deltas:[I
aput v6, v7, v0
.line 1403
sub-int/2addr p1, v6
.line 1404
sub-float/2addr p2, v5
.line 1395
.end local v2 # "c":Lim/tpelyyftgw/ui/components/TableLayout$Child;
.end local v3 # "lp":Lim/tpelyyftgw/ui/components/TableLayout$LayoutParams;
.end local v4 # "spec":Lim/tpelyyftgw/ui/components/TableLayout$Spec;
.end local v5 # "weight":F
.end local v6 # "delta":I
:cond_37
add-int/lit8 v0, v0, 0x1
goto :goto_d
.line 1407
.end local v0 # "i":I
.end local v1 # "N":I
:cond_3a
return-void
.end method
.method private size([I)I
.registers 3
.param p1, "locations" # [I
.line 1479
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->getCount()I
move-result v0
aget v0, p1, v0
return v0
.end method
.method private solve([I)Z
.registers 3
.param p1, "a" # [I
.line 1363
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->getArcs()[Lim/tpelyyftgw/ui/components/TableLayout$Arc;
move-result-object v0
invoke-direct {p0, v0, p1}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->solve([Lim/tpelyyftgw/ui/components/TableLayout$Arc;[I)Z
move-result v0
return v0
.end method
.method private solve([Lim/tpelyyftgw/ui/components/TableLayout$Arc;[I)Z
.registers 4
.param p1, "arcs" # [Lim/tpelyyftgw/ui/components/TableLayout$Arc;
.param p2, "locations" # [I
.line 1284
const/4 v0, 0x1
invoke-direct {p0, p1, p2, v0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->solve([Lim/tpelyyftgw/ui/components/TableLayout$Arc;[IZ)Z
move-result v0
return v0
.end method
.method private solve([Lim/tpelyyftgw/ui/components/TableLayout$Arc;[IZ)Z
.registers 14
.param p1, "arcs" # [Lim/tpelyyftgw/ui/components/TableLayout$Arc;
.param p2, "locations" # [I
.param p3, "modifyOnError" # Z
.line 1288
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->getCount()I
move-result v0
const/4 v1, 0x1
add-int/2addr v0, v1
.line 1290
.local v0, "N":I
const/4 v2, 0x0
.local v2, "p":I
:goto_7
array-length v3, p1
if-ge v2, v3, :cond_62
.line 1291
invoke-direct {p0, p2}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->init([I)V
.line 1293
const/4 v3, 0x0
.local v3, "i":I
:goto_e
if-ge v3, v0, :cond_25
.line 1294
const/4 v4, 0x0
.line 1295
.local v4, "changed":Z
const/4 v5, 0x0
.local v5, "j":I
array-length v6, p1
.local v6, "length":I
:goto_13
if-ge v5, v6, :cond_1f
.line 1296
aget-object v7, p1, v5
invoke-direct {p0, p2, v7}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->relax([ILim/tpelyyftgw/ui/components/TableLayout$Arc;)Z
move-result v7
or-int/2addr v4, v7
.line 1295
add-int/lit8 v5, v5, 0x1
goto :goto_13
.line 1298
.end local v5 # "j":I
.end local v6 # "length":I
:cond_1f
if-nez v4, :cond_22
.line 1299
return v1
.line 1293
.end local v4 # "changed":Z
:cond_22
add-int/lit8 v3, v3, 0x1
goto :goto_e
.line 1303
.end local v3 # "i":I
:cond_25
const/4 v3, 0x0
if-nez p3, :cond_29
.line 1304
return v3
.line 1307
:cond_29
array-length v4, p1
new-array v4, v4, [Z
.line 1308
.local v4, "culprits":[Z
const/4 v5, 0x0
.local v5, "i":I
:goto_2d
if-ge v5, v0, :cond_44
.line 1309
const/4 v6, 0x0
.local v6, "j":I
array-length v7, p1
.local v7, "length":I
:goto_31
if-ge v6, v7, :cond_41
.line 1310
aget-boolean v8, v4, v6
aget-object v9, p1, v6
invoke-direct {p0, p2, v9}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->relax([ILim/tpelyyftgw/ui/components/TableLayout$Arc;)Z
move-result v9
or-int/2addr v8, v9
aput-boolean v8, v4, v6
.line 1309
add-int/lit8 v6, v6, 0x1
goto :goto_31
.line 1308
.end local v6 # "j":I
.end local v7 # "length":I
:cond_41
add-int/lit8 v5, v5, 0x1
goto :goto_2d
.line 1314
.end local v5 # "i":I
:cond_44
const/4 v5, 0x0
.restart local v5 # "i":I
:goto_45
array-length v6, p1
if-ge v5, v6, :cond_5f
.line 1315
aget-boolean v6, v4, v5
if-eqz v6, :cond_5c
.line 1316
aget-object v6, p1, v5
.line 1317
.local v6, "arc":Lim/tpelyyftgw/ui/components/TableLayout$Arc;
iget-object v7, v6, Lim/tpelyyftgw/ui/components/TableLayout$Arc;->span:Lim/tpelyyftgw/ui/components/TableLayout$Interval;
iget v7, v7, Lim/tpelyyftgw/ui/components/TableLayout$Interval;->min:I
iget-object v8, v6, Lim/tpelyyftgw/ui/components/TableLayout$Arc;->span:Lim/tpelyyftgw/ui/components/TableLayout$Interval;
iget v8, v8, Lim/tpelyyftgw/ui/components/TableLayout$Interval;->max:I
if-ge v7, v8, :cond_59
.line 1318
goto :goto_5c
.line 1320
:cond_59
iput-boolean v3, v6, Lim/tpelyyftgw/ui/components/TableLayout$Arc;->valid:Z
.line 1321
goto :goto_5f
.line 1314
.end local v6 # "arc":Lim/tpelyyftgw/ui/components/TableLayout$Arc;
:cond_5c
:goto_5c
add-int/lit8 v5, v5, 0x1
goto :goto_45
.line 1290
.end local v4 # "culprits":[Z
.end local v5 # "i":I
:cond_5f
:goto_5f
add-int/lit8 v2, v2, 0x1
goto :goto_7
.line 1325
.end local v2 # "p":I
:cond_62
return v1
.end method
.method private solveAndDistributeSpace([I)V
.registers 12
.param p1, "a" # [I
.line 1410
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->getDeltas()[I
move-result-object v0
const/4 v1, 0x0
invoke-static {v0, v1}, Ljava/util/Arrays;->fill([II)V
.line 1411
invoke-direct {p0, p1}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->solve([I)Z
.line 1412
iget-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->parentMin:Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;
iget v0, v0, Lim/tpelyyftgw/ui/components/TableLayout$MutableInt;->value:I
iget-object v2, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->this$0:Lim/tpelyyftgw/ui/components/TableLayout;
invoke-virtual {v2}, Lim/tpelyyftgw/ui/components/TableLayout;->getChildCount()I
move-result v2
mul-int v0, v0, v2
add-int/lit8 v0, v0, 0x1
.line 1413
.local v0, "deltaMax":I
const/4 v2, 0x2
if-ge v0, v2, :cond_1d
.line 1414
return-void
.line 1416
:cond_1d
const/4 v2, 0x0
.line 1418
.local v2, "deltaMin":I
invoke-direct {p0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->calculateTotalWeight()F
move-result v3
.line 1420
.local v3, "totalWeight":F
const/4 v4, -0x1
.line 1421
.local v4, "validDelta":I
const/4 v5, 0x1
.line 1422
.local v5, "validSolution":Z
:goto_24
if-ge v2, v0, :cond_43
.line 1423
int-to-long v6, v2
int-to-long v8, v0
add-long/2addr v6, v8
const-wide/16 v8, 0x2
div-long/2addr v6, v8
long-to-int v7, v6
.line 1424
.local v7, "delta":I
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->invalidateValues()V
.line 1425
invoke-direct {p0, v7, v3}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->shareOutDelta(IF)V
.line 1426
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->getArcs()[Lim/tpelyyftgw/ui/components/TableLayout$Arc;
move-result-object v6
invoke-direct {p0, v6, p1, v1}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->solve([Lim/tpelyyftgw/ui/components/TableLayout$Arc;[IZ)Z
move-result v5
.line 1427
if-eqz v5, :cond_41
.line 1428
move v4, v7
.line 1429
add-int/lit8 v2, v7, 0x1
goto :goto_42
.line 1431
:cond_41
move v0, v7
.line 1433
.end local v7 # "delta":I
:goto_42
goto :goto_24
.line 1434
:cond_43
if-lez v4, :cond_50
if-nez v5, :cond_50
.line 1435
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->invalidateValues()V
.line 1436
invoke-direct {p0, v4, v3}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->shareOutDelta(IF)V
.line 1437
invoke-direct {p0, p1}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->solve([I)Z
.line 1439
:cond_50
return-void
.end method
.method private topologicalSort(Ljava/util/List;)[Lim/tpelyyftgw/ui/components/TableLayout$Arc;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lim/tpelyyftgw/ui/components/TableLayout$Arc;",
">;)[",
"Lim/tpelyyftgw/ui/components/TableLayout$Arc;"
}
.end annotation
.line 1214
.local p1, "arcs":Ljava/util/List;, "Ljava/util/List<Lim/tpelyyftgw/ui/components/TableLayout$Arc;>;"
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v0
new-array v0, v0, [Lim/tpelyyftgw/ui/components/TableLayout$Arc;
invoke-interface {p1, v0}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lim/tpelyyftgw/ui/components/TableLayout$Arc;
invoke-direct {p0, v0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->topologicalSort([Lim/tpelyyftgw/ui/components/TableLayout$Arc;)[Lim/tpelyyftgw/ui/components/TableLayout$Arc;
move-result-object v0
return-object v0
.end method
.method private topologicalSort([Lim/tpelyyftgw/ui/components/TableLayout$Arc;)[Lim/tpelyyftgw/ui/components/TableLayout$Arc;
.registers 3
.param p1, "arcs" # [Lim/tpelyyftgw/ui/components/TableLayout$Arc;
.line 1178
new-instance v0, Lim/tpelyyftgw/ui/components/TableLayout$Axis$1;
invoke-direct {v0, p0, p1}, Lim/tpelyyftgw/ui/components/TableLayout$Axis$1;-><init>(Lim/tpelyyftgw/ui/components/TableLayout$Axis;[Lim/tpelyyftgw/ui/components/TableLayout$Arc;)V
.line 1210
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis$1;->sort()[Lim/tpelyyftgw/ui/components/TableLayout$Arc;
move-result-object v0
.line 1178
return-object v0
.end method
# virtual methods
.method public getArcs()[Lim/tpelyyftgw/ui/components/TableLayout$Arc;
.registers 2
.line 1253
iget-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->arcs:[Lim/tpelyyftgw/ui/components/TableLayout$Arc;
if-nez v0, :cond_a
.line 1254
invoke-direct {p0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->createArcs()[Lim/tpelyyftgw/ui/components/TableLayout$Arc;
move-result-object v0
iput-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->arcs:[Lim/tpelyyftgw/ui/components/TableLayout$Arc;
.line 1256
:cond_a
iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->arcsValid:Z
if-nez v0, :cond_14
.line 1257
invoke-direct {p0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->computeArcs()V
.line 1258
const/4 v0, 0x1
iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->arcsValid:Z
.line 1260
:cond_14
iget-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->arcs:[Lim/tpelyyftgw/ui/components/TableLayout$Arc;
return-object v0
.end method
.method public getCount()I
.registers 3
.line 1037
iget v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->definedCount:I
invoke-direct {p0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->getMaxIndex()I
move-result v1
invoke-static {v0, v1}, Ljava/lang/Math;->max(II)I
move-result v0
return v0
.end method
.method public getDeltas()[I
.registers 2
.line 1387
iget-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->deltas:[I
if-nez v0, :cond_e
.line 1388
iget-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->this$0:Lim/tpelyyftgw/ui/components/TableLayout;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/TableLayout;->getChildCount()I
move-result v0
new-array v0, v0, [I
iput-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->deltas:[I
.line 1390
:cond_e
iget-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->deltas:[I
return-object v0
.end method
.method public getGroupBounds()Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lim/tpelyyftgw/ui/components/TableLayout$PackedMap<",
"Lim/tpelyyftgw/ui/components/TableLayout$Spec;",
"Lim/tpelyyftgw/ui/components/TableLayout$Bounds;",
">;"
}
.end annotation
.line 1083
iget-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->groupBounds:Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;
if-nez v0, :cond_a
.line 1084
invoke-direct {p0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->createGroupBounds()Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;
move-result-object v0
iput-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->groupBounds:Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;
.line 1086
:cond_a
iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->groupBoundsValid:Z
if-nez v0, :cond_14
.line 1087
invoke-direct {p0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->computeGroupBounds()V
.line 1088
const/4 v0, 0x1
iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->groupBoundsValid:Z
.line 1090
:cond_14
iget-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->groupBounds:Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;
return-object v0
.end method
.method public getLeadingMargins()[I
.registers 3
.line 1341
iget-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->leadingMargins:[I
const/4 v1, 0x1
if-nez v0, :cond_e
.line 1342
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->getCount()I
move-result v0
add-int/2addr v0, v1
new-array v0, v0, [I
iput-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->leadingMargins:[I
.line 1344
:cond_e
iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->leadingMarginsValid:Z
if-nez v0, :cond_17
.line 1345
invoke-direct {p0, v1}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->computeMargins(Z)V
.line 1346
iput-boolean v1, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->leadingMarginsValid:Z
.line 1348
:cond_17
iget-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->leadingMargins:[I
return-object v0
.end method
.method public getLocations()[I
.registers 4
.line 1467
iget-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->locations:[I
const/4 v1, 0x1
if-nez v0, :cond_e
.line 1468
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->getCount()I
move-result v0
add-int/2addr v0, v1
.line 1469
.local v0, "N":I
new-array v2, v0, [I
iput-object v2, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->locations:[I
.line 1471
.end local v0 # "N":I
:cond_e
iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->locationsValid:Z
if-nez v0, :cond_19
.line 1472
iget-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->locations:[I
invoke-direct {p0, v0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->computeLocations([I)V
.line 1473
iput-boolean v1, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->locationsValid:Z
.line 1475
:cond_19
iget-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->locations:[I
return-object v0
.end method
.method public getMeasure(I)I
.registers 6
.param p1, "measureSpec" # I
.line 1494
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getMode(I)I
move-result v0
.line 1495
.local v0, "mode":I
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I
move-result v1
.line 1496
.local v1, "size":I
const/high16 v2, -0x80000000
const/4 v3, 0x0
if-eq v0, v2, :cond_21
if-eqz v0, :cond_19
const/high16 v2, 0x40000000 # 2.0f
if-eq v0, v2, :cond_14
.line 1507
return v3
.line 1501
:cond_14
invoke-direct {p0, v1, v1}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->getMeasure(II)I
move-result v2
return v2
.line 1498
:cond_19
const v2, 0x186a0
invoke-direct {p0, v3, v2}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->getMeasure(II)I
move-result v2
return v2
.line 1504
:cond_21
invoke-direct {p0, v3, v1}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->getMeasure(II)I
move-result v2
return v2
.end method
.method public getTrailingMargins()[I
.registers 3
.line 1352
iget-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->trailingMargins:[I
const/4 v1, 0x1
if-nez v0, :cond_e
.line 1353
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->getCount()I
move-result v0
add-int/2addr v0, v1
new-array v0, v0, [I
iput-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->trailingMargins:[I
.line 1355
:cond_e
iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->trailingMarginsValid:Z
if-nez v0, :cond_18
.line 1356
const/4 v0, 0x0
invoke-direct {p0, v0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->computeMargins(Z)V
.line 1357
iput-boolean v1, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->trailingMarginsValid:Z
.line 1359
:cond_18
iget-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->trailingMargins:[I
return-object v0
.end method
.method groupArcsByFirstVertex([Lim/tpelyyftgw/ui/components/TableLayout$Arc;)[[Lim/tpelyyftgw/ui/components/TableLayout$Arc;
.registers 12
.param p1, "arcs" # [Lim/tpelyyftgw/ui/components/TableLayout$Arc;
.line 1159
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->getCount()I
move-result v0
add-int/lit8 v0, v0, 0x1
.line 1160
.local v0, "N":I
new-array v1, v0, [[Lim/tpelyyftgw/ui/components/TableLayout$Arc;
.line 1161
.local v1, "result":[[Lim/tpelyyftgw/ui/components/TableLayout$Arc;
new-array v2, v0, [I
.line 1162
.local v2, "sizes":[I
array-length v3, p1
const/4 v4, 0x0
const/4 v5, 0x0
:goto_d
if-ge v5, v3, :cond_1e
aget-object v6, p1, v5
.line 1163
.local v6, "arc":Lim/tpelyyftgw/ui/components/TableLayout$Arc;
iget-object v7, v6, Lim/tpelyyftgw/ui/components/TableLayout$Arc;->span:Lim/tpelyyftgw/ui/components/TableLayout$Interval;
iget v7, v7, Lim/tpelyyftgw/ui/components/TableLayout$Interval;->min:I
aget v8, v2, v7
add-int/lit8 v8, v8, 0x1
aput v8, v2, v7
.line 1162
.end local v6 # "arc":Lim/tpelyyftgw/ui/components/TableLayout$Arc;
add-int/lit8 v5, v5, 0x1
goto :goto_d
.line 1165
:cond_1e
const/4 v3, 0x0
.local v3, "i":I
:goto_1f
array-length v5, v2
if-ge v3, v5, :cond_2b
.line 1166
aget v5, v2, v3
new-array v5, v5, [Lim/tpelyyftgw/ui/components/TableLayout$Arc;
aput-object v5, v1, v3
.line 1165
add-int/lit8 v3, v3, 0x1
goto :goto_1f
.line 1168
.end local v3 # "i":I
:cond_2b
invoke-static {v2, v4}, Ljava/util/Arrays;->fill([II)V
.line 1169
array-length v3, p1
:goto_2f
if-ge v4, v3, :cond_44
aget-object v5, p1, v4
.line 1170
.local v5, "arc":Lim/tpelyyftgw/ui/components/TableLayout$Arc;
iget-object v6, v5, Lim/tpelyyftgw/ui/components/TableLayout$Arc;->span:Lim/tpelyyftgw/ui/components/TableLayout$Interval;
iget v6, v6, Lim/tpelyyftgw/ui/components/TableLayout$Interval;->min:I
.line 1171
.local v6, "i":I
aget-object v7, v1, v6
aget v8, v2, v6
add-int/lit8 v9, v8, 0x1
aput v9, v2, v6
aput-object v5, v7, v8
.line 1169
.end local v5 # "arc":Lim/tpelyyftgw/ui/components/TableLayout$Arc;
.end local v6 # "i":I
add-int/lit8 v4, v4, 0x1
goto :goto_2f
.line 1174
:cond_44
return-object v1
.end method
.method public invalidateStructure()V
.registers 2
.line 1518
const/high16 v0, -0x80000000
iput v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->maxIndex:I
.line 1520
const/4 v0, 0x0
iput-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->groupBounds:Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;
.line 1521
iput-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->forwardLinks:Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;
.line 1522
iput-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->backwardLinks:Lim/tpelyyftgw/ui/components/TableLayout$PackedMap;
.line 1524
iput-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->leadingMargins:[I
.line 1525
iput-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->trailingMargins:[I
.line 1526
iput-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->arcs:[Lim/tpelyyftgw/ui/components/TableLayout$Arc;
.line 1528
iput-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->locations:[I
.line 1530
iput-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->deltas:[I
.line 1531
const/4 v0, 0x0
iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->hasWeightsValid:Z
.line 1533
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->invalidateValues()V
.line 1534
return-void
.end method
.method public invalidateValues()V
.registers 2
.line 1537
const/4 v0, 0x0
iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->groupBoundsValid:Z
.line 1538
iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->forwardLinksValid:Z
.line 1539
iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->backwardLinksValid:Z
.line 1541
iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->leadingMarginsValid:Z
.line 1542
iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->trailingMarginsValid:Z
.line 1543
iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->arcsValid:Z
.line 1545
iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->locationsValid:Z
.line 1546
return-void
.end method
.method public isOrderPreserved()Z
.registers 2
.line 1048
iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->orderPreserved:Z
return v0
.end method
.method public layout(I)V
.registers 2
.param p1, "size" # I
.line 1513
invoke-direct {p0, p1, p1}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->setParentConstraints(II)V
.line 1514
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->getLocations()[I
.line 1515
return-void
.end method
.method public setCount(I)V
.registers 4
.param p1, "count" # I
.line 1041
const/high16 v0, -0x80000000
if-eq p1, v0, :cond_27
invoke-direct {p0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->getMaxIndex()I
move-result v0
if-ge p1, v0, :cond_27
.line 1042
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
iget-boolean v1, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->horizontal:Z
if-eqz v1, :cond_16
const-string v1, "column"
goto :goto_18
:cond_16
const-string v1, "row"
:goto_18
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, "Count must be greater than or equal to the maximum of all grid indices (and spans) defined in the LayoutParams of each child"
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
# invokes: Lim/tpelyyftgw/ui/components/TableLayout;->handleInvalidParams(Ljava/lang/String;)V
invoke-static {v0}, Lim/tpelyyftgw/ui/components/TableLayout;->access$1700(Ljava/lang/String;)V
.line 1044
:cond_27
iput p1, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->definedCount:I
.line 1045
return-void
.end method
.method public setOrderPreserved(Z)V
.registers 2
.param p1, "orderPreserved" # Z
.line 1052
iput-boolean p1, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->orderPreserved:Z
.line 1053
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->invalidateStructure()V
.line 1054
return-void
.end method