mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
1212 lines
29 KiB
Smali
1212 lines
29 KiB
Smali
.class public abstract Landroidx/recyclerview/widget/ItemTouchHelper$Callback;
|
|
.super Ljava/lang/Object;
|
|
.source "ItemTouchHelper.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroidx/recyclerview/widget/ItemTouchHelper;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x409
|
|
name = "Callback"
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final ABS_HORIZONTAL_DIR_FLAGS:I = 0xc0c0c
|
|
|
|
.field public static final DEFAULT_DRAG_ANIMATION_DURATION:I = 0xc8
|
|
|
|
.field public static final DEFAULT_SWIPE_ANIMATION_DURATION:I = 0xfa
|
|
|
|
.field private static final DRAG_SCROLL_ACCELERATION_LIMIT_TIME_MS:J = 0x7d0L
|
|
|
|
.field static final RELATIVE_DIR_FLAGS:I = 0x303030
|
|
|
|
.field private static final sDragScrollInterpolator:Landroid/view/animation/Interpolator;
|
|
|
|
.field private static final sDragViewScrollCapInterpolator:Landroid/view/animation/Interpolator;
|
|
|
|
|
|
# instance fields
|
|
.field private mCachedMaxScrollSpeed:I
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 1412
|
|
new-instance v0, Landroidx/recyclerview/widget/ItemTouchHelper$Callback$1;
|
|
|
|
invoke-direct {v0}, Landroidx/recyclerview/widget/ItemTouchHelper$Callback$1;-><init>()V
|
|
|
|
sput-object v0, Landroidx/recyclerview/widget/ItemTouchHelper$Callback;->sDragScrollInterpolator:Landroid/view/animation/Interpolator;
|
|
|
|
.line 1419
|
|
new-instance v0, Landroidx/recyclerview/widget/ItemTouchHelper$Callback$2;
|
|
|
|
invoke-direct {v0}, Landroidx/recyclerview/widget/ItemTouchHelper$Callback$2;-><init>()V
|
|
|
|
sput-object v0, Landroidx/recyclerview/widget/ItemTouchHelper$Callback;->sDragViewScrollCapInterpolator:Landroid/view/animation/Interpolator;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 1396
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, -0x1
|
|
|
|
iput v0, p0, Landroidx/recyclerview/widget/ItemTouchHelper$Callback;->mCachedMaxScrollSpeed:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static convertToRelativeDirection(II)I
|
|
.locals 3
|
|
|
|
const v0, 0xc0c0c
|
|
|
|
and-int v1, p0, v0
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
not-int v2, v1
|
|
|
|
and-int/2addr p0, v2
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
shl-int/lit8 p1, v1, 0x2
|
|
|
|
:goto_0
|
|
or-int/2addr p0, p1
|
|
|
|
return p0
|
|
|
|
:cond_1
|
|
shl-int/lit8 p1, v1, 0x1
|
|
|
|
const v1, -0xc0c0d
|
|
|
|
and-int/2addr v1, p1
|
|
|
|
or-int/2addr p0, v1
|
|
|
|
and-int/2addr p1, v0
|
|
|
|
shl-int/lit8 p1, p1, 0x2
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public static getDefaultUIUtil()Landroidx/recyclerview/widget/ItemTouchUIUtil;
|
|
.locals 1
|
|
|
|
.line 1477
|
|
sget-object v0, Landroidx/recyclerview/widget/ItemTouchUIUtilImpl;->INSTANCE:Landroidx/recyclerview/widget/ItemTouchUIUtil;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private getMaxDragScroll(Landroidx/recyclerview/widget/RecyclerView;)I
|
|
.locals 2
|
|
|
|
iget v0, p0, Landroidx/recyclerview/widget/ItemTouchHelper$Callback;->mCachedMaxScrollSpeed:I
|
|
|
|
const/4 v1, -0x1
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
.line 1914
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object p1
|
|
|
|
sget v0, Landroidx/recyclerview/R$dimen;->item_touch_helper_max_drag_scroll_per_frame:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Landroidx/recyclerview/widget/ItemTouchHelper$Callback;->mCachedMaxScrollSpeed:I
|
|
|
|
:cond_0
|
|
iget p0, p0, Landroidx/recyclerview/widget/ItemTouchHelper$Callback;->mCachedMaxScrollSpeed:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static makeFlag(II)I
|
|
.locals 0
|
|
|
|
mul-int/lit8 p0, p0, 0x8
|
|
|
|
shl-int p0, p1, p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static makeMovementFlags(II)I
|
|
.locals 2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
or-int v1, p1, p0
|
|
|
|
.line 1523
|
|
invoke-static {v0, v1}, Landroidx/recyclerview/widget/ItemTouchHelper$Callback;->makeFlag(II)I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
.line 1524
|
|
invoke-static {v1, p1}, Landroidx/recyclerview/widget/ItemTouchHelper$Callback;->makeFlag(II)I
|
|
|
|
move-result p1
|
|
|
|
or-int/2addr p1, v0
|
|
|
|
const/4 v0, 0x2
|
|
|
|
.line 1525
|
|
invoke-static {v0, p0}, Landroidx/recyclerview/widget/ItemTouchHelper$Callback;->makeFlag(II)I
|
|
|
|
move-result p0
|
|
|
|
or-int/2addr p0, p1
|
|
|
|
return p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public canDropOver(Landroidx/recyclerview/widget/RecyclerView;Landroidx/recyclerview/widget/RecyclerView$ViewHolder;Landroidx/recyclerview/widget/RecyclerView$ViewHolder;)Z
|
|
.locals 0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public chooseDropTarget(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;Ljava/util/List;II)Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
|
|
.locals 11
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroidx/recyclerview/widget/RecyclerView$ViewHolder;",
|
|
"Ljava/util/List<",
|
|
"Landroidx/recyclerview/widget/RecyclerView$ViewHolder;",
|
|
">;II)",
|
|
"Landroidx/recyclerview/widget/RecyclerView$ViewHolder;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1814
|
|
iget-object p0, p1, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
|
|
|
invoke-virtual {p0}, Landroid/view/View;->getWidth()I
|
|
|
|
move-result p0
|
|
|
|
add-int/2addr p0, p3
|
|
|
|
.line 1815
|
|
iget-object v0, p1, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
|
|
|
invoke-virtual {v0}, Landroid/view/View;->getHeight()I
|
|
|
|
move-result v0
|
|
|
|
add-int/2addr v0, p4
|
|
|
|
.line 1818
|
|
iget-object v1, p1, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
|
|
|
invoke-virtual {v1}, Landroid/view/View;->getLeft()I
|
|
|
|
move-result v1
|
|
|
|
sub-int v1, p3, v1
|
|
|
|
.line 1819
|
|
iget-object v2, p1, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
|
|
|
invoke-virtual {v2}, Landroid/view/View;->getTop()I
|
|
|
|
move-result v2
|
|
|
|
sub-int v2, p4, v2
|
|
|
|
.line 1820
|
|
invoke-interface {p2}, Ljava/util/List;->size()I
|
|
|
|
move-result v3
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, -0x1
|
|
|
|
const/4 v6, 0x0
|
|
|
|
:goto_0
|
|
if-ge v6, v3, :cond_4
|
|
|
|
.line 1822
|
|
invoke-interface {p2, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v7
|
|
|
|
check-cast v7, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
|
|
|
|
if-lez v1, :cond_0
|
|
|
|
.line 1824
|
|
iget-object v8, v7, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
|
|
|
invoke-virtual {v8}, Landroid/view/View;->getRight()I
|
|
|
|
move-result v8
|
|
|
|
sub-int/2addr v8, p0
|
|
|
|
if-gez v8, :cond_0
|
|
|
|
.line 1825
|
|
iget-object v9, v7, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
|
|
|
invoke-virtual {v9}, Landroid/view/View;->getRight()I
|
|
|
|
move-result v9
|
|
|
|
iget-object v10, p1, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
|
|
|
invoke-virtual {v10}, Landroid/view/View;->getRight()I
|
|
|
|
move-result v10
|
|
|
|
if-le v9, v10, :cond_0
|
|
|
|
.line 1826
|
|
invoke-static {v8}, Ljava/lang/Math;->abs(I)I
|
|
|
|
move-result v8
|
|
|
|
if-le v8, v5, :cond_0
|
|
|
|
move-object v4, v7
|
|
|
|
move v5, v8
|
|
|
|
:cond_0
|
|
if-gez v1, :cond_1
|
|
|
|
.line 1834
|
|
iget-object v8, v7, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
|
|
|
invoke-virtual {v8}, Landroid/view/View;->getLeft()I
|
|
|
|
move-result v8
|
|
|
|
sub-int/2addr v8, p3
|
|
|
|
if-lez v8, :cond_1
|
|
|
|
.line 1835
|
|
iget-object v9, v7, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
|
|
|
invoke-virtual {v9}, Landroid/view/View;->getLeft()I
|
|
|
|
move-result v9
|
|
|
|
iget-object v10, p1, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
|
|
|
invoke-virtual {v10}, Landroid/view/View;->getLeft()I
|
|
|
|
move-result v10
|
|
|
|
if-ge v9, v10, :cond_1
|
|
|
|
.line 1836
|
|
invoke-static {v8}, Ljava/lang/Math;->abs(I)I
|
|
|
|
move-result v8
|
|
|
|
if-le v8, v5, :cond_1
|
|
|
|
move-object v4, v7
|
|
|
|
move v5, v8
|
|
|
|
:cond_1
|
|
if-gez v2, :cond_2
|
|
|
|
.line 1844
|
|
iget-object v8, v7, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
|
|
|
invoke-virtual {v8}, Landroid/view/View;->getTop()I
|
|
|
|
move-result v8
|
|
|
|
sub-int/2addr v8, p4
|
|
|
|
if-lez v8, :cond_2
|
|
|
|
.line 1845
|
|
iget-object v9, v7, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
|
|
|
invoke-virtual {v9}, Landroid/view/View;->getTop()I
|
|
|
|
move-result v9
|
|
|
|
iget-object v10, p1, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
|
|
|
invoke-virtual {v10}, Landroid/view/View;->getTop()I
|
|
|
|
move-result v10
|
|
|
|
if-ge v9, v10, :cond_2
|
|
|
|
.line 1846
|
|
invoke-static {v8}, Ljava/lang/Math;->abs(I)I
|
|
|
|
move-result v8
|
|
|
|
if-le v8, v5, :cond_2
|
|
|
|
move-object v4, v7
|
|
|
|
move v5, v8
|
|
|
|
:cond_2
|
|
if-lez v2, :cond_3
|
|
|
|
.line 1855
|
|
iget-object v8, v7, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
|
|
|
invoke-virtual {v8}, Landroid/view/View;->getBottom()I
|
|
|
|
move-result v8
|
|
|
|
sub-int/2addr v8, v0
|
|
|
|
if-gez v8, :cond_3
|
|
|
|
.line 1856
|
|
iget-object v9, v7, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
|
|
|
invoke-virtual {v9}, Landroid/view/View;->getBottom()I
|
|
|
|
move-result v9
|
|
|
|
iget-object v10, p1, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
|
|
|
invoke-virtual {v10}, Landroid/view/View;->getBottom()I
|
|
|
|
move-result v10
|
|
|
|
if-le v9, v10, :cond_3
|
|
|
|
.line 1857
|
|
invoke-static {v8}, Ljava/lang/Math;->abs(I)I
|
|
|
|
move-result v8
|
|
|
|
if-le v8, v5, :cond_3
|
|
|
|
move-object v4, v7
|
|
|
|
move v5, v8
|
|
|
|
:cond_3
|
|
add-int/lit8 v6, v6, 0x1
|
|
|
|
goto/16 :goto_0
|
|
|
|
:cond_4
|
|
return-object v4
|
|
.end method
|
|
|
|
.method public clearView(Landroidx/recyclerview/widget/RecyclerView;Landroidx/recyclerview/widget/RecyclerView$ViewHolder;)V
|
|
.locals 0
|
|
|
|
.line 2050
|
|
sget-object p0, Landroidx/recyclerview/widget/ItemTouchUIUtilImpl;->INSTANCE:Landroidx/recyclerview/widget/ItemTouchUIUtil;
|
|
|
|
iget-object p1, p2, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
|
|
|
invoke-interface {p0, p1}, Landroidx/recyclerview/widget/ItemTouchUIUtil;->clearView(Landroid/view/View;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public convertToAbsoluteDirection(II)I
|
|
.locals 2
|
|
|
|
const p0, 0x303030
|
|
|
|
and-int v0, p1, p0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return p1
|
|
|
|
:cond_0
|
|
not-int v1, v0
|
|
|
|
and-int/2addr p1, v1
|
|
|
|
if-nez p2, :cond_1
|
|
|
|
shr-int/lit8 p0, v0, 0x2
|
|
|
|
:goto_0
|
|
or-int/2addr p0, p1
|
|
|
|
return p0
|
|
|
|
:cond_1
|
|
shr-int/lit8 p2, v0, 0x1
|
|
|
|
const v0, -0x303031
|
|
|
|
and-int/2addr v0, p2
|
|
|
|
or-int/2addr p1, v0
|
|
|
|
and-int/2addr p0, p2
|
|
|
|
shr-int/lit8 p0, p0, 0x2
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method final getAbsoluteMovementFlags(Landroidx/recyclerview/widget/RecyclerView;Landroidx/recyclerview/widget/RecyclerView$ViewHolder;)I
|
|
.locals 0
|
|
|
|
.line 1604
|
|
invoke-virtual {p0, p1, p2}, Landroidx/recyclerview/widget/ItemTouchHelper$Callback;->getMovementFlags(Landroidx/recyclerview/widget/RecyclerView;Landroidx/recyclerview/widget/RecyclerView$ViewHolder;)I
|
|
|
|
move-result p2
|
|
|
|
.line 1605
|
|
invoke-static {p1}, Landroidx/core/view/ViewCompat;->getLayoutDirection(Landroid/view/View;)I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0, p2, p1}, Landroidx/recyclerview/widget/ItemTouchHelper$Callback;->convertToAbsoluteDirection(II)I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public getAnimationDuration(Landroidx/recyclerview/widget/RecyclerView;IFF)J
|
|
.locals 0
|
|
|
|
.line 2145
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView;->getItemAnimator()Landroidx/recyclerview/widget/RecyclerView$ItemAnimator;
|
|
|
|
move-result-object p0
|
|
|
|
const/16 p1, 0x8
|
|
|
|
if-nez p0, :cond_1
|
|
|
|
if-ne p2, p1, :cond_0
|
|
|
|
const-wide/16 p0, 0xc8
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-wide/16 p0, 0xfa
|
|
|
|
:goto_0
|
|
return-wide p0
|
|
|
|
:cond_1
|
|
if-ne p2, p1, :cond_2
|
|
|
|
.line 2150
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$ItemAnimator;->getMoveDuration()J
|
|
|
|
move-result-wide p0
|
|
|
|
goto :goto_1
|
|
|
|
.line 2151
|
|
:cond_2
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$ItemAnimator;->getRemoveDuration()J
|
|
|
|
move-result-wide p0
|
|
|
|
:goto_1
|
|
return-wide p0
|
|
.end method
|
|
|
|
.method public getBoundingBoxMargin()I
|
|
.locals 0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public getMoveThreshold(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;)F
|
|
.locals 0
|
|
|
|
const/high16 p0, 0x3f000000 # 0.5f
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public abstract getMovementFlags(Landroidx/recyclerview/widget/RecyclerView;Landroidx/recyclerview/widget/RecyclerView$ViewHolder;)I
|
|
.end method
|
|
|
|
.method public getSwipeEscapeVelocity(F)F
|
|
.locals 0
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public getSwipeThreshold(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;)F
|
|
.locals 0
|
|
|
|
const/high16 p0, 0x3f000000 # 0.5f
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public getSwipeVelocityThreshold(F)F
|
|
.locals 0
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method hasDragFlag(Landroidx/recyclerview/widget/RecyclerView;Landroidx/recyclerview/widget/RecyclerView$ViewHolder;)Z
|
|
.locals 0
|
|
|
|
.line 1609
|
|
invoke-virtual {p0, p1, p2}, Landroidx/recyclerview/widget/ItemTouchHelper$Callback;->getAbsoluteMovementFlags(Landroidx/recyclerview/widget/RecyclerView;Landroidx/recyclerview/widget/RecyclerView$ViewHolder;)I
|
|
|
|
move-result p0
|
|
|
|
const/high16 p1, 0xff0000
|
|
|
|
and-int/2addr p0, p1
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
:goto_0
|
|
return p0
|
|
.end method
|
|
|
|
.method hasSwipeFlag(Landroidx/recyclerview/widget/RecyclerView;Landroidx/recyclerview/widget/RecyclerView$ViewHolder;)Z
|
|
.locals 0
|
|
|
|
.line 1615
|
|
invoke-virtual {p0, p1, p2}, Landroidx/recyclerview/widget/ItemTouchHelper$Callback;->getAbsoluteMovementFlags(Landroidx/recyclerview/widget/RecyclerView;Landroidx/recyclerview/widget/RecyclerView$ViewHolder;)I
|
|
|
|
move-result p0
|
|
|
|
const p1, 0xff00
|
|
|
|
and-int/2addr p0, p1
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
:goto_0
|
|
return p0
|
|
.end method
|
|
|
|
.method public interpolateOutOfBoundsScroll(Landroidx/recyclerview/widget/RecyclerView;IIIJ)I
|
|
.locals 1
|
|
|
|
.line 2179
|
|
invoke-direct {p0, p1}, Landroidx/recyclerview/widget/ItemTouchHelper$Callback;->getMaxDragScroll(Landroidx/recyclerview/widget/RecyclerView;)I
|
|
|
|
move-result p0
|
|
|
|
.line 2180
|
|
invoke-static {p3}, Ljava/lang/Math;->abs(I)I
|
|
|
|
move-result p1
|
|
|
|
int-to-float p4, p3
|
|
|
|
.line 2181
|
|
invoke-static {p4}, Ljava/lang/Math;->signum(F)F
|
|
|
|
move-result p4
|
|
|
|
float-to-int p4, p4
|
|
|
|
int-to-float p1, p1
|
|
|
|
const/high16 v0, 0x3f800000 # 1.0f
|
|
|
|
mul-float/2addr p1, v0
|
|
|
|
int-to-float p2, p2
|
|
|
|
div-float/2addr p1, p2
|
|
|
|
.line 2183
|
|
invoke-static {v0, p1}, Ljava/lang/Math;->min(FF)F
|
|
|
|
move-result p1
|
|
|
|
mul-int/2addr p4, p0
|
|
|
|
int-to-float p0, p4
|
|
|
|
sget-object p2, Landroidx/recyclerview/widget/ItemTouchHelper$Callback;->sDragViewScrollCapInterpolator:Landroid/view/animation/Interpolator;
|
|
|
|
.line 2185
|
|
invoke-interface {p2, p1}, Landroid/view/animation/Interpolator;->getInterpolation(F)F
|
|
|
|
move-result p1
|
|
|
|
mul-float/2addr p0, p1
|
|
|
|
float-to-int p0, p0
|
|
|
|
const-wide/16 p1, 0x7d0
|
|
|
|
cmp-long p1, p5, p1
|
|
|
|
if-lez p1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
long-to-float p1, p5
|
|
|
|
const/high16 p2, 0x44fa0000 # 2000.0f
|
|
|
|
div-float v0, p1, p2
|
|
|
|
:goto_0
|
|
int-to-float p0, p0
|
|
|
|
sget-object p1, Landroidx/recyclerview/widget/ItemTouchHelper$Callback;->sDragScrollInterpolator:Landroid/view/animation/Interpolator;
|
|
|
|
.line 2193
|
|
invoke-interface {p1, v0}, Landroid/view/animation/Interpolator;->getInterpolation(F)F
|
|
|
|
move-result p1
|
|
|
|
mul-float/2addr p0, p1
|
|
|
|
float-to-int p0, p0
|
|
|
|
if-nez p0, :cond_2
|
|
|
|
if-lez p3, :cond_1
|
|
|
|
const/4 p0, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 p0, -0x1
|
|
|
|
:cond_2
|
|
:goto_1
|
|
return p0
|
|
.end method
|
|
|
|
.method public isItemViewSwipeEnabled()Z
|
|
.locals 0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public isLongPressDragEnabled()Z
|
|
.locals 0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public onChildDraw(Landroid/graphics/Canvas;Landroidx/recyclerview/widget/RecyclerView;Landroidx/recyclerview/widget/RecyclerView$ViewHolder;FFIZ)V
|
|
.locals 8
|
|
|
|
.line 2083
|
|
sget-object v0, Landroidx/recyclerview/widget/ItemTouchUIUtilImpl;->INSTANCE:Landroidx/recyclerview/widget/ItemTouchUIUtil;
|
|
|
|
iget-object v3, p3, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
|
|
|
move-object v1, p1
|
|
|
|
move-object v2, p2
|
|
|
|
move v4, p4
|
|
|
|
move v5, p5
|
|
|
|
move v6, p6
|
|
|
|
move v7, p7
|
|
|
|
invoke-interface/range {v0 .. v7}, Landroidx/recyclerview/widget/ItemTouchUIUtil;->onDraw(Landroid/graphics/Canvas;Landroidx/recyclerview/widget/RecyclerView;Landroid/view/View;FFIZ)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onChildDrawOver(Landroid/graphics/Canvas;Landroidx/recyclerview/widget/RecyclerView;Landroidx/recyclerview/widget/RecyclerView$ViewHolder;FFIZ)V
|
|
.locals 8
|
|
|
|
.line 2118
|
|
sget-object v0, Landroidx/recyclerview/widget/ItemTouchUIUtilImpl;->INSTANCE:Landroidx/recyclerview/widget/ItemTouchUIUtil;
|
|
|
|
iget-object v3, p3, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
|
|
|
move-object v1, p1
|
|
|
|
move-object v2, p2
|
|
|
|
move v4, p4
|
|
|
|
move v5, p5
|
|
|
|
move v6, p6
|
|
|
|
move v7, p7
|
|
|
|
invoke-interface/range {v0 .. v7}, Landroidx/recyclerview/widget/ItemTouchUIUtil;->onDrawOver(Landroid/graphics/Canvas;Landroidx/recyclerview/widget/RecyclerView;Landroid/view/View;FFIZ)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method onDraw(Landroid/graphics/Canvas;Landroidx/recyclerview/widget/RecyclerView;Landroidx/recyclerview/widget/RecyclerView$ViewHolder;Ljava/util/List;IFF)V
|
|
.locals 13
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/graphics/Canvas;",
|
|
"Landroidx/recyclerview/widget/RecyclerView;",
|
|
"Landroidx/recyclerview/widget/RecyclerView$ViewHolder;",
|
|
"Ljava/util/List<",
|
|
"Landroidx/recyclerview/widget/ItemTouchHelper$RecoverAnimation;",
|
|
">;IFF)V"
|
|
}
|
|
.end annotation
|
|
|
|
move-object v8, p1
|
|
|
|
.line 1990
|
|
invoke-interface/range {p4 .. p4}, Ljava/util/List;->size()I
|
|
|
|
move-result v9
|
|
|
|
const/4 v0, 0x0
|
|
|
|
move v10, v0
|
|
|
|
:goto_0
|
|
if-ge v10, v9, :cond_0
|
|
|
|
move-object/from16 v11, p4
|
|
|
|
.line 1992
|
|
invoke-interface {v11, v10}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroidx/recyclerview/widget/ItemTouchHelper$RecoverAnimation;
|
|
|
|
.line 1993
|
|
invoke-virtual {v0}, Landroidx/recyclerview/widget/ItemTouchHelper$RecoverAnimation;->update()V
|
|
|
|
.line 1994
|
|
invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I
|
|
|
|
move-result v12
|
|
|
|
.line 1995
|
|
iget-object v3, v0, Landroidx/recyclerview/widget/ItemTouchHelper$RecoverAnimation;->mViewHolder:Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
|
|
|
|
iget v4, v0, Landroidx/recyclerview/widget/ItemTouchHelper$RecoverAnimation;->mX:F
|
|
|
|
iget v5, v0, Landroidx/recyclerview/widget/ItemTouchHelper$RecoverAnimation;->mY:F
|
|
|
|
iget v6, v0, Landroidx/recyclerview/widget/ItemTouchHelper$RecoverAnimation;->mActionState:I
|
|
|
|
const/4 v7, 0x0
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
move-object v2, p2
|
|
|
|
invoke-virtual/range {v0 .. v7}, Landroidx/recyclerview/widget/ItemTouchHelper$Callback;->onChildDraw(Landroid/graphics/Canvas;Landroidx/recyclerview/widget/RecyclerView;Landroidx/recyclerview/widget/RecyclerView$ViewHolder;FFIZ)V
|
|
|
|
.line 1997
|
|
invoke-virtual {p1, v12}, Landroid/graphics/Canvas;->restoreToCount(I)V
|
|
|
|
add-int/lit8 v10, v10, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
if-eqz p3, :cond_1
|
|
|
|
.line 2000
|
|
invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I
|
|
|
|
move-result v9
|
|
|
|
const/4 v7, 0x1
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
move-object v2, p2
|
|
|
|
move-object/from16 v3, p3
|
|
|
|
move/from16 v4, p6
|
|
|
|
move/from16 v5, p7
|
|
|
|
move/from16 v6, p5
|
|
|
|
.line 2001
|
|
invoke-virtual/range {v0 .. v7}, Landroidx/recyclerview/widget/ItemTouchHelper$Callback;->onChildDraw(Landroid/graphics/Canvas;Landroidx/recyclerview/widget/RecyclerView;Landroidx/recyclerview/widget/RecyclerView$ViewHolder;FFIZ)V
|
|
|
|
.line 2002
|
|
invoke-virtual {p1, v9}, Landroid/graphics/Canvas;->restoreToCount(I)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method onDrawOver(Landroid/graphics/Canvas;Landroidx/recyclerview/widget/RecyclerView;Landroidx/recyclerview/widget/RecyclerView$ViewHolder;Ljava/util/List;IFF)V
|
|
.locals 14
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/graphics/Canvas;",
|
|
"Landroidx/recyclerview/widget/RecyclerView;",
|
|
"Landroidx/recyclerview/widget/RecyclerView$ViewHolder;",
|
|
"Ljava/util/List<",
|
|
"Landroidx/recyclerview/widget/ItemTouchHelper$RecoverAnimation;",
|
|
">;IFF)V"
|
|
}
|
|
.end annotation
|
|
|
|
move-object v8, p1
|
|
|
|
move-object/from16 v9, p4
|
|
|
|
.line 2009
|
|
invoke-interface/range {p4 .. p4}, Ljava/util/List;->size()I
|
|
|
|
move-result v10
|
|
|
|
const/4 v11, 0x0
|
|
|
|
move v12, v11
|
|
|
|
:goto_0
|
|
if-ge v12, v10, :cond_0
|
|
|
|
.line 2011
|
|
invoke-interface {v9, v12}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroidx/recyclerview/widget/ItemTouchHelper$RecoverAnimation;
|
|
|
|
.line 2012
|
|
invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I
|
|
|
|
move-result v13
|
|
|
|
.line 2013
|
|
iget-object v3, v0, Landroidx/recyclerview/widget/ItemTouchHelper$RecoverAnimation;->mViewHolder:Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
|
|
|
|
iget v4, v0, Landroidx/recyclerview/widget/ItemTouchHelper$RecoverAnimation;->mX:F
|
|
|
|
iget v5, v0, Landroidx/recyclerview/widget/ItemTouchHelper$RecoverAnimation;->mY:F
|
|
|
|
iget v6, v0, Landroidx/recyclerview/widget/ItemTouchHelper$RecoverAnimation;->mActionState:I
|
|
|
|
const/4 v7, 0x0
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
move-object/from16 v2, p2
|
|
|
|
invoke-virtual/range {v0 .. v7}, Landroidx/recyclerview/widget/ItemTouchHelper$Callback;->onChildDrawOver(Landroid/graphics/Canvas;Landroidx/recyclerview/widget/RecyclerView;Landroidx/recyclerview/widget/RecyclerView$ViewHolder;FFIZ)V
|
|
|
|
.line 2015
|
|
invoke-virtual {p1, v13}, Landroid/graphics/Canvas;->restoreToCount(I)V
|
|
|
|
add-int/lit8 v12, v12, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
if-eqz p3, :cond_1
|
|
|
|
.line 2018
|
|
invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I
|
|
|
|
move-result v12
|
|
|
|
const/4 v7, 0x1
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
move-object/from16 v2, p2
|
|
|
|
move-object/from16 v3, p3
|
|
|
|
move/from16 v4, p6
|
|
|
|
move/from16 v5, p7
|
|
|
|
move/from16 v6, p5
|
|
|
|
.line 2019
|
|
invoke-virtual/range {v0 .. v7}, Landroidx/recyclerview/widget/ItemTouchHelper$Callback;->onChildDrawOver(Landroid/graphics/Canvas;Landroidx/recyclerview/widget/RecyclerView;Landroidx/recyclerview/widget/RecyclerView$ViewHolder;FFIZ)V
|
|
|
|
.line 2020
|
|
invoke-virtual {p1, v12}, Landroid/graphics/Canvas;->restoreToCount(I)V
|
|
|
|
:cond_1
|
|
const/4 v0, 0x1
|
|
|
|
sub-int/2addr v10, v0
|
|
|
|
:goto_1
|
|
if-ltz v10, :cond_4
|
|
|
|
.line 2024
|
|
invoke-interface {v9, v10}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroidx/recyclerview/widget/ItemTouchHelper$RecoverAnimation;
|
|
|
|
.line 2025
|
|
iget-boolean v2, v1, Landroidx/recyclerview/widget/ItemTouchHelper$RecoverAnimation;->mEnded:Z
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
iget-boolean v2, v1, Landroidx/recyclerview/widget/ItemTouchHelper$RecoverAnimation;->mIsPendingCleanup:Z
|
|
|
|
if-nez v2, :cond_2
|
|
|
|
.line 2026
|
|
invoke-interface {v9, v10}, Ljava/util/List;->remove(I)Ljava/lang/Object;
|
|
|
|
goto :goto_2
|
|
|
|
.line 2027
|
|
:cond_2
|
|
iget-boolean v1, v1, Landroidx/recyclerview/widget/ItemTouchHelper$RecoverAnimation;->mEnded:Z
|
|
|
|
if-nez v1, :cond_3
|
|
|
|
move v11, v0
|
|
|
|
:cond_3
|
|
:goto_2
|
|
add-int/lit8 v10, v10, -0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_4
|
|
if-eqz v11, :cond_5
|
|
|
|
.line 2032
|
|
invoke-virtual/range {p2 .. p2}, Landroidx/recyclerview/widget/RecyclerView;->invalidate()V
|
|
|
|
:cond_5
|
|
return-void
|
|
.end method
|
|
|
|
.method public abstract onMove(Landroidx/recyclerview/widget/RecyclerView;Landroidx/recyclerview/widget/RecyclerView$ViewHolder;Landroidx/recyclerview/widget/RecyclerView$ViewHolder;)Z
|
|
.end method
|
|
|
|
.method public onMoved(Landroidx/recyclerview/widget/RecyclerView;Landroidx/recyclerview/widget/RecyclerView$ViewHolder;ILandroidx/recyclerview/widget/RecyclerView$ViewHolder;III)V
|
|
.locals 0
|
|
|
|
.line 1956
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView;->getLayoutManager()Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
|
|
|
|
move-result-object p0
|
|
|
|
.line 1957
|
|
instance-of p3, p0, Landroidx/recyclerview/widget/ItemTouchHelper$ViewDropHandler;
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
.line 1958
|
|
check-cast p0, Landroidx/recyclerview/widget/ItemTouchHelper$ViewDropHandler;
|
|
|
|
iget-object p1, p2, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
|
|
|
iget-object p2, p4, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
|
|
|
invoke-interface {p0, p1, p2, p6, p7}, Landroidx/recyclerview/widget/ItemTouchHelper$ViewDropHandler;->prepareForDrop(Landroid/view/View;Landroid/view/View;II)V
|
|
|
|
return-void
|
|
|
|
.line 1964
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->canScrollHorizontally()Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
.line 1965
|
|
iget-object p2, p4, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
|
|
|
invoke-virtual {p0, p2}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getDecoratedLeft(Landroid/view/View;)I
|
|
|
|
move-result p2
|
|
|
|
.line 1966
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView;->getPaddingLeft()I
|
|
|
|
move-result p3
|
|
|
|
if-gt p2, p3, :cond_1
|
|
|
|
.line 1967
|
|
invoke-virtual {p1, p5}, Landroidx/recyclerview/widget/RecyclerView;->scrollToPosition(I)V
|
|
|
|
.line 1969
|
|
:cond_1
|
|
iget-object p2, p4, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
|
|
|
invoke-virtual {p0, p2}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getDecoratedRight(Landroid/view/View;)I
|
|
|
|
move-result p2
|
|
|
|
.line 1970
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView;->getWidth()I
|
|
|
|
move-result p3
|
|
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView;->getPaddingRight()I
|
|
|
|
move-result p6
|
|
|
|
sub-int/2addr p3, p6
|
|
|
|
if-lt p2, p3, :cond_2
|
|
|
|
.line 1971
|
|
invoke-virtual {p1, p5}, Landroidx/recyclerview/widget/RecyclerView;->scrollToPosition(I)V
|
|
|
|
.line 1975
|
|
:cond_2
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->canScrollVertically()Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_4
|
|
|
|
.line 1976
|
|
iget-object p2, p4, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
|
|
|
invoke-virtual {p0, p2}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getDecoratedTop(Landroid/view/View;)I
|
|
|
|
move-result p2
|
|
|
|
.line 1977
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView;->getPaddingTop()I
|
|
|
|
move-result p3
|
|
|
|
if-gt p2, p3, :cond_3
|
|
|
|
.line 1978
|
|
invoke-virtual {p1, p5}, Landroidx/recyclerview/widget/RecyclerView;->scrollToPosition(I)V
|
|
|
|
.line 1980
|
|
:cond_3
|
|
iget-object p2, p4, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
|
|
|
invoke-virtual {p0, p2}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getDecoratedBottom(Landroid/view/View;)I
|
|
|
|
move-result p0
|
|
|
|
.line 1981
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView;->getHeight()I
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView;->getPaddingBottom()I
|
|
|
|
move-result p3
|
|
|
|
sub-int/2addr p2, p3
|
|
|
|
if-lt p0, p2, :cond_4
|
|
|
|
.line 1982
|
|
invoke-virtual {p1, p5}, Landroidx/recyclerview/widget/RecyclerView;->scrollToPosition(I)V
|
|
|
|
:cond_4
|
|
return-void
|
|
.end method
|
|
|
|
.method public onSelectedChanged(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)V
|
|
.locals 0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 1908
|
|
sget-object p0, Landroidx/recyclerview/widget/ItemTouchUIUtilImpl;->INSTANCE:Landroidx/recyclerview/widget/ItemTouchUIUtil;
|
|
|
|
iget-object p1, p1, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
|
|
|
invoke-interface {p0, p1}, Landroidx/recyclerview/widget/ItemTouchUIUtil;->onSelected(Landroid/view/View;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public abstract onSwiped(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)V
|
|
.end method
|