.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 public 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 public static constructor ()V .locals 1 new-instance v0, Landroidx/recyclerview/widget/ItemTouchHelper$Callback$1; invoke-direct {v0}, Landroidx/recyclerview/widget/ItemTouchHelper$Callback$1;->()V sput-object v0, Landroidx/recyclerview/widget/ItemTouchHelper$Callback;->sDragScrollInterpolator:Landroid/view/animation/Interpolator; new-instance v0, Landroidx/recyclerview/widget/ItemTouchHelper$Callback$2; invoke-direct {v0}, Landroidx/recyclerview/widget/ItemTouchHelper$Callback$2;->()V sput-object v0, Landroidx/recyclerview/widget/ItemTouchHelper$Callback;->sDragViewScrollCapInterpolator:Landroid/view/animation/Interpolator; return-void .end method .method public constructor ()V .locals 1 invoke-direct {p0}, Ljava/lang/Object;->()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 .annotation build Landroidx/annotation/NonNull; .end annotation 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 invoke-virtual {p1}, Landroid/view/ViewGroup;->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 p1, p0, Landroidx/recyclerview/widget/ItemTouchHelper$Callback;->mCachedMaxScrollSpeed:I return p1 .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 or-int v0, p1, p0 const/4 v1, 0x0 invoke-static {v1, v0}, Landroidx/recyclerview/widget/ItemTouchHelper$Callback;->makeFlag(II)I move-result v0 const/4 v1, 0x1 invoke-static {v1, p1}, Landroidx/recyclerview/widget/ItemTouchHelper$Callback;->makeFlag(II)I move-result p1 or-int/2addr p1, v0 const/4 v0, 0x2 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 .param p1 # Landroidx/recyclerview/widget/RecyclerView; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p2 # Landroidx/recyclerview/widget/RecyclerView$ViewHolder; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p3 # Landroidx/recyclerview/widget/RecyclerView$ViewHolder; .annotation build Landroidx/annotation/NonNull; .end annotation .end param const/4 p1, 0x1 return p1 .end method .method public chooseDropTarget(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;Ljava/util/List;II)Landroidx/recyclerview/widget/RecyclerView$ViewHolder; .locals 14 .param p1 # Landroidx/recyclerview/widget/RecyclerView$ViewHolder; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p2 # Ljava/util/List; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .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 move-object v0, p1 iget-object v1, v0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; invoke-virtual {v1}, Landroid/view/View;->getWidth()I move-result v1 add-int v1, v1, p3 iget-object v2, v0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; invoke-virtual {v2}, Landroid/view/View;->getHeight()I move-result v2 add-int v2, v2, p4 iget-object v3, v0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; invoke-virtual {v3}, Landroid/view/View;->getLeft()I move-result v3 sub-int v3, p3, v3 iget-object v4, v0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; invoke-virtual {v4}, Landroid/view/View;->getTop()I move-result v4 sub-int v4, p4, v4 invoke-interface/range {p2 .. p2}, Ljava/util/List;->size()I move-result v5 const/4 v6, 0x0 const/4 v7, -0x1 const/4 v8, 0x0 :goto_0 if-ge v8, v5, :cond_4 move-object/from16 v9, p2 invoke-interface {v9, v8}, Ljava/util/List;->get(I)Ljava/lang/Object; move-result-object v10 check-cast v10, Landroidx/recyclerview/widget/RecyclerView$ViewHolder; if-lez v3, :cond_0 iget-object v11, v10, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; invoke-virtual {v11}, Landroid/view/View;->getRight()I move-result v11 sub-int/2addr v11, v1 if-gez v11, :cond_0 iget-object v12, v10, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; invoke-virtual {v12}, Landroid/view/View;->getRight()I move-result v12 iget-object v13, v0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; invoke-virtual {v13}, Landroid/view/View;->getRight()I move-result v13 if-le v12, v13, :cond_0 invoke-static {v11}, Ljava/lang/Math;->abs(I)I move-result v11 if-le v11, v7, :cond_0 move-object v6, v10 move v7, v11 :cond_0 if-gez v3, :cond_1 iget-object v11, v10, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; invoke-virtual {v11}, Landroid/view/View;->getLeft()I move-result v11 sub-int v11, v11, p3 if-lez v11, :cond_1 iget-object v12, v10, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; invoke-virtual {v12}, Landroid/view/View;->getLeft()I move-result v12 iget-object v13, v0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; invoke-virtual {v13}, Landroid/view/View;->getLeft()I move-result v13 if-ge v12, v13, :cond_1 invoke-static {v11}, Ljava/lang/Math;->abs(I)I move-result v11 if-le v11, v7, :cond_1 move-object v6, v10 move v7, v11 :cond_1 if-gez v4, :cond_2 iget-object v11, v10, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; invoke-virtual {v11}, Landroid/view/View;->getTop()I move-result v11 sub-int v11, v11, p4 if-lez v11, :cond_2 iget-object v12, v10, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; invoke-virtual {v12}, Landroid/view/View;->getTop()I move-result v12 iget-object v13, v0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; invoke-virtual {v13}, Landroid/view/View;->getTop()I move-result v13 if-ge v12, v13, :cond_2 invoke-static {v11}, Ljava/lang/Math;->abs(I)I move-result v11 if-le v11, v7, :cond_2 move-object v6, v10 move v7, v11 :cond_2 if-lez v4, :cond_3 iget-object v11, v10, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; invoke-virtual {v11}, Landroid/view/View;->getBottom()I move-result v11 sub-int/2addr v11, v2 if-gez v11, :cond_3 iget-object v12, v10, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; invoke-virtual {v12}, Landroid/view/View;->getBottom()I move-result v12 iget-object v13, v0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; invoke-virtual {v13}, Landroid/view/View;->getBottom()I move-result v13 if-le v12, v13, :cond_3 invoke-static {v11}, Ljava/lang/Math;->abs(I)I move-result v11 if-le v11, v7, :cond_3 move-object v6, v10 move v7, v11 :cond_3 add-int/lit8 v8, v8, 0x1 goto/16 :goto_0 :cond_4 return-object v6 .end method .method public clearView(Landroidx/recyclerview/widget/RecyclerView;Landroidx/recyclerview/widget/RecyclerView$ViewHolder;)V .locals 0 .param p1 # Landroidx/recyclerview/widget/RecyclerView; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p2 # Landroidx/recyclerview/widget/RecyclerView$ViewHolder; .annotation build Landroidx/annotation/NonNull; .end annotation .end param sget-object p1, Landroidx/recyclerview/widget/ItemTouchUIUtilImpl;->INSTANCE:Landroidx/recyclerview/widget/ItemTouchUIUtil; iget-object p2, p2, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; invoke-interface {p1, p2}, Landroidx/recyclerview/widget/ItemTouchUIUtil;->clearView(Landroid/view/View;)V return-void .end method .method public convertToAbsoluteDirection(II)I .locals 3 const v0, 0x303030 and-int v1, p1, v0 if-nez v1, :cond_0 return p1 :cond_0 not-int v2, v1 and-int/2addr p1, v2 if-nez p2, :cond_1 shr-int/lit8 p2, v1, 0x2 :goto_0 or-int/2addr p1, p2 return p1 :cond_1 shr-int/lit8 p2, v1, 0x1 const v1, -0x303031 and-int/2addr v1, p2 or-int/2addr p1, v1 and-int/2addr p2, v0 shr-int/lit8 p2, p2, 0x2 goto :goto_0 .end method .method public final getAbsoluteMovementFlags(Landroidx/recyclerview/widget/RecyclerView;Landroidx/recyclerview/widget/RecyclerView$ViewHolder;)I .locals 0 invoke-virtual {p0, p1, p2}, Landroidx/recyclerview/widget/ItemTouchHelper$Callback;->getMovementFlags(Landroidx/recyclerview/widget/RecyclerView;Landroidx/recyclerview/widget/RecyclerView$ViewHolder;)I move-result p2 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 p1 return p1 .end method .method public getAnimationDuration(Landroidx/recyclerview/widget/RecyclerView;IFF)J .locals 0 .param p1 # Landroidx/recyclerview/widget/RecyclerView; .annotation build Landroidx/annotation/NonNull; .end annotation .end param invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView;->getItemAnimator()Landroidx/recyclerview/widget/RecyclerView$ItemAnimator; move-result-object p1 const/16 p3, 0x8 if-nez p1, :cond_1 if-ne p2, p3, :cond_0 const-wide/16 p1, 0xc8 goto :goto_0 :cond_0 const-wide/16 p1, 0xfa :goto_0 return-wide p1 :cond_1 if-ne p2, p3, :cond_2 invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView$ItemAnimator;->getMoveDuration()J move-result-wide p1 goto :goto_1 :cond_2 invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView$ItemAnimator;->getRemoveDuration()J move-result-wide p1 :goto_1 return-wide p1 .end method .method public getBoundingBoxMargin()I .locals 1 const/4 v0, 0x0 return v0 .end method .method public getMoveThreshold(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;)F .locals 0 .param p1 # Landroidx/recyclerview/widget/RecyclerView$ViewHolder; .annotation build Landroidx/annotation/NonNull; .end annotation .end param const/high16 p1, 0x3f000000 # 0.5f return p1 .end method .method public abstract getMovementFlags(Landroidx/recyclerview/widget/RecyclerView;Landroidx/recyclerview/widget/RecyclerView$ViewHolder;)I .param p1 # Landroidx/recyclerview/widget/RecyclerView; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p2 # Landroidx/recyclerview/widget/RecyclerView$ViewHolder; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .end method .method public getSwipeEscapeVelocity(F)F .locals 0 return p1 .end method .method public getSwipeThreshold(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;)F .locals 0 .param p1 # Landroidx/recyclerview/widget/RecyclerView$ViewHolder; .annotation build Landroidx/annotation/NonNull; .end annotation .end param const/high16 p1, 0x3f000000 # 0.5f return p1 .end method .method public getSwipeVelocityThreshold(F)F .locals 0 return p1 .end method .method public hasDragFlag(Landroidx/recyclerview/widget/RecyclerView;Landroidx/recyclerview/widget/RecyclerView$ViewHolder;)Z .locals 0 invoke-virtual {p0, p1, p2}, Landroidx/recyclerview/widget/ItemTouchHelper$Callback;->getAbsoluteMovementFlags(Landroidx/recyclerview/widget/RecyclerView;Landroidx/recyclerview/widget/RecyclerView$ViewHolder;)I move-result p1 const/high16 p2, 0xff0000 and-int/2addr p1, p2 if-eqz p1, :cond_0 const/4 p1, 0x1 goto :goto_0 :cond_0 const/4 p1, 0x0 :goto_0 return p1 .end method .method public hasSwipeFlag(Landroidx/recyclerview/widget/RecyclerView;Landroidx/recyclerview/widget/RecyclerView$ViewHolder;)Z .locals 0 invoke-virtual {p0, p1, p2}, Landroidx/recyclerview/widget/ItemTouchHelper$Callback;->getAbsoluteMovementFlags(Landroidx/recyclerview/widget/RecyclerView;Landroidx/recyclerview/widget/RecyclerView$ViewHolder;)I move-result p1 const p2, 0xff00 and-int/2addr p1, p2 if-eqz p1, :cond_0 const/4 p1, 0x1 goto :goto_0 :cond_0 const/4 p1, 0x0 :goto_0 return p1 .end method .method public interpolateOutOfBoundsScroll(Landroidx/recyclerview/widget/RecyclerView;IIIJ)I .locals 4 .param p1 # Landroidx/recyclerview/widget/RecyclerView; .annotation build Landroidx/annotation/NonNull; .end annotation .end param invoke-direct {p0, p1}, Landroidx/recyclerview/widget/ItemTouchHelper$Callback;->getMaxDragScroll(Landroidx/recyclerview/widget/RecyclerView;)I move-result p1 invoke-static {p3}, Ljava/lang/Math;->abs(I)I move-result p4 int-to-float v0, p3 invoke-static {v0}, Ljava/lang/Math;->signum(F)F move-result v0 float-to-int v0, v0 int-to-float p4, p4 const/high16 v1, 0x3f800000 # 1.0f mul-float p4, p4, v1 int-to-float p2, p2 div-float/2addr p4, p2 invoke-static {v1, p4}, Ljava/lang/Math;->min(FF)F move-result p2 mul-int v0, v0, p1 int-to-float p1, v0 sget-object p4, Landroidx/recyclerview/widget/ItemTouchHelper$Callback;->sDragViewScrollCapInterpolator:Landroid/view/animation/Interpolator; invoke-interface {p4, p2}, Landroid/view/animation/Interpolator;->getInterpolation(F)F move-result p2 mul-float p2, p2, p1 float-to-int p1, p2 const-wide/16 v2, 0x7d0 cmp-long p2, p5, v2 if-lez p2, :cond_0 goto :goto_0 :cond_0 long-to-float p2, p5 const/high16 p4, 0x44fa0000 # 2000.0f div-float v1, p2, p4 :goto_0 int-to-float p1, p1 sget-object p2, Landroidx/recyclerview/widget/ItemTouchHelper$Callback;->sDragScrollInterpolator:Landroid/view/animation/Interpolator; invoke-interface {p2, v1}, Landroid/view/animation/Interpolator;->getInterpolation(F)F move-result p2 mul-float p2, p2, p1 float-to-int p1, p2 if-nez p1, :cond_2 if-lez p3, :cond_1 const/4 p1, 0x1 goto :goto_1 :cond_1 const/4 p1, -0x1 :cond_2 :goto_1 return p1 .end method .method public isItemViewSwipeEnabled()Z .locals 1 const/4 v0, 0x1 return v0 .end method .method public isLongPressDragEnabled()Z .locals 1 const/4 v0, 0x1 return v0 .end method .method public onChildDraw(Landroid/graphics/Canvas;Landroidx/recyclerview/widget/RecyclerView;Landroidx/recyclerview/widget/RecyclerView$ViewHolder;FFIZ)V .locals 8 .param p1 # Landroid/graphics/Canvas; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p2 # Landroidx/recyclerview/widget/RecyclerView; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p3 # Landroidx/recyclerview/widget/RecyclerView$ViewHolder; .annotation build Landroidx/annotation/NonNull; .end annotation .end param 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 .param p1 # Landroid/graphics/Canvas; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p2 # Landroidx/recyclerview/widget/RecyclerView; .annotation build Landroidx/annotation/NonNull; .end annotation .end param 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 public 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 invoke-interface/range {p4 .. p4}, Ljava/util/List;->size()I move-result v9 const/4 v0, 0x0 const/4 v10, 0x0 :goto_0 if-ge v10, v9, :cond_0 move-object/from16 v11, p4 invoke-interface {v11, v10}, Ljava/util/List;->get(I)Ljava/lang/Object; move-result-object v0 check-cast v0, Landroidx/recyclerview/widget/ItemTouchHelper$RecoverAnimation; invoke-virtual {v0}, Landroidx/recyclerview/widget/ItemTouchHelper$RecoverAnimation;->update()V invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I move-result v12 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 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 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 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 invoke-virtual {p1, v9}, Landroid/graphics/Canvas;->restoreToCount(I)V :cond_1 return-void .end method .method public 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 invoke-interface/range {p4 .. p4}, Ljava/util/List;->size()I move-result v10 const/4 v11, 0x0 const/4 v12, 0x0 :goto_0 if-ge v12, v10, :cond_0 invoke-interface {v9, v12}, Ljava/util/List;->get(I)Ljava/lang/Object; move-result-object v0 check-cast v0, Landroidx/recyclerview/widget/ItemTouchHelper$RecoverAnimation; invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I move-result v13 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 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 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 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 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 invoke-interface {v9, v10}, Ljava/util/List;->get(I)Ljava/lang/Object; move-result-object v1 check-cast v1, Landroidx/recyclerview/widget/ItemTouchHelper$RecoverAnimation; iget-boolean v2, v1, Landroidx/recyclerview/widget/ItemTouchHelper$RecoverAnimation;->mEnded:Z if-eqz v2, :cond_2 iget-boolean v1, v1, Landroidx/recyclerview/widget/ItemTouchHelper$RecoverAnimation;->mIsPendingCleanup:Z if-nez v1, :cond_2 invoke-interface {v9, v10}, Ljava/util/List;->remove(I)Ljava/lang/Object; goto :goto_2 :cond_2 if-nez v2, :cond_3 const/4 v11, 0x1 :cond_3 :goto_2 add-int/lit8 v10, v10, -0x1 goto :goto_1 :cond_4 if-eqz v11, :cond_5 invoke-virtual/range {p2 .. p2}, Landroid/view/ViewGroup;->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 .param p1 # Landroidx/recyclerview/widget/RecyclerView; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p2 # Landroidx/recyclerview/widget/RecyclerView$ViewHolder; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p3 # Landroidx/recyclerview/widget/RecyclerView$ViewHolder; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .end method .method public onMoved(Landroidx/recyclerview/widget/RecyclerView;Landroidx/recyclerview/widget/RecyclerView$ViewHolder;ILandroidx/recyclerview/widget/RecyclerView$ViewHolder;III)V .locals 1 .param p1 # Landroidx/recyclerview/widget/RecyclerView; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p2 # Landroidx/recyclerview/widget/RecyclerView$ViewHolder; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p4 # Landroidx/recyclerview/widget/RecyclerView$ViewHolder; .annotation build Landroidx/annotation/NonNull; .end annotation .end param invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView;->getLayoutManager()Landroidx/recyclerview/widget/RecyclerView$LayoutManager; move-result-object p3 instance-of v0, p3, Landroidx/recyclerview/widget/ItemTouchHelper$ViewDropHandler; if-eqz v0, :cond_0 check-cast p3, 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 {p3, p1, p2, p6, p7}, Landroidx/recyclerview/widget/ItemTouchHelper$ViewDropHandler;->prepareForDrop(Landroid/view/View;Landroid/view/View;II)V return-void :cond_0 invoke-virtual {p3}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->canScrollHorizontally()Z move-result p2 if-eqz p2, :cond_2 iget-object p2, p4, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; invoke-virtual {p3, p2}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getDecoratedLeft(Landroid/view/View;)I move-result p2 invoke-virtual {p1}, Landroid/view/ViewGroup;->getPaddingLeft()I move-result p6 if-gt p2, p6, :cond_1 invoke-virtual {p1, p5}, Landroidx/recyclerview/widget/RecyclerView;->scrollToPosition(I)V :cond_1 iget-object p2, p4, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; invoke-virtual {p3, p2}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getDecoratedRight(Landroid/view/View;)I move-result p2 invoke-virtual {p1}, Landroid/view/ViewGroup;->getWidth()I move-result p6 invoke-virtual {p1}, Landroid/view/ViewGroup;->getPaddingRight()I move-result p7 sub-int/2addr p6, p7 if-lt p2, p6, :cond_2 invoke-virtual {p1, p5}, Landroidx/recyclerview/widget/RecyclerView;->scrollToPosition(I)V :cond_2 invoke-virtual {p3}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->canScrollVertically()Z move-result p2 if-eqz p2, :cond_4 iget-object p2, p4, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; invoke-virtual {p3, p2}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getDecoratedTop(Landroid/view/View;)I move-result p2 invoke-virtual {p1}, Landroid/view/ViewGroup;->getPaddingTop()I move-result p6 if-gt p2, p6, :cond_3 invoke-virtual {p1, p5}, Landroidx/recyclerview/widget/RecyclerView;->scrollToPosition(I)V :cond_3 iget-object p2, p4, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; invoke-virtual {p3, p2}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getDecoratedBottom(Landroid/view/View;)I move-result p2 invoke-virtual {p1}, Landroid/view/ViewGroup;->getHeight()I move-result p3 invoke-virtual {p1}, Landroid/view/ViewGroup;->getPaddingBottom()I move-result p4 sub-int/2addr p3, p4 if-lt p2, p3, :cond_4 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 .param p1 # Landroidx/recyclerview/widget/RecyclerView$ViewHolder; .annotation build Landroidx/annotation/Nullable; .end annotation .end param if-eqz p1, :cond_0 sget-object p2, Landroidx/recyclerview/widget/ItemTouchUIUtilImpl;->INSTANCE:Landroidx/recyclerview/widget/ItemTouchUIUtil; iget-object p1, p1, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; invoke-interface {p2, 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 .param p1 # Landroidx/recyclerview/widget/RecyclerView$ViewHolder; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .end method