a$1.smali
.class final Lokhttp3/internal/a/a$1;
.super Ljava/lang/Object;
.source "CacheInterceptor.java"
# interfaces
.implements Lokio/s;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lokhttp3/internal/a/a;
.end annotation
# instance fields
.field private bAG:Z
.field private synthetic bAH:Lokio/f;
.field private synthetic bAI:Lokio/e;
# direct methods
.method constructor <init>(Lokio/f;Lokio/e;)V
.registers 3
.prologue
.line 168
iput-object p1, p0, Lokhttp3/internal/a/a$1;->bAH:Lokio/f;
iput-object p2, p0, Lokhttp3/internal/a/a$1;->bAI:Lokio/e;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final close()V
.registers 2
.prologue
.line 201
iget-boolean v0, p0, Lokhttp3/internal/a/a$1;->bAG:Z
if-nez v0, :cond_f
sget-object v0, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
.line 202
invoke-static {p0, v0}, Lokhttp3/internal/c;->a(Lokio/s;Ljava/util/concurrent/TimeUnit;)Z
move-result v0
if-nez v0, :cond_f
.line 203
const/4 v0, 0x1
iput-boolean v0, p0, Lokhttp3/internal/a/a$1;->bAG:Z
.line 206
:cond_f
iget-object v0, p0, Lokhttp3/internal/a/a$1;->bAH:Lokio/f;
invoke-interface {v0}, Lokio/f;->close()V
.line 207
return-void
.end method
.method public final read(Lokio/d;J)J
.registers 10
.prologue
const-wide/16 v0, -0x1
const/4 v3, 0x1
.line 174
:try_start_3
iget-object v2, p0, Lokhttp3/internal/a/a$1;->bAH:Lokio/f;
invoke-interface {v2, p1, p2, p3}, Lokio/f;->read(Lokio/d;J)J
:try_end_8
.catch Ljava/io/IOException; {:try_start_3 .. :try_end_8} :catch_1a
move-result-wide v4
.line 183
cmp-long v2, v4, v0
if-nez v2, :cond_22
.line 184
iget-boolean v2, p0, Lokhttp3/internal/a/a$1;->bAG:Z
if-nez v2, :cond_18
.line 185
iput-boolean v3, p0, Lokhttp3/internal/a/a$1;->bAG:Z
.line 186
iget-object v2, p0, Lokhttp3/internal/a/a$1;->bAI:Lokio/e;
invoke-interface {v2}, Lokio/e;->close()V
:cond_18
move-wide v4, v0
.line 193
:goto_19
return-wide v4
.line 175
:catch_1a
move-exception v0
.line 176
iget-boolean v1, p0, Lokhttp3/internal/a/a$1;->bAG:Z
if-nez v1, :cond_21
.line 177
iput-boolean v3, p0, Lokhttp3/internal/a/a$1;->bAG:Z
.line 180
:cond_21
throw v0
.line 191
:cond_22
iget-object v0, p0, Lokhttp3/internal/a/a$1;->bAI:Lokio/e;
invoke-interface {v0}, Lokio/e;->Sg()Lokio/d;
move-result-object v1
.line 1067
iget-wide v2, p1, Lokio/d;->size:J
.line 191
sub-long/2addr v2, v4
move-object v0, p1
invoke-virtual/range {v0 .. v5}, Lokio/d;->a(Lokio/d;JJ)Lokio/d;
.line 192
iget-object v0, p0, Lokhttp3/internal/a/a$1;->bAI:Lokio/e;
invoke-interface {v0}, Lokio/e;->Ss()Lokio/e;
goto :goto_19
.end method
.method public final timeout()Lokio/t;
.registers 2
.prologue
.line 197
iget-object v0, p0, Lokhttp3/internal/a/a$1;->bAH:Lokio/f;
invoke-interface {v0}, Lokio/f;->timeout()Lokio/t;
move-result-object v0
return-object v0
.end method