add new files

This commit is contained in:
aliveoutside
2022-06-18 19:27:15 +03:00
parent 8fd7116759
commit 2df8cc5f2a
53956 changed files with 9840606 additions and 6 deletions
@@ -0,0 +1,87 @@
.class final Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$a$a;
.super Ljava/lang/Object;
.source "CronetHttpRequestExecutor.kt"
# interfaces
.implements Ljava/util/concurrent/ThreadFactory;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$a;->a()Ljava/util/concurrent/ExecutorService;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = null
.end annotation
# instance fields
.field final synthetic a:Ljava/util/concurrent/atomic/AtomicInteger;
# direct methods
.method constructor <init>(Ljava/util/concurrent/atomic/AtomicInteger;)V
.locals 0
iput-object p1, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$a$a;->a:Ljava/util/concurrent/atomic/AtomicInteger;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final newThread(Ljava/lang/Runnable;)Ljava/lang/Thread;
.locals 3
.line 1
sget-object v0, Lkotlin/jvm/internal/r;->a:Lkotlin/jvm/internal/r;
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "Cronet-Requests-Executor-"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$a$a;->a:Ljava/util/concurrent/atomic/AtomicInteger;
invoke-virtual {v1}, Ljava/util/concurrent/atomic/AtomicInteger;->getAndIncrement()I
move-result v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
const/4 v1, 0x0
new-array v1, v1, [Ljava/lang/Object;
array-length v2, v1
invoke-static {v1, v2}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object v1
invoke-static {v0, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
const-string v1, "java.lang.String.format(format, *args)"
invoke-static {v0, v1}, Lkotlin/jvm/internal/m;->a(Ljava/lang/Object;Ljava/lang/String;)V
.line 2
new-instance v1, Ljava/lang/Thread;
invoke-direct {v1, p1, v0}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;Ljava/lang/String;)V
return-object v1
.end method
@@ -0,0 +1,63 @@
.class public final Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$a;
.super Ljava/lang/Object;
.source "CronetHttpRequestExecutor.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "a"
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public synthetic constructor <init>(Lkotlin/jvm/internal/i;)V
.locals 0
.line 2
invoke-direct {p0}, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$a;-><init>()V
return-void
.end method
# virtual methods
.method public final a()Ljava/util/concurrent/ExecutorService;
.locals 2
.line 1
new-instance v0, Ljava/util/concurrent/atomic/AtomicInteger;
const/4 v1, 0x1
invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>(I)V
.line 2
new-instance v1, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$a$a;
invoke-direct {v1, v0}, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$a$a;-><init>(Ljava/util/concurrent/atomic/AtomicInteger;)V
.line 3
invoke-static {v1}, Ljava/util/concurrent/Executors;->newCachedThreadPool(Ljava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ExecutorService;
move-result-object v0
const-string v1, "Executors.newCachedThreadPool(threadFactory)"
invoke-static {v0, v1}, Lkotlin/jvm/internal/m;->a(Ljava/lang/Object;Ljava/lang/String;)V
return-object v0
.end method
@@ -0,0 +1,74 @@
.class final Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$b;
.super Ljava/lang/Object;
.source "CronetHttpRequestExecutor.kt"
# interfaces
.implements Lcom/vk/httpexecutor/api/h;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x12
name = "b"
.end annotation
# instance fields
.field private final a:Lcom/vk/httpexecutor/api/exceptions/CauseException;
.field final synthetic b:Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;
# direct methods
.method public constructor <init>(Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;Lcom/vk/httpexecutor/api/exceptions/CauseException;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/vk/httpexecutor/api/exceptions/CauseException;",
")V"
}
.end annotation
.line 1
iput-object p1, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$b;->b:Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p2, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$b;->a:Lcom/vk/httpexecutor/api/exceptions/CauseException;
return-void
.end method
# virtual methods
.method public a(Lcom/vk/httpexecutor/api/g;Lcom/vk/httpexecutor/api/h$a;)Lcom/vk/httpexecutor/api/i;
.locals 1
.line 1
iget-object p1, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$b;->b:Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;
invoke-interface {p2}, Lcom/vk/httpexecutor/api/h$a;->a()Lcom/vk/httpexecutor/api/e;
move-result-object p2
iget-object v0, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$b;->a:Lcom/vk/httpexecutor/api/exceptions/CauseException;
invoke-static {p1, p2, v0}, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;->a(Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;Lcom/vk/httpexecutor/api/e;Lcom/vk/httpexecutor/api/exceptions/CauseException;)Lcom/vk/httpexecutor/api/i;
move-result-object p1
return-object p1
.end method
.method public toString()Ljava/lang/String;
.locals 1
const-string v0, "CronetRequestExecutorInterceptor"
return-object v0
.end method
@@ -0,0 +1,133 @@
.class public final Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$c;
.super Lorg/chromium/net/q$a;
.source "CronetHttpRequestExecutor.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;->a(Lcom/vk/httpexecutor/api/e;)Lcom/vk/httpexecutor/api/i;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
# instance fields
.field final synthetic b:Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;
.field final synthetic c:Ljava/lang/String;
.field final synthetic d:Lcom/vk/httpexecutor/api/utils/e;
.field final synthetic e:Lcom/vk/httpexecutor/api/e;
.field final synthetic f:Lcom/vk/httpexecutor/api/utils/e;
# direct methods
.method constructor <init>(Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;Ljava/lang/String;Lcom/vk/httpexecutor/api/utils/e;Lcom/vk/httpexecutor/api/e;Lcom/vk/httpexecutor/api/utils/e;Ljava/util/concurrent/Executor;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Lcom/vk/httpexecutor/api/utils/e;",
"Lcom/vk/httpexecutor/api/e;",
"Lcom/vk/httpexecutor/api/utils/e;",
"Ljava/util/concurrent/Executor;",
")V"
}
.end annotation
.line 1
iput-object p1, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$c;->b:Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;
iput-object p2, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$c;->c:Ljava/lang/String;
iput-object p3, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$c;->d:Lcom/vk/httpexecutor/api/utils/e;
iput-object p4, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$c;->e:Lcom/vk/httpexecutor/api/e;
iput-object p5, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$c;->f:Lcom/vk/httpexecutor/api/utils/e;
invoke-direct {p0, p6}, Lorg/chromium/net/q$a;-><init>(Ljava/util/concurrent/Executor;)V
return-void
.end method
# virtual methods
.method public a(Lorg/chromium/net/q;)V
.locals 3
.line 1
iget-object v0, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$c;->b:Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;
invoke-static {v0}, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;->e(Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;)Lcom/vk/httpexecutor/cronet/d;
move-result-object v0
iget-object v1, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$c;->c:Ljava/lang/String;
invoke-virtual {v0, v1}, Lcom/vk/httpexecutor/cronet/d;->b(Ljava/lang/String;)V
.line 2
iget-object v0, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$c;->d:Lcom/vk/httpexecutor/api/utils/e;
invoke-virtual {v0}, Lcom/vk/httpexecutor/api/utils/e;->a()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/vk/httpexecutor/api/i;
if-eqz v0, :cond_0
.line 3
iget-object v1, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$c;->b:Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;
invoke-static {v1}, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;->c(Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;)Lcom/vk/httpexecutor/api/utils/NetworkTypeDetector;
move-result-object v1
iget-object v2, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$c;->b:Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;
invoke-static {v2}, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;->f(Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;)Lcom/vk/httpexecutor/api/utils/RoamingDetector;
move-result-object v2
invoke-static {p1, v1, v2}, Lcom/vk/httpexecutor/cronet/c;->a(Lorg/chromium/net/q;Lcom/vk/httpexecutor/api/utils/NetworkTypeDetector;Lcom/vk/httpexecutor/api/utils/RoamingDetector;)Lcom/vk/httpexecutor/api/b;
move-result-object p1
.line 4
iget-object v1, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$c;->b:Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;
invoke-static {v1}, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;->b(Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;)Lcom/vk/httpexecutor/api/utils/b;
move-result-object v1
iget-object v2, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$c;->e:Lcom/vk/httpexecutor/api/e;
invoke-virtual {v1, v2, v0, p1}, Lcom/vk/httpexecutor/api/utils/b;->a(Lcom/vk/httpexecutor/api/e;Lcom/vk/httpexecutor/api/i;Lcom/vk/httpexecutor/api/b;)V
.line 5
:cond_0
iget-object p1, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$c;->f:Lcom/vk/httpexecutor/api/utils/e;
invoke-virtual {p1}, Lcom/vk/httpexecutor/api/utils/e;->a()Ljava/lang/Object;
move-result-object p1
check-cast p1, Lorg/chromium/net/w;
if-eqz p1, :cond_1
iget-object v0, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$c;->b:Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;
invoke-static {v0, p1}, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;->a(Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;Lorg/chromium/net/w;)V
:cond_1
return-void
.end method
@@ -0,0 +1,70 @@
.class final Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$cronetEngine$2;
.super Lkotlin/jvm/internal/Lambda;
.source "CronetHttpRequestExecutor.kt"
# interfaces
.implements Lkotlin/jvm/b/a;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;-><init>(Landroid/content/Context;Ljava/io/File;JZZLjava/util/List;JJJIIZZLjava/io/File;Ljava/util/concurrent/ExecutorService;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/internal/Lambda;",
"Lkotlin/jvm/b/a<",
"Lorg/chromium/net/i;",
">;"
}
.end annotation
# instance fields
.field final synthetic this$0:Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;
# direct methods
.method constructor <init>(Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;)V
.locals 0
iput-object p1, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$cronetEngine$2;->this$0:Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;
const/4 p1, 0x0
invoke-direct {p0, p1}, Lkotlin/jvm/internal/Lambda;-><init>(I)V
return-void
.end method
# virtual methods
.method public bridge synthetic invoke()Ljava/lang/Object;
.locals 1
.line 1
invoke-virtual {p0}, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$cronetEngine$2;->invoke()Lorg/chromium/net/i;
move-result-object v0
return-object v0
.end method
.method public final invoke()Lorg/chromium/net/i;
.locals 1
.line 2
iget-object v0, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$cronetEngine$2;->this$0:Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;
invoke-static {v0}, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;->a(Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;)Lorg/chromium/net/i;
move-result-object v0
return-object v0
.end method
@@ -0,0 +1,78 @@
.class final Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$cronetExecutor$2;
.super Lkotlin/jvm/internal/Lambda;
.source "CronetHttpRequestExecutor.kt"
# interfaces
.implements Lkotlin/jvm/b/a;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;-><init>(Landroid/content/Context;Ljava/io/File;JZZLjava/util/List;JJJIIZZLjava/io/File;Ljava/util/concurrent/ExecutorService;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/internal/Lambda;",
"Lkotlin/jvm/b/a<",
"Ljava/util/concurrent/ExecutorService;",
">;"
}
.end annotation
# instance fields
.field final synthetic $executor:Ljava/util/concurrent/ExecutorService;
# direct methods
.method constructor <init>(Ljava/util/concurrent/ExecutorService;)V
.locals 0
iput-object p1, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$cronetExecutor$2;->$executor:Ljava/util/concurrent/ExecutorService;
const/4 p1, 0x0
invoke-direct {p0, p1}, Lkotlin/jvm/internal/Lambda;-><init>(I)V
return-void
.end method
# virtual methods
.method public bridge synthetic invoke()Ljava/lang/Object;
.locals 1
.line 1
invoke-virtual {p0}, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$cronetExecutor$2;->invoke()Ljava/util/concurrent/ExecutorService;
move-result-object v0
return-object v0
.end method
.method public final invoke()Ljava/util/concurrent/ExecutorService;
.locals 1
.line 2
iget-object v0, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$cronetExecutor$2;->$executor:Ljava/util/concurrent/ExecutorService;
if-eqz v0, :cond_0
goto :goto_0
:cond_0
sget-object v0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;->B:Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$a;
invoke-virtual {v0}, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$a;->a()Ljava/util/concurrent/ExecutorService;
move-result-object v0
:goto_0
return-object v0
.end method
@@ -0,0 +1,79 @@
.class final Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$launchRequestAndAwaitImpl$1;
.super Lkotlin/jvm/internal/Lambda;
.source "CronetHttpRequestExecutor.kt"
# interfaces
.implements Lkotlin/jvm/b/a;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;->a(Lcom/vk/httpexecutor/api/e;)Lcom/vk/httpexecutor/api/i;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/internal/Lambda;",
"Lkotlin/jvm/b/a<",
"Lkotlin/m;",
">;"
}
.end annotation
# instance fields
.field final synthetic $connectCompleteLock:Lcom/vk/httpexecutor/cronet/b;
.field final synthetic $writeCompleteLock:Lcom/vk/httpexecutor/cronet/b;
# direct methods
.method constructor <init>(Lcom/vk/httpexecutor/cronet/b;Lcom/vk/httpexecutor/cronet/b;)V
.locals 0
iput-object p1, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$launchRequestAndAwaitImpl$1;->$connectCompleteLock:Lcom/vk/httpexecutor/cronet/b;
iput-object p2, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$launchRequestAndAwaitImpl$1;->$writeCompleteLock:Lcom/vk/httpexecutor/cronet/b;
const/4 p1, 0x0
invoke-direct {p0, p1}, Lkotlin/jvm/internal/Lambda;-><init>(I)V
return-void
.end method
# virtual methods
.method public bridge synthetic invoke()Ljava/lang/Object;
.locals 1
.line 1
invoke-virtual {p0}, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$launchRequestAndAwaitImpl$1;->invoke()V
sget-object v0, Lkotlin/m;->a:Lkotlin/m;
return-object v0
.end method
.method public final invoke()V
.locals 2
.line 2
iget-object v0, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$launchRequestAndAwaitImpl$1;->$connectCompleteLock:Lcom/vk/httpexecutor/cronet/b;
const/4 v1, 0x1
invoke-virtual {v0, v1}, Lcom/vk/httpexecutor/cronet/b;->b(Z)V
.line 3
iget-object v0, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$launchRequestAndAwaitImpl$1;->$writeCompleteLock:Lcom/vk/httpexecutor/cronet/b;
invoke-virtual {v0}, Lcom/vk/httpexecutor/cronet/b;->a()V
return-void
.end method
@@ -0,0 +1,79 @@
.class final Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$launchRequestAndAwaitImpl$requestCallback$1;
.super Lkotlin/jvm/internal/Lambda;
.source "CronetHttpRequestExecutor.kt"
# interfaces
.implements Lkotlin/jvm/b/a;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;->a(Lcom/vk/httpexecutor/api/e;)Lcom/vk/httpexecutor/api/i;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/internal/Lambda;",
"Lkotlin/jvm/b/a<",
"Lkotlin/m;",
">;"
}
.end annotation
# instance fields
.field final synthetic $connectCompleteLock:Lcom/vk/httpexecutor/cronet/b;
.field final synthetic $writeCompleteLock:Lcom/vk/httpexecutor/cronet/b;
# direct methods
.method constructor <init>(Lcom/vk/httpexecutor/cronet/b;Lcom/vk/httpexecutor/cronet/b;)V
.locals 0
iput-object p1, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$launchRequestAndAwaitImpl$requestCallback$1;->$connectCompleteLock:Lcom/vk/httpexecutor/cronet/b;
iput-object p2, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$launchRequestAndAwaitImpl$requestCallback$1;->$writeCompleteLock:Lcom/vk/httpexecutor/cronet/b;
const/4 p1, 0x0
invoke-direct {p0, p1}, Lkotlin/jvm/internal/Lambda;-><init>(I)V
return-void
.end method
# virtual methods
.method public bridge synthetic invoke()Ljava/lang/Object;
.locals 1
.line 1
invoke-virtual {p0}, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$launchRequestAndAwaitImpl$requestCallback$1;->invoke()V
sget-object v0, Lkotlin/m;->a:Lkotlin/m;
return-object v0
.end method
.method public final invoke()V
.locals 2
.line 2
iget-object v0, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$launchRequestAndAwaitImpl$requestCallback$1;->$connectCompleteLock:Lcom/vk/httpexecutor/cronet/b;
const/4 v1, 0x1
invoke-virtual {v0, v1}, Lcom/vk/httpexecutor/cronet/b;->b(Z)V
.line 3
iget-object v0, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$launchRequestAndAwaitImpl$requestCallback$1;->$writeCompleteLock:Lcom/vk/httpexecutor/cronet/b;
invoke-virtual {v0, v1}, Lcom/vk/httpexecutor/cronet/b;->b(Z)V
return-void
.end method
@@ -0,0 +1,90 @@
.class final Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$launchRequestAndAwaitImpl$responseInputStream$1;
.super Lkotlin/jvm/internal/Lambda;
.source "CronetHttpRequestExecutor.kt"
# interfaces
.implements Lkotlin/jvm/b/a;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;->a(Lcom/vk/httpexecutor/api/e;)Lcom/vk/httpexecutor/api/i;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/internal/Lambda;",
"Lkotlin/jvm/b/a<",
"Ljava/nio/ByteBuffer;",
">;"
}
.end annotation
# instance fields
.field final synthetic $requestCallback:Lcom/vk/httpexecutor/cronet/RequestCallback;
.field final synthetic $urlRequest:Lorg/chromium/net/j;
.field final synthetic this$0:Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;
# direct methods
.method constructor <init>(Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;Lcom/vk/httpexecutor/cronet/RequestCallback;Lorg/chromium/net/j;)V
.locals 0
iput-object p1, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$launchRequestAndAwaitImpl$responseInputStream$1;->this$0:Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;
iput-object p2, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$launchRequestAndAwaitImpl$responseInputStream$1;->$requestCallback:Lcom/vk/httpexecutor/cronet/RequestCallback;
iput-object p3, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$launchRequestAndAwaitImpl$responseInputStream$1;->$urlRequest:Lorg/chromium/net/j;
const/4 p1, 0x0
invoke-direct {p0, p1}, Lkotlin/jvm/internal/Lambda;-><init>(I)V
return-void
.end method
# virtual methods
.method public bridge synthetic invoke()Ljava/lang/Object;
.locals 1
.line 1
invoke-virtual {p0}, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$launchRequestAndAwaitImpl$responseInputStream$1;->invoke()Ljava/nio/ByteBuffer;
move-result-object v0
return-object v0
.end method
.method public final invoke()Ljava/nio/ByteBuffer;
.locals 4
.line 2
iget-object v0, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$launchRequestAndAwaitImpl$responseInputStream$1;->$requestCallback:Lcom/vk/httpexecutor/cronet/RequestCallback;
iget-object v1, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$launchRequestAndAwaitImpl$responseInputStream$1;->$urlRequest:Lorg/chromium/net/j;
const-string v2, "urlRequest"
invoke-static {v1, v2}, Lkotlin/jvm/internal/m;->a(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v2, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$launchRequestAndAwaitImpl$responseInputStream$1;->this$0:Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;
invoke-static {v2}, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;->d(Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;)J
move-result-wide v2
invoke-virtual {v0, v1, v2, v3}, Lcom/vk/httpexecutor/cronet/RequestCallback;->a(Lorg/chromium/net/w;J)Ljava/nio/ByteBuffer;
move-result-object v0
return-object v0
.end method
@@ -0,0 +1,71 @@
.class final Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$launchRequestAndAwaitImpl$responseInputStream$2;
.super Lkotlin/jvm/internal/Lambda;
.source "CronetHttpRequestExecutor.kt"
# interfaces
.implements Lkotlin/jvm/b/b;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;->a(Lcom/vk/httpexecutor/api/e;)Lcom/vk/httpexecutor/api/i;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/internal/Lambda;",
"Lkotlin/jvm/b/b<",
"Ljava/lang/Throwable;",
"Lkotlin/m;",
">;"
}
.end annotation
# instance fields
.field final synthetic $urlRequest:Lorg/chromium/net/j;
# direct methods
.method constructor <init>(Lorg/chromium/net/j;)V
.locals 0
iput-object p1, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$launchRequestAndAwaitImpl$responseInputStream$2;->$urlRequest:Lorg/chromium/net/j;
const/4 p1, 0x1
invoke-direct {p0, p1}, Lkotlin/jvm/internal/Lambda;-><init>(I)V
return-void
.end method
# virtual methods
.method public final a(Ljava/lang/Throwable;)V
.locals 1
.line 1
iget-object v0, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$launchRequestAndAwaitImpl$responseInputStream$2;->$urlRequest:Lorg/chromium/net/j;
invoke-virtual {v0}, Lorg/chromium/net/w;->a()V
throw p1
.end method
.method public bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 1
check-cast p1, Ljava/lang/Throwable;
invoke-virtual {p0, p1}, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$launchRequestAndAwaitImpl$responseInputStream$2;->a(Ljava/lang/Throwable;)V
sget-object p1, Lkotlin/m;->a:Lkotlin/m;
return-object p1
.end method
@@ -0,0 +1,68 @@
.class final Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$launchRequestAndAwaitImpl$responseInputStream$3;
.super Lkotlin/jvm/internal/Lambda;
.source "CronetHttpRequestExecutor.kt"
# interfaces
.implements Lkotlin/jvm/b/a;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor;->a(Lcom/vk/httpexecutor/api/e;)Lcom/vk/httpexecutor/api/i;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/internal/Lambda;",
"Lkotlin/jvm/b/a<",
"Lkotlin/m;",
">;"
}
.end annotation
# instance fields
.field final synthetic $urlRequest:Lorg/chromium/net/j;
# direct methods
.method constructor <init>(Lorg/chromium/net/j;)V
.locals 0
iput-object p1, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$launchRequestAndAwaitImpl$responseInputStream$3;->$urlRequest:Lorg/chromium/net/j;
const/4 p1, 0x0
invoke-direct {p0, p1}, Lkotlin/jvm/internal/Lambda;-><init>(I)V
return-void
.end method
# virtual methods
.method public bridge synthetic invoke()Ljava/lang/Object;
.locals 1
.line 1
invoke-virtual {p0}, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$launchRequestAndAwaitImpl$responseInputStream$3;->invoke()V
sget-object v0, Lkotlin/m;->a:Lkotlin/m;
return-object v0
.end method
.method public final invoke()V
.locals 1
.line 2
iget-object v0, p0, Lcom/vk/httpexecutor/cronet/CronetHttpRequestExecutor$launchRequestAndAwaitImpl$responseInputStream$3;->$urlRequest:Lorg/chromium/net/j;
invoke-virtual {v0}, Lorg/chromium/net/w;->a()V
return-void
.end method
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,80 @@
.class final Lcom/vk/httpexecutor/cronet/RequestCallback$byteBuffer$2;
.super Lkotlin/jvm/internal/Lambda;
.source "RequestCallback.kt"
# interfaces
.implements Lkotlin/jvm/b/a;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/vk/httpexecutor/cronet/RequestCallback;-><init>(Lcom/vk/httpexecutor/api/e;ZZLkotlin/jvm/b/a;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/internal/Lambda;",
"Lkotlin/jvm/b/a<",
"Ljava/nio/ByteBuffer;",
">;"
}
.end annotation
# static fields
.field public static final a:Lcom/vk/httpexecutor/cronet/RequestCallback$byteBuffer$2;
# direct methods
.method static constructor <clinit>()V
.locals 1
new-instance v0, Lcom/vk/httpexecutor/cronet/RequestCallback$byteBuffer$2;
invoke-direct {v0}, Lcom/vk/httpexecutor/cronet/RequestCallback$byteBuffer$2;-><init>()V
sput-object v0, Lcom/vk/httpexecutor/cronet/RequestCallback$byteBuffer$2;->a:Lcom/vk/httpexecutor/cronet/RequestCallback$byteBuffer$2;
return-void
.end method
.method constructor <init>()V
.locals 1
const/4 v0, 0x0
invoke-direct {p0, v0}, Lkotlin/jvm/internal/Lambda;-><init>(I)V
return-void
.end method
# virtual methods
.method public bridge synthetic invoke()Ljava/lang/Object;
.locals 1
.line 1
invoke-virtual {p0}, Lcom/vk/httpexecutor/cronet/RequestCallback$byteBuffer$2;->invoke()Ljava/nio/ByteBuffer;
move-result-object v0
return-object v0
.end method
.method public final invoke()Ljava/nio/ByteBuffer;
.locals 1
const v0, 0x8000
.line 2
invoke-static {v0}, Ljava/nio/ByteBuffer;->allocateDirect(I)Ljava/nio/ByteBuffer;
move-result-object v0
return-object v0
.end method
@@ -0,0 +1,597 @@
.class public final Lcom/vk/httpexecutor/cronet/RequestCallback;
.super Lorg/chromium/net/w$b;
.source "RequestCallback.kt"
# static fields
.field static final synthetic l:[Lkotlin/u/j;
# instance fields
.field private volatile a:Lorg/chromium/net/x;
.field private volatile b:Ljava/lang/Throwable;
.field private volatile c:Z
.field private final d:Lkotlin/e;
.field private final e:Lcom/vk/httpexecutor/cronet/b;
.field private final f:Lcom/vk/httpexecutor/cronet/b;
.field private volatile g:Z
.field private final h:Lcom/vk/httpexecutor/api/e;
.field private final i:Z
.field private final j:Z
.field private final k:Lkotlin/jvm/b/a;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/b/a<",
"Lkotlin/m;",
">;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.locals 5
const/4 v0, 0x1
new-array v0, v0, [Lkotlin/u/j;
new-instance v1, Lkotlin/jvm/internal/PropertyReference1Impl;
const-class v2, Lcom/vk/httpexecutor/cronet/RequestCallback;
invoke-static {v2}, Lkotlin/jvm/internal/o;->a(Ljava/lang/Class;)Lkotlin/u/c;
move-result-object v2
const-string v3, "byteBuffer"
const-string v4, "getByteBuffer()Ljava/nio/ByteBuffer;"
invoke-direct {v1, v2, v3, v4}, Lkotlin/jvm/internal/PropertyReference1Impl;-><init>(Lkotlin/u/e;Ljava/lang/String;Ljava/lang/String;)V
invoke-static {v1}, Lkotlin/jvm/internal/o;->a(Lkotlin/jvm/internal/PropertyReference1;)Lkotlin/u/l;
const/4 v2, 0x0
aput-object v1, v0, v2
sput-object v0, Lcom/vk/httpexecutor/cronet/RequestCallback;->l:[Lkotlin/u/j;
return-void
.end method
.method public constructor <init>(Lcom/vk/httpexecutor/api/e;ZZLkotlin/jvm/b/a;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/vk/httpexecutor/api/e;",
"ZZ",
"Lkotlin/jvm/b/a<",
"Lkotlin/m;",
">;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Lorg/chromium/net/w$b;-><init>()V
iput-object p1, p0, Lcom/vk/httpexecutor/cronet/RequestCallback;->h:Lcom/vk/httpexecutor/api/e;
iput-boolean p2, p0, Lcom/vk/httpexecutor/cronet/RequestCallback;->i:Z
iput-boolean p3, p0, Lcom/vk/httpexecutor/cronet/RequestCallback;->j:Z
iput-object p4, p0, Lcom/vk/httpexecutor/cronet/RequestCallback;->k:Lkotlin/jvm/b/a;
.line 2
sget-object p1, Lcom/vk/httpexecutor/cronet/RequestCallback$byteBuffer$2;->a:Lcom/vk/httpexecutor/cronet/RequestCallback$byteBuffer$2;
invoke-static {p1}, Lkotlin/g;->a(Lkotlin/jvm/b/a;)Lkotlin/e;
move-result-object p1
iput-object p1, p0, Lcom/vk/httpexecutor/cronet/RequestCallback;->d:Lkotlin/e;
.line 3
new-instance p1, Lcom/vk/httpexecutor/cronet/b;
const/4 p2, 0x0
invoke-direct {p1, p2}, Lcom/vk/httpexecutor/cronet/b;-><init>(Z)V
iput-object p1, p0, Lcom/vk/httpexecutor/cronet/RequestCallback;->e:Lcom/vk/httpexecutor/cronet/b;
.line 4
new-instance p1, Lcom/vk/httpexecutor/cronet/b;
invoke-direct {p1, p2}, Lcom/vk/httpexecutor/cronet/b;-><init>(Z)V
iput-object p1, p0, Lcom/vk/httpexecutor/cronet/RequestCallback;->f:Lcom/vk/httpexecutor/cronet/b;
return-void
.end method
.method private final b()V
.locals 1
.line 4
iget-object v0, p0, Lcom/vk/httpexecutor/cronet/RequestCallback;->b:Ljava/lang/Throwable;
if-nez v0, :cond_0
return-void
.line 5
:cond_0
throw v0
.end method
.method private final c()Ljava/nio/ByteBuffer;
.locals 3
iget-object v0, p0, Lcom/vk/httpexecutor/cronet/RequestCallback;->d:Lkotlin/e;
sget-object v1, Lcom/vk/httpexecutor/cronet/RequestCallback;->l:[Lkotlin/u/j;
const/4 v2, 0x0
aget-object v1, v1, v2
invoke-interface {v0}, Lkotlin/e;->getValue()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/nio/ByteBuffer;
return-object v0
.end method
.method private final d()V
.locals 1
.line 1
iget-boolean v0, p0, Lcom/vk/httpexecutor/cronet/RequestCallback;->g:Z
if-nez v0, :cond_0
const/4 v0, 0x1
.line 2
iput-boolean v0, p0, Lcom/vk/httpexecutor/cronet/RequestCallback;->g:Z
.line 3
iget-object v0, p0, Lcom/vk/httpexecutor/cronet/RequestCallback;->k:Lkotlin/jvm/b/a;
invoke-interface {v0}, Lkotlin/jvm/b/a;->invoke()Ljava/lang/Object;
:cond_0
return-void
.end method
# virtual methods
.method public final a(Lorg/chromium/net/w;J)Ljava/nio/ByteBuffer;
.locals 3
.annotation build Landroidx/annotation/WorkerThread;
.end annotation
.line 11
iget-object v0, p0, Lcom/vk/httpexecutor/cronet/RequestCallback;->e:Lcom/vk/httpexecutor/cronet/b;
const/4 v1, 0x1
invoke-virtual {v0, v1}, Lcom/vk/httpexecutor/cronet/b;->a(Z)V
.line 12
invoke-direct {p0}, Lcom/vk/httpexecutor/cronet/RequestCallback;->b()V
.line 13
iget-object v0, p0, Lcom/vk/httpexecutor/cronet/RequestCallback;->f:Lcom/vk/httpexecutor/cronet/b;
const/4 v2, 0x0
invoke-virtual {v0, v2}, Lcom/vk/httpexecutor/cronet/b;->b(Z)V
.line 14
invoke-direct {p0}, Lcom/vk/httpexecutor/cronet/RequestCallback;->c()Ljava/nio/ByteBuffer;
move-result-object v0
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->clear()Ljava/nio/Buffer;
.line 15
invoke-direct {p0}, Lcom/vk/httpexecutor/cronet/RequestCallback;->c()Ljava/nio/ByteBuffer;
move-result-object v0
invoke-virtual {p1, v0}, Lorg/chromium/net/w;->a(Ljava/nio/ByteBuffer;)V
.line 16
iget-object p1, p0, Lcom/vk/httpexecutor/cronet/RequestCallback;->f:Lcom/vk/httpexecutor/cronet/b;
invoke-virtual {p1, v1, p2, p3}, Lcom/vk/httpexecutor/cronet/b;->a(ZJ)Z
move-result p1
.line 17
invoke-direct {p0}, Lcom/vk/httpexecutor/cronet/RequestCallback;->b()V
if-eqz p1, :cond_1
.line 18
iget-boolean p1, p0, Lcom/vk/httpexecutor/cronet/RequestCallback;->c:Z
if-eqz p1, :cond_0
const/4 p1, 0x0
goto :goto_0
:cond_0
invoke-direct {p0}, Lcom/vk/httpexecutor/cronet/RequestCallback;->c()Ljava/nio/ByteBuffer;
move-result-object p1
:goto_0
return-object p1
.line 19
:cond_1
new-instance p1, Ljava/net/SocketTimeoutException;
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "Unable to read response\'s body in "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p2, p3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
const-string p2, "ms"
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/net/SocketTimeoutException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public final a()Lorg/chromium/net/x;
.locals 2
.line 8
iget-object v0, p0, Lcom/vk/httpexecutor/cronet/RequestCallback;->e:Lcom/vk/httpexecutor/cronet/b;
const/4 v1, 0x1
invoke-virtual {v0, v1}, Lcom/vk/httpexecutor/cronet/b;->a(Z)V
.line 9
invoke-direct {p0}, Lcom/vk/httpexecutor/cronet/RequestCallback;->b()V
.line 10
iget-object v0, p0, Lcom/vk/httpexecutor/cronet/RequestCallback;->a:Lorg/chromium/net/x;
if-eqz v0, :cond_0
return-object v0
:cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "Expect response to be not null at this stage"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public a(Lorg/chromium/net/w;Lorg/chromium/net/x;)V
.locals 0
.line 26
new-instance p1, Ljava/lang/InterruptedException;
const-string p2, "Request cancelled via manual call of #cancel"
invoke-direct {p1, p2}, Ljava/lang/InterruptedException;-><init>(Ljava/lang/String;)V
iput-object p1, p0, Lcom/vk/httpexecutor/cronet/RequestCallback;->b:Ljava/lang/Throwable;
.line 27
iget-object p1, p0, Lcom/vk/httpexecutor/cronet/RequestCallback;->e:Lcom/vk/httpexecutor/cronet/b;
const/4 p2, 0x1
invoke-virtual {p1, p2}, Lcom/vk/httpexecutor/cronet/b;->b(Z)V
.line 28
iget-object p1, p0, Lcom/vk/httpexecutor/cronet/RequestCallback;->f:Lcom/vk/httpexecutor/cronet/b;
invoke-virtual {p1, p2}, Lcom/vk/httpexecutor/cronet/b;->b(Z)V
.line 29
invoke-direct {p0}, Lcom/vk/httpexecutor/cronet/RequestCallback;->d()V
return-void
.end method
.method public a(Lorg/chromium/net/w;Lorg/chromium/net/x;Ljava/lang/String;)V
.locals 6
.line 1
iget-boolean p2, p0, Lcom/vk/httpexecutor/cronet/RequestCallback;->i:Z
const/16 v0, 0x27
const-string v1, "\' to \'"
if-eqz p2, :cond_4
.line 2
iget-object p2, p0, Lcom/vk/httpexecutor/cronet/RequestCallback;->h:Lcom/vk/httpexecutor/api/e;
invoke-virtual {p2}, Lcom/vk/httpexecutor/api/e;->e()Z
move-result p2
const-string v2, "SSL redirects disabled. Trying to redirect from origin \'"
const/4 v3, 0x0
const/4 v4, 0x2
const/4 v5, 0x0
if-eqz p2, :cond_1
const-string p2, "https://"
invoke-static {p3, p2, v5, v4, v3}, Lkotlin/text/l;->c(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/Object;)Z
move-result p2
if-eqz p2, :cond_1
iget-boolean p2, p0, Lcom/vk/httpexecutor/cronet/RequestCallback;->j:Z
if-eqz p2, :cond_0
goto :goto_0
.line 3
:cond_0
new-instance p1, Lcom/vk/httpexecutor/api/exceptions/HttpRedirectException;
new-instance p2, Ljava/lang/StringBuilder;
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {p2, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v2, p0, Lcom/vk/httpexecutor/cronet/RequestCallback;->h:Lcom/vk/httpexecutor/api/e;
invoke-virtual {v2}, Lcom/vk/httpexecutor/api/e;->d()Ljava/lang/String;
move-result-object v2
invoke-virtual {p2, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Lcom/vk/httpexecutor/api/exceptions/HttpRedirectException;-><init>(Ljava/lang/String;)V
throw p1
.line 4
:cond_1
:goto_0
iget-object p2, p0, Lcom/vk/httpexecutor/cronet/RequestCallback;->h:Lcom/vk/httpexecutor/api/e;
invoke-virtual {p2}, Lcom/vk/httpexecutor/api/e;->f()Z
move-result p2
if-eqz p2, :cond_3
const-string p2, "http://"
invoke-static {p3, p2, v5, v4, v3}, Lkotlin/text/l;->c(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/Object;)Z
move-result p2
if-eqz p2, :cond_3
iget-boolean p2, p0, Lcom/vk/httpexecutor/cronet/RequestCallback;->j:Z
if-eqz p2, :cond_2
goto :goto_1
.line 5
:cond_2
new-instance p1, Lcom/vk/httpexecutor/api/exceptions/HttpRedirectException;
new-instance p2, Ljava/lang/StringBuilder;
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {p2, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v2, p0, Lcom/vk/httpexecutor/cronet/RequestCallback;->h:Lcom/vk/httpexecutor/api/e;
invoke-virtual {v2}, Lcom/vk/httpexecutor/api/e;->d()Ljava/lang/String;
move-result-object v2
invoke-virtual {p2, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Lcom/vk/httpexecutor/api/exceptions/HttpRedirectException;-><init>(Ljava/lang/String;)V
throw p1
.line 6
:cond_3
:goto_1
invoke-virtual {p1}, Lorg/chromium/net/w;->b()V
return-void
.line 7
:cond_4
new-instance p1, Lcom/vk/httpexecutor/api/exceptions/HttpRedirectException;
new-instance p2, Ljava/lang/StringBuilder;
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "All redirects disabled. Trying to redirect from origin \'"
invoke-virtual {p2, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v2, p0, Lcom/vk/httpexecutor/cronet/RequestCallback;->h:Lcom/vk/httpexecutor/api/e;
invoke-virtual {v2}, Lcom/vk/httpexecutor/api/e;->d()Ljava/lang/String;
move-result-object v2
invoke-virtual {p2, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Lcom/vk/httpexecutor/api/exceptions/HttpRedirectException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public a(Lorg/chromium/net/w;Lorg/chromium/net/x;Ljava/nio/ByteBuffer;)V
.locals 0
.line 20
invoke-virtual {p3}, Ljava/nio/ByteBuffer;->flip()Ljava/nio/Buffer;
.line 21
iget-object p1, p0, Lcom/vk/httpexecutor/cronet/RequestCallback;->f:Lcom/vk/httpexecutor/cronet/b;
const/4 p2, 0x1
invoke-virtual {p1, p2}, Lcom/vk/httpexecutor/cronet/b;->b(Z)V
return-void
.end method
.method public a(Lorg/chromium/net/w;Lorg/chromium/net/x;Lorg/chromium/net/CronetException;)V
.locals 0
.line 22
invoke-static {p3}, Lcom/vk/httpexecutor/cronet/c;->a(Lorg/chromium/net/CronetException;)Ljava/lang/Throwable;
move-result-object p1
iput-object p1, p0, Lcom/vk/httpexecutor/cronet/RequestCallback;->b:Ljava/lang/Throwable;
.line 23
iget-object p1, p0, Lcom/vk/httpexecutor/cronet/RequestCallback;->e:Lcom/vk/httpexecutor/cronet/b;
const/4 p2, 0x1
invoke-virtual {p1, p2}, Lcom/vk/httpexecutor/cronet/b;->b(Z)V
.line 24
iget-object p1, p0, Lcom/vk/httpexecutor/cronet/RequestCallback;->f:Lcom/vk/httpexecutor/cronet/b;
invoke-virtual {p1, p2}, Lcom/vk/httpexecutor/cronet/b;->b(Z)V
.line 25
invoke-direct {p0}, Lcom/vk/httpexecutor/cronet/RequestCallback;->d()V
return-void
.end method
.method public b(Lorg/chromium/net/w;Lorg/chromium/net/x;)V
.locals 0
.line 1
iput-object p2, p0, Lcom/vk/httpexecutor/cronet/RequestCallback;->a:Lorg/chromium/net/x;
.line 2
iget-object p1, p0, Lcom/vk/httpexecutor/cronet/RequestCallback;->e:Lcom/vk/httpexecutor/cronet/b;
const/4 p2, 0x1
invoke-virtual {p1, p2}, Lcom/vk/httpexecutor/cronet/b;->b(Z)V
.line 3
invoke-direct {p0}, Lcom/vk/httpexecutor/cronet/RequestCallback;->d()V
return-void
.end method
.method public c(Lorg/chromium/net/w;Lorg/chromium/net/x;)V
.locals 0
const/4 p1, 0x1
.line 1
iput-boolean p1, p0, Lcom/vk/httpexecutor/cronet/RequestCallback;->c:Z
.line 2
iget-object p2, p0, Lcom/vk/httpexecutor/cronet/RequestCallback;->e:Lcom/vk/httpexecutor/cronet/b;
invoke-virtual {p2, p1}, Lcom/vk/httpexecutor/cronet/b;->b(Z)V
.line 3
iget-object p2, p0, Lcom/vk/httpexecutor/cronet/RequestCallback;->f:Lcom/vk/httpexecutor/cronet/b;
invoke-virtual {p2, p1}, Lcom/vk/httpexecutor/cronet/b;->b(Z)V
.line 4
invoke-direct {p0}, Lcom/vk/httpexecutor/cronet/RequestCallback;->d()V
return-void
.end method
@@ -0,0 +1,34 @@
.class public final Lcom/vk/httpexecutor/cronet/a$a;
.super Ljava/lang/Object;
.source "BodyInputStream.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/vk/httpexecutor/cronet/a;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "a"
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public synthetic constructor <init>(Lkotlin/jvm/internal/i;)V
.locals 0
.line 2
invoke-direct {p0}, Lcom/vk/httpexecutor/cronet/a$a;-><init>()V
return-void
.end method
@@ -0,0 +1,534 @@
.class public final Lcom/vk/httpexecutor/cronet/a;
.super Ljava/io/InputStream;
.source "BodyInputStream.kt"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/vk/httpexecutor/cronet/a$a;
}
.end annotation
# instance fields
.field private final a:Ljava/lang/Object;
.field private b:Ljava/nio/ByteBuffer;
.annotation build Landroidx/annotation/GuardedBy;
value = "lock"
.end annotation
.end field
.field private c:I
.annotation build Landroidx/annotation/GuardedBy;
value = "lock"
.end annotation
.end field
.field private final d:Lkotlin/jvm/b/a;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/b/a<",
"Ljava/nio/ByteBuffer;",
">;"
}
.end annotation
.end field
.field private final e:Lkotlin/jvm/b/b;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/b/b<",
"Ljava/lang/Throwable;",
"Lkotlin/m;",
">;"
}
.end annotation
.end field
.field private final f:Lkotlin/jvm/b/a;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/b/a<",
"Lkotlin/m;",
">;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.locals 2
new-instance v0, Lcom/vk/httpexecutor/cronet/a$a;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lcom/vk/httpexecutor/cronet/a$a;-><init>(Lkotlin/jvm/internal/i;)V
return-void
.end method
.method public constructor <init>(Lkotlin/jvm/b/a;Lkotlin/jvm/b/b;Lkotlin/jvm/b/a;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/jvm/b/a<",
"+",
"Ljava/nio/ByteBuffer;",
">;",
"Lkotlin/jvm/b/b<",
"-",
"Ljava/lang/Throwable;",
"Lkotlin/m;",
">;",
"Lkotlin/jvm/b/a<",
"Lkotlin/m;",
">;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/io/InputStream;-><init>()V
iput-object p1, p0, Lcom/vk/httpexecutor/cronet/a;->d:Lkotlin/jvm/b/a;
iput-object p2, p0, Lcom/vk/httpexecutor/cronet/a;->e:Lkotlin/jvm/b/b;
iput-object p3, p0, Lcom/vk/httpexecutor/cronet/a;->f:Lkotlin/jvm/b/a;
.line 2
new-instance p1, Ljava/lang/Object;
invoke-direct {p1}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/vk/httpexecutor/cronet/a;->a:Ljava/lang/Object;
const/4 p1, 0x1
.line 3
iput p1, p0, Lcom/vk/httpexecutor/cronet/a;->c:I
return-void
.end method
.method public static final synthetic a(Lcom/vk/httpexecutor/cronet/a;)Ljava/nio/ByteBuffer;
.locals 0
.line 1
iget-object p0, p0, Lcom/vk/httpexecutor/cronet/a;->b:Ljava/nio/ByteBuffer;
return-object p0
.end method
.method public static final synthetic a(Lcom/vk/httpexecutor/cronet/a;I)V
.locals 0
.line 3
iput p1, p0, Lcom/vk/httpexecutor/cronet/a;->c:I
return-void
.end method
.method public static final synthetic a(Lcom/vk/httpexecutor/cronet/a;Ljava/nio/ByteBuffer;)V
.locals 0
.line 2
iput-object p1, p0, Lcom/vk/httpexecutor/cronet/a;->b:Ljava/nio/ByteBuffer;
return-void
.end method
.method public static final synthetic b(Lcom/vk/httpexecutor/cronet/a;)I
.locals 0
.line 1
iget p0, p0, Lcom/vk/httpexecutor/cronet/a;->c:I
return p0
.end method
.method public static final synthetic c(Lcom/vk/httpexecutor/cronet/a;)Lkotlin/jvm/b/a;
.locals 0
.line 1
iget-object p0, p0, Lcom/vk/httpexecutor/cronet/a;->d:Lkotlin/jvm/b/a;
return-object p0
.end method
.method public static final synthetic d(Lcom/vk/httpexecutor/cronet/a;)Lkotlin/jvm/b/b;
.locals 0
.line 1
iget-object p0, p0, Lcom/vk/httpexecutor/cronet/a;->e:Lkotlin/jvm/b/b;
return-object p0
.end method
.method public static final synthetic e(Lcom/vk/httpexecutor/cronet/a;)Ljava/lang/Object;
.locals 0
.line 1
iget-object p0, p0, Lcom/vk/httpexecutor/cronet/a;->a:Ljava/lang/Object;
return-object p0
.end method
# virtual methods
.method public close()V
.locals 1
.line 1
invoke-super {p0}, Ljava/io/InputStream;->close()V
.line 2
iget-object v0, p0, Lcom/vk/httpexecutor/cronet/a;->f:Lkotlin/jvm/b/a;
invoke-interface {v0}, Lkotlin/jvm/b/a;->invoke()Ljava/lang/Object;
return-void
.end method
.method public read()I
.locals 6
.line 1
:try_start_0
invoke-static {p0}, Lcom/vk/httpexecutor/cronet/a;->e(Lcom/vk/httpexecutor/cronet/a;)Ljava/lang/Object;
move-result-object v0
monitor-enter v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
.line 2
:cond_0
:goto_0
:try_start_1
invoke-static {p0}, Lcom/vk/httpexecutor/cronet/a;->b(Lcom/vk/httpexecutor/cronet/a;)I
move-result v1
const/4 v2, 0x3
const/4 v3, 0x2
const/4 v4, 0x1
if-ne v1, v4, :cond_2
.line 3
invoke-static {p0}, Lcom/vk/httpexecutor/cronet/a;->c(Lcom/vk/httpexecutor/cronet/a;)Lkotlin/jvm/b/a;
move-result-object v1
invoke-interface {v1}, Lkotlin/jvm/b/a;->invoke()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/nio/ByteBuffer;
invoke-static {p0, v1}, Lcom/vk/httpexecutor/cronet/a;->a(Lcom/vk/httpexecutor/cronet/a;Ljava/nio/ByteBuffer;)V
.line 4
invoke-static {p0}, Lcom/vk/httpexecutor/cronet/a;->a(Lcom/vk/httpexecutor/cronet/a;)Ljava/nio/ByteBuffer;
move-result-object v1
if-nez v1, :cond_1
goto :goto_1
:cond_1
const/4 v2, 0x2
:goto_1
invoke-static {p0, v2}, Lcom/vk/httpexecutor/cronet/a;->a(Lcom/vk/httpexecutor/cronet/a;I)V
goto :goto_0
.line 5
:cond_2
invoke-static {p0}, Lcom/vk/httpexecutor/cronet/a;->b(Lcom/vk/httpexecutor/cronet/a;)I
move-result v1
const/4 v5, -0x1
if-ne v1, v3, :cond_7
.line 6
invoke-static {p0}, Lcom/vk/httpexecutor/cronet/a;->a(Lcom/vk/httpexecutor/cronet/a;)Ljava/nio/ByteBuffer;
move-result-object v1
if-eqz v1, :cond_6
.line 7
invoke-virtual {v1}, Ljava/nio/ByteBuffer;->hasRemaining()Z
move-result v2
if-ne v2, v4, :cond_3
.line 8
invoke-virtual {v1}, Ljava/nio/ByteBuffer;->get()B
move-result v1
move v5, v1
goto :goto_2
:cond_3
if-nez v2, :cond_5
:goto_2
if-gez v5, :cond_4
.line 9
invoke-static {p0, v4}, Lcom/vk/httpexecutor/cronet/a;->a(Lcom/vk/httpexecutor/cronet/a;I)V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
goto :goto_0
.line 10
:cond_4
:try_start_2
monitor-exit v0
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_1
goto :goto_3
.line 11
:cond_5
:try_start_3
new-instance v1, Lkotlin/NoWhenBranchMatchedException;
invoke-direct {v1}, Lkotlin/NoWhenBranchMatchedException;-><init>()V
throw v1
.line 12
:cond_6
invoke-static {}, Lkotlin/jvm/internal/m;->a()V
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_0
const/4 v0, 0x0
throw v0
.line 13
:cond_7
:try_start_4
invoke-static {p0}, Lcom/vk/httpexecutor/cronet/a;->b(Lcom/vk/httpexecutor/cronet/a;)I
move-result v1
:try_end_4
.catchall {:try_start_4 .. :try_end_4} :catchall_0
if-ne v1, v2, :cond_0
.line 14
:try_start_5
monitor-exit v0
:goto_3
return v5
:catchall_0
move-exception v1
.line 15
monitor-exit v0
throw v1
:try_end_5
.catchall {:try_start_5 .. :try_end_5} :catchall_1
:catchall_1
move-exception v0
.line 16
invoke-static {p0}, Lcom/vk/httpexecutor/cronet/a;->d(Lcom/vk/httpexecutor/cronet/a;)Lkotlin/jvm/b/b;
move-result-object v1
invoke-interface {v1, v0}, Lkotlin/jvm/b/b;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
.line 17
throw v0
.end method
.method public read([BII)I
.locals 6
.line 18
:try_start_0
invoke-static {p0}, Lcom/vk/httpexecutor/cronet/a;->e(Lcom/vk/httpexecutor/cronet/a;)Ljava/lang/Object;
move-result-object v0
monitor-enter v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
.line 19
:cond_0
:goto_0
:try_start_1
invoke-static {p0}, Lcom/vk/httpexecutor/cronet/a;->b(Lcom/vk/httpexecutor/cronet/a;)I
move-result v1
const/4 v2, 0x3
const/4 v3, 0x2
const/4 v4, 0x1
if-ne v1, v4, :cond_2
.line 20
invoke-static {p0}, Lcom/vk/httpexecutor/cronet/a;->c(Lcom/vk/httpexecutor/cronet/a;)Lkotlin/jvm/b/a;
move-result-object v1
invoke-interface {v1}, Lkotlin/jvm/b/a;->invoke()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/nio/ByteBuffer;
invoke-static {p0, v1}, Lcom/vk/httpexecutor/cronet/a;->a(Lcom/vk/httpexecutor/cronet/a;Ljava/nio/ByteBuffer;)V
.line 21
invoke-static {p0}, Lcom/vk/httpexecutor/cronet/a;->a(Lcom/vk/httpexecutor/cronet/a;)Ljava/nio/ByteBuffer;
move-result-object v1
if-nez v1, :cond_1
goto :goto_1
:cond_1
const/4 v2, 0x2
:goto_1
invoke-static {p0, v2}, Lcom/vk/httpexecutor/cronet/a;->a(Lcom/vk/httpexecutor/cronet/a;I)V
goto :goto_0
.line 22
:cond_2
invoke-static {p0}, Lcom/vk/httpexecutor/cronet/a;->b(Lcom/vk/httpexecutor/cronet/a;)I
move-result v1
const/4 v5, -0x1
if-ne v1, v3, :cond_6
.line 23
invoke-static {p0}, Lcom/vk/httpexecutor/cronet/a;->a(Lcom/vk/httpexecutor/cronet/a;)Ljava/nio/ByteBuffer;
move-result-object v1
if-eqz v1, :cond_5
.line 24
invoke-virtual {v1}, Ljava/nio/ByteBuffer;->remaining()I
move-result v2
invoke-static {p3, v2}, Ljava/lang/Math;->min(II)I
move-result v2
if-lez v2, :cond_3
.line 25
invoke-virtual {v1, p1, p2, v2}, Ljava/nio/ByteBuffer;->get([BII)Ljava/nio/ByteBuffer;
move v5, v2
:cond_3
if-gez v5, :cond_4
.line 26
invoke-static {p0, v4}, Lcom/vk/httpexecutor/cronet/a;->a(Lcom/vk/httpexecutor/cronet/a;I)V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
goto :goto_0
.line 27
:cond_4
:try_start_2
monitor-exit v0
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_1
goto :goto_2
.line 28
:cond_5
:try_start_3
invoke-static {}, Lkotlin/jvm/internal/m;->a()V
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_0
const/4 p1, 0x0
throw p1
.line 29
:cond_6
:try_start_4
invoke-static {p0}, Lcom/vk/httpexecutor/cronet/a;->b(Lcom/vk/httpexecutor/cronet/a;)I
move-result v1
:try_end_4
.catchall {:try_start_4 .. :try_end_4} :catchall_0
if-ne v1, v2, :cond_0
.line 30
:try_start_5
monitor-exit v0
:goto_2
return v5
:catchall_0
move-exception p1
.line 31
monitor-exit v0
throw p1
:try_end_5
.catchall {:try_start_5 .. :try_end_5} :catchall_1
:catchall_1
move-exception p1
.line 32
invoke-static {p0}, Lcom/vk/httpexecutor/cronet/a;->d(Lcom/vk/httpexecutor/cronet/a;)Lkotlin/jvm/b/b;
move-result-object p2
invoke-interface {p2, p1}, Lkotlin/jvm/b/b;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
.line 33
throw p1
.end method
@@ -0,0 +1,266 @@
.class public final Lcom/vk/httpexecutor/cronet/b;
.super Ljava/lang/Object;
.source "ConditionLock.kt"
# instance fields
.field private final a:Ljava/lang/Object;
.field private b:Z
.annotation build Landroidx/annotation/GuardedBy;
value = "lock"
.end annotation
.end field
.field private c:Z
.annotation build Landroidx/annotation/GuardedBy;
value = "lock"
.end annotation
.end field
# direct methods
.method public constructor <init>(Z)V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-boolean p1, p0, Lcom/vk/httpexecutor/cronet/b;->c:Z
.line 2
new-instance p1, Ljava/lang/Object;
invoke-direct {p1}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/vk/httpexecutor/cronet/b;->a:Ljava/lang/Object;
return-void
.end method
.method private final b()J
.locals 2
.line 6
invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J
move-result-wide v0
return-wide v0
.end method
# virtual methods
.method public final a()V
.locals 2
.line 1
iget-object v0, p0, Lcom/vk/httpexecutor/cronet/b;->a:Ljava/lang/Object;
monitor-enter v0
const/4 v1, 0x1
.line 2
:try_start_0
iput-boolean v1, p0, Lcom/vk/httpexecutor/cronet/b;->b:Z
.line 3
iget-object v1, p0, Lcom/vk/httpexecutor/cronet/b;->a:Ljava/lang/Object;
invoke-virtual {v1}, Ljava/lang/Object;->notifyAll()V
.line 4
sget-object v1, Lkotlin/m;->a:Lkotlin/m;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 5
monitor-exit v0
return-void
:catchall_0
move-exception v1
monitor-exit v0
throw v1
.end method
.method public final a(Z)V
.locals 2
.line 6
iget-object v0, p0, Lcom/vk/httpexecutor/cronet/b;->a:Ljava/lang/Object;
monitor-enter v0
.line 7
:goto_0
:try_start_0
iget-boolean v1, p0, Lcom/vk/httpexecutor/cronet/b;->c:Z
if-eq v1, p1, :cond_0
.line 8
iget-object v1, p0, Lcom/vk/httpexecutor/cronet/b;->a:Ljava/lang/Object;
invoke-virtual {v1}, Ljava/lang/Object;->wait()V
goto :goto_0
.line 9
:cond_0
sget-object p1, Lkotlin/m;->a:Lkotlin/m;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 10
monitor-exit v0
return-void
:catchall_0
move-exception p1
monitor-exit v0
throw p1
.end method
.method public final a(ZJ)Z
.locals 8
const/4 v0, 0x1
const-wide/16 v1, 0x0
cmp-long v3, p2, v1
if-gtz v3, :cond_0
.line 11
invoke-virtual {p0, p1}, Lcom/vk/httpexecutor/cronet/b;->a(Z)V
return v0
.line 12
:cond_0
iget-object v1, p0, Lcom/vk/httpexecutor/cronet/b;->a:Ljava/lang/Object;
monitor-enter v1
.line 13
:try_start_0
invoke-direct {p0}, Lcom/vk/httpexecutor/cronet/b;->b()J
move-result-wide v2
add-long v4, v2, p2
.line 14
:goto_0
iget-boolean v6, p0, Lcom/vk/httpexecutor/cronet/b;->c:Z
const/4 v7, 0x0
if-eq v6, p1, :cond_2
cmp-long v6, v2, v4
if-gez v6, :cond_2
.line 15
iget-object v6, p0, Lcom/vk/httpexecutor/cronet/b;->a:Ljava/lang/Object;
sub-long v2, v4, v2
invoke-virtual {v6, v2, v3}, Ljava/lang/Object;->wait(J)V
.line 16
iget-boolean v2, p0, Lcom/vk/httpexecutor/cronet/b;->b:Z
if-eqz v2, :cond_1
.line 17
invoke-direct {p0}, Lcom/vk/httpexecutor/cronet/b;->b()J
move-result-wide v2
add-long v4, v2, p2
.line 18
iput-boolean v7, p0, Lcom/vk/httpexecutor/cronet/b;->b:Z
goto :goto_0
.line 19
:cond_1
invoke-direct {p0}, Lcom/vk/httpexecutor/cronet/b;->b()J
move-result-wide v2
goto :goto_0
.line 20
:cond_2
iget-boolean p2, p0, Lcom/vk/httpexecutor/cronet/b;->c:Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-ne p2, p1, :cond_3
goto :goto_1
:cond_3
const/4 v0, 0x0
:goto_1
monitor-exit v1
return v0
:catchall_0
move-exception p1
.line 21
monitor-exit v1
throw p1
.end method
.method public final b(Z)V
.locals 1
.line 1
iget-object v0, p0, Lcom/vk/httpexecutor/cronet/b;->a:Ljava/lang/Object;
monitor-enter v0
.line 2
:try_start_0
iput-boolean p1, p0, Lcom/vk/httpexecutor/cronet/b;->c:Z
.line 3
iget-object p1, p0, Lcom/vk/httpexecutor/cronet/b;->a:Ljava/lang/Object;
invoke-virtual {p1}, Ljava/lang/Object;->notifyAll()V
.line 4
sget-object p1, Lkotlin/m;->a:Lkotlin/m;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 5
monitor-exit v0
return-void
:catchall_0
move-exception p1
monitor-exit v0
throw p1
.end method
@@ -0,0 +1,746 @@
.class public final Lcom/vk/httpexecutor/cronet/c;
.super Ljava/lang/Object;
.source "CronetExt.kt"
# direct methods
.method public static final a(Ljava/lang/String;)Lcom/vk/httpexecutor/api/HttpProtocol;
.locals 2
const/4 v0, 0x1
const-string v1, "h2"
.line 21
invoke-static {p0, v1, v0}, Lkotlin/text/l;->b(Ljava/lang/String;Ljava/lang/String;Z)Z
move-result v1
if-eqz v1, :cond_0
sget-object p0, Lcom/vk/httpexecutor/api/HttpProtocol;->HTTP_2:Lcom/vk/httpexecutor/api/HttpProtocol;
goto :goto_0
:cond_0
const-string v1, "http/2"
.line 22
invoke-static {p0, v1, v0}, Lkotlin/text/l;->b(Ljava/lang/String;Ljava/lang/String;Z)Z
move-result v1
if-eqz v1, :cond_1
sget-object p0, Lcom/vk/httpexecutor/api/HttpProtocol;->HTTP_2:Lcom/vk/httpexecutor/api/HttpProtocol;
goto :goto_0
:cond_1
const-string v1, "http/1.1"
.line 23
invoke-static {p0, v1, v0}, Lkotlin/text/l;->b(Ljava/lang/String;Ljava/lang/String;Z)Z
move-result v1
if-eqz v1, :cond_2
sget-object p0, Lcom/vk/httpexecutor/api/HttpProtocol;->HTTP_1_1:Lcom/vk/httpexecutor/api/HttpProtocol;
goto :goto_0
:cond_2
const-string v1, "quic"
.line 24
invoke-static {p0, v1, v0}, Lkotlin/text/l;->a(Ljava/lang/CharSequence;Ljava/lang/CharSequence;Z)Z
move-result v1
if-eqz v1, :cond_3
sget-object p0, Lcom/vk/httpexecutor/api/HttpProtocol;->QUIC:Lcom/vk/httpexecutor/api/HttpProtocol;
goto :goto_0
:cond_3
const-string v1, "spdy"
.line 25
invoke-static {p0, v1, v0}, Lkotlin/text/l;->a(Ljava/lang/CharSequence;Ljava/lang/CharSequence;Z)Z
move-result p0
if-eqz p0, :cond_4
sget-object p0, Lcom/vk/httpexecutor/api/HttpProtocol;->SPDY:Lcom/vk/httpexecutor/api/HttpProtocol;
goto :goto_0
.line 26
:cond_4
sget-object p0, Lcom/vk/httpexecutor/api/HttpProtocol;->UNKNOWN:Lcom/vk/httpexecutor/api/HttpProtocol;
:goto_0
return-object p0
.end method
.method public static final a(Lorg/chromium/net/q;Lcom/vk/httpexecutor/api/utils/NetworkTypeDetector;Lcom/vk/httpexecutor/api/utils/RoamingDetector;)Lcom/vk/httpexecutor/api/b;
.locals 23
.line 11
invoke-virtual/range {p0 .. p0}, Lorg/chromium/net/q;->a()Lorg/chromium/net/q$b;
move-result-object v0
const-string v1, "metrics"
invoke-static {v0, v1}, Lkotlin/jvm/internal/m;->a(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0}, Lorg/chromium/net/q$b;->d()Ljava/util/Date;
move-result-object v0
const/4 v2, 0x0
if-eqz v0, :cond_0
:goto_0
invoke-virtual {v0}, Ljava/util/Date;->getTime()J
move-result-wide v3
invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v0
goto :goto_1
:cond_0
invoke-virtual/range {p0 .. p0}, Lorg/chromium/net/q;->a()Lorg/chromium/net/q$b;
move-result-object v0
invoke-static {v0, v1}, Lkotlin/jvm/internal/m;->a(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0}, Lorg/chromium/net/q$b;->b()Ljava/util/Date;
move-result-object v0
if-eqz v0, :cond_1
goto :goto_0
:cond_1
move-object v0, v2
:goto_1
if-eqz v0, :cond_2
move-object v2, v0
goto :goto_2
:cond_2
invoke-virtual/range {p0 .. p0}, Lorg/chromium/net/q;->a()Lorg/chromium/net/q$b;
move-result-object v0
invoke-static {v0, v1}, Lkotlin/jvm/internal/m;->a(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0}, Lorg/chromium/net/q$b;->g()Ljava/util/Date;
move-result-object v0
if-eqz v0, :cond_3
invoke-virtual {v0}, Ljava/util/Date;->getTime()J
move-result-wide v2
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v2
:cond_3
:goto_2
const-wide/16 v3, 0x0
if-eqz v2, :cond_4
invoke-virtual {v2}, Ljava/lang/Long;->longValue()J
move-result-wide v5
goto :goto_3
:cond_4
move-wide v5, v3
.line 12
:goto_3
invoke-virtual/range {p0 .. p0}, Lorg/chromium/net/q;->a()Lorg/chromium/net/q$b;
move-result-object v0
invoke-static {v0, v1}, Lkotlin/jvm/internal/m;->a(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0}, Lorg/chromium/net/q$b;->f()Ljava/util/Date;
move-result-object v0
if-eqz v0, :cond_5
invoke-virtual {v0}, Ljava/util/Date;->getTime()J
move-result-wide v7
goto :goto_4
:cond_5
move-wide v7, v3
.line 13
:goto_4
invoke-virtual/range {p0 .. p0}, Lorg/chromium/net/q;->a()Lorg/chromium/net/q$b;
move-result-object v0
invoke-static {v0, v1}, Lkotlin/jvm/internal/m;->a(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0}, Lorg/chromium/net/q$b;->e()Ljava/util/Date;
move-result-object v0
if-eqz v0, :cond_6
invoke-virtual {v0}, Ljava/util/Date;->getTime()J
move-result-wide v9
goto :goto_5
:cond_6
move-wide v9, v3
.line 14
:goto_5
new-instance v0, Lcom/vk/httpexecutor/api/b;
.line 15
invoke-virtual/range {p1 .. p1}, Lcom/vk/httpexecutor/api/utils/NetworkTypeDetector;->a()Lcom/vk/httpexecutor/api/NetworkType;
move-result-object v12
.line 16
invoke-virtual/range {p2 .. p2}, Lcom/vk/httpexecutor/api/utils/RoamingDetector;->a()Z
move-result v13
.line 17
invoke-virtual/range {p0 .. p0}, Lorg/chromium/net/q;->a()Lorg/chromium/net/q$b;
move-result-object v2
invoke-static {v2, v1}, Lkotlin/jvm/internal/m;->a(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v2}, Lorg/chromium/net/q$b;->h()Z
move-result v14
.line 18
invoke-virtual/range {p0 .. p0}, Lorg/chromium/net/q;->a()Lorg/chromium/net/q$b;
move-result-object v2
invoke-static {v2, v1}, Lkotlin/jvm/internal/m;->a(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v2}, Lorg/chromium/net/q$b;->c()Ljava/util/Date;
move-result-object v2
if-eqz v2, :cond_7
invoke-virtual {v2}, Ljava/util/Date;->getTime()J
move-result-wide v15
goto :goto_6
:cond_7
move-wide v15, v3
:goto_6
invoke-virtual/range {p0 .. p0}, Lorg/chromium/net/q;->a()Lorg/chromium/net/q$b;
move-result-object v2
invoke-static {v2, v1}, Lkotlin/jvm/internal/m;->a(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v2}, Lorg/chromium/net/q$b;->d()Ljava/util/Date;
move-result-object v2
if-eqz v2, :cond_8
invoke-virtual {v2}, Ljava/util/Date;->getTime()J
move-result-wide v17
goto :goto_7
:cond_8
move-wide/from16 v17, v3
:goto_7
sub-long v15, v15, v17
.line 19
invoke-virtual/range {p0 .. p0}, Lorg/chromium/net/q;->a()Lorg/chromium/net/q$b;
move-result-object v2
invoke-static {v2, v1}, Lkotlin/jvm/internal/m;->a(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v2}, Lorg/chromium/net/q$b;->a()Ljava/util/Date;
move-result-object v2
if-eqz v2, :cond_9
invoke-virtual {v2}, Ljava/util/Date;->getTime()J
move-result-wide v17
goto :goto_8
:cond_9
move-wide/from16 v17, v3
:goto_8
invoke-virtual/range {p0 .. p0}, Lorg/chromium/net/q;->a()Lorg/chromium/net/q$b;
move-result-object v2
invoke-static {v2, v1}, Lkotlin/jvm/internal/m;->a(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v2}, Lorg/chromium/net/q$b;->b()Ljava/util/Date;
move-result-object v1
if-eqz v1, :cond_a
invoke-virtual {v1}, Ljava/util/Date;->getTime()J
move-result-wide v3
:cond_a
sub-long v17, v17, v3
sub-long v19, v7, v5
sub-long v21, v9, v5
move-object v11, v0
.line 20
invoke-direct/range {v11 .. v22}, Lcom/vk/httpexecutor/api/b;-><init>(Lcom/vk/httpexecutor/api/NetworkType;ZZJJJJ)V
return-object v0
.end method
.method public static final a(Lorg/chromium/net/CronetException;)Ljava/lang/Throwable;
.locals 3
.line 27
instance-of v0, p0, Lorg/chromium/net/NetworkException;
const/4 v1, 0x1
if-eqz v0, :cond_e
move-object v0, p0
check-cast v0, Lorg/chromium/net/NetworkException;
invoke-virtual {v0}, Lorg/chromium/net/NetworkException;->a()I
move-result v0
if-eq v0, v1, :cond_c
const/4 v2, 0x2
if-eq v0, v2, :cond_a
const/4 v2, 0x4
if-eq v0, v2, :cond_8
const/4 v2, 0x6
if-eq v0, v2, :cond_6
const/4 v2, 0x7
if-eq v0, v2, :cond_4
const/16 v2, 0x9
if-eq v0, v2, :cond_2
const/16 v2, 0xa
if-eq v0, v2, :cond_0
.line 28
new-instance v0, Ljava/io/IOException;
invoke-direct {v0, p0}, Ljava/io/IOException;-><init>(Ljava/lang/Throwable;)V
goto/16 :goto_7
.line 29
:cond_0
new-instance v0, Lcom/vk/httpexecutor/api/exceptions/QuicException;
invoke-virtual {p0}, Ljava/io/IOException;->getMessage()Ljava/lang/String;
move-result-object v2
if-eqz v2, :cond_1
goto :goto_0
:cond_1
const-string v2, "ERROR_QUIC_PROTOCOL_FAILED"
:goto_0
invoke-direct {v0, v2}, Lcom/vk/httpexecutor/api/exceptions/QuicException;-><init>(Ljava/lang/String;)V
goto/16 :goto_7
.line 30
:cond_2
new-instance v0, Ljava/net/ConnectException;
invoke-virtual {p0}, Ljava/io/IOException;->getMessage()Ljava/lang/String;
move-result-object v2
if-eqz v2, :cond_3
goto :goto_1
:cond_3
const-string v2, "ERROR_ADDRESS_UNREACHABLE"
:goto_1
invoke-direct {v0, v2}, Ljava/net/ConnectException;-><init>(Ljava/lang/String;)V
goto/16 :goto_7
.line 31
:cond_4
new-instance v0, Ljava/net/ConnectException;
invoke-virtual {p0}, Ljava/io/IOException;->getMessage()Ljava/lang/String;
move-result-object v2
if-eqz v2, :cond_5
goto :goto_2
:cond_5
const-string v2, "ERROR_CONNECTION_REFUSED"
:goto_2
invoke-direct {v0, v2}, Ljava/net/ConnectException;-><init>(Ljava/lang/String;)V
goto :goto_7
.line 32
:cond_6
new-instance v0, Ljava/net/SocketTimeoutException;
invoke-virtual {p0}, Ljava/io/IOException;->getMessage()Ljava/lang/String;
move-result-object v2
if-eqz v2, :cond_7
goto :goto_3
:cond_7
const-string v2, "ERROR_CONNECTION_TIMED_OUT"
:goto_3
invoke-direct {v0, v2}, Ljava/net/SocketTimeoutException;-><init>(Ljava/lang/String;)V
goto :goto_7
.line 33
:cond_8
new-instance v0, Ljava/net/SocketTimeoutException;
invoke-virtual {p0}, Ljava/io/IOException;->getMessage()Ljava/lang/String;
move-result-object v2
if-eqz v2, :cond_9
goto :goto_4
:cond_9
const-string v2, "ERROR_TIMED_OUT"
:goto_4
invoke-direct {v0, v2}, Ljava/net/SocketTimeoutException;-><init>(Ljava/lang/String;)V
goto :goto_7
.line 34
:cond_a
new-instance v0, Lcom/vk/httpexecutor/api/exceptions/NoNetworkException;
invoke-virtual {p0}, Ljava/io/IOException;->getMessage()Ljava/lang/String;
move-result-object v2
if-eqz v2, :cond_b
goto :goto_5
:cond_b
const-string v2, "ERROR_INTERNET_DISCONNECTED"
:goto_5
invoke-direct {v0, v2}, Lcom/vk/httpexecutor/api/exceptions/NoNetworkException;-><init>(Ljava/lang/String;)V
goto :goto_7
.line 35
:cond_c
new-instance v0, Ljava/net/UnknownHostException;
invoke-virtual {p0}, Ljava/io/IOException;->getMessage()Ljava/lang/String;
move-result-object v2
if-eqz v2, :cond_d
goto :goto_6
:cond_d
const-string v2, "ERROR_HOSTNAME_NOT_RESOLVED"
:goto_6
invoke-direct {v0, v2}, Ljava/net/UnknownHostException;-><init>(Ljava/lang/String;)V
goto :goto_7
.line 36
:cond_e
instance-of v0, p0, Lorg/chromium/net/impl/CallbackExceptionImpl;
if-eqz v0, :cond_10
invoke-virtual {p0}, Ljava/io/IOException;->getCause()Ljava/lang/Throwable;
move-result-object v0
if-eqz v0, :cond_f
goto :goto_7
:cond_f
move-object v0, p0
goto :goto_7
.line 37
:cond_10
new-instance v0, Ljava/io/IOException;
invoke-direct {v0, p0}, Ljava/io/IOException;-><init>(Ljava/lang/Throwable;)V
.line 38
:goto_7
invoke-virtual {v0}, Ljava/lang/Throwable;->getCause()Ljava/lang/Throwable;
move-result-object v2
invoke-static {v2, p0}, Lkotlin/jvm/internal/m;->a(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v2
xor-int/2addr v1, v2
if-eqz v1, :cond_11
.line 39
invoke-static {v0, p0}, Lcom/vk/httpexecutor/api/utils/d;->a(Ljava/lang/Throwable;Ljava/lang/Throwable;)V
:cond_11
return-object v0
.end method
.method public static final a(Lorg/chromium/net/j$a;Ljava/util/Map;)Lorg/chromium/net/j$a;
.locals 12
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lorg/chromium/net/j$a;",
"Ljava/util/Map<",
"Ljava/lang/String;",
"+",
"Ljava/util/List<",
"Ljava/lang/String;",
">;>;)",
"Lorg/chromium/net/j$a;"
}
.end annotation
.line 1
invoke-interface {p1}, Ljava/util/Map;->isEmpty()Z
move-result v0
const/4 v1, 0x1
xor-int/2addr v0, v1
if-eqz v0, :cond_2
.line 2
invoke-interface {p1}, Ljava/util/Map;->entrySet()Ljava/util/Set;
move-result-object p1
invoke-interface {p1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object p1
:cond_0
:goto_0
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_2
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/util/Map$Entry;
invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/String;
invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object v0
move-object v3, v0
check-cast v3, Ljava/util/List;
.line 3
invoke-interface {v3}, Ljava/util/List;->size()I
move-result v0
if-ne v0, v1, :cond_1
.line 4
invoke-static {v3}, Lkotlin/collections/l;->g(Ljava/util/List;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
invoke-virtual {p0, v2, v0}, Lorg/chromium/net/j$a;->a(Ljava/lang/String;Ljava/lang/String;)Lorg/chromium/net/j$a;
goto :goto_0
.line 5
:cond_1
invoke-interface {v3}, Ljava/util/List;->size()I
move-result v0
if-le v0, v1, :cond_0
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x0
const/4 v9, 0x0
const/16 v10, 0x3e
const/4 v11, 0x0
const-string v4, "; "
.line 6
invoke-static/range {v3 .. v11}, Lkotlin/collections/l;->a(Ljava/lang/Iterable;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;ILjava/lang/CharSequence;Lkotlin/jvm/b/b;ILjava/lang/Object;)Ljava/lang/String;
move-result-object v0
invoke-virtual {p0, v2, v0}, Lorg/chromium/net/j$a;->a(Ljava/lang/String;Ljava/lang/String;)Lorg/chromium/net/j$a;
goto :goto_0
:cond_2
return-object p0
.end method
.method public static final a(Lcom/vk/httpexecutor/api/e;)Lorg/chromium/net/s;
.locals 1
.line 7
invoke-virtual {p0}, Lcom/vk/httpexecutor/api/e;->c()Lcom/vk/httpexecutor/api/HttpMethod;
move-result-object v0
.line 8
invoke-virtual {p0}, Lcom/vk/httpexecutor/api/e;->a()Lcom/vk/httpexecutor/api/f;
move-result-object p0
.line 9
invoke-virtual {v0}, Lcom/vk/httpexecutor/api/HttpMethod;->b()Z
move-result v0
if-eqz v0, :cond_0
if-eqz p0, :cond_0
.line 10
invoke-interface {p0}, Lcom/vk/httpexecutor/api/f;->b()[B
move-result-object p0
invoke-static {p0}, Lorg/chromium/net/u;->a([B)Lorg/chromium/net/s;
move-result-object p0
return-object p0
:cond_0
const/4 p0, 0x0
return-object p0
.end method
@@ -0,0 +1,134 @@
.class public final Lcom/vk/httpexecutor/cronet/d;
.super Ljava/lang/Object;
.source "RequestSemaphore.kt"
# instance fields
.field private final a:Ljava/util/concurrent/Semaphore;
.field private final b:Ljava/util/Map;
.annotation build Landroidx/annotation/GuardedBy;
value = "this"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/util/concurrent/Semaphore;",
">;"
}
.end annotation
.end field
.field private final c:I
# direct methods
.method public constructor <init>(II)V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput p2, p0, Lcom/vk/httpexecutor/cronet/d;->c:I
.line 2
new-instance p2, Ljava/util/concurrent/Semaphore;
invoke-direct {p2, p1}, Ljava/util/concurrent/Semaphore;-><init>(I)V
iput-object p2, p0, Lcom/vk/httpexecutor/cronet/d;->a:Ljava/util/concurrent/Semaphore;
.line 3
new-instance p1, Ljava/util/LinkedHashMap;
invoke-direct {p1}, Ljava/util/LinkedHashMap;-><init>()V
iput-object p1, p0, Lcom/vk/httpexecutor/cronet/d;->b:Ljava/util/Map;
return-void
.end method
.method private final declared-synchronized c(Ljava/lang/String;)Ljava/util/concurrent/Semaphore;
.locals 2
monitor-enter p0
.line 1
:try_start_0
iget-object v0, p0, Lcom/vk/httpexecutor/cronet/d;->b:Ljava/util/Map;
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/util/concurrent/Semaphore;
if-nez v0, :cond_0
.line 2
new-instance v0, Ljava/util/concurrent/Semaphore;
iget v1, p0, Lcom/vk/httpexecutor/cronet/d;->c:I
invoke-direct {v0, v1}, Ljava/util/concurrent/Semaphore;-><init>(I)V
.line 3
iget-object v1, p0, Lcom/vk/httpexecutor/cronet/d;->b:Ljava/util/Map;
invoke-interface {v1, p1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 4
:cond_0
monitor-exit p0
return-object v0
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
# virtual methods
.method public final a(Ljava/lang/String;)V
.locals 0
.line 1
invoke-direct {p0, p1}, Lcom/vk/httpexecutor/cronet/d;->c(Ljava/lang/String;)Ljava/util/concurrent/Semaphore;
move-result-object p1
invoke-virtual {p1}, Ljava/util/concurrent/Semaphore;->acquire()V
.line 2
iget-object p1, p0, Lcom/vk/httpexecutor/cronet/d;->a:Ljava/util/concurrent/Semaphore;
invoke-virtual {p1}, Ljava/util/concurrent/Semaphore;->acquire()V
return-void
.end method
.method public final b(Ljava/lang/String;)V
.locals 1
.line 1
iget-object v0, p0, Lcom/vk/httpexecutor/cronet/d;->a:Ljava/util/concurrent/Semaphore;
invoke-virtual {v0}, Ljava/util/concurrent/Semaphore;->release()V
.line 2
invoke-direct {p0, p1}, Lcom/vk/httpexecutor/cronet/d;->c(Ljava/lang/String;)Ljava/util/concurrent/Semaphore;
move-result-object p1
invoke-virtual {p1}, Ljava/util/concurrent/Semaphore;->release()V
return-void
.end method
@@ -0,0 +1,99 @@
.class public final Lcom/vk/httpexecutor/cronet/e;
.super Lorg/chromium/net/s;
.source "UploadDataProviderReadObserver.kt"
# instance fields
.field private final a:Lorg/chromium/net/s;
.field private final b:Lkotlin/jvm/b/a;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/b/a<",
"Lkotlin/m;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Lorg/chromium/net/s;Lkotlin/jvm/b/a;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lorg/chromium/net/s;",
"Lkotlin/jvm/b/a<",
"Lkotlin/m;",
">;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Lorg/chromium/net/s;-><init>()V
iput-object p1, p0, Lcom/vk/httpexecutor/cronet/e;->a:Lorg/chromium/net/s;
iput-object p2, p0, Lcom/vk/httpexecutor/cronet/e;->b:Lkotlin/jvm/b/a;
return-void
.end method
# virtual methods
.method public a()J
.locals 2
.line 1
iget-object v0, p0, Lcom/vk/httpexecutor/cronet/e;->a:Lorg/chromium/net/s;
invoke-virtual {v0}, Lorg/chromium/net/s;->a()J
move-result-wide v0
return-wide v0
.end method
.method public a(Lorg/chromium/net/v;)V
.locals 1
.line 4
iget-object v0, p0, Lcom/vk/httpexecutor/cronet/e;->b:Lkotlin/jvm/b/a;
invoke-interface {v0}, Lkotlin/jvm/b/a;->invoke()Ljava/lang/Object;
.line 5
iget-object v0, p0, Lcom/vk/httpexecutor/cronet/e;->a:Lorg/chromium/net/s;
invoke-virtual {v0, p1}, Lorg/chromium/net/s;->a(Lorg/chromium/net/v;)V
return-void
.end method
.method public a(Lorg/chromium/net/v;Ljava/nio/ByteBuffer;)V
.locals 1
.line 2
iget-object v0, p0, Lcom/vk/httpexecutor/cronet/e;->b:Lkotlin/jvm/b/a;
invoke-interface {v0}, Lkotlin/jvm/b/a;->invoke()Ljava/lang/Object;
.line 3
iget-object v0, p0, Lcom/vk/httpexecutor/cronet/e;->a:Lorg/chromium/net/s;
invoke-virtual {v0, p1, p2}, Lorg/chromium/net/s;->a(Lorg/chromium/net/v;Ljava/nio/ByteBuffer;)V
return-void
.end method
.method public close()V
.locals 1
.line 1
iget-object v0, p0, Lcom/vk/httpexecutor/cronet/e;->a:Lorg/chromium/net/s;
invoke-virtual {v0}, Lorg/chromium/net/s;->close()V
return-void
.end method