175 lines
4.7 KiB
Smali
175 lines
4.7 KiB
Smali
.class public final Lcom/facebook/imagepipeline/cache/i;
|
|
.super Ljava/lang/Object;
|
|
|
|
# interfaces
|
|
.implements Lcom/facebook/imagepipeline/cache/f;
|
|
|
|
|
|
# static fields
|
|
.field private static Nu:Lcom/facebook/imagepipeline/cache/i;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static declared-synchronized hn()Lcom/facebook/imagepipeline/cache/i;
|
|
.locals 2
|
|
|
|
const-class v0, Lcom/facebook/imagepipeline/cache/i;
|
|
|
|
monitor-enter v0
|
|
|
|
:try_start_0
|
|
sget-object v1, Lcom/facebook/imagepipeline/cache/i;->Nu:Lcom/facebook/imagepipeline/cache/i;
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
new-instance v1, Lcom/facebook/imagepipeline/cache/i;
|
|
|
|
invoke-direct {v1}, Lcom/facebook/imagepipeline/cache/i;-><init>()V
|
|
|
|
sput-object v1, Lcom/facebook/imagepipeline/cache/i;->Nu:Lcom/facebook/imagepipeline/cache/i;
|
|
|
|
:cond_0
|
|
sget-object v1, Lcom/facebook/imagepipeline/cache/i;->Nu:Lcom/facebook/imagepipeline/cache/i;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
monitor-exit v0
|
|
|
|
return-object v1
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
monitor-exit v0
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Lcom/facebook/imagepipeline/request/b;)Lcom/facebook/cache/common/CacheKey;
|
|
.locals 0
|
|
|
|
iget-object p1, p1, Lcom/facebook/imagepipeline/request/b;->Ul:Landroid/net/Uri;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/facebook/imagepipeline/cache/i;->n(Landroid/net/Uri;)Lcom/facebook/cache/common/CacheKey;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final a(Lcom/facebook/imagepipeline/request/b;Ljava/lang/Object;)Lcom/facebook/cache/common/CacheKey;
|
|
.locals 9
|
|
|
|
new-instance v8, Lcom/facebook/imagepipeline/cache/c;
|
|
|
|
iget-object v0, p1, Lcom/facebook/imagepipeline/request/b;->Ul:Landroid/net/Uri;
|
|
|
|
invoke-virtual {v0}, Landroid/net/Uri;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, p1, Lcom/facebook/imagepipeline/request/b;->ML:Lcom/facebook/imagepipeline/a/e;
|
|
|
|
iget-object v3, p1, Lcom/facebook/imagepipeline/request/b;->MM:Lcom/facebook/imagepipeline/a/f;
|
|
|
|
iget-object v4, p1, Lcom/facebook/imagepipeline/request/b;->MN:Lcom/facebook/imagepipeline/a/b;
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
move-object v0, v8
|
|
|
|
move-object v7, p2
|
|
|
|
invoke-direct/range {v0 .. v7}, Lcom/facebook/imagepipeline/cache/c;-><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
|
|
|
|
return-object v8
|
|
.end method
|
|
|
|
.method public final b(Lcom/facebook/imagepipeline/request/b;Ljava/lang/Object;)Lcom/facebook/cache/common/CacheKey;
|
|
.locals 10
|
|
|
|
iget-object v0, p1, Lcom/facebook/imagepipeline/request/b;->TF:Lcom/facebook/imagepipeline/request/c;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-interface {v0}, Lcom/facebook/imagepipeline/request/c;->getPostprocessorCacheKey()Lcom/facebook/cache/common/CacheKey;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
move-object v8, v0
|
|
|
|
move-object v7, v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-object v7, v1
|
|
|
|
move-object v8, v7
|
|
|
|
:goto_0
|
|
new-instance v0, Lcom/facebook/imagepipeline/cache/c;
|
|
|
|
iget-object v1, p1, Lcom/facebook/imagepipeline/request/b;->Ul:Landroid/net/Uri;
|
|
|
|
invoke-virtual {v1}, Landroid/net/Uri;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
iget-object v4, p1, Lcom/facebook/imagepipeline/request/b;->ML:Lcom/facebook/imagepipeline/a/e;
|
|
|
|
iget-object v5, p1, Lcom/facebook/imagepipeline/request/b;->MM:Lcom/facebook/imagepipeline/a/f;
|
|
|
|
iget-object v6, p1, Lcom/facebook/imagepipeline/request/b;->MN:Lcom/facebook/imagepipeline/a/b;
|
|
|
|
move-object v2, v0
|
|
|
|
move-object v9, p2
|
|
|
|
invoke-direct/range {v2 .. v9}, Lcom/facebook/imagepipeline/cache/c;-><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
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final n(Landroid/net/Uri;)Lcom/facebook/cache/common/CacheKey;
|
|
.locals 1
|
|
|
|
new-instance v0, Lcom/facebook/cache/common/g;
|
|
|
|
invoke-virtual {p1}, Landroid/net/Uri;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, p1}, Lcom/facebook/cache/common/g;-><init>(Ljava/lang/String;)V
|
|
|
|
return-object v0
|
|
.end method
|