255 lines
5.1 KiB
Smali
255 lines
5.1 KiB
Smali
.class final Lokhttp3/internal/g/d$a;
|
|
.super Ljava/lang/Object;
|
|
.source "JdkWithJettyBootPlatform.java"
|
|
|
|
# interfaces
|
|
.implements Ljava/lang/reflect/InvocationHandler;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lokhttp3/internal/g/d;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x8
|
|
name = "a"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private final bhi:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field brd:Z
|
|
|
|
.field bre:Ljava/lang/String;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Ljava/util/List;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/String;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lokhttp3/internal/g/d$a;->bhi:Ljava/util/List;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/lang/Throwable;
|
|
}
|
|
.end annotation
|
|
|
|
invoke-virtual {p2}, Ljava/lang/reflect/Method;->getName()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p2}, Ljava/lang/reflect/Method;->getReturnType()Ljava/lang/Class;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez p3, :cond_0
|
|
|
|
sget-object p3, Lokhttp3/internal/c;->EMPTY_STRING_ARRAY:[Ljava/lang/String;
|
|
|
|
:cond_0
|
|
const-string v1, "supports"
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
sget-object v1, Ljava/lang/Boolean;->TYPE:Ljava/lang/Class;
|
|
|
|
if-ne v1, v0, :cond_1
|
|
|
|
sget-object p1, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;
|
|
|
|
return-object p1
|
|
|
|
:cond_1
|
|
const-string v1, "unsupported"
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
sget-object v1, Ljava/lang/Void;->TYPE:Ljava/lang/Class;
|
|
|
|
if-ne v1, v0, :cond_2
|
|
|
|
iput-boolean v3, p0, Lokhttp3/internal/g/d$a;->brd:Z
|
|
|
|
return-object v2
|
|
|
|
:cond_2
|
|
const-string v1, "protocols"
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
array-length v1, p3
|
|
|
|
if-nez v1, :cond_3
|
|
|
|
iget-object p1, p0, Lokhttp3/internal/g/d$a;->bhi:Ljava/util/List;
|
|
|
|
return-object p1
|
|
|
|
:cond_3
|
|
const-string v1, "selectProtocol"
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
const/4 v4, 0x0
|
|
|
|
if-nez v1, :cond_4
|
|
|
|
const-string v1, "select"
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_7
|
|
|
|
:cond_4
|
|
const-class v1, Ljava/lang/String;
|
|
|
|
if-ne v1, v0, :cond_7
|
|
|
|
array-length v0, p3
|
|
|
|
if-ne v0, v3, :cond_7
|
|
|
|
aget-object v0, p3, v4
|
|
|
|
instance-of v0, v0, Ljava/util/List;
|
|
|
|
if-eqz v0, :cond_7
|
|
|
|
aget-object p1, p3, v4
|
|
|
|
check-cast p1, Ljava/util/List;
|
|
|
|
invoke-interface {p1}, Ljava/util/List;->size()I
|
|
|
|
move-result p2
|
|
|
|
const/4 p3, 0x0
|
|
|
|
:goto_0
|
|
if-ge p3, p2, :cond_6
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/g/d$a;->bhi:Ljava/util/List;
|
|
|
|
invoke-interface {p1, p3}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
invoke-interface {p1, p3}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Ljava/lang/String;
|
|
|
|
iput-object p1, p0, Lokhttp3/internal/g/d$a;->bre:Ljava/lang/String;
|
|
|
|
return-object p1
|
|
|
|
:cond_5
|
|
add-int/lit8 p3, p3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_6
|
|
iget-object p1, p0, Lokhttp3/internal/g/d$a;->bhi:Ljava/util/List;
|
|
|
|
invoke-interface {p1, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Ljava/lang/String;
|
|
|
|
iput-object p1, p0, Lokhttp3/internal/g/d$a;->bre:Ljava/lang/String;
|
|
|
|
return-object p1
|
|
|
|
:cond_7
|
|
const-string v0, "protocolSelected"
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_8
|
|
|
|
const-string v0, "selected"
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_9
|
|
|
|
:cond_8
|
|
array-length p1, p3
|
|
|
|
if-ne p1, v3, :cond_9
|
|
|
|
aget-object p1, p3, v4
|
|
|
|
check-cast p1, Ljava/lang/String;
|
|
|
|
iput-object p1, p0, Lokhttp3/internal/g/d$a;->bre:Ljava/lang/String;
|
|
|
|
return-object v2
|
|
|
|
:cond_9
|
|
invoke-virtual {p2, p0, p3}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|