apkfuckery/com.discord/smali/androidx/recyclerview/widget/OrientationHelper$1.smali

287 lines
9 KiB
Smali
Raw Normal View History

2019-12-06 03:29:40 +00:00
.class public final Landroidx/recyclerview/widget/OrientationHelper$1;
2019-07-24 11:27:29 +00:00
.super Landroidx/recyclerview/widget/OrientationHelper;
.source "OrientationHelper.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/recyclerview/widget/OrientationHelper;->createHorizontalHelper(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)Landroidx/recyclerview/widget/OrientationHelper;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
2019-12-06 03:29:40 +00:00
accessFlags = 0x9
2019-07-24 11:27:29 +00:00
name = null
.end annotation
# direct methods
2019-12-06 03:29:40 +00:00
.method public constructor <init>(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)V
2019-07-24 11:27:29 +00:00
.locals 1
const/4 v0, 0x0
invoke-direct {p0, p1, v0}, Landroidx/recyclerview/widget/OrientationHelper;-><init>(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;Landroidx/recyclerview/widget/OrientationHelper$1;)V
return-void
.end method
# virtual methods
2019-12-06 03:29:40 +00:00
.method public getDecoratedEnd(Landroid/view/View;)I
2019-07-24 11:27:29 +00:00
.locals 2
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v0
check-cast v0, Landroidx/recyclerview/widget/RecyclerView$LayoutParams;
2019-12-06 03:29:40 +00:00
iget-object v1, p0, Landroidx/recyclerview/widget/OrientationHelper;->mLayoutManager:Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
2019-07-24 11:27:29 +00:00
invoke-virtual {v1, p1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getDecoratedRight(Landroid/view/View;)I
move-result p1
2019-12-06 03:29:40 +00:00
iget v0, v0, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I
2019-07-24 11:27:29 +00:00
add-int/2addr p1, v0
return p1
.end method
2019-12-06 03:29:40 +00:00
.method public getDecoratedMeasurement(Landroid/view/View;)I
2019-07-24 11:27:29 +00:00
.locals 2
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v0
check-cast v0, Landroidx/recyclerview/widget/RecyclerView$LayoutParams;
2019-12-06 03:29:40 +00:00
iget-object v1, p0, Landroidx/recyclerview/widget/OrientationHelper;->mLayoutManager:Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
2019-07-24 11:27:29 +00:00
invoke-virtual {v1, p1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getDecoratedMeasuredWidth(Landroid/view/View;)I
move-result p1
2019-12-06 03:29:40 +00:00
iget v1, v0, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I
2019-07-24 11:27:29 +00:00
add-int/2addr p1, v1
2019-12-06 03:29:40 +00:00
iget v0, v0, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I
2019-07-24 11:27:29 +00:00
add-int/2addr p1, v0
return p1
.end method
2019-12-06 03:29:40 +00:00
.method public getDecoratedMeasurementInOther(Landroid/view/View;)I
2019-07-24 11:27:29 +00:00
.locals 2
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v0
check-cast v0, Landroidx/recyclerview/widget/RecyclerView$LayoutParams;
2019-12-06 03:29:40 +00:00
iget-object v1, p0, Landroidx/recyclerview/widget/OrientationHelper;->mLayoutManager:Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
2019-07-24 11:27:29 +00:00
invoke-virtual {v1, p1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getDecoratedMeasuredHeight(Landroid/view/View;)I
move-result p1
2019-12-06 03:29:40 +00:00
iget v1, v0, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I
2019-07-24 11:27:29 +00:00
add-int/2addr p1, v1
2019-12-06 03:29:40 +00:00
iget v0, v0, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I
2019-07-24 11:27:29 +00:00
add-int/2addr p1, v0
return p1
.end method
2019-12-06 03:29:40 +00:00
.method public getDecoratedStart(Landroid/view/View;)I
2019-07-24 11:27:29 +00:00
.locals 2
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v0
check-cast v0, Landroidx/recyclerview/widget/RecyclerView$LayoutParams;
2019-12-06 03:29:40 +00:00
iget-object v1, p0, Landroidx/recyclerview/widget/OrientationHelper;->mLayoutManager:Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
2019-07-24 11:27:29 +00:00
invoke-virtual {v1, p1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getDecoratedLeft(Landroid/view/View;)I
move-result p1
2019-12-06 03:29:40 +00:00
iget v0, v0, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I
2019-07-24 11:27:29 +00:00
sub-int/2addr p1, v0
return p1
.end method
2019-12-06 03:29:40 +00:00
.method public getEnd()I
2019-07-24 11:27:29 +00:00
.locals 1
2019-12-06 03:29:40 +00:00
iget-object v0, p0, Landroidx/recyclerview/widget/OrientationHelper;->mLayoutManager:Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getWidth()I
move-result v0
return v0
.end method
2019-12-06 03:29:40 +00:00
.method public getEndAfterPadding()I
2019-07-24 11:27:29 +00:00
.locals 2
2019-12-06 03:29:40 +00:00
iget-object v0, p0, Landroidx/recyclerview/widget/OrientationHelper;->mLayoutManager:Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getWidth()I
move-result v0
2019-12-06 03:29:40 +00:00
iget-object v1, p0, Landroidx/recyclerview/widget/OrientationHelper;->mLayoutManager:Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
2019-07-24 11:27:29 +00:00
invoke-virtual {v1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getPaddingRight()I
move-result v1
sub-int/2addr v0, v1
return v0
.end method
2019-12-06 03:29:40 +00:00
.method public getEndPadding()I
2019-07-24 11:27:29 +00:00
.locals 1
2019-12-06 03:29:40 +00:00
iget-object v0, p0, Landroidx/recyclerview/widget/OrientationHelper;->mLayoutManager:Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getPaddingRight()I
move-result v0
return v0
.end method
2019-12-06 03:29:40 +00:00
.method public getMode()I
2019-07-24 11:27:29 +00:00
.locals 1
2019-12-06 03:29:40 +00:00
iget-object v0, p0, Landroidx/recyclerview/widget/OrientationHelper;->mLayoutManager:Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getWidthMode()I
move-result v0
return v0
.end method
2019-12-06 03:29:40 +00:00
.method public getModeInOther()I
2019-07-24 11:27:29 +00:00
.locals 1
2019-12-06 03:29:40 +00:00
iget-object v0, p0, Landroidx/recyclerview/widget/OrientationHelper;->mLayoutManager:Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getHeightMode()I
move-result v0
return v0
.end method
2019-12-06 03:29:40 +00:00
.method public getStartAfterPadding()I
2019-07-24 11:27:29 +00:00
.locals 1
2019-12-06 03:29:40 +00:00
iget-object v0, p0, Landroidx/recyclerview/widget/OrientationHelper;->mLayoutManager:Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getPaddingLeft()I
move-result v0
return v0
.end method
2019-12-06 03:29:40 +00:00
.method public getTotalSpace()I
2019-07-24 11:27:29 +00:00
.locals 2
2019-12-06 03:29:40 +00:00
iget-object v0, p0, Landroidx/recyclerview/widget/OrientationHelper;->mLayoutManager:Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getWidth()I
move-result v0
2019-12-06 03:29:40 +00:00
iget-object v1, p0, Landroidx/recyclerview/widget/OrientationHelper;->mLayoutManager:Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
2019-07-24 11:27:29 +00:00
invoke-virtual {v1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getPaddingLeft()I
move-result v1
sub-int/2addr v0, v1
2019-12-06 03:29:40 +00:00
iget-object v1, p0, Landroidx/recyclerview/widget/OrientationHelper;->mLayoutManager:Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
2019-07-24 11:27:29 +00:00
invoke-virtual {v1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getPaddingRight()I
move-result v1
sub-int/2addr v0, v1
return v0
.end method
2019-12-06 03:29:40 +00:00
.method public getTransformedEndWithDecoration(Landroid/view/View;)I
2019-07-24 11:27:29 +00:00
.locals 3
2019-12-06 03:29:40 +00:00
iget-object v0, p0, Landroidx/recyclerview/widget/OrientationHelper;->mLayoutManager:Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iget-object v1, p0, Landroidx/recyclerview/widget/OrientationHelper;->mTmpRect:Landroid/graphics/Rect;
2019-07-24 11:27:29 +00:00
const/4 v2, 0x1
invoke-virtual {v0, p1, v2, v1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getTransformedBoundingBox(Landroid/view/View;ZLandroid/graphics/Rect;)V
2019-12-06 03:29:40 +00:00
iget-object p1, p0, Landroidx/recyclerview/widget/OrientationHelper;->mTmpRect:Landroid/graphics/Rect;
2019-07-24 11:27:29 +00:00
iget p1, p1, Landroid/graphics/Rect;->right:I
return p1
.end method
2019-12-06 03:29:40 +00:00
.method public getTransformedStartWithDecoration(Landroid/view/View;)I
2019-07-24 11:27:29 +00:00
.locals 3
2019-12-06 03:29:40 +00:00
iget-object v0, p0, Landroidx/recyclerview/widget/OrientationHelper;->mLayoutManager:Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iget-object v1, p0, Landroidx/recyclerview/widget/OrientationHelper;->mTmpRect:Landroid/graphics/Rect;
2019-07-24 11:27:29 +00:00
const/4 v2, 0x1
invoke-virtual {v0, p1, v2, v1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getTransformedBoundingBox(Landroid/view/View;ZLandroid/graphics/Rect;)V
2019-12-06 03:29:40 +00:00
iget-object p1, p0, Landroidx/recyclerview/widget/OrientationHelper;->mTmpRect:Landroid/graphics/Rect;
2019-07-24 11:27:29 +00:00
iget p1, p1, Landroid/graphics/Rect;->left:I
return p1
.end method
2019-12-06 03:29:40 +00:00
.method public offsetChild(Landroid/view/View;I)V
2019-07-24 11:27:29 +00:00
.locals 0
invoke-virtual {p1, p2}, Landroid/view/View;->offsetLeftAndRight(I)V
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public offsetChildren(I)V
2019-07-24 11:27:29 +00:00
.locals 1
2019-12-06 03:29:40 +00:00
iget-object v0, p0, Landroidx/recyclerview/widget/OrientationHelper;->mLayoutManager:Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0, p1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->offsetChildrenHorizontal(I)V
return-void
.end method