1100 lines
26 KiB
Smali
1100 lines
26 KiB
Smali
.class public final Lx/d0/a;
|
|
.super Ljava/lang/Object;
|
|
.source "HttpLoggingInterceptor.kt"
|
|
|
|
# interfaces
|
|
.implements Lokhttp3/Interceptor;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lx/d0/a$a;,
|
|
Lx/d0/a$b;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public volatile b:Ljava/util/Set;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Set<",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public volatile c:Lx/d0/a$a;
|
|
|
|
.field public final d:Lx/d0/a$b;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lx/d0/a$b;)V
|
|
.locals 0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lx/d0/a;->d:Lx/d0/a$b;
|
|
|
|
sget-object p1, Lt/q/q;->d:Lt/q/q;
|
|
|
|
iput-object p1, p0, Lx/d0/a;->b:Ljava/util/Set;
|
|
|
|
sget-object p1, Lx/d0/a$a;->d:Lx/d0/a$a;
|
|
|
|
iput-object p1, p0, Lx/d0/a;->c:Lx/d0/a$a;
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p1, "logger"
|
|
|
|
invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Lokhttp3/Headers;I)V
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lx/d0/a;->b:Ljava/util/Set;
|
|
|
|
invoke-virtual {p1, p2}, Lokhttp3/Headers;->g(I)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string v0, "\u2588\u2588"
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {p1, p2}, Lokhttp3/Headers;->h(I)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_0
|
|
iget-object v1, p0, Lx/d0/a;->d:Lx/d0/a$b;
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {p1, p2}, Lokhttp3/Headers;->g(I)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string p1, ": "
|
|
|
|
invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-interface {v1, p1}, Lx/d0/a$b;->log(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final a(Lokhttp3/Headers;)Z
|
|
.locals 3
|
|
|
|
const-string v0, "Content-Encoding"
|
|
|
|
invoke-virtual {p1, v0}, Lokhttp3/Headers;->a(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const-string v2, "identity"
|
|
|
|
invoke-static {p1, v2, v1}, Lt/a0/n;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
const-string v2, "gzip"
|
|
|
|
invoke-static {p1, v2, v1}, Lt/a0/n;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
:cond_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public intercept(Lokhttp3/Interceptor$Chain;)Lokhttp3/Response;
|
|
.locals 21
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
move-object/from16 v1, p0
|
|
|
|
move-object/from16 v0, p1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v0, :cond_20
|
|
|
|
iget-object v3, v1, Lx/d0/a;->c:Lx/d0/a$a;
|
|
|
|
invoke-interface/range {p1 .. p1}, Lokhttp3/Interceptor$Chain;->e()Lx/y;
|
|
|
|
move-result-object v4
|
|
|
|
sget-object v5, Lx/d0/a$a;->d:Lx/d0/a$a;
|
|
|
|
if-ne v3, v5, :cond_0
|
|
|
|
invoke-interface {v0, v4}, Lokhttp3/Interceptor$Chain;->a(Lx/y;)Lokhttp3/Response;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
sget-object v5, Lx/d0/a$a;->g:Lx/d0/a$a;
|
|
|
|
if-ne v3, v5, :cond_1
|
|
|
|
const/4 v5, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v5, 0x0
|
|
|
|
:goto_0
|
|
if-nez v5, :cond_3
|
|
|
|
sget-object v6, Lx/d0/a$a;->f:Lx/d0/a$a;
|
|
|
|
if-ne v3, v6, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const/4 v3, 0x0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
:goto_1
|
|
const/4 v3, 0x1
|
|
|
|
:goto_2
|
|
iget-object v6, v4, Lx/y;->e:Lokhttp3/RequestBody;
|
|
|
|
invoke-interface/range {p1 .. p1}, Lokhttp3/Interceptor$Chain;->a()Lx/i;
|
|
|
|
move-result-object v7
|
|
|
|
const-string v8, "--> "
|
|
|
|
invoke-static {v8}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v8
|
|
|
|
iget-object v9, v4, Lx/y;->c:Ljava/lang/String;
|
|
|
|
invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const/16 v9, 0x20
|
|
|
|
invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v9, v4, Lx/y;->b:Lx/u;
|
|
|
|
invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v9, ""
|
|
|
|
if-eqz v7, :cond_5
|
|
|
|
const-string v10, " "
|
|
|
|
invoke-static {v10}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v10
|
|
|
|
check-cast v7, Lx/c0/c/i;
|
|
|
|
iget-object v7, v7, Lx/c0/c/i;->e:Lx/w;
|
|
|
|
if-eqz v7, :cond_4
|
|
|
|
invoke-virtual {v10, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
goto :goto_3
|
|
|
|
:cond_4
|
|
invoke-static {}, Lt/u/b/j;->throwNpe()V
|
|
|
|
throw v2
|
|
|
|
:cond_5
|
|
move-object v2, v9
|
|
|
|
:goto_3
|
|
invoke-virtual {v8, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v7, "-byte body)"
|
|
|
|
const-string v8, " ("
|
|
|
|
if-nez v3, :cond_6
|
|
|
|
if-eqz v6, :cond_6
|
|
|
|
invoke-static {v2, v8}, Le/e/b/a/a;->b(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v6}, Lokhttp3/RequestBody;->contentLength()J
|
|
|
|
move-result-wide v10
|
|
|
|
invoke-virtual {v2, v10, v11}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
:cond_6
|
|
iget-object v10, v1, Lx/d0/a;->d:Lx/d0/a$b;
|
|
|
|
invoke-interface {v10, v2}, Lx/d0/a$b;->log(Ljava/lang/String;)V
|
|
|
|
const-string v2, "-byte body omitted)"
|
|
|
|
const-string v10, "UTF_8"
|
|
|
|
if-eqz v3, :cond_10
|
|
|
|
iget-object v13, v4, Lx/y;->d:Lokhttp3/Headers;
|
|
|
|
if-eqz v6, :cond_8
|
|
|
|
invoke-virtual {v6}, Lokhttp3/RequestBody;->contentType()Lokhttp3/MediaType;
|
|
|
|
move-result-object v14
|
|
|
|
if-eqz v14, :cond_7
|
|
|
|
const-string v15, "Content-Type"
|
|
|
|
invoke-virtual {v13, v15}, Lokhttp3/Headers;->a(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v15
|
|
|
|
if-nez v15, :cond_7
|
|
|
|
iget-object v15, v1, Lx/d0/a;->d:Lx/d0/a$b;
|
|
|
|
new-instance v11, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v11}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v12, "Content-Type: "
|
|
|
|
invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v11, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v11
|
|
|
|
invoke-interface {v15, v11}, Lx/d0/a$b;->log(Ljava/lang/String;)V
|
|
|
|
:cond_7
|
|
invoke-virtual {v6}, Lokhttp3/RequestBody;->contentLength()J
|
|
|
|
move-result-wide v11
|
|
|
|
const-wide/16 v14, -0x1
|
|
|
|
cmp-long v18, v11, v14
|
|
|
|
if-eqz v18, :cond_8
|
|
|
|
const-string v11, "Content-Length"
|
|
|
|
invoke-virtual {v13, v11}, Lokhttp3/Headers;->a(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v11
|
|
|
|
if-nez v11, :cond_8
|
|
|
|
iget-object v11, v1, Lx/d0/a;->d:Lx/d0/a$b;
|
|
|
|
const-string v12, "Content-Length: "
|
|
|
|
invoke-static {v12}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v12
|
|
|
|
invoke-virtual {v6}, Lokhttp3/RequestBody;->contentLength()J
|
|
|
|
move-result-wide v14
|
|
|
|
invoke-virtual {v12, v14, v15}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v12
|
|
|
|
invoke-interface {v11, v12}, Lx/d0/a$b;->log(Ljava/lang/String;)V
|
|
|
|
:cond_8
|
|
invoke-virtual {v13}, Lokhttp3/Headers;->size()I
|
|
|
|
move-result v11
|
|
|
|
const/4 v12, 0x0
|
|
|
|
:goto_4
|
|
if-ge v12, v11, :cond_9
|
|
|
|
invoke-virtual {v1, v13, v12}, Lx/d0/a;->a(Lokhttp3/Headers;I)V
|
|
|
|
add-int/lit8 v12, v12, 0x1
|
|
|
|
goto :goto_4
|
|
|
|
:cond_9
|
|
const-string v11, "--> END "
|
|
|
|
if-eqz v5, :cond_f
|
|
|
|
if-nez v6, :cond_a
|
|
|
|
goto/16 :goto_6
|
|
|
|
:cond_a
|
|
iget-object v12, v4, Lx/y;->d:Lokhttp3/Headers;
|
|
|
|
invoke-virtual {v1, v12}, Lx/d0/a;->a(Lokhttp3/Headers;)Z
|
|
|
|
move-result v12
|
|
|
|
if-eqz v12, :cond_b
|
|
|
|
iget-object v6, v1, Lx/d0/a;->d:Lx/d0/a$b;
|
|
|
|
invoke-static {v11}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v11
|
|
|
|
iget-object v12, v4, Lx/y;->c:Ljava/lang/String;
|
|
|
|
invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v12, " (encoded body omitted)"
|
|
|
|
invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v11
|
|
|
|
invoke-interface {v6, v11}, Lx/d0/a$b;->log(Ljava/lang/String;)V
|
|
|
|
goto/16 :goto_7
|
|
|
|
:cond_b
|
|
invoke-virtual {v6}, Lokhttp3/RequestBody;->isDuplex()Z
|
|
|
|
move-result v12
|
|
|
|
if-eqz v12, :cond_c
|
|
|
|
iget-object v6, v1, Lx/d0/a;->d:Lx/d0/a$b;
|
|
|
|
invoke-static {v11}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v11
|
|
|
|
iget-object v12, v4, Lx/y;->c:Ljava/lang/String;
|
|
|
|
invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v12, " (duplex request body omitted)"
|
|
|
|
invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v11
|
|
|
|
invoke-interface {v6, v11}, Lx/d0/a$b;->log(Ljava/lang/String;)V
|
|
|
|
goto/16 :goto_7
|
|
|
|
:cond_c
|
|
new-instance v12, Ly/e;
|
|
|
|
invoke-direct {v12}, Ly/e;-><init>()V
|
|
|
|
invoke-virtual {v6, v12}, Lokhttp3/RequestBody;->writeTo(Lokio/BufferedSink;)V
|
|
|
|
invoke-virtual {v6}, Lokhttp3/RequestBody;->contentType()Lokhttp3/MediaType;
|
|
|
|
move-result-object v13
|
|
|
|
if-eqz v13, :cond_d
|
|
|
|
sget-object v14, Ljava/nio/charset/StandardCharsets;->UTF_8:Ljava/nio/charset/Charset;
|
|
|
|
invoke-virtual {v13, v14}, Lokhttp3/MediaType;->a(Ljava/nio/charset/Charset;)Ljava/nio/charset/Charset;
|
|
|
|
move-result-object v13
|
|
|
|
if-eqz v13, :cond_d
|
|
|
|
goto :goto_5
|
|
|
|
:cond_d
|
|
sget-object v13, Ljava/nio/charset/StandardCharsets;->UTF_8:Ljava/nio/charset/Charset;
|
|
|
|
invoke-static {v13, v10}, Lt/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
:goto_5
|
|
iget-object v14, v1, Lx/d0/a;->d:Lx/d0/a$b;
|
|
|
|
invoke-interface {v14, v9}, Lx/d0/a$b;->log(Ljava/lang/String;)V
|
|
|
|
invoke-static {v12}, Lu/a/a2/w;->a(Ly/e;)Z
|
|
|
|
move-result v14
|
|
|
|
if-eqz v14, :cond_e
|
|
|
|
iget-object v14, v1, Lx/d0/a;->d:Lx/d0/a$b;
|
|
|
|
invoke-virtual {v12, v13}, Ly/e;->a(Ljava/nio/charset/Charset;)Ljava/lang/String;
|
|
|
|
move-result-object v12
|
|
|
|
invoke-interface {v14, v12}, Lx/d0/a$b;->log(Ljava/lang/String;)V
|
|
|
|
iget-object v12, v1, Lx/d0/a;->d:Lx/d0/a$b;
|
|
|
|
invoke-static {v11}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v11
|
|
|
|
iget-object v13, v4, Lx/y;->c:Ljava/lang/String;
|
|
|
|
invoke-virtual {v11, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v11, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v6}, Lokhttp3/RequestBody;->contentLength()J
|
|
|
|
move-result-wide v13
|
|
|
|
invoke-virtual {v11, v13, v14}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v11, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-interface {v12, v6}, Lx/d0/a$b;->log(Ljava/lang/String;)V
|
|
|
|
goto :goto_7
|
|
|
|
:cond_e
|
|
iget-object v12, v1, Lx/d0/a;->d:Lx/d0/a$b;
|
|
|
|
invoke-static {v11}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v11
|
|
|
|
iget-object v13, v4, Lx/y;->c:Ljava/lang/String;
|
|
|
|
invoke-virtual {v11, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v13, " (binary "
|
|
|
|
invoke-virtual {v11, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v6}, Lokhttp3/RequestBody;->contentLength()J
|
|
|
|
move-result-wide v13
|
|
|
|
invoke-virtual {v11, v13, v14}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v11, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-interface {v12, v6}, Lx/d0/a$b;->log(Ljava/lang/String;)V
|
|
|
|
goto :goto_7
|
|
|
|
:cond_f
|
|
:goto_6
|
|
iget-object v6, v1, Lx/d0/a;->d:Lx/d0/a$b;
|
|
|
|
invoke-static {v11}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v11
|
|
|
|
iget-object v12, v4, Lx/y;->c:Ljava/lang/String;
|
|
|
|
invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v11
|
|
|
|
invoke-interface {v6, v11}, Lx/d0/a$b;->log(Ljava/lang/String;)V
|
|
|
|
:cond_10
|
|
:goto_7
|
|
invoke-static {}, Ljava/lang/System;->nanoTime()J
|
|
|
|
move-result-wide v11
|
|
|
|
:try_start_0
|
|
invoke-interface {v0, v4}, Lokhttp3/Interceptor$Chain;->a(Lx/y;)Lokhttp3/Response;
|
|
|
|
move-result-object v0
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
sget-object v4, Ljava/util/concurrent/TimeUnit;->NANOSECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
invoke-static {}, Ljava/lang/System;->nanoTime()J
|
|
|
|
move-result-wide v13
|
|
|
|
sub-long/2addr v13, v11
|
|
|
|
invoke-virtual {v4, v13, v14}, Ljava/util/concurrent/TimeUnit;->toMillis(J)J
|
|
|
|
move-result-wide v11
|
|
|
|
invoke-virtual {v0}, Lokhttp3/Response;->a()Lx/z;
|
|
|
|
move-result-object v4
|
|
|
|
if-eqz v4, :cond_1f
|
|
|
|
invoke-virtual {v4}, Lx/z;->b()J
|
|
|
|
move-result-wide v13
|
|
|
|
const-wide/16 v15, -0x1
|
|
|
|
cmp-long v6, v13, v15
|
|
|
|
if-eqz v6, :cond_11
|
|
|
|
new-instance v6, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {v6, v13, v14}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
const-string v15, "-byte"
|
|
|
|
invoke-virtual {v6, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
goto :goto_8
|
|
|
|
:cond_11
|
|
const-string v6, "unknown-length"
|
|
|
|
:goto_8
|
|
iget-object v15, v1, Lx/d0/a;->d:Lx/d0/a$b;
|
|
|
|
const-string v16, "<-- "
|
|
|
|
move-object/from16 v17, v7
|
|
|
|
invoke-static/range {v16 .. v16}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v7
|
|
|
|
move-wide/from16 v18, v13
|
|
|
|
invoke-virtual {v0}, Lokhttp3/Response;->c()I
|
|
|
|
move-result v13
|
|
|
|
invoke-virtual {v7, v13}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Lokhttp3/Response;->i()Ljava/lang/String;
|
|
|
|
move-result-object v13
|
|
|
|
invoke-interface {v13}, Ljava/lang/CharSequence;->length()I
|
|
|
|
move-result v13
|
|
|
|
if-nez v13, :cond_12
|
|
|
|
const/4 v13, 0x1
|
|
|
|
goto :goto_9
|
|
|
|
:cond_12
|
|
const/4 v13, 0x0
|
|
|
|
:goto_9
|
|
if-eqz v13, :cond_13
|
|
|
|
move-object/from16 v20, v2
|
|
|
|
move-object v2, v9
|
|
|
|
goto :goto_a
|
|
|
|
:cond_13
|
|
invoke-virtual {v0}, Lokhttp3/Response;->i()Ljava/lang/String;
|
|
|
|
move-result-object v13
|
|
|
|
new-instance v14, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v14}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const/16 v16, 0x20
|
|
|
|
move-object/from16 v20, v2
|
|
|
|
invoke-static/range {v16 .. v16}, Ljava/lang/String;->valueOf(C)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v14, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v14, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v14}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
:goto_a
|
|
invoke-virtual {v7, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const/16 v2, 0x20
|
|
|
|
invoke-virtual {v7, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Lokhttp3/Response;->u()Lx/y;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v2, v2, Lx/y;->b:Lx/u;
|
|
|
|
invoke-virtual {v7, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v7, v11, v12}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, "ms"
|
|
|
|
invoke-virtual {v7, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
if-nez v3, :cond_14
|
|
|
|
const-string v2, ", "
|
|
|
|
const-string v8, " body"
|
|
|
|
invoke-static {v2, v6, v8}, Le/e/b/a/a;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
goto :goto_b
|
|
|
|
:cond_14
|
|
move-object v2, v9
|
|
|
|
:goto_b
|
|
invoke-virtual {v7, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const/16 v2, 0x29
|
|
|
|
invoke-virtual {v7, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-interface {v15, v2}, Lx/d0/a$b;->log(Ljava/lang/String;)V
|
|
|
|
if-eqz v3, :cond_1e
|
|
|
|
invoke-virtual {v0}, Lokhttp3/Response;->f()Lokhttp3/Headers;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Lokhttp3/Headers;->size()I
|
|
|
|
move-result v3
|
|
|
|
const/4 v6, 0x0
|
|
|
|
:goto_c
|
|
if-ge v6, v3, :cond_15
|
|
|
|
invoke-virtual {v1, v2, v6}, Lx/d0/a;->a(Lokhttp3/Headers;I)V
|
|
|
|
add-int/lit8 v6, v6, 0x1
|
|
|
|
goto :goto_c
|
|
|
|
:cond_15
|
|
if-eqz v5, :cond_1d
|
|
|
|
invoke-static {v0}, Lx/c0/d/e;->a(Lokhttp3/Response;)Z
|
|
|
|
move-result v3
|
|
|
|
if-nez v3, :cond_16
|
|
|
|
goto/16 :goto_f
|
|
|
|
:cond_16
|
|
invoke-virtual {v0}, Lokhttp3/Response;->f()Lokhttp3/Headers;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v1, v3}, Lx/d0/a;->a(Lokhttp3/Headers;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_17
|
|
|
|
iget-object v2, v1, Lx/d0/a;->d:Lx/d0/a$b;
|
|
|
|
const-string v3, "<-- END HTTP (encoded body omitted)"
|
|
|
|
invoke-interface {v2, v3}, Lx/d0/a$b;->log(Ljava/lang/String;)V
|
|
|
|
goto/16 :goto_10
|
|
|
|
:cond_17
|
|
invoke-virtual {v4}, Lx/z;->d()Ly/g;
|
|
|
|
move-result-object v3
|
|
|
|
const-wide v5, 0x7fffffffffffffffL
|
|
|
|
invoke-interface {v3, v5, v6}, Ly/g;->a(J)Z
|
|
|
|
invoke-interface {v3}, Ly/g;->n()Ly/e;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v5, "Content-Encoding"
|
|
|
|
invoke-virtual {v2, v5}, Lokhttp3/Headers;->a(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v5, "gzip"
|
|
|
|
const/4 v6, 0x1
|
|
|
|
invoke-static {v5, v2, v6}, Lt/a0/n;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_18
|
|
|
|
iget-wide v5, v3, Ly/e;->e:J
|
|
|
|
invoke-static {v5, v6}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v2
|
|
|
|
new-instance v5, Ly/k;
|
|
|
|
invoke-virtual {v3}, Ly/e;->clone()Ly/e;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-direct {v5, v3}, Ly/k;-><init>(Ly/w;)V
|
|
|
|
:try_start_1
|
|
new-instance v3, Ly/e;
|
|
|
|
invoke-direct {v3}, Ly/e;-><init>()V
|
|
|
|
invoke-virtual {v3, v5}, Ly/e;->a(Ly/w;)J
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
invoke-static {v5, v6}, Le/k/a/b/e/p/g;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
|
|
|
|
goto :goto_d
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
move-object v2, v0
|
|
|
|
:try_start_2
|
|
throw v2
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_1
|
|
|
|
:catchall_1
|
|
move-exception v0
|
|
|
|
move-object v3, v0
|
|
|
|
invoke-static {v5, v2}, Le/k/a/b/e/p/g;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
|
|
|
|
throw v3
|
|
|
|
:cond_18
|
|
const/4 v2, 0x0
|
|
|
|
:goto_d
|
|
invoke-virtual {v4}, Lx/z;->c()Lokhttp3/MediaType;
|
|
|
|
move-result-object v4
|
|
|
|
if-eqz v4, :cond_19
|
|
|
|
sget-object v5, Ljava/nio/charset/StandardCharsets;->UTF_8:Ljava/nio/charset/Charset;
|
|
|
|
invoke-virtual {v4, v5}, Lokhttp3/MediaType;->a(Ljava/nio/charset/Charset;)Ljava/nio/charset/Charset;
|
|
|
|
move-result-object v4
|
|
|
|
if-eqz v4, :cond_19
|
|
|
|
goto :goto_e
|
|
|
|
:cond_19
|
|
sget-object v4, Ljava/nio/charset/StandardCharsets;->UTF_8:Ljava/nio/charset/Charset;
|
|
|
|
invoke-static {v4, v10}, Lt/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
:goto_e
|
|
invoke-static {v3}, Lu/a/a2/w;->a(Ly/e;)Z
|
|
|
|
move-result v5
|
|
|
|
if-nez v5, :cond_1a
|
|
|
|
iget-object v2, v1, Lx/d0/a;->d:Lx/d0/a$b;
|
|
|
|
invoke-interface {v2, v9}, Lx/d0/a$b;->log(Ljava/lang/String;)V
|
|
|
|
iget-object v2, v1, Lx/d0/a;->d:Lx/d0/a$b;
|
|
|
|
const-string v4, "<-- END HTTP (binary "
|
|
|
|
invoke-static {v4}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v4
|
|
|
|
iget-wide v5, v3, Ly/e;->e:J
|
|
|
|
invoke-virtual {v4, v5, v6}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
move-object/from16 v3, v20
|
|
|
|
invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-interface {v2, v3}, Lx/d0/a$b;->log(Ljava/lang/String;)V
|
|
|
|
return-object v0
|
|
|
|
:cond_1a
|
|
const-wide/16 v5, 0x0
|
|
|
|
cmp-long v7, v18, v5
|
|
|
|
if-eqz v7, :cond_1b
|
|
|
|
iget-object v5, v1, Lx/d0/a;->d:Lx/d0/a$b;
|
|
|
|
invoke-interface {v5, v9}, Lx/d0/a$b;->log(Ljava/lang/String;)V
|
|
|
|
iget-object v5, v1, Lx/d0/a;->d:Lx/d0/a$b;
|
|
|
|
invoke-virtual {v3}, Ly/e;->clone()Ly/e;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6, v4}, Ly/e;->a(Ljava/nio/charset/Charset;)Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-interface {v5, v4}, Lx/d0/a$b;->log(Ljava/lang/String;)V
|
|
|
|
:cond_1b
|
|
const-string v4, "<-- END HTTP ("
|
|
|
|
if-eqz v2, :cond_1c
|
|
|
|
iget-object v5, v1, Lx/d0/a;->d:Lx/d0/a$b;
|
|
|
|
invoke-static {v4}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v4
|
|
|
|
iget-wide v6, v3, Ly/e;->e:J
|
|
|
|
invoke-virtual {v4, v6, v7}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
const-string v3, "-byte, "
|
|
|
|
invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, "-gzipped-byte body)"
|
|
|
|
invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-interface {v5, v2}, Lx/d0/a$b;->log(Ljava/lang/String;)V
|
|
|
|
goto :goto_10
|
|
|
|
:cond_1c
|
|
iget-object v2, v1, Lx/d0/a;->d:Lx/d0/a$b;
|
|
|
|
invoke-static {v4}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v4
|
|
|
|
iget-wide v5, v3, Ly/e;->e:J
|
|
|
|
invoke-virtual {v4, v5, v6}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
move-object/from16 v3, v17
|
|
|
|
invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-interface {v2, v3}, Lx/d0/a$b;->log(Ljava/lang/String;)V
|
|
|
|
goto :goto_10
|
|
|
|
:cond_1d
|
|
:goto_f
|
|
iget-object v2, v1, Lx/d0/a;->d:Lx/d0/a$b;
|
|
|
|
const-string v3, "<-- END HTTP"
|
|
|
|
invoke-interface {v2, v3}, Lx/d0/a$b;->log(Ljava/lang/String;)V
|
|
|
|
:cond_1e
|
|
:goto_10
|
|
return-object v0
|
|
|
|
:cond_1f
|
|
invoke-static {}, Lt/u/b/j;->throwNpe()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
throw v0
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
move-object v2, v0
|
|
|
|
iget-object v0, v1, Lx/d0/a;->d:Lx/d0/a$b;
|
|
|
|
new-instance v3, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v4, "<-- HTTP FAILED: "
|
|
|
|
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-interface {v0, v3}, Lx/d0/a$b;->log(Ljava/lang/String;)V
|
|
|
|
throw v2
|
|
|
|
:cond_20
|
|
const-string v0, "chain"
|
|
|
|
invoke-static {v0}, Lt/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
throw v0
|
|
.end method
|