.class public final Lokhttp3/Cache; .super Ljava/lang/Object; .source "Cache.kt" # interfaces .implements Ljava/io/Closeable; .implements Ljava/io/Flushable; # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lokhttp3/Cache$RealCacheRequest;, Lokhttp3/Cache$Entry;, Lokhttp3/Cache$CacheResponseBody;, Lokhttp3/Cache$Companion; } .end annotation .annotation runtime Lkotlin/Metadata; bv = {} d1 = { "\u0000l\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0004\n\u0002\u0018\u0002\n\u0002\u0008\u000e\n\u0002\u0010)\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u0008\n\u0002\u0008\u0002\n\u0002\u0010\t\n\u0002\u0008\u0004\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\u0015\n\u0002\u0010\u000b\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\t\u0018\u0000 K2\u00020\u00012\u00020\u0002:\u0004LKMNB!\u0008\u0000\u0012\u0006\u0010,\u001a\u00020)\u0012\u0006\u0010&\u001a\u00020$\u0012\u0006\u0010G\u001a\u00020F\u00a2\u0006\u0004\u0008H\u0010IB\u0019\u0008\u0016\u0012\u0006\u0010,\u001a\u00020)\u0012\u0006\u0010&\u001a\u00020$\u00a2\u0006\u0004\u0008H\u0010JJ\u0016\u0010\u0007\u001a\u00020\u00062\u000c\u0010\u0005\u001a\u0008\u0018\u00010\u0003R\u00020\u0004H\u0002J\u0019\u0010\r\u001a\u0004\u0018\u00010\n2\u0006\u0010\t\u001a\u00020\u0008H\u0000\u00a2\u0006\u0004\u0008\u000b\u0010\u000cJ\u0019\u0010\u0012\u001a\u0004\u0018\u00010\u000f2\u0006\u0010\u000e\u001a\u00020\nH\u0000\u00a2\u0006\u0004\u0008\u0010\u0010\u0011J\u0017\u0010\u0015\u001a\u00020\u00062\u0006\u0010\t\u001a\u00020\u0008H\u0000\u00a2\u0006\u0004\u0008\u0013\u0010\u0014J\u001f\u0010\u001a\u001a\u00020\u00062\u0006\u0010\u0016\u001a\u00020\n2\u0006\u0010\u0017\u001a\u00020\nH\u0000\u00a2\u0006\u0004\u0008\u0018\u0010\u0019J\u0006\u0010\u001b\u001a\u00020\u0006J\u0006\u0010\u001c\u001a\u00020\u0006J\u0006\u0010\u001d\u001a\u00020\u0006J\u000c\u0010 \u001a\u0008\u0012\u0004\u0012\u00020\u001f0\u001eJ\u0006\u0010\"\u001a\u00020!J\u0006\u0010#\u001a\u00020!J\u0006\u0010%\u001a\u00020$J\u0006\u0010&\u001a\u00020$J\u0008\u0010\'\u001a\u00020\u0006H\u0016J\u0008\u0010(\u001a\u00020\u0006H\u0016J\u000f\u0010,\u001a\u00020)H\u0007\u00a2\u0006\u0004\u0008*\u0010+J\u0017\u00101\u001a\u00020\u00062\u0006\u0010.\u001a\u00020-H\u0000\u00a2\u0006\u0004\u0008/\u00100J\u000f\u00104\u001a\u00020\u0006H\u0000\u00a2\u0006\u0004\u00082\u00103J\u0006\u00105\u001a\u00020!J\u0006\u00106\u001a\u00020!J\u0006\u00107\u001a\u00020!R\u001a\u00108\u001a\u00020\u00048\u0000X\u0080\u0004\u00a2\u0006\u000c\n\u0004\u00088\u00109\u001a\u0004\u0008:\u0010;R\"\u0010#\u001a\u00020!8\u0000@\u0000X\u0080\u000e\u00a2\u0006\u0012\n\u0004\u0008#\u0010<\u001a\u0004\u0008=\u0010>\"\u0004\u0008?\u0010@R\"\u0010\"\u001a\u00020!8\u0000@\u0000X\u0080\u000e\u00a2\u0006\u0012\n\u0004\u0008\"\u0010<\u001a\u0004\u0008A\u0010>\"\u0004\u0008B\u0010@R\u0016\u00105\u001a\u00020!8\u0002@\u0002X\u0082\u000e\u00a2\u0006\u0006\n\u0004\u00085\u0010", "(Ljava/io/File;JLokhttp3/internal/io/FileSystem;)V", "(Ljava/io/File;J)V", "Companion", "CacheResponseBody", "Entry", "RealCacheRequest", "okhttp" } k = 0x1 mv = { 0x1, 0x4, 0x0 } .end annotation # static fields .field public static final Companion:Lokhttp3/Cache$Companion; .field private static final ENTRY_BODY:I = 0x1 .field private static final ENTRY_COUNT:I = 0x2 .field private static final ENTRY_METADATA:I = 0x0 .field private static final VERSION:I = 0x31191 # instance fields .field private final cache:Lokhttp3/internal/cache/DiskLruCache; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end field .field private hitCount:I .field private networkCount:I .field private requestCount:I .field private writeAbortCount:I .field private writeSuccessCount:I # direct methods .method public static constructor ()V .locals 2 new-instance v0, Lokhttp3/Cache$Companion; const/4 v1, 0x0 invoke-direct {v0, v1}, Lokhttp3/Cache$Companion;->(Lkotlin/jvm/internal/u;)V sput-object v0, Lokhttp3/Cache;->Companion:Lokhttp3/Cache$Companion; return-void .end method .method public constructor (Ljava/io/File;J)V .locals 1 .param p1 # Ljava/io/File; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param const-string v0, "directory" invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V .line 5 sget-object v0, Lokhttp3/internal/io/FileSystem;->SYSTEM:Lokhttp3/internal/io/FileSystem; invoke-direct {p0, p1, p2, p3, v0}, Lokhttp3/Cache;->(Ljava/io/File;JLokhttp3/internal/io/FileSystem;)V return-void .end method .method public constructor (Ljava/io/File;JLokhttp3/internal/io/FileSystem;)V .locals 9 .param p1 # Ljava/io/File; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p4 # Lokhttp3/internal/io/FileSystem; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param const-string v0, "directory" invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "fileSystem" invoke-static {p4, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V .line 1 invoke-direct {p0}, Ljava/lang/Object;->()V .line 2 new-instance v0, Lokhttp3/internal/cache/DiskLruCache; .line 3 sget-object v8, Lokhttp3/internal/concurrent/TaskRunner;->INSTANCE:Lokhttp3/internal/concurrent/TaskRunner; const v4, 0x31191 const/4 v5, 0x2 move-object v1, v0 move-object v2, p4 move-object v3, p1 move-wide v6, p2 .line 4 invoke-direct/range {v1 .. v8}, Lokhttp3/internal/cache/DiskLruCache;->(Lokhttp3/internal/io/FileSystem;Ljava/io/File;IIJLokhttp3/internal/concurrent/TaskRunner;)V iput-object v0, p0, Lokhttp3/Cache;->cache:Lokhttp3/internal/cache/DiskLruCache; return-void .end method .method private final abortQuietly(Lokhttp3/internal/cache/DiskLruCache$Editor;)V .locals 0 if-eqz p1, :cond_0 .line 1 :try_start_0 invoke-virtual {p1}, Lokhttp3/internal/cache/DiskLruCache$Editor;->abort()V :try_end_0 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 :catch_0 :cond_0 return-void .end method .method public static final key(Lokhttp3/HttpUrl;)Ljava/lang/String; .locals 1 .param p0 # Lokhttp3/HttpUrl; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .annotation runtime Lkotlin/jvm/JvmStatic; .end annotation .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation sget-object v0, Lokhttp3/Cache;->Companion:Lokhttp3/Cache$Companion; invoke-virtual {v0, p0}, Lokhttp3/Cache$Companion;->key(Lokhttp3/HttpUrl;)Ljava/lang/String; move-result-object p0 return-object p0 .end method # virtual methods .method public final -deprecated_directory()Ljava/io/File; .locals 1 .annotation runtime Lkotlin/Deprecated; level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel; message = "moved to val" replaceWith = .subannotation Lkotlin/ReplaceWith; expression = "directory" imports = {} .end subannotation .end annotation .annotation build Lkotlin/jvm/JvmName; name = "-deprecated_directory" .end annotation .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .line 1 iget-object v0, p0, Lokhttp3/Cache;->cache:Lokhttp3/internal/cache/DiskLruCache; invoke-virtual {v0}, Lokhttp3/internal/cache/DiskLruCache;->getDirectory()Ljava/io/File; move-result-object v0 return-object v0 .end method .method public close()V .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 1 iget-object v0, p0, Lokhttp3/Cache;->cache:Lokhttp3/internal/cache/DiskLruCache; invoke-virtual {v0}, Lokhttp3/internal/cache/DiskLruCache;->close()V return-void .end method .method public final delete()V .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 1 iget-object v0, p0, Lokhttp3/Cache;->cache:Lokhttp3/internal/cache/DiskLruCache; invoke-virtual {v0}, Lokhttp3/internal/cache/DiskLruCache;->delete()V return-void .end method .method public final directory()Ljava/io/File; .locals 1 .annotation build Lkotlin/jvm/JvmName; name = "directory" .end annotation .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .line 1 iget-object v0, p0, Lokhttp3/Cache;->cache:Lokhttp3/internal/cache/DiskLruCache; invoke-virtual {v0}, Lokhttp3/internal/cache/DiskLruCache;->getDirectory()Ljava/io/File; move-result-object v0 return-object v0 .end method .method public final evictAll()V .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 1 iget-object v0, p0, Lokhttp3/Cache;->cache:Lokhttp3/internal/cache/DiskLruCache; invoke-virtual {v0}, Lokhttp3/internal/cache/DiskLruCache;->evictAll()V return-void .end method .method public flush()V .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 1 iget-object v0, p0, Lokhttp3/Cache;->cache:Lokhttp3/internal/cache/DiskLruCache; invoke-virtual {v0}, Lokhttp3/internal/cache/DiskLruCache;->flush()V return-void .end method .method public final get$okhttp(Lokhttp3/Request;)Lokhttp3/Response; .locals 4 .param p1 # Lokhttp3/Request; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .annotation build Lorg/jetbrains/annotations/Nullable; .end annotation const-string v0, "request" invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V .line 1 sget-object v0, Lokhttp3/Cache;->Companion:Lokhttp3/Cache$Companion; invoke-virtual {p1}, Lokhttp3/Request;->url()Lokhttp3/HttpUrl; move-result-object v1 invoke-virtual {v0, v1}, Lokhttp3/Cache$Companion;->key(Lokhttp3/HttpUrl;)Ljava/lang/String; move-result-object v0 const/4 v1, 0x0 .line 2 :try_start_0 iget-object v2, p0, Lokhttp3/Cache;->cache:Lokhttp3/internal/cache/DiskLruCache; invoke-virtual {v2, v0}, Lokhttp3/internal/cache/DiskLruCache;->get(Ljava/lang/String;)Lokhttp3/internal/cache/DiskLruCache$Snapshot; move-result-object v0 :try_end_0 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_1 if-eqz v0, :cond_2 .line 3 :try_start_1 new-instance v2, Lokhttp3/Cache$Entry; const/4 v3, 0x0 invoke-virtual {v0, v3}, Lokhttp3/internal/cache/DiskLruCache$Snapshot;->getSource(I)Lzj/m0; move-result-object v3 invoke-direct {v2, v3}, Lokhttp3/Cache$Entry;->(Lzj/m0;)V :try_end_1 .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0 .line 4 invoke-virtual {v2, v0}, Lokhttp3/Cache$Entry;->response(Lokhttp3/internal/cache/DiskLruCache$Snapshot;)Lokhttp3/Response; move-result-object v0 .line 5 invoke-virtual {v2, p1, v0}, Lokhttp3/Cache$Entry;->matches(Lokhttp3/Request;Lokhttp3/Response;)Z move-result p1 if-nez p1, :cond_1 .line 6 invoke-virtual {v0}, Lokhttp3/Response;->body()Lokhttp3/ResponseBody; move-result-object p1 if-eqz p1, :cond_0 invoke-static {p1}, Lokhttp3/internal/Util;->closeQuietly(Ljava/io/Closeable;)V :cond_0 return-object v1 :cond_1 return-object v0 .line 7 :catch_0 invoke-static {v0}, Lokhttp3/internal/Util;->closeQuietly(Ljava/io/Closeable;)V :catch_1 :cond_2 return-object v1 .end method .method public final getCache$okhttp()Lokhttp3/internal/cache/DiskLruCache; .locals 1 .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .line 1 iget-object v0, p0, Lokhttp3/Cache;->cache:Lokhttp3/internal/cache/DiskLruCache; return-object v0 .end method .method public final getWriteAbortCount$okhttp()I .locals 1 .line 1 iget v0, p0, Lokhttp3/Cache;->writeAbortCount:I return v0 .end method .method public final getWriteSuccessCount$okhttp()I .locals 1 .line 1 iget v0, p0, Lokhttp3/Cache;->writeSuccessCount:I return v0 .end method .method public final declared-synchronized hitCount()I .locals 1 monitor-enter p0 .line 1 :try_start_0 iget v0, p0, Lokhttp3/Cache;->hitCount:I :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 monitor-exit p0 return v0 :catchall_0 move-exception v0 monitor-exit p0 throw v0 .end method .method public final initialize()V .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 1 iget-object v0, p0, Lokhttp3/Cache;->cache:Lokhttp3/internal/cache/DiskLruCache; invoke-virtual {v0}, Lokhttp3/internal/cache/DiskLruCache;->initialize()V return-void .end method .method public final isClosed()Z .locals 1 .line 1 iget-object v0, p0, Lokhttp3/Cache;->cache:Lokhttp3/internal/cache/DiskLruCache; invoke-virtual {v0}, Lokhttp3/internal/cache/DiskLruCache;->isClosed()Z move-result v0 return v0 .end method .method public final maxSize()J .locals 2 .line 1 iget-object v0, p0, Lokhttp3/Cache;->cache:Lokhttp3/internal/cache/DiskLruCache; invoke-virtual {v0}, Lokhttp3/internal/cache/DiskLruCache;->getMaxSize()J move-result-wide v0 return-wide v0 .end method .method public final declared-synchronized networkCount()I .locals 1 monitor-enter p0 .line 1 :try_start_0 iget v0, p0, Lokhttp3/Cache;->networkCount:I :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 monitor-exit p0 return v0 :catchall_0 move-exception v0 monitor-exit p0 throw v0 .end method .method public final put$okhttp(Lokhttp3/Response;)Lokhttp3/internal/cache/CacheRequest; .locals 9 .param p1 # Lokhttp3/Response; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .annotation build Lorg/jetbrains/annotations/Nullable; .end annotation const-string v0, "response" invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V .line 1 invoke-virtual {p1}, Lokhttp3/Response;->request()Lokhttp3/Request; move-result-object v0 invoke-virtual {v0}, Lokhttp3/Request;->method()Ljava/lang/String; move-result-object v0 .line 2 sget-object v1, Lokhttp3/internal/http/HttpMethod;->INSTANCE:Lokhttp3/internal/http/HttpMethod; invoke-virtual {p1}, Lokhttp3/Response;->request()Lokhttp3/Request; move-result-object v2 invoke-virtual {v2}, Lokhttp3/Request;->method()Ljava/lang/String; move-result-object v2 invoke-virtual {v1, v2}, Lokhttp3/internal/http/HttpMethod;->invalidatesCache(Ljava/lang/String;)Z move-result v1 const/4 v2, 0x0 if-eqz v1, :cond_0 .line 3 :try_start_0 invoke-virtual {p1}, Lokhttp3/Response;->request()Lokhttp3/Request; move-result-object p1 invoke-virtual {p0, p1}, Lokhttp3/Cache;->remove$okhttp(Lokhttp3/Request;)V :try_end_0 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 :catch_0 return-object v2 :cond_0 const-string v1, "GET" .line 4 invoke-static {v0, v1}, Lkotlin/jvm/internal/f0;->g(Ljava/lang/Object;Ljava/lang/Object;)Z move-result v0 xor-int/lit8 v0, v0, 0x1 if-eqz v0, :cond_1 return-object v2 .line 5 :cond_1 sget-object v0, Lokhttp3/Cache;->Companion:Lokhttp3/Cache$Companion; invoke-virtual {v0, p1}, Lokhttp3/Cache$Companion;->hasVaryAll(Lokhttp3/Response;)Z move-result v1 if-eqz v1, :cond_2 return-object v2 .line 6 :cond_2 new-instance v1, Lokhttp3/Cache$Entry; invoke-direct {v1, p1}, Lokhttp3/Cache$Entry;->(Lokhttp3/Response;)V .line 7 :try_start_1 iget-object v3, p0, Lokhttp3/Cache;->cache:Lokhttp3/internal/cache/DiskLruCache; invoke-virtual {p1}, Lokhttp3/Response;->request()Lokhttp3/Request; move-result-object p1 invoke-virtual {p1}, Lokhttp3/Request;->url()Lokhttp3/HttpUrl; move-result-object p1 invoke-virtual {v0, p1}, Lokhttp3/Cache$Companion;->key(Lokhttp3/HttpUrl;)Ljava/lang/String; move-result-object v4 const-wide/16 v5, 0x0 const/4 v7, 0x2 const/4 v8, 0x0 invoke-static/range {v3 .. v8}, Lokhttp3/internal/cache/DiskLruCache;->edit$default(Lokhttp3/internal/cache/DiskLruCache;Ljava/lang/String;JILjava/lang/Object;)Lokhttp3/internal/cache/DiskLruCache$Editor; move-result-object p1 :try_end_1 .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1 if-eqz p1, :cond_3 .line 8 :try_start_2 invoke-virtual {v1, p1}, Lokhttp3/Cache$Entry;->writeTo(Lokhttp3/internal/cache/DiskLruCache$Editor;)V .line 9 new-instance v0, Lokhttp3/Cache$RealCacheRequest; invoke-direct {v0, p0, p1}, Lokhttp3/Cache$RealCacheRequest;->(Lokhttp3/Cache;Lokhttp3/internal/cache/DiskLruCache$Editor;)V :try_end_2 .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_2 return-object v0 :cond_3 return-object v2 :catch_1 move-object p1, v2 .line 10 :catch_2 invoke-direct {p0, p1}, Lokhttp3/Cache;->abortQuietly(Lokhttp3/internal/cache/DiskLruCache$Editor;)V return-object v2 .end method .method public final remove$okhttp(Lokhttp3/Request;)V .locals 2 .param p1 # Lokhttp3/Request; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const-string v0, "request" invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V .line 1 iget-object v0, p0, Lokhttp3/Cache;->cache:Lokhttp3/internal/cache/DiskLruCache; sget-object v1, Lokhttp3/Cache;->Companion:Lokhttp3/Cache$Companion; invoke-virtual {p1}, Lokhttp3/Request;->url()Lokhttp3/HttpUrl; move-result-object p1 invoke-virtual {v1, p1}, Lokhttp3/Cache$Companion;->key(Lokhttp3/HttpUrl;)Ljava/lang/String; move-result-object p1 invoke-virtual {v0, p1}, Lokhttp3/internal/cache/DiskLruCache;->remove(Ljava/lang/String;)Z return-void .end method .method public final declared-synchronized requestCount()I .locals 1 monitor-enter p0 .line 1 :try_start_0 iget v0, p0, Lokhttp3/Cache;->requestCount:I :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 monitor-exit p0 return v0 :catchall_0 move-exception v0 monitor-exit p0 throw v0 .end method .method public final setWriteAbortCount$okhttp(I)V .locals 0 .line 1 iput p1, p0, Lokhttp3/Cache;->writeAbortCount:I return-void .end method .method public final setWriteSuccessCount$okhttp(I)V .locals 0 .line 1 iput p1, p0, Lokhttp3/Cache;->writeSuccessCount:I return-void .end method .method public final size()J .locals 2 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 1 iget-object v0, p0, Lokhttp3/Cache;->cache:Lokhttp3/internal/cache/DiskLruCache; invoke-virtual {v0}, Lokhttp3/internal/cache/DiskLruCache;->size()J move-result-wide v0 return-wide v0 .end method .method public final declared-synchronized trackConditionalCacheHit$okhttp()V .locals 1 monitor-enter p0 .line 1 :try_start_0 iget v0, p0, Lokhttp3/Cache;->hitCount:I add-int/lit8 v0, v0, 0x1 iput v0, p0, Lokhttp3/Cache;->hitCount:I :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 .line 2 monitor-exit p0 return-void :catchall_0 move-exception v0 monitor-exit p0 throw v0 .end method .method public final declared-synchronized trackResponse$okhttp(Lokhttp3/internal/cache/CacheStrategy;)V .locals 1 .param p1 # Lokhttp3/internal/cache/CacheStrategy; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param monitor-enter p0 :try_start_0 const-string v0, "cacheStrategy" invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V .line 1 iget v0, p0, Lokhttp3/Cache;->requestCount:I add-int/lit8 v0, v0, 0x1 iput v0, p0, Lokhttp3/Cache;->requestCount:I .line 2 invoke-virtual {p1}, Lokhttp3/internal/cache/CacheStrategy;->getNetworkRequest()Lokhttp3/Request; move-result-object v0 if-eqz v0, :cond_0 .line 3 iget p1, p0, Lokhttp3/Cache;->networkCount:I add-int/lit8 p1, p1, 0x1 iput p1, p0, Lokhttp3/Cache;->networkCount:I goto :goto_0 .line 4 :cond_0 invoke-virtual {p1}, Lokhttp3/internal/cache/CacheStrategy;->getCacheResponse()Lokhttp3/Response; move-result-object p1 if-eqz p1, :cond_1 .line 5 iget p1, p0, Lokhttp3/Cache;->hitCount:I add-int/lit8 p1, p1, 0x1 iput p1, p0, Lokhttp3/Cache;->hitCount:I :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 .line 6 :cond_1 :goto_0 monitor-exit p0 return-void :catchall_0 move-exception p1 monitor-exit p0 throw p1 .end method .method public final update$okhttp(Lokhttp3/Response;Lokhttp3/Response;)V .locals 1 .param p1 # Lokhttp3/Response; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p2 # Lokhttp3/Response; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param const-string v0, "cached" invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "network" invoke-static {p2, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V .line 1 new-instance v0, Lokhttp3/Cache$Entry; invoke-direct {v0, p2}, Lokhttp3/Cache$Entry;->(Lokhttp3/Response;)V .line 2 invoke-virtual {p1}, Lokhttp3/Response;->body()Lokhttp3/ResponseBody; move-result-object p1 const-string p2, "null cannot be cast to non-null type okhttp3.Cache.CacheResponseBody" invoke-static {p1, p2}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; check-cast p1, Lokhttp3/Cache$CacheResponseBody; invoke-virtual {p1}, Lokhttp3/Cache$CacheResponseBody;->getSnapshot()Lokhttp3/internal/cache/DiskLruCache$Snapshot; move-result-object p1 const/4 p2, 0x0 .line 3 :try_start_0 invoke-virtual {p1}, Lokhttp3/internal/cache/DiskLruCache$Snapshot;->edit()Lokhttp3/internal/cache/DiskLruCache$Editor; move-result-object p2 if-eqz p2, :cond_0 .line 4 invoke-virtual {v0, p2}, Lokhttp3/Cache$Entry;->writeTo(Lokhttp3/internal/cache/DiskLruCache$Editor;)V .line 5 invoke-virtual {p2}, Lokhttp3/internal/cache/DiskLruCache$Editor;->commit()V :try_end_0 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 goto :goto_0 :cond_0 return-void .line 6 :catch_0 invoke-direct {p0, p2}, Lokhttp3/Cache;->abortQuietly(Lokhttp3/internal/cache/DiskLruCache$Editor;)V :goto_0 return-void .end method .method public final urls()Ljava/util/Iterator; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()", "Ljava/util/Iterator<", "Ljava/lang/String;", ">;" } .end annotation .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .line 1 new-instance v0, Lokhttp3/Cache$urls$1; invoke-direct {v0, p0}, Lokhttp3/Cache$urls$1;->(Lokhttp3/Cache;)V return-object v0 .end method .method public final declared-synchronized writeAbortCount()I .locals 1 monitor-enter p0 .line 1 :try_start_0 iget v0, p0, Lokhttp3/Cache;->writeAbortCount:I :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 monitor-exit p0 return v0 :catchall_0 move-exception v0 monitor-exit p0 throw v0 .end method .method public final declared-synchronized writeSuccessCount()I .locals 1 monitor-enter p0 .line 1 :try_start_0 iget v0, p0, Lokhttp3/Cache;->writeSuccessCount:I :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 monitor-exit p0 return v0 :catchall_0 move-exception v0 monitor-exit p0 throw v0 .end method