390 lines
9.1 KiB
Smali
390 lines
9.1 KiB
Smali
.class public final Lcom/facebook/imagepipeline/cache/c;
|
|
.super Ljava/lang/Object;
|
|
.source "BitmapMemoryCacheKey.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/facebook/cache/common/CacheKey;
|
|
|
|
|
|
# instance fields
|
|
.field private final Kp:Ljava/lang/Object;
|
|
|
|
.field private final Sj:Ljava/lang/String;
|
|
|
|
.field private final Sk:Lcom/facebook/imagepipeline/a/e;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private final Sl:Lcom/facebook/imagepipeline/a/f;
|
|
|
|
.field private final Sm:Lcom/facebook/imagepipeline/a/b;
|
|
|
|
.field private final Sn:Lcom/facebook/cache/common/CacheKey;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private final So:Ljava/lang/String;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private final Sp:I
|
|
|
|
.field private final Sq:J
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/lang/String;Lcom/facebook/imagepipeline/a/e;Lcom/facebook/imagepipeline/a/f;Lcom/facebook/imagepipeline/a/b;Lcom/facebook/cache/common/CacheKey;Ljava/lang/String;Ljava/lang/Object;)V
|
|
.locals 1
|
|
.param p2 # Lcom/facebook/imagepipeline/a/e;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p5 # Lcom/facebook/cache/common/CacheKey;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p6 # Ljava/lang/String;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
invoke-static {p1}, Lcom/facebook/common/d/i;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ljava/lang/String;
|
|
|
|
iput-object v0, p0, Lcom/facebook/imagepipeline/cache/c;->Sj:Ljava/lang/String;
|
|
|
|
iput-object p2, p0, Lcom/facebook/imagepipeline/cache/c;->Sk:Lcom/facebook/imagepipeline/a/e;
|
|
|
|
iput-object p3, p0, Lcom/facebook/imagepipeline/cache/c;->Sl:Lcom/facebook/imagepipeline/a/f;
|
|
|
|
iput-object p4, p0, Lcom/facebook/imagepipeline/cache/c;->Sm:Lcom/facebook/imagepipeline/a/b;
|
|
|
|
iput-object p5, p0, Lcom/facebook/imagepipeline/cache/c;->Sn:Lcom/facebook/cache/common/CacheKey;
|
|
|
|
iput-object p6, p0, Lcom/facebook/imagepipeline/cache/c;->So:Ljava/lang/String;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result p1
|
|
|
|
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p1
|
|
|
|
const/4 p4, 0x0
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
invoke-virtual {p2}, Lcom/facebook/imagepipeline/a/e;->hashCode()I
|
|
|
|
move-result p2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p2, 0x0
|
|
|
|
:goto_0
|
|
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p3}, Lcom/facebook/imagepipeline/a/f;->hashCode()I
|
|
|
|
move-result p3
|
|
|
|
invoke-static {p3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p3
|
|
|
|
iget-object p5, p0, Lcom/facebook/imagepipeline/cache/c;->Sm:Lcom/facebook/imagepipeline/a/b;
|
|
|
|
iget-object v0, p0, Lcom/facebook/imagepipeline/cache/c;->Sn:Lcom/facebook/cache/common/CacheKey;
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
const/4 p1, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
invoke-virtual {p1}, Ljava/lang/Object;->hashCode()I
|
|
|
|
move-result p1
|
|
|
|
:goto_1
|
|
if-nez p2, :cond_2
|
|
|
|
const/4 p2, 0x0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
invoke-virtual {p2}, Ljava/lang/Object;->hashCode()I
|
|
|
|
move-result p2
|
|
|
|
:goto_2
|
|
if-nez p3, :cond_3
|
|
|
|
const/4 p3, 0x0
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
invoke-virtual {p3}, Ljava/lang/Object;->hashCode()I
|
|
|
|
move-result p3
|
|
|
|
:goto_3
|
|
if-nez p5, :cond_4
|
|
|
|
const/4 p5, 0x0
|
|
|
|
goto :goto_4
|
|
|
|
:cond_4
|
|
invoke-virtual {p5}, Ljava/lang/Object;->hashCode()I
|
|
|
|
move-result p5
|
|
|
|
:goto_4
|
|
if-nez v0, :cond_5
|
|
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_5
|
|
|
|
:cond_5
|
|
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
|
|
|
|
move-result v0
|
|
|
|
:goto_5
|
|
if-nez p6, :cond_6
|
|
|
|
goto :goto_6
|
|
|
|
:cond_6
|
|
invoke-virtual {p6}, Ljava/lang/Object;->hashCode()I
|
|
|
|
move-result p4
|
|
|
|
:goto_6
|
|
add-int/lit8 p1, p1, 0x1f
|
|
|
|
mul-int/lit8 p1, p1, 0x1f
|
|
|
|
add-int/2addr p1, p2
|
|
|
|
mul-int/lit8 p1, p1, 0x1f
|
|
|
|
add-int/2addr p1, p3
|
|
|
|
mul-int/lit8 p1, p1, 0x1f
|
|
|
|
add-int/2addr p1, p5
|
|
|
|
mul-int/lit8 p1, p1, 0x1f
|
|
|
|
add-int/2addr p1, v0
|
|
|
|
mul-int/lit8 p1, p1, 0x1f
|
|
|
|
add-int/2addr p1, p4
|
|
|
|
iput p1, p0, Lcom/facebook/imagepipeline/cache/c;->Sp:I
|
|
|
|
iput-object p7, p0, Lcom/facebook/imagepipeline/cache/c;->Kp:Ljava/lang/Object;
|
|
|
|
invoke-static {}, Lcom/facebook/common/time/RealtimeSinceBootClock;->get()Lcom/facebook/common/time/RealtimeSinceBootClock;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lcom/facebook/common/time/RealtimeSinceBootClock;->now()J
|
|
|
|
move-result-wide p1
|
|
|
|
iput-wide p1, p0, Lcom/facebook/imagepipeline/cache/c;->Sq:J
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final equals(Ljava/lang/Object;)Z
|
|
.locals 3
|
|
|
|
instance-of v0, p1, Lcom/facebook/imagepipeline/cache/c;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return v1
|
|
|
|
:cond_0
|
|
check-cast p1, Lcom/facebook/imagepipeline/cache/c;
|
|
|
|
iget v0, p0, Lcom/facebook/imagepipeline/cache/c;->Sp:I
|
|
|
|
iget v2, p1, Lcom/facebook/imagepipeline/cache/c;->Sp:I
|
|
|
|
if-ne v0, v2, :cond_1
|
|
|
|
iget-object v0, p0, Lcom/facebook/imagepipeline/cache/c;->Sj:Ljava/lang/String;
|
|
|
|
iget-object v2, p1, Lcom/facebook/imagepipeline/cache/c;->Sj:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v0, p0, Lcom/facebook/imagepipeline/cache/c;->Sk:Lcom/facebook/imagepipeline/a/e;
|
|
|
|
iget-object v2, p1, Lcom/facebook/imagepipeline/cache/c;->Sk:Lcom/facebook/imagepipeline/a/e;
|
|
|
|
invoke-static {v0, v2}, Lcom/facebook/common/d/h;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v0, p0, Lcom/facebook/imagepipeline/cache/c;->Sl:Lcom/facebook/imagepipeline/a/f;
|
|
|
|
iget-object v2, p1, Lcom/facebook/imagepipeline/cache/c;->Sl:Lcom/facebook/imagepipeline/a/f;
|
|
|
|
invoke-static {v0, v2}, Lcom/facebook/common/d/h;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v0, p0, Lcom/facebook/imagepipeline/cache/c;->Sm:Lcom/facebook/imagepipeline/a/b;
|
|
|
|
iget-object v2, p1, Lcom/facebook/imagepipeline/cache/c;->Sm:Lcom/facebook/imagepipeline/a/b;
|
|
|
|
invoke-static {v0, v2}, Lcom/facebook/common/d/h;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v0, p0, Lcom/facebook/imagepipeline/cache/c;->Sn:Lcom/facebook/cache/common/CacheKey;
|
|
|
|
iget-object v2, p1, Lcom/facebook/imagepipeline/cache/c;->Sn:Lcom/facebook/cache/common/CacheKey;
|
|
|
|
invoke-static {v0, v2}, Lcom/facebook/common/d/h;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v0, p0, Lcom/facebook/imagepipeline/cache/c;->So:Ljava/lang/String;
|
|
|
|
iget-object p1, p1, Lcom/facebook/imagepipeline/cache/c;->So:Ljava/lang/String;
|
|
|
|
invoke-static {v0, p1}, Lcom/facebook/common/d/h;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
|
|
:cond_1
|
|
return v1
|
|
.end method
|
|
|
|
.method public final fI()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/facebook/imagepipeline/cache/c;->Sj:Ljava/lang/String;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final hashCode()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/facebook/imagepipeline/cache/c;->Sp:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final toString()Ljava/lang/String;
|
|
.locals 3
|
|
|
|
const/4 v0, 0x7
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
iget-object v1, p0, Lcom/facebook/imagepipeline/cache/c;->Sj:Ljava/lang/String;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
iget-object v1, p0, Lcom/facebook/imagepipeline/cache/c;->Sk:Lcom/facebook/imagepipeline/a/e;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
iget-object v1, p0, Lcom/facebook/imagepipeline/cache/c;->Sl:Lcom/facebook/imagepipeline/a/f;
|
|
|
|
const/4 v2, 0x2
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
iget-object v1, p0, Lcom/facebook/imagepipeline/cache/c;->Sm:Lcom/facebook/imagepipeline/a/b;
|
|
|
|
const/4 v2, 0x3
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
iget-object v1, p0, Lcom/facebook/imagepipeline/cache/c;->Sn:Lcom/facebook/cache/common/CacheKey;
|
|
|
|
const/4 v2, 0x4
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
iget-object v1, p0, Lcom/facebook/imagepipeline/cache/c;->So:Ljava/lang/String;
|
|
|
|
const/4 v2, 0x5
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
iget v1, p0, Lcom/facebook/imagepipeline/cache/c;->Sp:I
|
|
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x6
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const-string v2, "%s_%s_%s_%s_%s_%s_%d"
|
|
|
|
invoke-static {v1, v2, v0}, Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|