328 lines
5.9 KiB
Smali
328 lines
5.9 KiB
Smali
.class public abstract Landroid/support/v7/widget/GridLayoutManager$c;
|
|
.super Ljava/lang/Object;
|
|
.source "GridLayoutManager.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroid/support/v7/widget/GridLayoutManager;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x409
|
|
name = "c"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final a:Landroid/util/SparseIntArray;
|
|
|
|
.field private b:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 829
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 831
|
|
new-instance v0, Landroid/util/SparseIntArray;
|
|
|
|
invoke-direct {v0}, Landroid/util/SparseIntArray;-><init>()V
|
|
|
|
iput-object v0, p0, Landroid/support/v7/widget/GridLayoutManager$c;->a:Landroid/util/SparseIntArray;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 833
|
|
iput-boolean v0, p0, Landroid/support/v7/widget/GridLayoutManager$c;->b:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public abstract a(I)I
|
|
.end method
|
|
|
|
.method public a(II)I
|
|
.locals 5
|
|
|
|
.line 908
|
|
invoke-virtual {p0, p1}, Landroid/support/v7/widget/GridLayoutManager$c;->a(I)I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-ne v0, p2, :cond_0
|
|
|
|
return v1
|
|
|
|
.line 915
|
|
:cond_0
|
|
iget-boolean v2, p0, Landroid/support/v7/widget/GridLayoutManager$c;->b:Z
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
iget-object v2, p0, Landroid/support/v7/widget/GridLayoutManager$c;->a:Landroid/util/SparseIntArray;
|
|
|
|
invoke-virtual {v2}, Landroid/util/SparseIntArray;->size()I
|
|
|
|
move-result v2
|
|
|
|
if-lez v2, :cond_1
|
|
|
|
.line 916
|
|
invoke-virtual {p0, p1}, Landroid/support/v7/widget/GridLayoutManager$c;->b(I)I
|
|
|
|
move-result v2
|
|
|
|
if-ltz v2, :cond_1
|
|
|
|
.line 918
|
|
iget-object v3, p0, Landroid/support/v7/widget/GridLayoutManager$c;->a:Landroid/util/SparseIntArray;
|
|
|
|
invoke-virtual {v3, v2}, Landroid/util/SparseIntArray;->get(I)I
|
|
|
|
move-result v3
|
|
|
|
invoke-virtual {p0, v2}, Landroid/support/v7/widget/GridLayoutManager$c;->a(I)I
|
|
|
|
move-result v4
|
|
|
|
add-int/2addr v3, v4
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
:goto_0
|
|
if-ge v2, p1, :cond_4
|
|
|
|
.line 923
|
|
invoke-virtual {p0, v2}, Landroid/support/v7/widget/GridLayoutManager$c;->a(I)I
|
|
|
|
move-result v4
|
|
|
|
add-int/2addr v3, v4
|
|
|
|
if-ne v3, p2, :cond_2
|
|
|
|
const/4 v3, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
if-le v3, p2, :cond_3
|
|
|
|
move v3, v4
|
|
|
|
:cond_3
|
|
:goto_1
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
add-int/2addr v0, v3
|
|
|
|
if-gt v0, p2, :cond_5
|
|
|
|
return v3
|
|
|
|
:cond_5
|
|
return v1
|
|
.end method
|
|
|
|
.method public a()V
|
|
.locals 1
|
|
|
|
.line 859
|
|
iget-object v0, p0, Landroid/support/v7/widget/GridLayoutManager$c;->a:Landroid/util/SparseIntArray;
|
|
|
|
invoke-virtual {v0}, Landroid/util/SparseIntArray;->clear()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method b(I)I
|
|
.locals 4
|
|
|
|
.line 940
|
|
iget-object v0, p0, Landroid/support/v7/widget/GridLayoutManager$c;->a:Landroid/util/SparseIntArray;
|
|
|
|
invoke-virtual {v0}, Landroid/util/SparseIntArray;->size()I
|
|
|
|
move-result v0
|
|
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-gt v1, v0, :cond_1
|
|
|
|
add-int v2, v1, v0
|
|
|
|
ushr-int/lit8 v2, v2, 0x1
|
|
|
|
.line 944
|
|
iget-object v3, p0, Landroid/support/v7/widget/GridLayoutManager$c;->a:Landroid/util/SparseIntArray;
|
|
|
|
invoke-virtual {v3, v2}, Landroid/util/SparseIntArray;->keyAt(I)I
|
|
|
|
move-result v3
|
|
|
|
if-ge v3, p1, :cond_0
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
move v1, v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
add-int/lit8 v2, v2, -0x1
|
|
|
|
move v0, v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
if-ltz v1, :cond_2
|
|
|
|
.line 952
|
|
iget-object p1, p0, Landroid/support/v7/widget/GridLayoutManager$c;->a:Landroid/util/SparseIntArray;
|
|
|
|
invoke-virtual {p1}, Landroid/util/SparseIntArray;->size()I
|
|
|
|
move-result p1
|
|
|
|
if-ge v1, p1, :cond_2
|
|
|
|
.line 953
|
|
iget-object p1, p0, Landroid/support/v7/widget/GridLayoutManager$c;->a:Landroid/util/SparseIntArray;
|
|
|
|
invoke-virtual {p1, v1}, Landroid/util/SparseIntArray;->keyAt(I)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
|
|
:cond_2
|
|
const/4 p1, -0x1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method b(II)I
|
|
.locals 2
|
|
|
|
.line 872
|
|
iget-boolean v0, p0, Landroid/support/v7/widget/GridLayoutManager$c;->b:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 873
|
|
invoke-virtual {p0, p1, p2}, Landroid/support/v7/widget/GridLayoutManager$c;->a(II)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
|
|
.line 875
|
|
:cond_0
|
|
iget-object v0, p0, Landroid/support/v7/widget/GridLayoutManager$c;->a:Landroid/util/SparseIntArray;
|
|
|
|
const/4 v1, -0x1
|
|
|
|
invoke-virtual {v0, p1, v1}, Landroid/util/SparseIntArray;->get(II)I
|
|
|
|
move-result v0
|
|
|
|
if-eq v0, v1, :cond_1
|
|
|
|
return v0
|
|
|
|
.line 879
|
|
:cond_1
|
|
invoke-virtual {p0, p1, p2}, Landroid/support/v7/widget/GridLayoutManager$c;->a(II)I
|
|
|
|
move-result p2
|
|
|
|
.line 880
|
|
iget-object v0, p0, Landroid/support/v7/widget/GridLayoutManager$c;->a:Landroid/util/SparseIntArray;
|
|
|
|
invoke-virtual {v0, p1, p2}, Landroid/util/SparseIntArray;->put(II)V
|
|
|
|
return p2
|
|
.end method
|
|
|
|
.method public c(II)I
|
|
.locals 6
|
|
|
|
.line 971
|
|
invoke-virtual {p0, p1}, Landroid/support/v7/widget/GridLayoutManager$c;->a(I)I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
:goto_0
|
|
if-ge v2, p1, :cond_2
|
|
|
|
.line 973
|
|
invoke-virtual {p0, v2}, Landroid/support/v7/widget/GridLayoutManager$c;->a(I)I
|
|
|
|
move-result v5
|
|
|
|
add-int/2addr v3, v5
|
|
|
|
if-ne v3, p2, :cond_0
|
|
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
if-le v3, p2, :cond_1
|
|
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
move v3, v5
|
|
|
|
:cond_1
|
|
:goto_1
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
add-int/2addr v3, v0
|
|
|
|
if-le v3, p2, :cond_3
|
|
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
:cond_3
|
|
return v4
|
|
.end method
|