255 lines
5.2 KiB
Smali
255 lines
5.2 KiB
Smali
.class public final Lo0/g0/d/l;
|
|
.super Ljava/lang/Object;
|
|
.source "RouteSelector.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lo0/g0/d/l$a;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public a:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"+",
|
|
"Ljava/net/Proxy;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public b:I
|
|
|
|
.field public c:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"+",
|
|
"Ljava/net/InetSocketAddress;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final d:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lo0/e0;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final e:Lo0/a;
|
|
|
|
.field public final f:Lo0/g0/d/k;
|
|
|
|
.field public final g:Lo0/f;
|
|
|
|
.field public final h:Lo0/t;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lo0/a;Lo0/g0/d/k;Lo0/f;Lo0/t;)V
|
|
.locals 4
|
|
|
|
const-string v0, "address"
|
|
|
|
invoke-static {p1, v0}, Lk0/o/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "routeDatabase"
|
|
|
|
invoke-static {p2, v0}, Lk0/o/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "call"
|
|
|
|
invoke-static {p3, v0}, Lk0/o/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v1, "eventListener"
|
|
|
|
invoke-static {p4, v1}, Lk0/o/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lo0/g0/d/l;->e:Lo0/a;
|
|
|
|
iput-object p2, p0, Lo0/g0/d/l;->f:Lo0/g0/d/k;
|
|
|
|
iput-object p3, p0, Lo0/g0/d/l;->g:Lo0/f;
|
|
|
|
iput-object p4, p0, Lo0/g0/d/l;->h:Lo0/t;
|
|
|
|
sget-object p1, Lk0/j/n;->d:Lk0/j/n;
|
|
|
|
iput-object p1, p0, Lo0/g0/d/l;->a:Ljava/util/List;
|
|
|
|
iput-object p1, p0, Lo0/g0/d/l;->c:Ljava/util/List;
|
|
|
|
new-instance p1, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object p1, p0, Lo0/g0/d/l;->d:Ljava/util/List;
|
|
|
|
iget-object p1, p0, Lo0/g0/d/l;->e:Lo0/a;
|
|
|
|
iget-object p2, p1, Lo0/a;->a:Lo0/w;
|
|
|
|
iget-object p1, p1, Lo0/a;->j:Ljava/net/Proxy;
|
|
|
|
iget-object p3, p0, Lo0/g0/d/l;->h:Lo0/t;
|
|
|
|
iget-object p4, p0, Lo0/g0/d/l;->g:Lo0/f;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz p3, :cond_3
|
|
|
|
invoke-static {p4, v0}, Lk0/o/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string p3, "url"
|
|
|
|
invoke-static {p2, p3}, Lk0/o/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 p4, 0x0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-static {p1}, Lf/n/a/k/a;->listOf(Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object p1, p0, Lo0/g0/d/l;->e:Lo0/a;
|
|
|
|
iget-object p1, p1, Lo0/a;->k:Ljava/net/ProxySelector;
|
|
|
|
invoke-virtual {p2}, Lo0/w;->j()Ljava/net/URI;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {p1, v2}, Ljava/net/ProxySelector;->select(Ljava/net/URI;)Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
invoke-interface {p1}, Ljava/util/Collection;->isEmpty()Z
|
|
|
|
move-result v3
|
|
|
|
xor-int/2addr v3, v2
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
invoke-static {p1}, Lo0/g0/b;->E(Ljava/util/List;)Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
new-array p1, v2, [Ljava/net/Proxy;
|
|
|
|
sget-object v2, Ljava/net/Proxy;->NO_PROXY:Ljava/net/Proxy;
|
|
|
|
aput-object v2, p1, p4
|
|
|
|
invoke-static {p1}, Lo0/g0/b;->o([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
:goto_0
|
|
iput-object p1, p0, Lo0/g0/d/l;->a:Ljava/util/List;
|
|
|
|
iput p4, p0, Lo0/g0/d/l;->b:I
|
|
|
|
iget-object p4, p0, Lo0/g0/d/l;->h:Lo0/t;
|
|
|
|
iget-object v2, p0, Lo0/g0/d/l;->g:Lo0/f;
|
|
|
|
if-eqz p4, :cond_2
|
|
|
|
invoke-static {v2, v0}, Lk0/o/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-static {p2, p3}, Lk0/o/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string p2, "proxies"
|
|
|
|
invoke-static {p1, p2}, Lk0/o/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
return-void
|
|
|
|
:cond_2
|
|
throw v1
|
|
|
|
:cond_3
|
|
throw v1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a()Z
|
|
.locals 2
|
|
|
|
invoke-virtual {p0}, Lo0/g0/d/l;->b()Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
iget-object v0, p0, Lo0/g0/d/l;->d:Ljava/util/List;
|
|
|
|
invoke-interface {v0}, Ljava/util/Collection;->isEmpty()Z
|
|
|
|
move-result v0
|
|
|
|
xor-int/2addr v0, v1
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return v1
|
|
.end method
|
|
|
|
.method public final b()Z
|
|
.locals 2
|
|
|
|
iget v0, p0, Lo0/g0/d/l;->b:I
|
|
|
|
iget-object v1, p0, Lo0/g0/d/l;->a:Ljava/util/List;
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|