.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 = { 0x1, 0x0, 0x3 } d1 = { "\u0000r\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\t\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0004\n\u0002\u0010\u0008\n\u0000\n\u0002\u0010\u000b\n\u0002\u0008\u000c\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0006\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\t\n\u0002\u0018\u0002\n\u0002\u0008\u0006\n\u0002\u0010)\n\u0002\u0010\u000e\n\u0002\u0008\u0005\u0018\u0000 C2\u00020\u00012\u00020\u0002:\u0004BCDEB\u0017\u0008\u0016\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u00a2\u0006\u0002\u0010\u0007B\u001f\u0008\u0000\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u0012\u0006\u0010\u0008\u001a\u00020\t\u00a2\u0006\u0002\u0010\nJ\u0016\u0010\u001f\u001a\u00020 2\u000c\u0010!\u001a\u0008\u0018\u00010\"R\u00020\u000cH\u0002J\u0008\u0010#\u001a\u00020 H\u0016J\u0006\u0010$\u001a\u00020 J\r\u0010\u0003\u001a\u00020\u0004H\u0007\u00a2\u0006\u0002\u0008%J\u0006\u0010&\u001a\u00020 J\u0008\u0010\'\u001a\u00020 H\u0016J\u0017\u0010(\u001a\u0004\u0018\u00010)2\u0006\u0010*\u001a\u00020+H\u0000\u00a2\u0006\u0002\u0008,J\u0006\u0010\u0010\u001a\u00020\u0011J\u0006\u0010-\u001a\u00020 J\u0006\u0010\u0005\u001a\u00020\u0006J\u0006\u0010\u0015\u001a\u00020\u0011J\u0017\u0010.\u001a\u0004\u0018\u00010/2\u0006\u00100\u001a\u00020)H\u0000\u00a2\u0006\u0002\u00081J\u0015\u00102\u001a\u00020 2\u0006\u0010*\u001a\u00020+H\u0000\u00a2\u0006\u0002\u00083J\u0006\u0010\u0016\u001a\u00020\u0011J\u0006\u00104\u001a\u00020\u0006J\r\u00105\u001a\u00020 H\u0000\u00a2\u0006\u0002\u00086J\u0015\u00107\u001a\u00020 2\u0006\u00108\u001a\u000209H\u0000\u00a2\u0006\u0002\u0008:J\u001d\u0010;\u001a\u00020 2\u0006\u0010<\u001a\u00020)2\u0006\u0010=\u001a\u00020)H\u0000\u00a2\u0006\u0002\u0008>J\u000c\u0010?\u001a\u0008\u0012\u0004\u0012\u00020A0@J\u0006\u0010\u0017\u001a\u00020\u0011J\u0006\u0010\u001c\u001a\u00020\u0011R\u0014\u0010\u000b\u001a\u00020\u000cX\u0080\u0004\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\r\u0010\u000eR\u0011\u0010\u0003\u001a\u00020\u00048G\u00a2\u0006\u0006\u001a\u0004\u0008\u0003\u0010\u000fR\u000e\u0010\u0010\u001a\u00020\u0011X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0011\u0010\u0012\u001a\u00020\u00138F\u00a2\u0006\u0006\u001a\u0004\u0008\u0012\u0010\u0014R\u000e\u0010\u0015\u001a\u00020\u0011X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0016\u001a\u00020\u0011X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u001a\u0010\u0017\u001a\u00020\u0011X\u0080\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u0018\u0010\u0019\"\u0004\u0008\u001a\u0010\u001bR\u001a\u0010\u001c\u001a\u00020\u0011X\u0080\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u001d\u0010\u0019\"\u0004\u0008\u001e\u0010\u001b\u00a8\u0006F" } d2 = { "Lokhttp3/Cache;", "Ljava/io/Closeable;", "Ljava/io/Flushable;", "directory", "Ljava/io/File;", "maxSize", "", "(Ljava/io/File;J)V", "fileSystem", "Lokhttp3/internal/io/FileSystem;", "(Ljava/io/File;JLokhttp3/internal/io/FileSystem;)V", "cache", "Lokhttp3/internal/cache/DiskLruCache;", "getCache$okhttp", "()Lokhttp3/internal/cache/DiskLruCache;", "()Ljava/io/File;", "hitCount", "", "isClosed", "", "()Z", "networkCount", "requestCount", "writeAbortCount", "getWriteAbortCount$okhttp", "()I", "setWriteAbortCount$okhttp", "(I)V", "writeSuccessCount", "getWriteSuccessCount$okhttp", "setWriteSuccessCount$okhttp", "abortQuietly", "", "editor", "Lokhttp3/internal/cache/DiskLruCache$Editor;", "close", "delete", "-deprecated_directory", "evictAll", "flush", "get", "Lokhttp3/Response;", "request", "Lokhttp3/Request;", "get$okhttp", "initialize", "put", "Lokhttp3/internal/cache/CacheRequest;", "response", "put$okhttp", "remove", "remove$okhttp", "size", "trackConditionalCacheHit", "trackConditionalCacheHit$okhttp", "trackResponse", "cacheStrategy", "Lokhttp3/internal/cache/CacheStrategy;", "trackResponse$okhttp", "update", "cached", "network", "update$okhttp", "urls", "", "", "CacheResponseBody", "Companion", "Entry", "RealCacheRequest", "okhttp" } k = 0x1 mv = { 0x1, 0x1, 0x10 } .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; .field private hitCount:I .field private networkCount:I .field private requestCount:I .field private writeAbortCount:I .field private writeSuccessCount:I # direct methods .method static constructor ()V .registers 2 new-instance v0, Lokhttp3/Cache$Companion; const/4 v1, 0x0 invoke-direct {v0, v1}, Lokhttp3/Cache$Companion;->(Lkotlin/jvm/internal/DefaultConstructorMarker;)V sput-object v0, Lokhttp3/Cache;->Companion:Lokhttp3/Cache$Companion; return-void .end method .method public constructor (Ljava/io/File;J)V .registers 5 const-string v0, "directory" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V .line 166 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 .registers 14 const-string v0, "directory" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "fileSystem" invoke-static {p4, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V .line 141 invoke-direct {p0}, Ljava/lang/Object;->()V .line 146 new-instance v0, Lokhttp3/internal/cache/DiskLruCache; const/4 v5, 0x2 .line 152 sget-object v8, Lokhttp3/internal/concurrent/TaskRunner;->INSTANCE:Lokhttp3/internal/concurrent/TaskRunner; const v4, 0x31191 move-object v1, v0 move-object v2, p4 move-object v3, p1 move-wide v6, p2 .line 146 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 .registers 2 if-eqz p1, :cond_5 .line 247 :try_start_2 invoke-virtual {p1}, Lokhttp3/internal/cache/DiskLruCache$Editor;->abort()V :try_end_5 .catch Ljava/io/IOException; {:try_start_2 .. :try_end_5} :catch_5 :catch_5 :cond_5 return-void .end method .method public static final key(Lokhttp3/HttpUrl;)Ljava/lang/String; .registers 2 .annotation runtime Lkotlin/jvm/JvmStatic; .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; .registers 2 .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 .line 365 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 .registers 2 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 354 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 .registers 2 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 274 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; .registers 2 .line 358 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 .registers 2 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 283 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 .registers 2 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 349 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; .registers 6 const-string v0, "request" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V .line 169 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 171 :try_start_10 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_16 .catch Ljava/io/IOException; {:try_start_10 .. :try_end_16} :catch_3e if-eqz v0, :cond_3e .line 177 :try_start_18 new-instance v2, Lokhttp3/Cache$Entry; const/4 v3, 0x0 invoke-virtual {v0, v3}, Lokhttp3/internal/cache/DiskLruCache$Snapshot;->getSource(I)Lokio/Source; move-result-object v3 invoke-direct {v2, v3}, Lokhttp3/Cache$Entry;->(Lokio/Source;)V :try_end_22 .catch Ljava/io/IOException; {:try_start_18 .. :try_end_22} :catch_39 .line 183 invoke-virtual {v2, v0}, Lokhttp3/Cache$Entry;->response(Lokhttp3/internal/cache/DiskLruCache$Snapshot;)Lokhttp3/Response; move-result-object v0 .line 184 invoke-virtual {v2, p1, v0}, Lokhttp3/Cache$Entry;->matches(Lokhttp3/Request;Lokhttp3/Response;)Z move-result p1 if-nez p1, :cond_38 .line 185 invoke-virtual {v0}, Lokhttp3/Response;->body()Lokhttp3/ResponseBody; move-result-object p1 if-eqz p1, :cond_37 check-cast p1, Ljava/io/Closeable; invoke-static {p1}, Lokhttp3/internal/Util;->closeQuietly(Ljava/io/Closeable;)V :cond_37 return-object v1 :cond_38 return-object v0 .line 179 :catch_39 check-cast v0, Ljava/io/Closeable; invoke-static {v0}, Lokhttp3/internal/Util;->closeQuietly(Ljava/io/Closeable;)V :catch_3e :cond_3e return-object v1 .end method .method public final getCache$okhttp()Lokhttp3/internal/cache/DiskLruCache; .registers 2 .line 146 iget-object v0, p0, Lokhttp3/Cache;->cache:Lokhttp3/internal/cache/DiskLruCache; return-object v0 .end method .method public final getWriteAbortCount$okhttp()I .registers 2 .line 157 iget v0, p0, Lokhttp3/Cache;->writeAbortCount:I return v0 .end method .method public final getWriteSuccessCount$okhttp()I .registers 2 .line 156 iget v0, p0, Lokhttp3/Cache;->writeSuccessCount:I return v0 .end method .method public final declared-synchronized hitCount()I .registers 2 monitor-enter p0 .line 385 :try_start_1 iget v0, p0, Lokhttp3/Cache;->hitCount:I :try_end_3 .catchall {:try_start_1 .. :try_end_3} :catchall_5 monitor-exit p0 return v0 :catchall_5 move-exception v0 :try_start_6 monitor-exit p0 :try_end_7 .catchall {:try_start_6 .. :try_end_7} :catchall_5 throw v0 .end method .method public final initialize()V .registers 2 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 265 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 .registers 2 .line 163 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 .registers 3 .line 345 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 .registers 2 monitor-enter p0 .line 383 :try_start_1 iget v0, p0, Lokhttp3/Cache;->networkCount:I :try_end_3 .catchall {:try_start_1 .. :try_end_3} :catchall_5 monitor-exit p0 return v0 :catchall_5 move-exception v0 :try_start_6 monitor-exit p0 :try_end_7 .catchall {:try_start_6 .. :try_end_7} :catchall_5 throw v0 .end method .method public final put$okhttp(Lokhttp3/Response;)Lokhttp3/internal/cache/CacheRequest; .registers 12 const-string v0, "response" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V .line 193 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 195 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_26 .line 197 :try_start_1e 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_25 .catch Ljava/io/IOException; {:try_start_1e .. :try_end_25} :catch_25 :catch_25 return-object v2 .line 204 :cond_26 const-string v1, "GET" invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z move-result v0 if-nez v0, :cond_2f return-object v2 .line 210 :cond_2f 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_38 return-object v2 .line 214 :cond_38 new-instance v1, Lokhttp3/Cache$Entry; invoke-direct {v1, p1}, Lokhttp3/Cache$Entry;->(Lokhttp3/Response;)V .line 215 move-object v3, v2 check-cast v3, Lokhttp3/internal/cache/DiskLruCache$Editor; .line 217 :try_start_40 iget-object v4, 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 v5 const/4 v8, 0x2 const/4 v9, 0x0 const-wide/16 v6, 0x0 invoke-static/range {v4 .. v9}, 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_56 .catch Ljava/io/IOException; {:try_start_40 .. :try_end_56} :catch_64 if-eqz p1, :cond_63 .line 218 :try_start_58 invoke-virtual {v1, p1}, Lokhttp3/Cache$Entry;->writeTo(Lokhttp3/internal/cache/DiskLruCache$Editor;)V .line 219 new-instance v0, Lokhttp3/Cache$RealCacheRequest; invoke-direct {v0, p0, p1}, Lokhttp3/Cache$RealCacheRequest;->(Lokhttp3/Cache;Lokhttp3/internal/cache/DiskLruCache$Editor;)V check-cast v0, Lokhttp3/internal/cache/CacheRequest; :try_end_62 .catch Ljava/io/IOException; {:try_start_58 .. :try_end_62} :catch_65 return-object v0 :cond_63 return-object v2 :catch_64 move-object p1, v2 .line 221 :catch_65 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 .registers 4 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const-string v0, "request" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V .line 228 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 .registers 2 monitor-enter p0 .line 387 :try_start_1 iget v0, p0, Lokhttp3/Cache;->requestCount:I :try_end_3 .catchall {:try_start_1 .. :try_end_3} :catchall_5 monitor-exit p0 return v0 :catchall_5 move-exception v0 :try_start_6 monitor-exit p0 :try_end_7 .catchall {:try_start_6 .. :try_end_7} :catchall_5 throw v0 .end method .method public final setWriteAbortCount$okhttp(I)V .registers 2 .line 157 iput p1, p0, Lokhttp3/Cache;->writeAbortCount:I return-void .end method .method public final setWriteSuccessCount$okhttp(I)V .registers 2 .line 156 iput p1, p0, Lokhttp3/Cache;->writeSuccessCount:I return-void .end method .method public final size()J .registers 3 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 342 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 .registers 2 monitor-enter p0 .line 380 :try_start_1 iget v0, p0, Lokhttp3/Cache;->hitCount:I add-int/lit8 v0, v0, 0x1 iput v0, p0, Lokhttp3/Cache;->hitCount:I :try_end_7 .catchall {:try_start_1 .. :try_end_7} :catchall_9 .line 381 monitor-exit p0 return-void :catchall_9 move-exception v0 :try_start_a monitor-exit p0 :try_end_b .catchall {:try_start_a .. :try_end_b} :catchall_9 throw v0 .end method .method public final declared-synchronized trackResponse$okhttp(Lokhttp3/internal/cache/CacheStrategy;)V .registers 3 monitor-enter p0 :try_start_1 const-string v0, "cacheStrategy" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V .line 368 iget v0, p0, Lokhttp3/Cache;->requestCount:I add-int/lit8 v0, v0, 0x1 iput v0, p0, Lokhttp3/Cache;->requestCount:I .line 370 invoke-virtual {p1}, Lokhttp3/internal/cache/CacheStrategy;->getNetworkRequest()Lokhttp3/Request; move-result-object v0 if-eqz v0, :cond_19 .line 372 iget p1, p0, Lokhttp3/Cache;->networkCount:I add-int/lit8 p1, p1, 0x1 iput p1, p0, Lokhttp3/Cache;->networkCount:I goto :goto_25 .line 373 :cond_19 invoke-virtual {p1}, Lokhttp3/internal/cache/CacheStrategy;->getCacheResponse()Lokhttp3/Response; move-result-object p1 if-eqz p1, :cond_25 .line 375 iget p1, p0, Lokhttp3/Cache;->hitCount:I add-int/lit8 p1, p1, 0x1 iput p1, p0, Lokhttp3/Cache;->hitCount:I :try_end_25 .catchall {:try_start_1 .. :try_end_25} :catchall_27 .line 377 :cond_25 :goto_25 monitor-exit p0 return-void :catchall_27 move-exception p1 :try_start_28 monitor-exit p0 :try_end_29 .catchall {:try_start_28 .. :try_end_29} :catchall_27 throw p1 .end method .method public final update$okhttp(Lokhttp3/Response;Lokhttp3/Response;)V .registers 5 const-string v0, "cached" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "network" invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V .line 232 new-instance v0, Lokhttp3/Cache$Entry; invoke-direct {v0, p2}, Lokhttp3/Cache$Entry;->(Lokhttp3/Response;)V .line 233 invoke-virtual {p1}, Lokhttp3/Response;->body()Lokhttp3/ResponseBody; move-result-object p1 if-eqz p1, :cond_31 check-cast p1, Lokhttp3/Cache$CacheResponseBody; invoke-virtual {p1}, Lokhttp3/Cache$CacheResponseBody;->getSnapshot$okhttp()Lokhttp3/internal/cache/DiskLruCache$Snapshot; move-result-object p1 const/4 p2, 0x0 .line 234 move-object v1, p2 check-cast v1, Lokhttp3/internal/cache/DiskLruCache$Editor; .line 236 :try_start_1f invoke-virtual {p1}, Lokhttp3/internal/cache/DiskLruCache$Snapshot;->edit()Lokhttp3/internal/cache/DiskLruCache$Editor; move-result-object p2 if-eqz p2, :cond_2c .line 237 invoke-virtual {v0, p2}, Lokhttp3/Cache$Entry;->writeTo(Lokhttp3/internal/cache/DiskLruCache$Editor;)V .line 238 invoke-virtual {p2}, Lokhttp3/internal/cache/DiskLruCache$Editor;->commit()V :try_end_2b .catch Ljava/io/IOException; {:try_start_1f .. :try_end_2b} :catch_2d goto :goto_30 :cond_2c return-void .line 240 :catch_2d invoke-direct {p0, p2}, Lokhttp3/Cache;->abortQuietly(Lokhttp3/internal/cache/DiskLruCache$Editor;)V :goto_30 return-void .line 233 :cond_31 new-instance p1, Lkotlin/TypeCastException; const-string p2, "null cannot be cast to non-null type okhttp3.Cache.CacheResponseBody" invoke-direct {p1, p2}, Lkotlin/TypeCastException;->(Ljava/lang/String;)V throw p1 .end method .method public final urls()Ljava/util/Iterator; .registers 2 .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 .line 297 new-instance v0, Lokhttp3/Cache$urls$1; invoke-direct {v0, p0}, Lokhttp3/Cache$urls$1;->(Lokhttp3/Cache;)V check-cast v0, Ljava/util/Iterator; return-object v0 .end method .method public final declared-synchronized writeAbortCount()I .registers 2 monitor-enter p0 .line 337 :try_start_1 iget v0, p0, Lokhttp3/Cache;->writeAbortCount:I :try_end_3 .catchall {:try_start_1 .. :try_end_3} :catchall_5 monitor-exit p0 return v0 :catchall_5 move-exception v0 :try_start_6 monitor-exit p0 :try_end_7 .catchall {:try_start_6 .. :try_end_7} :catchall_5 throw v0 .end method .method public final declared-synchronized writeSuccessCount()I .registers 2 monitor-enter p0 .line 339 :try_start_1 iget v0, p0, Lokhttp3/Cache;->writeSuccessCount:I :try_end_3 .catchall {:try_start_1 .. :try_end_3} :catchall_5 monitor-exit p0 return v0 :catchall_5 move-exception v0 :try_start_6 monitor-exit p0 :try_end_7 .catchall {:try_start_6 .. :try_end_7} :catchall_5 throw v0 .end method