Rabbit-R1/original r1/smali/smali_classes2/androidx/recyclerview/widget/AdapterHelper$UpdateOp.smali
2024-05-21 17:08:36 -04:00

320 lines
7.1 KiB
Smali

.class final Landroidx/recyclerview/widget/AdapterHelper$UpdateOp;
.super Ljava/lang/Object;
.source "AdapterHelper.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/recyclerview/widget/AdapterHelper;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = "UpdateOp"
.end annotation
# static fields
.field static final ADD:I = 0x1
.field static final MOVE:I = 0x8
.field static final POOL_SIZE:I = 0x1e
.field static final REMOVE:I = 0x2
.field static final UPDATE:I = 0x4
# instance fields
.field cmd:I
.field itemCount:I
.field payload:Ljava/lang/Object;
.field positionStart:I
# direct methods
.method constructor <init>(IIILjava/lang/Object;)V
.locals 0
.line 651
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput p1, p0, Landroidx/recyclerview/widget/AdapterHelper$UpdateOp;->cmd:I
iput p2, p0, Landroidx/recyclerview/widget/AdapterHelper$UpdateOp;->positionStart:I
iput p3, p0, Landroidx/recyclerview/widget/AdapterHelper$UpdateOp;->itemCount:I
iput-object p4, p0, Landroidx/recyclerview/widget/AdapterHelper$UpdateOp;->payload:Ljava/lang/Object;
return-void
.end method
# virtual methods
.method cmdToString()Ljava/lang/String;
.locals 1
iget p0, p0, Landroidx/recyclerview/widget/AdapterHelper$UpdateOp;->cmd:I
const/4 v0, 0x1
if-eq p0, v0, :cond_3
const/4 v0, 0x2
if-eq p0, v0, :cond_2
const/4 v0, 0x4
if-eq p0, v0, :cond_1
const/16 v0, 0x8
if-eq p0, v0, :cond_0
const-string p0, "??"
return-object p0
:cond_0
const-string p0, "mv"
return-object p0
:cond_1
const-string p0, "up"
return-object p0
:cond_2
const-string p0, "rm"
return-object p0
:cond_3
const-string p0, "add"
return-object p0
.end method
.method public equals(Ljava/lang/Object;)Z
.locals 4
const/4 v0, 0x1
if-ne p0, p1, :cond_0
return v0
.line 684
:cond_0
instance-of v1, p1, Landroidx/recyclerview/widget/AdapterHelper$UpdateOp;
const/4 v2, 0x0
if-nez v1, :cond_1
return v2
.line 688
:cond_1
check-cast p1, Landroidx/recyclerview/widget/AdapterHelper$UpdateOp;
iget v1, p0, Landroidx/recyclerview/widget/AdapterHelper$UpdateOp;->cmd:I
.line 690
iget v3, p1, Landroidx/recyclerview/widget/AdapterHelper$UpdateOp;->cmd:I
if-eq v1, v3, :cond_2
return v2
:cond_2
const/16 v3, 0x8
if-ne v1, v3, :cond_3
iget v1, p0, Landroidx/recyclerview/widget/AdapterHelper$UpdateOp;->itemCount:I
iget v3, p0, Landroidx/recyclerview/widget/AdapterHelper$UpdateOp;->positionStart:I
sub-int/2addr v1, v3
.line 693
invoke-static {v1}, Ljava/lang/Math;->abs(I)I
move-result v1
if-ne v1, v0, :cond_3
iget v1, p0, Landroidx/recyclerview/widget/AdapterHelper$UpdateOp;->itemCount:I
.line 695
iget v3, p1, Landroidx/recyclerview/widget/AdapterHelper$UpdateOp;->positionStart:I
if-ne v1, v3, :cond_3
iget v1, p0, Landroidx/recyclerview/widget/AdapterHelper$UpdateOp;->positionStart:I
iget v3, p1, Landroidx/recyclerview/widget/AdapterHelper$UpdateOp;->itemCount:I
if-ne v1, v3, :cond_3
return v0
:cond_3
iget v1, p0, Landroidx/recyclerview/widget/AdapterHelper$UpdateOp;->itemCount:I
.line 699
iget v3, p1, Landroidx/recyclerview/widget/AdapterHelper$UpdateOp;->itemCount:I
if-eq v1, v3, :cond_4
return v2
:cond_4
iget v1, p0, Landroidx/recyclerview/widget/AdapterHelper$UpdateOp;->positionStart:I
.line 702
iget v3, p1, Landroidx/recyclerview/widget/AdapterHelper$UpdateOp;->positionStart:I
if-eq v1, v3, :cond_5
return v2
:cond_5
iget-object p0, p0, Landroidx/recyclerview/widget/AdapterHelper$UpdateOp;->payload:Ljava/lang/Object;
if-eqz p0, :cond_6
.line 706
iget-object p1, p1, Landroidx/recyclerview/widget/AdapterHelper$UpdateOp;->payload:Ljava/lang/Object;
invoke-virtual {p0, p1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result p0
if-nez p0, :cond_7
return v2
.line 709
:cond_6
iget-object p0, p1, Landroidx/recyclerview/widget/AdapterHelper$UpdateOp;->payload:Ljava/lang/Object;
if-eqz p0, :cond_7
return v2
:cond_7
return v0
.end method
.method public hashCode()I
.locals 2
iget v0, p0, Landroidx/recyclerview/widget/AdapterHelper$UpdateOp;->cmd:I
mul-int/lit8 v0, v0, 0x1f
iget v1, p0, Landroidx/recyclerview/widget/AdapterHelper$UpdateOp;->positionStart:I
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x1f
iget p0, p0, Landroidx/recyclerview/widget/AdapterHelper$UpdateOp;->itemCount:I
add-int/2addr v0, p0
return v0
.end method
.method public toString()Ljava/lang/String;
.locals 2
.line 674
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
invoke-static {p0}, Ljava/lang/System;->identityHashCode(Ljava/lang/Object;)I
move-result v1
invoke-static {v1}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, "["
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
.line 675
invoke-virtual {p0}, Landroidx/recyclerview/widget/AdapterHelper$UpdateOp;->cmdToString()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, ",s:"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget v1, p0, Landroidx/recyclerview/widget/AdapterHelper$UpdateOp;->positionStart:I
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, "c:"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget v1, p0, Landroidx/recyclerview/widget/AdapterHelper$UpdateOp;->itemCount:I
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, ",p:"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-object p0, p0, Landroidx/recyclerview/widget/AdapterHelper$UpdateOp;->payload:Ljava/lang/Object;
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object p0
const-string v0, "]"
invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p0
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
return-object p0
.end method