apkfuckery/com.discord/smali/androidx/recyclerview/widget/ViewBoundsCheck$BoundFlags.smali
2020-05-17 12:40:10 +00:00

202 lines
4.2 KiB
Smali

.class public Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;
.super Ljava/lang/Object;
.source "ViewBoundsCheck.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/recyclerview/widget/ViewBoundsCheck;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "BoundFlags"
.end annotation
# instance fields
.field public mBoundFlags:I
.field public mChildEnd:I
.field public mChildStart:I
.field public mRvEnd:I
.field public mRvStart:I
# direct methods
.method public constructor <init>()V
.locals 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput v0, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mBoundFlags:I
return-void
.end method
# virtual methods
.method public addFlags(I)V
.locals 1
iget v0, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mBoundFlags:I
or-int/2addr p1, v0
iput p1, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mBoundFlags:I
return-void
.end method
.method public boundsMatch()Z
.locals 4
iget v0, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mBoundFlags:I
and-int/lit8 v1, v0, 0x7
const/4 v2, 0x0
if-eqz v1, :cond_0
iget v1, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mChildStart:I
iget v3, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mRvStart:I
invoke-virtual {p0, v1, v3}, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->compare(II)I
move-result v1
shl-int/2addr v1, v2
and-int/2addr v0, v1
if-nez v0, :cond_0
return v2
:cond_0
iget v0, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mBoundFlags:I
and-int/lit8 v1, v0, 0x70
if-eqz v1, :cond_1
iget v1, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mChildStart:I
iget v3, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mRvEnd:I
invoke-virtual {p0, v1, v3}, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->compare(II)I
move-result v1
shl-int/lit8 v1, v1, 0x4
and-int/2addr v0, v1
if-nez v0, :cond_1
return v2
:cond_1
iget v0, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mBoundFlags:I
and-int/lit16 v1, v0, 0x700
if-eqz v1, :cond_2
iget v1, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mChildEnd:I
iget v3, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mRvStart:I
invoke-virtual {p0, v1, v3}, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->compare(II)I
move-result v1
shl-int/lit8 v1, v1, 0x8
and-int/2addr v0, v1
if-nez v0, :cond_2
return v2
:cond_2
iget v0, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mBoundFlags:I
and-int/lit16 v1, v0, 0x7000
if-eqz v1, :cond_3
iget v1, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mChildEnd:I
iget v3, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mRvEnd:I
invoke-virtual {p0, v1, v3}, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->compare(II)I
move-result v1
shl-int/lit8 v1, v1, 0xc
and-int/2addr v0, v1
if-nez v0, :cond_3
return v2
:cond_3
const/4 v0, 0x1
return v0
.end method
.method public compare(II)I
.locals 0
if-le p1, p2, :cond_0
const/4 p1, 0x1
return p1
:cond_0
if-ne p1, p2, :cond_1
const/4 p1, 0x2
return p1
:cond_1
const/4 p1, 0x4
return p1
.end method
.method public resetFlags()V
.locals 1
const/4 v0, 0x0
iput v0, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mBoundFlags:I
return-void
.end method
.method public setBounds(IIII)V
.locals 0
iput p1, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mRvStart:I
iput p2, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mRvEnd:I
iput p3, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mChildStart:I
iput p4, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->mChildEnd:I
return-void
.end method