123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- .class Lokhttp3/internal/cache/DiskLruCache$1;
- .super Ljava/lang/Object;
- .source ""
- # interfaces
- .implements Ljava/lang/Runnable;
- # annotations
- .annotation system Ldalvik/annotation/EnclosingClass;
- value = Lokhttp3/internal/cache/DiskLruCache;
- .end annotation
- .annotation system Ldalvik/annotation/InnerClass;
- accessFlags = 0x0
- name = null
- .end annotation
- # instance fields
- .field final synthetic this$0:Lokhttp3/internal/cache/DiskLruCache;
- # direct methods
- .method constructor <init>(Lokhttp3/internal/cache/DiskLruCache;)V
- .locals 0
- iput-object p1, p0, Lokhttp3/internal/cache/DiskLruCache$1;->this$0:Lokhttp3/internal/cache/DiskLruCache;
- invoke-direct {p0}, Ljava/lang/Object;-><init>()V
- return-void
- .end method
- # virtual methods
- .method public run()V
- .locals 5
- iget-object v0, p0, Lokhttp3/internal/cache/DiskLruCache$1;->this$0:Lokhttp3/internal/cache/DiskLruCache;
- monitor-enter v0
- :try_start_0
- iget-object v1, p0, Lokhttp3/internal/cache/DiskLruCache$1;->this$0:Lokhttp3/internal/cache/DiskLruCache;
- iget-boolean v1, v1, Lokhttp3/internal/cache/DiskLruCache;->initialized:Z
- const/4 v2, 0x0
- const/4 v3, 0x1
- if-nez v1, :cond_0
- const/4 v1, 0x1
- goto :goto_0
- :cond_0
- const/4 v1, 0x0
- :goto_0
- iget-object v4, p0, Lokhttp3/internal/cache/DiskLruCache$1;->this$0:Lokhttp3/internal/cache/DiskLruCache;
- iget-boolean v4, v4, Lokhttp3/internal/cache/DiskLruCache;->closed:Z
- or-int/2addr v1, v4
- if-eqz v1, :cond_1
- monitor-exit v0
- :try_end_0
- .catchall {:try_start_0 .. :try_end_0} :catchall_0
- return-void
- :cond_1
- :try_start_1
- iget-object v1, p0, Lokhttp3/internal/cache/DiskLruCache$1;->this$0:Lokhttp3/internal/cache/DiskLruCache;
- invoke-virtual {v1}, Lokhttp3/internal/cache/DiskLruCache;->trimToSize()V
- :try_end_1
- .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
- .catchall {:try_start_1 .. :try_end_1} :catchall_0
- goto :goto_1
- :catch_0
- :try_start_2
- iget-object v1, p0, Lokhttp3/internal/cache/DiskLruCache$1;->this$0:Lokhttp3/internal/cache/DiskLruCache;
- iput-boolean v3, v1, Lokhttp3/internal/cache/DiskLruCache;->mostRecentTrimFailed:Z
- :try_end_2
- .catchall {:try_start_2 .. :try_end_2} :catchall_0
- :goto_1
- :try_start_3
- iget-object v1, p0, Lokhttp3/internal/cache/DiskLruCache$1;->this$0:Lokhttp3/internal/cache/DiskLruCache;
- invoke-virtual {v1}, Lokhttp3/internal/cache/DiskLruCache;->journalRebuildRequired()Z
- move-result v1
- if-eqz v1, :cond_2
- iget-object v1, p0, Lokhttp3/internal/cache/DiskLruCache$1;->this$0:Lokhttp3/internal/cache/DiskLruCache;
- invoke-virtual {v1}, Lokhttp3/internal/cache/DiskLruCache;->rebuildJournal()V
- iget-object v1, p0, Lokhttp3/internal/cache/DiskLruCache$1;->this$0:Lokhttp3/internal/cache/DiskLruCache;
- iput v2, v1, Lokhttp3/internal/cache/DiskLruCache;->redundantOpCount:I
- :try_end_3
- .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_1
- .catchall {:try_start_3 .. :try_end_3} :catchall_0
- goto :goto_2
- :catch_1
- :try_start_4
- iget-object v1, p0, Lokhttp3/internal/cache/DiskLruCache$1;->this$0:Lokhttp3/internal/cache/DiskLruCache;
- iput-boolean v3, v1, Lokhttp3/internal/cache/DiskLruCache;->mostRecentRebuildFailed:Z
- iget-object v1, p0, Lokhttp3/internal/cache/DiskLruCache$1;->this$0:Lokhttp3/internal/cache/DiskLruCache;
- invoke-static {}, Lokio/Okio;->blackhole()Lokio/Sink;
- move-result-object v2
- invoke-static {v2}, Lokio/Okio;->buffer(Lokio/Sink;)Lokio/BufferedSink;
- move-result-object v2
- iput-object v2, v1, Lokhttp3/internal/cache/DiskLruCache;->journalWriter:Lokio/BufferedSink;
- :cond_2
- :goto_2
- monitor-exit v0
- return-void
- :catchall_0
- move-exception v1
- monitor-exit v0
- :try_end_4
- .catchall {:try_start_4 .. :try_end_4} :catchall_0
- throw v1
- .end method
|