167 lines
3.6 KiB
Smali
167 lines
3.6 KiB
Smali
.class final Lokhttp3/internal/a/a$1;
|
|
.super Ljava/lang/Object;
|
|
.source "CacheInterceptor.java"
|
|
|
|
# interfaces
|
|
.implements Lokio/r;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lokhttp3/internal/a/a;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x0
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field bvC:Z
|
|
|
|
.field final synthetic bvD:Lokio/d;
|
|
|
|
.field final synthetic bvE:Lokhttp3/internal/a/b;
|
|
|
|
.field final synthetic bvF:Lokio/BufferedSink;
|
|
|
|
.field final synthetic bvG:Lokhttp3/internal/a/a;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lokhttp3/internal/a/a;Lokio/d;Lokhttp3/internal/a/b;Lokio/BufferedSink;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lokhttp3/internal/a/a$1;->bvG:Lokhttp3/internal/a/a;
|
|
|
|
iput-object p2, p0, Lokhttp3/internal/a/a$1;->bvD:Lokio/d;
|
|
|
|
iput-object p3, p0, Lokhttp3/internal/a/a$1;->bvE:Lokhttp3/internal/a/b;
|
|
|
|
iput-object p4, p0, Lokhttp3/internal/a/a$1;->bvF:Lokio/BufferedSink;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Lokio/c;J)J
|
|
.locals 8
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x1
|
|
|
|
:try_start_0
|
|
iget-object v1, p0, Lokhttp3/internal/a/a$1;->bvD:Lokio/d;
|
|
|
|
invoke-interface {v1, p1, p2, p3}, Lokio/d;->a(Lokio/c;J)J
|
|
|
|
move-result-wide p2
|
|
:try_end_0
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
const-wide/16 v1, -0x1
|
|
|
|
cmp-long v3, p2, v1
|
|
|
|
if-nez v3, :cond_1
|
|
|
|
iget-boolean p1, p0, Lokhttp3/internal/a/a$1;->bvC:Z
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
iput-boolean v0, p0, Lokhttp3/internal/a/a$1;->bvC:Z
|
|
|
|
iget-object p1, p0, Lokhttp3/internal/a/a$1;->bvF:Lokio/BufferedSink;
|
|
|
|
invoke-interface {p1}, Lokio/BufferedSink;->close()V
|
|
|
|
:cond_0
|
|
return-wide v1
|
|
|
|
:cond_1
|
|
iget-object v0, p0, Lokhttp3/internal/a/a$1;->bvF:Lokio/BufferedSink;
|
|
|
|
invoke-interface {v0}, Lokio/BufferedSink;->Ih()Lokio/c;
|
|
|
|
move-result-object v3
|
|
|
|
iget-wide v0, p1, Lokio/c;->size:J
|
|
|
|
sub-long v4, v0, p2
|
|
|
|
move-object v2, p1
|
|
|
|
move-wide v6, p2
|
|
|
|
invoke-virtual/range {v2 .. v7}, Lokio/c;->a(Lokio/c;JJ)Lokio/c;
|
|
|
|
iget-object p1, p0, Lokhttp3/internal/a/a$1;->bvF:Lokio/BufferedSink;
|
|
|
|
invoke-interface {p1}, Lokio/BufferedSink;->Iu()Lokio/BufferedSink;
|
|
|
|
return-wide p2
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
iget-boolean p2, p0, Lokhttp3/internal/a/a$1;->bvC:Z
|
|
|
|
if-nez p2, :cond_2
|
|
|
|
iput-boolean v0, p0, Lokhttp3/internal/a/a$1;->bvC:Z
|
|
|
|
:cond_2
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final close()V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
iget-boolean v0, p0, Lokhttp3/internal/a/a$1;->bvC:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
sget-object v0, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
invoke-static {p0, v0}, Lokhttp3/internal/c;->a(Lokio/r;Ljava/util/concurrent/TimeUnit;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p0, Lokhttp3/internal/a/a$1;->bvC:Z
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lokhttp3/internal/a/a$1;->bvD:Lokio/d;
|
|
|
|
invoke-interface {v0}, Lokio/d;->close()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final timeout()Lokio/s;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/a/a$1;->bvD:Lokio/d;
|
|
|
|
invoke-interface {v0}, Lokio/d;->timeout()Lokio/s;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|