mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
440 lines
13 KiB
Smali
440 lines
13 KiB
Smali
|
.class Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "LinearLayoutManager.java"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
||
|
value = Landroidx/recyclerview/widget/LinearLayoutManager;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x8
|
||
|
name = "AnchorInfo"
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field mCoordinate:I
|
||
|
|
||
|
.field mLayoutFromEnd:Z
|
||
|
|
||
|
.field mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
||
|
|
||
|
.field mPosition:I
|
||
|
|
||
|
.field mValid:Z
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method constructor <init>()V
|
||
|
.locals 0
|
||
|
|
||
|
.line 2515
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
.line 2516
|
||
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->reset()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method assignCoordinateFromPadding()V
|
||
|
.locals 1
|
||
|
|
||
|
iget-boolean v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mLayoutFromEnd:Z
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
||
|
|
||
|
.line 2532
|
||
|
invoke-virtual {v0}, Landroidx/recyclerview/widget/OrientationHelper;->getEndAfterPadding()I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
||
|
|
||
|
.line 2533
|
||
|
invoke-virtual {v0}, Landroidx/recyclerview/widget/OrientationHelper;->getStartAfterPadding()I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
:goto_0
|
||
|
iput v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mCoordinate:I
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public assignFromView(Landroid/view/View;I)V
|
||
|
.locals 1
|
||
|
|
||
|
iget-boolean v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mLayoutFromEnd:Z
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
||
|
|
||
|
.line 2601
|
||
|
invoke-virtual {v0, p1}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedEnd(Landroid/view/View;)I
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
||
|
|
||
|
.line 2602
|
||
|
invoke-virtual {v0}, Landroidx/recyclerview/widget/OrientationHelper;->getTotalSpaceChange()I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
add-int/2addr p1, v0
|
||
|
|
||
|
iput p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mCoordinate:I
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
||
|
|
||
|
.line 2604
|
||
|
invoke-virtual {v0, p1}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedStart(Landroid/view/View;)I
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
iput p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mCoordinate:I
|
||
|
|
||
|
:goto_0
|
||
|
iput p2, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mPosition:I
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public assignFromViewAndKeepVisibleRect(Landroid/view/View;I)V
|
||
|
.locals 4
|
||
|
|
||
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
||
|
|
||
|
.line 2553
|
||
|
invoke-virtual {v0}, Landroidx/recyclerview/widget/OrientationHelper;->getTotalSpaceChange()I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-ltz v0, :cond_0
|
||
|
|
||
|
.line 2555
|
||
|
invoke-virtual {p0, p1, p2}, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->assignFromView(Landroid/view/View;I)V
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:cond_0
|
||
|
iput p2, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mPosition:I
|
||
|
|
||
|
iget-boolean p2, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mLayoutFromEnd:Z
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
if-eqz p2, :cond_1
|
||
|
|
||
|
iget-object p2, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
||
|
|
||
|
.line 2560
|
||
|
invoke-virtual {p2}, Landroidx/recyclerview/widget/OrientationHelper;->getEndAfterPadding()I
|
||
|
|
||
|
move-result p2
|
||
|
|
||
|
sub-int/2addr p2, v0
|
||
|
|
||
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
||
|
|
||
|
.line 2561
|
||
|
invoke-virtual {v0, p1}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedEnd(Landroid/view/View;)I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
sub-int/2addr p2, v0
|
||
|
|
||
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
||
|
|
||
|
.line 2563
|
||
|
invoke-virtual {v0}, Landroidx/recyclerview/widget/OrientationHelper;->getEndAfterPadding()I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
sub-int/2addr v0, p2
|
||
|
|
||
|
iput v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mCoordinate:I
|
||
|
|
||
|
if-lez p2, :cond_2
|
||
|
|
||
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
||
|
|
||
|
.line 2566
|
||
|
invoke-virtual {v0, p1}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedMeasurement(Landroid/view/View;)I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
iget v2, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mCoordinate:I
|
||
|
|
||
|
sub-int/2addr v2, v0
|
||
|
|
||
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
||
|
|
||
|
.line 2568
|
||
|
invoke-virtual {v0}, Landroidx/recyclerview/widget/OrientationHelper;->getStartAfterPadding()I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
iget-object v3, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
||
|
|
||
|
.line 2569
|
||
|
invoke-virtual {v3, p1}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedStart(Landroid/view/View;)I
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
sub-int/2addr p1, v0
|
||
|
|
||
|
.line 2571
|
||
|
invoke-static {p1, v1}, Ljava/lang/Math;->min(II)I
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
add-int/2addr v0, p1
|
||
|
|
||
|
sub-int/2addr v2, v0
|
||
|
|
||
|
if-gez v2, :cond_2
|
||
|
|
||
|
iget p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mCoordinate:I
|
||
|
|
||
|
neg-int v0, v2
|
||
|
|
||
|
.line 2575
|
||
|
invoke-static {p2, v0}, Ljava/lang/Math;->min(II)I
|
||
|
|
||
|
move-result p2
|
||
|
|
||
|
add-int/2addr p1, p2
|
||
|
|
||
|
iput p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mCoordinate:I
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_1
|
||
|
iget-object p2, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
||
|
|
||
|
.line 2579
|
||
|
invoke-virtual {p2, p1}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedStart(Landroid/view/View;)I
|
||
|
|
||
|
move-result p2
|
||
|
|
||
|
iget-object v2, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
||
|
|
||
|
.line 2580
|
||
|
invoke-virtual {v2}, Landroidx/recyclerview/widget/OrientationHelper;->getStartAfterPadding()I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
sub-int v2, p2, v2
|
||
|
|
||
|
iput p2, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mCoordinate:I
|
||
|
|
||
|
if-lez v2, :cond_2
|
||
|
|
||
|
iget-object v3, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
||
|
|
||
|
.line 2584
|
||
|
invoke-virtual {v3, p1}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedMeasurement(Landroid/view/View;)I
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
add-int/2addr p2, v3
|
||
|
|
||
|
iget-object v3, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
||
|
|
||
|
.line 2585
|
||
|
invoke-virtual {v3}, Landroidx/recyclerview/widget/OrientationHelper;->getEndAfterPadding()I
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
sub-int/2addr v3, v0
|
||
|
|
||
|
iget-object v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
||
|
|
||
|
.line 2588
|
||
|
invoke-virtual {v0, p1}, Landroidx/recyclerview/widget/OrientationHelper;->getDecoratedEnd(Landroid/view/View;)I
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
sub-int/2addr v3, p1
|
||
|
|
||
|
iget-object p1, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mOrientationHelper:Landroidx/recyclerview/widget/OrientationHelper;
|
||
|
|
||
|
.line 2589
|
||
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/OrientationHelper;->getEndAfterPadding()I
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
.line 2590
|
||
|
invoke-static {v1, v3}, Ljava/lang/Math;->min(II)I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
sub-int/2addr p1, v0
|
||
|
|
||
|
sub-int/2addr p1, p2
|
||
|
|
||
|
if-gez p1, :cond_2
|
||
|
|
||
|
iget p2, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mCoordinate:I
|
||
|
|
||
|
neg-int p1, p1
|
||
|
|
||
|
.line 2593
|
||
|
invoke-static {v2, p1}, Ljava/lang/Math;->min(II)I
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
sub-int/2addr p2, p1
|
||
|
|
||
|
iput p2, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mCoordinate:I
|
||
|
|
||
|
:cond_2
|
||
|
:goto_0
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method isViewValidAsAnchor(Landroid/view/View;Landroidx/recyclerview/widget/RecyclerView$State;)Z
|
||
|
.locals 0
|
||
|
|
||
|
.line 2547
|
||
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
check-cast p0, Landroidx/recyclerview/widget/RecyclerView$LayoutParams;
|
||
|
|
||
|
.line 2548
|
||
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutParams;->isItemRemoved()Z
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
if-nez p1, :cond_0
|
||
|
|
||
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutParams;->getViewLayoutPosition()I
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
if-ltz p1, :cond_0
|
||
|
|
||
|
.line 2549
|
||
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutParams;->getViewLayoutPosition()I
|
||
|
|
||
|
move-result p0
|
||
|
|
||
|
invoke-virtual {p2}, Landroidx/recyclerview/widget/RecyclerView$State;->getItemCount()I
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
if-ge p0, p1, :cond_0
|
||
|
|
||
|
const/4 p0, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 p0, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
return p0
|
||
|
.end method
|
||
|
|
||
|
.method reset()V
|
||
|
.locals 1
|
||
|
|
||
|
const/4 v0, -0x1
|
||
|
|
||
|
iput v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mPosition:I
|
||
|
|
||
|
const/high16 v0, -0x80000000
|
||
|
|
||
|
iput v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mCoordinate:I
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
iput-boolean v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mLayoutFromEnd:Z
|
||
|
|
||
|
iput-boolean v0, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mValid:Z
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public toString()Ljava/lang/String;
|
||
|
.locals 2
|
||
|
|
||
|
.line 2538
|
||
|
new-instance v0, Ljava/lang/StringBuilder;
|
||
|
|
||
|
const-string v1, "AnchorInfo{mPosition="
|
||
|
|
||
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
iget v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mPosition:I
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, ", mCoordinate="
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iget v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mCoordinate:I
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, ", mLayoutFromEnd="
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iget-boolean v1, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mLayoutFromEnd:Z
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, ", mValid="
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iget-boolean p0, p0, Landroidx/recyclerview/widget/LinearLayoutManager$AnchorInfo;->mValid:Z
|
||
|
|
||
|
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
const/16 v0, 0x7d
|
||
|
|
||
|
invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|