apkfuckery/com.discord/smali/androidx/recyclerview/widget/RecyclerView$State.smali

442 lines
12 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public Landroidx/recyclerview/widget/RecyclerView$State;
.super Ljava/lang/Object;
.source "RecyclerView.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/recyclerview/widget/RecyclerView;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "State"
.end annotation
# static fields
2019-12-06 03:29:40 +00:00
.field public static final STEP_ANIMATIONS:I = 0x4
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public static final STEP_LAYOUT:I = 0x2
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public static final STEP_START:I = 0x1
2019-07-24 11:27:29 +00:00
# instance fields
2019-12-06 03:29:40 +00:00
.field public mData:Landroid/util/SparseArray;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/util/SparseArray<",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
2019-12-06 03:29:40 +00:00
.field public mDeletedInvisibleItemCountSincePreviousLayout:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mFocusedItemId:J
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mFocusedItemPosition:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mFocusedSubChildId:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mInPreLayout:Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mIsMeasuring:Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mItemCount:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mLayoutStep:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mPreviousLayoutItemCount:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mRemainingScrollHorizontal:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mRemainingScrollVertical:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mRunPredictiveAnimations:Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mRunSimpleAnimations:Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mStructureChanged:Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mTargetPosition:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mTrackOldChangeHolders:Z
2019-07-24 11:27:29 +00:00
# direct methods
.method public constructor <init>()V
.locals 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, -0x1
iput v0, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mTargetPosition:I
const/4 v0, 0x0
iput v0, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mPreviousLayoutItemCount:I
iput v0, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mDeletedInvisibleItemCountSincePreviousLayout:I
const/4 v1, 0x1
iput v1, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mLayoutStep:I
iput v0, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mItemCount:I
iput-boolean v0, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mStructureChanged:Z
iput-boolean v0, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mInPreLayout:Z
iput-boolean v0, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mTrackOldChangeHolders:Z
iput-boolean v0, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mIsMeasuring:Z
iput-boolean v0, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mRunSimpleAnimations:Z
iput-boolean v0, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mRunPredictiveAnimations:Z
return-void
.end method
# virtual methods
2019-12-06 03:29:40 +00:00
.method public assertLayoutStep(I)V
.locals 2
2019-07-24 11:27:29 +00:00
iget v0, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mLayoutStep:I
and-int/2addr v0, p1
if-eqz v0, :cond_0
return-void
:cond_0
new-instance v0, Ljava/lang/IllegalStateException;
2019-12-06 03:29:40 +00:00
const-string v1, "Layout state should be one of "
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-static {v1}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v1
2019-07-24 11:27:29 +00:00
invoke-static {p1}, Ljava/lang/Integer;->toBinaryString(I)Ljava/lang/String;
move-result-object p1
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string p1, " but it is "
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget p1, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mLayoutStep:I
invoke-static {p1}, Ljava/lang/Integer;->toBinaryString(I)Ljava/lang/String;
move-result-object p1
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public didStructureChange()Z
.locals 1
iget-boolean v0, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mStructureChanged:Z
return v0
.end method
.method public get(I)Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(I)TT;"
}
.end annotation
iget-object v0, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mData:Landroid/util/SparseArray;
if-nez v0, :cond_0
const/4 p1, 0x0
return-object p1
:cond_0
invoke-virtual {v0, p1}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public getItemCount()I
.locals 2
iget-boolean v0, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mInPreLayout:Z
if-eqz v0, :cond_0
iget v0, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mPreviousLayoutItemCount:I
iget v1, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mDeletedInvisibleItemCountSincePreviousLayout:I
sub-int/2addr v0, v1
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_0
iget v0, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mItemCount:I
2019-12-06 03:29:40 +00:00
:goto_0
2019-07-24 11:27:29 +00:00
return v0
.end method
.method public getRemainingScrollHorizontal()I
.locals 1
iget v0, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mRemainingScrollHorizontal:I
return v0
.end method
.method public getRemainingScrollVertical()I
.locals 1
iget v0, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mRemainingScrollVertical:I
return v0
.end method
.method public getTargetScrollPosition()I
.locals 1
iget v0, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mTargetPosition:I
return v0
.end method
.method public hasTargetScrollPosition()Z
.locals 2
iget v0, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mTargetPosition:I
const/4 v1, -0x1
if-eq v0, v1, :cond_0
const/4 v0, 0x1
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_0
const/4 v0, 0x0
2019-12-06 03:29:40 +00:00
:goto_0
2019-07-24 11:27:29 +00:00
return v0
.end method
.method public isMeasuring()Z
.locals 1
iget-boolean v0, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mIsMeasuring:Z
return v0
.end method
.method public isPreLayout()Z
.locals 1
iget-boolean v0, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mInPreLayout:Z
return v0
.end method
2019-12-06 03:29:40 +00:00
.method public prepareForNestedPrefetch(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V
2019-07-24 11:27:29 +00:00
.locals 1
const/4 v0, 0x1
iput v0, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mLayoutStep:I
invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->getItemCount()I
move-result p1
iput p1, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mItemCount:I
const/4 p1, 0x0
iput-boolean p1, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mInPreLayout:Z
iput-boolean p1, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mTrackOldChangeHolders:Z
iput-boolean p1, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mIsMeasuring:Z
return-void
.end method
.method public put(ILjava/lang/Object;)V
.locals 1
iget-object v0, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mData:Landroid/util/SparseArray;
if-nez v0, :cond_0
new-instance v0, Landroid/util/SparseArray;
invoke-direct {v0}, Landroid/util/SparseArray;-><init>()V
iput-object v0, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mData:Landroid/util/SparseArray;
:cond_0
iget-object v0, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mData:Landroid/util/SparseArray;
invoke-virtual {v0, p1, p2}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V
return-void
.end method
.method public remove(I)V
.locals 1
iget-object v0, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mData:Landroid/util/SparseArray;
if-nez v0, :cond_0
return-void
:cond_0
invoke-virtual {v0, p1}, Landroid/util/SparseArray;->remove(I)V
return-void
.end method
.method public toString()Ljava/lang/String;
.locals 2
2019-12-06 03:29:40 +00:00
const-string v0, "State{mTargetPosition="
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-static {v0}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v0
2019-07-24 11:27:29 +00:00
iget v1, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mTargetPosition:I
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v1, ", mData="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mData:Landroid/util/SparseArray;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, ", mItemCount="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v1, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mItemCount:I
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v1, ", mIsMeasuring="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-boolean v1, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mIsMeasuring:Z
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
const-string v1, ", mPreviousLayoutItemCount="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v1, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mPreviousLayoutItemCount:I
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v1, ", mDeletedInvisibleItemCountSincePreviousLayout="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v1, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mDeletedInvisibleItemCountSincePreviousLayout:I
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v1, ", mStructureChanged="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-boolean v1, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mStructureChanged:Z
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
const-string v1, ", mInPreLayout="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-boolean v1, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mInPreLayout:Z
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
const-string v1, ", mRunSimpleAnimations="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-boolean v1, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mRunSimpleAnimations:Z
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
const-string v1, ", mRunPredictiveAnimations="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-boolean v1, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mRunPredictiveAnimations:Z
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
const/16 v1, 0x7d
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public willRunPredictiveAnimations()Z
.locals 1
iget-boolean v0, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mRunPredictiveAnimations:Z
return v0
.end method
.method public willRunSimpleAnimations()Z
.locals 1
iget-boolean v0, p0, Landroidx/recyclerview/widget/RecyclerView$State;->mRunSimpleAnimations:Z
return v0
.end method