apkfuckery/com.discord/smali_classes2/okhttp3/internal/d/a$b.smali

239 lines
5.3 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class final Lokhttp3/internal/d/a$b;
.super Ljava/lang/Object;
2019-11-28 00:30:53 +00:00
.source "Http1ExchangeCodec.kt"
2019-07-24 11:27:29 +00:00
# interfaces
2019-11-28 00:30:53 +00:00
.implements Lokio/v;
2019-07-24 11:27:29 +00:00
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lokhttp3/internal/d/a;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x10
name = "b"
.end annotation
# instance fields
2019-12-03 21:42:56 +00:00
.field private final bwS:Lokio/j;
2019-07-24 11:27:29 +00:00
2019-12-03 21:42:56 +00:00
.field final synthetic bwT:Lokhttp3/internal/d/a;
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
.field private w:Z
2019-07-24 11:27:29 +00:00
# direct methods
2019-11-28 00:30:53 +00:00
.method public constructor <init>(Lokhttp3/internal/d/a;)V
2019-07-24 11:27:29 +00:00
.locals 1
2019-11-28 00:30:53 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
2019-07-24 11:27:29 +00:00
2019-12-03 21:42:56 +00:00
iput-object p1, p0, Lokhttp3/internal/d/a$b;->bwT:Lokhttp3/internal/d/a;
2019-07-24 11:27:29 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2019-11-28 00:30:53 +00:00
new-instance v0, Lokio/j;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {p1}, Lokhttp3/internal/d/a;->a(Lokhttp3/internal/d/a;)Lokio/BufferedSink;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result-object p1
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-interface {p1}, Lokio/BufferedSink;->timeout()Lokio/y;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result-object p1
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-direct {v0, p1}, Lokio/j;-><init>(Lokio/y;)V
2019-07-24 11:27:29 +00:00
2019-12-03 21:42:56 +00:00
iput-object v0, p0, Lokhttp3/internal/d/a$b;->bwS:Lokio/j;
2019-07-24 11:27:29 +00:00
return-void
.end method
# virtual methods
.method public final declared-synchronized close()V
.locals 2
monitor-enter p0
:try_start_0
2019-10-09 23:16:36 +00:00
iget-boolean v0, p0, Lokhttp3/internal/d/a$b;->w:Z
2019-07-24 11:27:29 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v0, :cond_0
monitor-exit p0
return-void
:cond_0
const/4 v0, 0x1
:try_start_1
2019-10-09 23:16:36 +00:00
iput-boolean v0, p0, Lokhttp3/internal/d/a$b;->w:Z
2019-07-24 11:27:29 +00:00
2019-12-03 21:42:56 +00:00
iget-object v0, p0, Lokhttp3/internal/d/a$b;->bwT:Lokhttp3/internal/d/a;
2019-11-28 00:30:53 +00:00
invoke-static {v0}, Lokhttp3/internal/d/a;->a(Lokhttp3/internal/d/a;)Lokio/BufferedSink;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result-object v0
2019-07-24 11:27:29 +00:00
const-string v1, "0\r\n\r\n"
2019-11-28 00:30:53 +00:00
invoke-interface {v0, v1}, Lokio/BufferedSink;->et(Ljava/lang/String;)Lokio/BufferedSink;
2019-07-24 11:27:29 +00:00
2019-12-03 21:42:56 +00:00
iget-object v0, p0, Lokhttp3/internal/d/a$b;->bwS:Lokio/j;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {v0}, Lokhttp3/internal/d/a;->a(Lokio/j;)V
2019-07-24 11:27:29 +00:00
2019-12-03 21:42:56 +00:00
iget-object v0, p0, Lokhttp3/internal/d/a$b;->bwT:Lokhttp3/internal/d/a;
2019-07-24 11:27:29 +00:00
const/4 v1, 0x3
2019-11-28 00:30:53 +00:00
invoke-static {v0, v1}, Lokhttp3/internal/d/a;->a(Lokhttp3/internal/d/a;I)V
2019-07-24 11:27:29 +00:00
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
monitor-exit p0
return-void
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
.method public final declared-synchronized flush()V
.locals 1
monitor-enter p0
:try_start_0
2019-10-09 23:16:36 +00:00
iget-boolean v0, p0, Lokhttp3/internal/d/a$b;->w:Z
2019-07-24 11:27:29 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v0, :cond_0
monitor-exit p0
return-void
:cond_0
:try_start_1
2019-12-03 21:42:56 +00:00
iget-object v0, p0, Lokhttp3/internal/d/a$b;->bwT:Lokhttp3/internal/d/a;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {v0}, Lokhttp3/internal/d/a;->a(Lokhttp3/internal/d/a;)Lokio/BufferedSink;
move-result-object v0
2019-07-24 11:27:29 +00:00
invoke-interface {v0}, Lokio/BufferedSink;->flush()V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
monitor-exit p0
return-void
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
2019-11-28 00:30:53 +00:00
.method public final timeout()Lokio/y;
2019-07-24 11:27:29 +00:00
.locals 1
2019-12-03 21:42:56 +00:00
iget-object v0, p0, Lokhttp3/internal/d/a$b;->bwS:Lokio/j;
2019-11-28 00:30:53 +00:00
check-cast v0, Lokio/y;
2019-07-24 11:27:29 +00:00
return-object v0
.end method
2019-11-28 00:30:53 +00:00
.method public final write(Lokio/f;J)V
2019-07-24 11:27:29 +00:00
.locals 3
2019-11-28 00:30:53 +00:00
const-string v0, "source"
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
iget-boolean v0, p0, Lokhttp3/internal/d/a$b;->w:Z
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_1
2019-07-24 11:27:29 +00:00
const-wide/16 v0, 0x0
cmp-long v2, p2, v0
if-nez v2, :cond_0
return-void
:cond_0
2019-12-03 21:42:56 +00:00
iget-object v0, p0, Lokhttp3/internal/d/a$b;->bwT:Lokhttp3/internal/d/a;
2019-11-28 00:30:53 +00:00
invoke-static {v0}, Lokhttp3/internal/d/a;->a(Lokhttp3/internal/d/a;)Lokio/BufferedSink;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result-object v0
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-interface {v0, p2, p3}, Lokio/BufferedSink;->aK(J)Lokio/BufferedSink;
2019-07-24 11:27:29 +00:00
2019-12-03 21:42:56 +00:00
iget-object v0, p0, Lokhttp3/internal/d/a$b;->bwT:Lokhttp3/internal/d/a;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {v0}, Lokhttp3/internal/d/a;->a(Lokhttp3/internal/d/a;)Lokio/BufferedSink;
move-result-object v0
2019-07-24 11:27:29 +00:00
const-string v1, "\r\n"
2019-11-28 00:30:53 +00:00
invoke-interface {v0, v1}, Lokio/BufferedSink;->et(Ljava/lang/String;)Lokio/BufferedSink;
2019-12-03 21:42:56 +00:00
iget-object v0, p0, Lokhttp3/internal/d/a$b;->bwT:Lokhttp3/internal/d/a;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {v0}, Lokhttp3/internal/d/a;->a(Lokhttp3/internal/d/a;)Lokio/BufferedSink;
move-result-object v0
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-interface {v0, p1, p2, p3}, Lokio/BufferedSink;->write(Lokio/f;J)V
2019-07-24 11:27:29 +00:00
2019-12-03 21:42:56 +00:00
iget-object p1, p0, Lokhttp3/internal/d/a$b;->bwT:Lokhttp3/internal/d/a;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {p1}, Lokhttp3/internal/d/a;->a(Lokhttp3/internal/d/a;)Lokio/BufferedSink;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result-object p1
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-interface {p1, v1}, Lokio/BufferedSink;->et(Ljava/lang/String;)Lokio/BufferedSink;
2019-07-24 11:27:29 +00:00
return-void
:cond_1
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "closed"
2019-11-28 00:30:53 +00:00
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p2
2019-07-24 11:27:29 +00:00
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
2019-11-28 00:30:53 +00:00
check-cast p1, Ljava/lang/Throwable;
2019-07-24 11:27:29 +00:00
throw p1
.end method