TableLayout$Axis$1.smali
.class Lim/tpelyyftgw/ui/components/TableLayout$Axis$1;
.super Ljava/lang/Object;
.source "TableLayout.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lim/tpelyyftgw/ui/components/TableLayout$Axis;->topologicalSort([Lim/tpelyyftgw/ui/components/TableLayout$Arc;)[Lim/tpelyyftgw/ui/components/TableLayout$Arc;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field arcsByVertex:[[Lim/tpelyyftgw/ui/components/TableLayout$Arc;
.field cursor:I
.field result:[Lim/tpelyyftgw/ui/components/TableLayout$Arc;
.field final synthetic this$1:Lim/tpelyyftgw/ui/components/TableLayout$Axis;
.field final synthetic val$arcs:[Lim/tpelyyftgw/ui/components/TableLayout$Arc;
.field visited:[I
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method constructor <init>(Lim/tpelyyftgw/ui/components/TableLayout$Axis;[Lim/tpelyyftgw/ui/components/TableLayout$Arc;)V
.registers 4
.param p1, "this$1" # Lim/tpelyyftgw/ui/components/TableLayout$Axis;
.line 1178
iput-object p1, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis$1;->this$1:Lim/tpelyyftgw/ui/components/TableLayout$Axis;
iput-object p2, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis$1;->val$arcs:[Lim/tpelyyftgw/ui/components/TableLayout$Arc;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 1179
iget-object p2, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis$1;->val$arcs:[Lim/tpelyyftgw/ui/components/TableLayout$Arc;
array-length v0, p2
new-array v0, v0, [Lim/tpelyyftgw/ui/components/TableLayout$Arc;
iput-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis$1;->result:[Lim/tpelyyftgw/ui/components/TableLayout$Arc;
.line 1180
array-length v0, v0
add-int/lit8 v0, v0, -0x1
iput v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis$1;->cursor:I
.line 1181
iget-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis$1;->this$1:Lim/tpelyyftgw/ui/components/TableLayout$Axis;
invoke-virtual {v0, p2}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->groupArcsByFirstVertex([Lim/tpelyyftgw/ui/components/TableLayout$Arc;)[[Lim/tpelyyftgw/ui/components/TableLayout$Arc;
move-result-object p2
iput-object p2, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis$1;->arcsByVertex:[[Lim/tpelyyftgw/ui/components/TableLayout$Arc;
.line 1182
iget-object p2, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis$1;->this$1:Lim/tpelyyftgw/ui/components/TableLayout$Axis;
invoke-virtual {p2}, Lim/tpelyyftgw/ui/components/TableLayout$Axis;->getCount()I
move-result p2
add-int/lit8 p2, p2, 0x1
new-array p2, p2, [I
iput-object p2, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis$1;->visited:[I
return-void
.end method
# virtual methods
.method sort()[Lim/tpelyyftgw/ui/components/TableLayout$Arc;
.registers 3
.line 1205
const/4 v0, 0x0
.local v0, "loc":I
iget-object v1, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis$1;->arcsByVertex:[[Lim/tpelyyftgw/ui/components/TableLayout$Arc;
array-length v1, v1
.local v1, "N":I
:goto_4
if-ge v0, v1, :cond_c
.line 1206
invoke-virtual {p0, v0}, Lim/tpelyyftgw/ui/components/TableLayout$Axis$1;->walk(I)V
.line 1205
add-int/lit8 v0, v0, 0x1
goto :goto_4
.line 1208
.end local v0 # "loc":I
.end local v1 # "N":I
:cond_c
iget-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis$1;->result:[Lim/tpelyyftgw/ui/components/TableLayout$Arc;
return-object v0
.end method
.method walk(I)V
.registers 9
.param p1, "loc" # I
.line 1185
iget-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis$1;->visited:[I
aget v1, v0, p1
if-eqz v1, :cond_7
goto :goto_2e
.line 1187
:cond_7
const/4 v1, 0x1
aput v1, v0, p1
.line 1188
iget-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis$1;->arcsByVertex:[[Lim/tpelyyftgw/ui/components/TableLayout$Arc;
aget-object v0, v0, p1
array-length v1, v0
const/4 v2, 0x0
:goto_10
if-ge v2, v1, :cond_28
aget-object v3, v0, v2
.line 1189
.local v3, "arc":Lim/tpelyyftgw/ui/components/TableLayout$Arc;
iget-object v4, v3, Lim/tpelyyftgw/ui/components/TableLayout$Arc;->span:Lim/tpelyyftgw/ui/components/TableLayout$Interval;
iget v4, v4, Lim/tpelyyftgw/ui/components/TableLayout$Interval;->max:I
invoke-virtual {p0, v4}, Lim/tpelyyftgw/ui/components/TableLayout$Axis$1;->walk(I)V
.line 1190
iget-object v4, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis$1;->result:[Lim/tpelyyftgw/ui/components/TableLayout$Arc;
iget v5, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis$1;->cursor:I
add-int/lit8 v6, v5, -0x1
iput v6, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis$1;->cursor:I
aput-object v3, v4, v5
.line 1188
.end local v3 # "arc":Lim/tpelyyftgw/ui/components/TableLayout$Arc;
add-int/lit8 v2, v2, 0x1
goto :goto_10
.line 1192
:cond_28
iget-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Axis$1;->visited:[I
const/4 v1, 0x2
aput v1, v0, p1
.line 1193
nop
.line 1202
:goto_2e
return-void
.end method