You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
81 lines
1.8 KiB
81 lines
1.8 KiB
.class Lcom/squareup/picasso/UrlConnectionDownloader$ResponseCacheIcs; |
|
.super Ljava/lang/Object; |
|
.source "UrlConnectionDownloader.java" |
|
|
|
|
|
# annotations |
|
.annotation system Ldalvik/annotation/EnclosingClass; |
|
value = Lcom/squareup/picasso/UrlConnectionDownloader; |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/InnerClass; |
|
accessFlags = 0xa |
|
name = "ResponseCacheIcs" |
|
.end annotation |
|
|
|
|
|
# direct methods |
|
.method private constructor <init>()V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 126 |
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V |
|
|
|
return-void |
|
.end method |
|
|
|
.method static close(Ljava/lang/Object;)V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 139 |
|
:try_start_0 |
|
check-cast p0, Landroid/net/http/HttpResponseCache; |
|
|
|
invoke-virtual {p0}, Landroid/net/http/HttpResponseCache;->close()V |
|
:try_end_0 |
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 |
|
|
|
.line 142 |
|
:goto_0 |
|
return-void |
|
|
|
.line 140 |
|
:catch_0 |
|
move-exception v0 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method static install(Landroid/content/Context;)Ljava/lang/Object; |
|
.locals 4 |
|
|
|
.prologue |
|
.line 128 |
|
invoke-static {p0}, Lcom/squareup/picasso/Utils;->createDefaultCacheDir(Landroid/content/Context;)Ljava/io/File; |
|
|
|
move-result-object v1 |
|
|
|
.line 129 |
|
invoke-static {}, Landroid/net/http/HttpResponseCache;->getInstalled()Landroid/net/http/HttpResponseCache; |
|
|
|
move-result-object v0 |
|
|
|
.line 130 |
|
if-nez v0, :cond_0 |
|
|
|
.line 131 |
|
invoke-static {v1}, Lcom/squareup/picasso/Utils;->calculateDiskCacheSize(Ljava/io/File;)J |
|
|
|
move-result-wide v2 |
|
|
|
.line 132 |
|
invoke-static {v1, v2, v3}, Landroid/net/http/HttpResponseCache;->install(Ljava/io/File;J)Landroid/net/http/HttpResponseCache; |
|
|
|
move-result-object v0 |
|
|
|
.line 134 |
|
:cond_0 |
|
return-object v0 |
|
.end method
|
|
|