2019-02-04 20:08:30 +00:00
|
|
|
.class public final Lokhttp3/internal/c;
|
|
|
|
.super Ljava/lang/Object;
|
2019-02-04 20:29:01 +00:00
|
|
|
.source "Util.java"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field public static final EMPTY_STRING_ARRAY:[Ljava/lang/String;
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
.field public static final ISO_8859_1:Ljava/nio/charset/Charset;
|
|
|
|
|
|
|
|
.field public static final UTF_8:Ljava/nio/charset/Charset;
|
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
.field public static final aRw:Ljava/util/Comparator;
|
2019-02-04 20:08:30 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/Comparator<",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
.field public static final bpa:[B
|
2019-02-04 20:20:43 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
.field public static final bpb:Lokhttp3/x;
|
2019-02-27 21:13:14 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
.field public static final bpc:Lokhttp3/RequestBody;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
.field private static final bpd:Lokio/ByteString;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
.field private static final bpe:Lokio/ByteString;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
.field private static final bpf:Lokio/ByteString;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
.field private static final bpg:Lokio/ByteString;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
.field private static final bph:Lokio/ByteString;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
.field private static final bpi:Ljava/nio/charset/Charset;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
.field private static final bpj:Ljava/nio/charset/Charset;
|
2019-02-27 21:13:14 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
.field private static final bpk:Ljava/nio/charset/Charset;
|
2019-03-14 20:04:00 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
.field private static final bpl:Ljava/nio/charset/Charset;
|
2019-03-14 20:04:00 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
.field public static final bpm:Ljava/util/TimeZone;
|
2019-02-27 21:13:14 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
.field private static final bpn:Ljava/lang/reflect/Method;
|
2019-02-27 21:13:14 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
.field private static final bpo:Ljava/util/regex/Pattern;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method static constructor <clinit>()V
|
|
|
|
.locals 6
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
new-array v1, v0, [B
|
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
sput-object v1, Lokhttp3/internal/c;->bpa:[B
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
new-array v1, v0, [Ljava/lang/String;
|
|
|
|
|
|
|
|
sput-object v1, Lokhttp3/internal/c;->EMPTY_STRING_ARRAY:[Ljava/lang/String;
|
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
sget-object v1, Lokhttp3/internal/c;->bpa:[B
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 00:16:35 +00:00
|
|
|
invoke-static {v1}, Lokhttp3/x;->x([B)Lokhttp3/x;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
sput-object v1, Lokhttp3/internal/c;->bpb:Lokhttp3/x;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
sget-object v1, Lokhttp3/internal/c;->bpa:[B
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 00:16:35 +00:00
|
|
|
const/4 v2, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 00:16:35 +00:00
|
|
|
invoke-static {v2, v1}, Lokhttp3/RequestBody;->create(Lokhttp3/MediaType;[B)Lokhttp3/RequestBody;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
sput-object v1, Lokhttp3/internal/c;->bpc:Lokhttp3/RequestBody;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
const-string v1, "efbbbf"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-static {v1}, Lokio/ByteString;->eh(Ljava/lang/String;)Lokio/ByteString;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
move-result-object v1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
sput-object v1, Lokhttp3/internal/c;->bpd:Lokio/ByteString;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
const-string v1, "feff"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-static {v1}, Lokio/ByteString;->eh(Ljava/lang/String;)Lokio/ByteString;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
move-result-object v1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
sput-object v1, Lokhttp3/internal/c;->bpe:Lokio/ByteString;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
const-string v1, "fffe"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-static {v1}, Lokio/ByteString;->eh(Ljava/lang/String;)Lokio/ByteString;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
move-result-object v1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
sput-object v1, Lokhttp3/internal/c;->bpf:Lokio/ByteString;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
const-string v1, "0000ffff"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-static {v1}, Lokio/ByteString;->eh(Ljava/lang/String;)Lokio/ByteString;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
move-result-object v1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
sput-object v1, Lokhttp3/internal/c;->bpg:Lokio/ByteString;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
const-string v1, "ffff0000"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-static {v1}, Lokio/ByteString;->eh(Ljava/lang/String;)Lokio/ByteString;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
move-result-object v1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
sput-object v1, Lokhttp3/internal/c;->bph:Lokio/ByteString;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
const-string v1, "UTF-8"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-static {v1}, Ljava/nio/charset/Charset;->forName(Ljava/lang/String;)Ljava/nio/charset/Charset;
|
|
|
|
|
|
|
|
move-result-object v1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
sput-object v1, Lokhttp3/internal/c;->UTF_8:Ljava/nio/charset/Charset;
|
2019-02-27 00:16:35 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
const-string v1, "ISO-8859-1"
|
|
|
|
|
|
|
|
invoke-static {v1}, Ljava/nio/charset/Charset;->forName(Ljava/lang/String;)Ljava/nio/charset/Charset;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
sput-object v1, Lokhttp3/internal/c;->ISO_8859_1:Ljava/nio/charset/Charset;
|
|
|
|
|
|
|
|
const-string v1, "UTF-16BE"
|
|
|
|
|
|
|
|
invoke-static {v1}, Ljava/nio/charset/Charset;->forName(Ljava/lang/String;)Ljava/nio/charset/Charset;
|
|
|
|
|
|
|
|
move-result-object v1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
sput-object v1, Lokhttp3/internal/c;->bpi:Ljava/nio/charset/Charset;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
const-string v1, "UTF-16LE"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-static {v1}, Ljava/nio/charset/Charset;->forName(Ljava/lang/String;)Ljava/nio/charset/Charset;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
sput-object v1, Lokhttp3/internal/c;->bpj:Ljava/nio/charset/Charset;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const-string v1, "UTF-32BE"
|
|
|
|
|
|
|
|
invoke-static {v1}, Ljava/nio/charset/Charset;->forName(Ljava/lang/String;)Ljava/nio/charset/Charset;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
sput-object v1, Lokhttp3/internal/c;->bpk:Ljava/nio/charset/Charset;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const-string v1, "UTF-32LE"
|
|
|
|
|
|
|
|
invoke-static {v1}, Ljava/nio/charset/Charset;->forName(Ljava/lang/String;)Ljava/nio/charset/Charset;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
sput-object v1, Lokhttp3/internal/c;->bpl:Ljava/nio/charset/Charset;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const-string v1, "GMT"
|
|
|
|
|
|
|
|
invoke-static {v1}, Ljava/util/TimeZone;->getTimeZone(Ljava/lang/String;)Ljava/util/TimeZone;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
sput-object v1, Lokhttp3/internal/c;->bpm:Ljava/util/TimeZone;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
new-instance v1, Lokhttp3/internal/c$1;
|
|
|
|
|
|
|
|
invoke-direct {v1}, Lokhttp3/internal/c$1;-><init>()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
sput-object v1, Lokhttp3/internal/c;->aRw:Ljava/util/Comparator;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
const-class v1, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
const-string v3, "addSuppressed"
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
const/4 v4, 0x1
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
new-array v4, v4, [Ljava/lang/Class;
|
|
|
|
|
|
|
|
const-class v5, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
aput-object v5, v4, v0
|
|
|
|
|
|
|
|
invoke-virtual {v1, v3, v4}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
move-result-object v2
|
2019-02-04 20:08:30 +00:00
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
:catch_0
|
2019-03-16 01:04:31 +00:00
|
|
|
sput-object v2, Lokhttp3/internal/c;->bpn:Ljava/lang/reflect/Method;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const-string v0, "([0-9a-fA-F]*:[0-9a-fA-F:.]*)|([\\d.]+)"
|
|
|
|
|
|
|
|
invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
sput-object v0, Lokhttp3/internal/c;->bpo:Ljava/util/regex/Pattern;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
.method public static AK()Ljavax/net/ssl/X509TrustManager;
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 4
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
invoke-static {}, Ljavax/net/ssl/TrustManagerFactory;->getDefaultAlgorithm()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-static {v0}, Ljavax/net/ssl/TrustManagerFactory;->getInstance(Ljava/lang/String;)Ljavax/net/ssl/TrustManagerFactory;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljavax/net/ssl/TrustManagerFactory;->init(Ljava/security/KeyStore;)V
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljavax/net/ssl/TrustManagerFactory;->getTrustManagers()[Ljavax/net/ssl/TrustManager;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
array-length v1, v0
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
if-ne v1, v2, :cond_0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
aget-object v2, v0, v1
|
|
|
|
|
|
|
|
instance-of v2, v2, Ljavax/net/ssl/X509TrustManager;
|
|
|
|
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
|
|
|
|
aget-object v0, v0, v1
|
|
|
|
|
|
|
|
check-cast v0, Ljavax/net/ssl/X509TrustManager;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance v1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v3, "Unexpected default trust managers:"
|
|
|
|
|
|
|
|
invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-static {v0}, Ljava/util/Arrays;->toString([Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v1
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/security/GeneralSecurityException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
move-exception v0
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
const-string v1, "No System TLS"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-static {v1, v0}, Lokhttp3/internal/c;->a(Ljava/lang/String;Ljava/lang/Exception;)Ljava/lang/AssertionError;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
move-result-object v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
throw v0
|
2019-02-04 20:08:30 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static a(Ljava/lang/String;IIC)I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-ge p1, p2, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/String;->charAt(I)C
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-ne v0, p3, :cond_0
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
add-int/lit8 p1, p1, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
return p2
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static a(Ljava/lang/String;IILjava/lang/String;)I
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-ge p1, p2, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/String;->charAt(I)C
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
invoke-virtual {p3, v0}, Ljava/lang/String;->indexOf(I)I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v1, -0x1
|
|
|
|
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
add-int/lit8 p1, p1, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
return p2
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static a(Ljava/lang/String;JLjava/util/concurrent/TimeUnit;)I
|
|
|
|
.locals 6
|
|
|
|
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
|
|
|
|
cmp-long v2, p1, v0
|
|
|
|
|
|
|
|
if-ltz v2, :cond_4
|
|
|
|
|
|
|
|
if-eqz p3, :cond_3
|
|
|
|
|
|
|
|
invoke-virtual {p3, p1, p2}, Ljava/util/concurrent/TimeUnit;->toMillis(J)J
|
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
|
|
|
const-wide/32 v4, 0x7fffffff
|
|
|
|
|
|
|
|
cmp-long p3, v2, v4
|
|
|
|
|
|
|
|
if-gtz p3, :cond_2
|
|
|
|
|
|
|
|
cmp-long p3, v2, v0
|
|
|
|
|
|
|
|
if-nez p3, :cond_1
|
|
|
|
|
|
|
|
cmp-long p3, p1, v0
|
|
|
|
|
|
|
|
if-gtz p3, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
|
|
|
|
new-instance p2, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
|
|
|
|
invoke-virtual {p2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string p0, " too small."
|
|
|
|
|
|
|
|
invoke-virtual {p2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:goto_0
|
|
|
|
long-to-int p0, v2
|
|
|
|
|
|
|
|
return p0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
|
|
|
|
new-instance p2, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
|
|
|
|
invoke-virtual {p2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string p0, " too large."
|
|
|
|
|
|
|
|
invoke-virtual {p2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
new-instance p0, Ljava/lang/NullPointerException;
|
|
|
|
|
|
|
|
const-string p1, "unit == null"
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p0
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
|
|
|
|
new-instance p2, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
|
|
|
|
invoke-virtual {p2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string p0, " < 0"
|
|
|
|
|
|
|
|
invoke-virtual {p2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static a(Ljava/util/Comparator;[Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
.locals 3
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Ljava/util/Comparator<",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
">;[",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
")I"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
array-length v0, p1
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-ge v1, v0, :cond_1
|
|
|
|
|
|
|
|
aget-object v2, p1, v1
|
|
|
|
|
|
|
|
invoke-interface {p0, v2, p2}, Ljava/util/Comparator;->compare(Ljava/lang/Object;Ljava/lang/Object;)I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
|
|
|
|
return v1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/4 p0, -0x1
|
|
|
|
|
|
|
|
return p0
|
|
|
|
.end method
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
.method public static a(Ljava/lang/String;Ljava/lang/Exception;)Ljava/lang/AssertionError;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
new-instance v0, Ljava/lang/AssertionError;
|
|
|
|
|
|
|
|
invoke-direct {v0, p0}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/AssertionError;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/lang/IllegalStateException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
.method public static a(Lokhttp3/s;Z)Ljava/lang/String;
|
|
|
|
.locals 2
|
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
iget-object v0, p0, Lokhttp3/s;->bnk:Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const-string v1, ":"
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, "["
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
iget-object v1, p0, Lokhttp3/s;->bnk:Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, "]"
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2019-03-16 01:04:31 +00:00
|
|
|
iget-object v0, p0, Lokhttp3/s;->bnk:Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-nez p1, :cond_2
|
|
|
|
|
|
|
|
iget p1, p0, Lokhttp3/s;->port:I
|
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
iget-object v1, p0, Lokhttp3/s;->bnj:Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-static {v1}, Lokhttp3/s;->dC(Ljava/lang/String;)I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eq p1, v1, :cond_1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
:goto_1
|
|
|
|
new-instance p1, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v0, ":"
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
iget p0, p0, Lokhttp3/s;->port:I
|
|
|
|
|
|
|
|
invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static a(Lokio/d;Ljava/nio/charset/Charset;)Ljava/nio/charset/Charset;
|
2019-02-27 21:13:14 +00:00
|
|
|
.locals 2
|
2019-02-04 20:08:30 +00:00
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
sget-object v0, Lokhttp3/internal/c;->bpd:Lokio/ByteString;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-interface {p0, v0}, Lokio/d;->h(Lokio/ByteString;)Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
move-result v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
if-eqz v0, :cond_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
sget-object p1, Lokhttp3/internal/c;->bpd:Lokio/ByteString;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-virtual {p1}, Lokio/ByteString;->size()I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
move-result p1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
int-to-long v0, p1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-interface {p0, v0, v1}, Lokio/d;->au(J)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
sget-object p0, Lokhttp3/internal/c;->UTF_8:Ljava/nio/charset/Charset;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
:cond_0
|
2019-03-16 01:04:31 +00:00
|
|
|
sget-object v0, Lokhttp3/internal/c;->bpe:Lokio/ByteString;
|
2019-02-27 21:13:14 +00:00
|
|
|
|
|
|
|
invoke-interface {p0, v0}, Lokio/d;->h(Lokio/ByteString;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
sget-object p1, Lokhttp3/internal/c;->bpe:Lokio/ByteString;
|
2019-02-27 21:13:14 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Lokio/ByteString;->size()I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
int-to-long v0, p1
|
|
|
|
|
|
|
|
invoke-interface {p0, v0, v1}, Lokio/d;->au(J)V
|
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
sget-object p0, Lokhttp3/internal/c;->bpi:Ljava/nio/charset/Charset;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
:cond_1
|
2019-03-16 01:04:31 +00:00
|
|
|
sget-object v0, Lokhttp3/internal/c;->bpf:Lokio/ByteString;
|
2019-02-27 21:13:14 +00:00
|
|
|
|
|
|
|
invoke-interface {p0, v0}, Lokio/d;->h(Lokio/ByteString;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
sget-object p1, Lokhttp3/internal/c;->bpf:Lokio/ByteString;
|
2019-02-27 21:13:14 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Lokio/ByteString;->size()I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
int-to-long v0, p1
|
|
|
|
|
|
|
|
invoke-interface {p0, v0, v1}, Lokio/d;->au(J)V
|
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
sget-object p0, Lokhttp3/internal/c;->bpj:Ljava/nio/charset/Charset;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
:cond_2
|
2019-03-16 01:04:31 +00:00
|
|
|
sget-object v0, Lokhttp3/internal/c;->bpg:Lokio/ByteString;
|
2019-02-27 21:13:14 +00:00
|
|
|
|
|
|
|
invoke-interface {p0, v0}, Lokio/d;->h(Lokio/ByteString;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
sget-object p1, Lokhttp3/internal/c;->bpg:Lokio/ByteString;
|
2019-02-27 21:13:14 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Lokio/ByteString;->size()I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
int-to-long v0, p1
|
|
|
|
|
|
|
|
invoke-interface {p0, v0, v1}, Lokio/d;->au(J)V
|
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
sget-object p0, Lokhttp3/internal/c;->bpk:Ljava/nio/charset/Charset;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
:cond_3
|
2019-03-16 01:04:31 +00:00
|
|
|
sget-object v0, Lokhttp3/internal/c;->bph:Lokio/ByteString;
|
2019-02-27 00:16:35 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-interface {p0, v0}, Lokio/d;->h(Lokio/ByteString;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
sget-object p1, Lokhttp3/internal/c;->bph:Lokio/ByteString;
|
2019-02-27 21:13:14 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Lokio/ByteString;->size()I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
int-to-long v0, p1
|
2019-02-27 00:16:35 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-interface {p0, v0, v1}, Lokio/d;->au(J)V
|
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
sget-object p0, Lokhttp3/internal/c;->bpl:Ljava/nio/charset/Charset;
|
2019-02-27 21:13:14 +00:00
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
return-object p1
|
2019-02-04 20:08:30 +00:00
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
.method public static a(JJJ)V
|
|
|
|
.locals 5
|
|
|
|
|
|
|
|
or-long v0, p2, p4
|
|
|
|
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
|
|
|
|
cmp-long v4, v0, v2
|
|
|
|
|
|
|
|
if-ltz v4, :cond_0
|
|
|
|
|
|
|
|
cmp-long v0, p2, p0
|
|
|
|
|
|
|
|
if-gtz v0, :cond_0
|
|
|
|
|
|
|
|
sub-long/2addr p0, p2
|
|
|
|
|
|
|
|
cmp-long p2, p0, p4
|
|
|
|
|
|
|
|
if-ltz p2, :cond_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance p0, Ljava/lang/ArrayIndexOutOfBoundsException;
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/ArrayIndexOutOfBoundsException;-><init>()V
|
|
|
|
|
|
|
|
throw p0
|
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
.method public static a(Ljava/net/Socket;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
invoke-virtual {p0}, Ljava/net/Socket;->close()V
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/lang/AssertionError; {:try_start_0 .. :try_end_0} :catch_1
|
|
|
|
.catch Ljava/lang/RuntimeException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_2
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
move-exception p0
|
|
|
|
|
|
|
|
throw p0
|
|
|
|
|
|
|
|
:catch_1
|
|
|
|
move-exception p0
|
|
|
|
|
|
|
|
invoke-static {p0}, Lokhttp3/internal/c;->a(Ljava/lang/AssertionError;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
throw p0
|
|
|
|
|
|
|
|
:catch_2
|
|
|
|
:cond_1
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static a(Ljava/lang/AssertionError;)Z
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Ljava/lang/AssertionError;->getCause()Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Ljava/lang/AssertionError;->getMessage()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Ljava/lang/AssertionError;->getMessage()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
const-string v0, "getsockname failed"
|
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
|
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
|
|
|
|
const/4 p0, 0x1
|
|
|
|
|
|
|
|
return p0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
|
|
|
|
return p0
|
|
|
|
.end method
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
.method public static a(Lokio/q;ILjava/util/concurrent/TimeUnit;)Z
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 11
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-static {}, Ljava/lang/System;->nanoTime()J
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-interface {p0}, Lokio/q;->timeout()Lokio/r;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
invoke-virtual {v2}, Lokio/r;->Cn()Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
const-wide v3, 0x7fffffffffffffffL
|
|
|
|
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-interface {p0}, Lokio/q;->timeout()Lokio/r;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
invoke-virtual {v2}, Lokio/r;->Co()J
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-wide v5
|
|
|
|
|
|
|
|
sub-long/2addr v5, v0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
move-wide v5, v3
|
|
|
|
|
|
|
|
:goto_0
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-interface {p0}, Lokio/q;->timeout()Lokio/r;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
int-to-long v7, p1
|
|
|
|
|
|
|
|
invoke-virtual {p2, v7, v8}, Ljava/util/concurrent/TimeUnit;->toNanos(J)J
|
|
|
|
|
|
|
|
move-result-wide p1
|
|
|
|
|
|
|
|
invoke-static {v5, v6, p1, p2}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
|
|
|
|
move-result-wide p1
|
|
|
|
|
|
|
|
add-long/2addr p1, v0
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-virtual {v2, p1, p2}, Lokio/r;->aA(J)Lokio/r;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
new-instance p1, Lokio/c;
|
|
|
|
|
|
|
|
invoke-direct {p1}, Lokio/c;-><init>()V
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
const-wide/16 v7, 0x2000
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-interface {p0, p1, v7, v8}, Lokio/q;->a(Lokio/c;J)J
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-wide v7
|
|
|
|
|
|
|
|
const-wide/16 v9, -0x1
|
|
|
|
|
|
|
|
cmp-long p2, v7, v9
|
|
|
|
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lokio/c;->clear()V
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/io/InterruptedIOException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
cmp-long p1, v5, v3
|
|
|
|
|
|
|
|
if-nez p1, :cond_2
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-interface {p0}, Lokio/q;->timeout()Lokio/r;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
invoke-virtual {p0}, Lokio/r;->Cq()Lokio/r;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_2
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-interface {p0}, Lokio/q;->timeout()Lokio/r;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
add-long/2addr v0, v5
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-virtual {p0, v0, v1}, Lokio/r;->aA(J)Lokio/r;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:goto_2
|
|
|
|
const/4 p0, 0x1
|
|
|
|
|
|
|
|
return p0
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception p1
|
|
|
|
|
|
|
|
cmp-long p2, v5, v3
|
|
|
|
|
|
|
|
if-nez p2, :cond_3
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-interface {p0}, Lokio/q;->timeout()Lokio/r;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
invoke-virtual {p0}, Lokio/r;->Cq()Lokio/r;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_3
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-interface {p0}, Lokio/q;->timeout()Lokio/r;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
add-long/2addr v0, v5
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-virtual {p0, v0, v1}, Lokio/r;->aA(J)Lokio/r;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:goto_3
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
nop
|
|
|
|
|
|
|
|
cmp-long p1, v5, v3
|
|
|
|
|
|
|
|
if-nez p1, :cond_4
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-interface {p0}, Lokio/q;->timeout()Lokio/r;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
invoke-virtual {p0}, Lokio/r;->Cq()Lokio/r;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_4
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-interface {p0}, Lokio/q;->timeout()Lokio/r;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
add-long/2addr v0, v5
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-virtual {p0, v0, v1}, Lokio/r;->aA(J)Lokio/r;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:goto_4
|
|
|
|
const/4 p0, 0x0
|
|
|
|
|
|
|
|
return p0
|
|
|
|
.end method
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
.method public static a(Lokio/q;Ljava/util/concurrent/TimeUnit;)Z
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const/16 v0, 0x64
|
|
|
|
|
|
|
|
:try_start_0
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-static {p0, v0, p1}, Lokhttp3/internal/c;->a(Lokio/q;ILjava/util/concurrent/TimeUnit;)Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result p0
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
return p0
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
|
|
|
|
return p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static a(Ljava/util/Comparator;[Ljava/lang/String;[Ljava/lang/String;)[Ljava/lang/String;
|
|
|
|
.locals 8
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Ljava/util/Comparator<",
|
|
|
|
"-",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
">;[",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
"[",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
")[",
|
|
|
|
"Ljava/lang/String;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
|
|
|
|
array-length v1, p1
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-ge v3, v1, :cond_2
|
|
|
|
|
|
|
|
aget-object v4, p1, v3
|
|
|
|
|
|
|
|
array-length v5, p2
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
if-ge v6, v5, :cond_1
|
|
|
|
|
|
|
|
aget-object v7, p2, v6
|
|
|
|
|
|
|
|
invoke-interface {p0, v4, v7}, Ljava/util/Comparator;->compare(Ljava/lang/Object;Ljava/lang/Object;)I
|
|
|
|
|
|
|
|
move-result v7
|
|
|
|
|
|
|
|
if-nez v7, :cond_0
|
|
|
|
|
|
|
|
invoke-interface {v0, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
add-int/lit8 v6, v6, 0x1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:goto_2
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
|
|
|
new-array p0, p0, [Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-interface {v0, p0}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
check-cast p0, [Ljava/lang/String;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
.method public static ac(Ljava/util/List;)Ljava/util/List;
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"TT;>;)",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-direct {v0, p0}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
|
|
|
|
|
|
|
|
invoke-static {v0}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
.method public static ad(Ljava/util/List;)Lokhttp3/Headers;
|
2019-02-17 02:24:41 +00:00
|
|
|
.locals 4
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Ljava/util/List<",
|
2019-02-27 21:13:14 +00:00
|
|
|
"Lokhttp3/internal/e/c;",
|
2019-02-17 02:24:41 +00:00
|
|
|
">;)",
|
|
|
|
"Lokhttp3/Headers;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
new-instance v0, Lokhttp3/Headers$a;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Lokhttp3/Headers$a;-><init>()V
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
check-cast v1, Lokhttp3/internal/e/c;
|
2019-02-17 02:24:41 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
sget-object v2, Lokhttp3/internal/a;->boZ:Lokhttp3/internal/a;
|
2019-02-17 02:24:41 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
iget-object v3, v1, Lokhttp3/internal/e/c;->brl:Lokio/ByteString;
|
2019-02-17 02:24:41 +00:00
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
invoke-virtual {v3}, Lokio/ByteString;->Cg()Ljava/lang/String;
|
2019-02-17 02:24:41 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
iget-object v1, v1, Lokhttp3/internal/e/c;->brm:Lokio/ByteString;
|
2019-02-17 02:24:41 +00:00
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
invoke-virtual {v1}, Lokio/ByteString;->Cg()Ljava/lang/String;
|
2019-02-17 02:24:41 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v2, v0, v3, v1}, Lokhttp3/internal/a;->a(Lokhttp3/Headers$a;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2019-03-08 06:19:26 +00:00
|
|
|
invoke-virtual {v0}, Lokhttp3/Headers$a;->Ae()Lokhttp3/Headers;
|
2019-02-17 02:24:41 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
.method public static b(Ljava/util/Comparator;[Ljava/lang/String;[Ljava/lang/String;)Z
|
|
|
|
.locals 7
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Ljava/util/Comparator<",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
">;[",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
"[",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
")Z"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
if-eqz p1, :cond_4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
if-eqz p2, :cond_4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
array-length v1, p1
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
if-eqz v1, :cond_4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
array-length v1, p2
|
|
|
|
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
array-length v1, p1
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-ge v2, v1, :cond_3
|
|
|
|
|
|
|
|
aget-object v3, p1, v2
|
|
|
|
|
|
|
|
array-length v4, p2
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
if-ge v5, v4, :cond_2
|
|
|
|
|
|
|
|
aget-object v6, p2, v5
|
|
|
|
|
|
|
|
invoke-interface {p0, v3, v6}, Ljava/util/Comparator;->compare(Ljava/lang/Object;Ljava/lang/Object;)I
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
if-nez v6, :cond_1
|
|
|
|
|
|
|
|
const/4 p0, 0x1
|
|
|
|
|
|
|
|
return p0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
add-int/lit8 v5, v5, 0x1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_3
|
2019-02-04 20:29:01 +00:00
|
|
|
return v0
|
|
|
|
|
|
|
|
:cond_4
|
2019-02-04 20:08:30 +00:00
|
|
|
:goto_2
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static c([Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
array-length v0, p0
|
|
|
|
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
|
|
|
|
new-array v0, v0, [Ljava/lang/String;
|
|
|
|
|
|
|
|
array-length v1, p0
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
invoke-static {p0, v2, v0, v2, v1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
|
|
|
|
array-length p0, v0
|
|
|
|
|
|
|
|
add-int/lit8 p0, p0, -0x1
|
|
|
|
|
|
|
|
aput-object p1, v0, p0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static closeQuietly(Ljava/io/Closeable;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
invoke-interface {p0}, Ljava/io/Closeable;->close()V
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/lang/RuntimeException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
move-exception p0
|
|
|
|
|
|
|
|
throw p0
|
|
|
|
|
|
|
|
:catch_1
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static d(Ljava/lang/Throwable;Ljava/lang/Throwable;)V
|
|
|
|
.locals 3
|
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
sget-object v0, Lokhttp3/internal/c;->bpn:Ljava/lang/reflect/Method;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
:try_start_0
|
2019-02-04 20:08:30 +00:00
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
aput-object p1, v1, v2
|
|
|
|
|
|
|
|
invoke-virtual {v0, p0, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
return-void
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
:catch_0
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
.method public static dQ(Ljava/lang/String;)Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 8
|
|
|
|
|
|
|
|
const-string v0, ":"
|
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
if-eqz v0, :cond_a
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const-string v0, "["
|
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
const-string v0, "]"
|
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Ljava/lang/String;->length()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v3, 0x1
|
|
|
|
|
|
|
|
sub-int/2addr v0, v3
|
|
|
|
|
|
|
|
invoke-static {p0, v3, v0}, Lokhttp3/internal/c;->o(Ljava/lang/String;II)Ljava/net/InetAddress;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-virtual {p0}, Ljava/lang/String;->length()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
invoke-static {p0, v2, v0}, Lokhttp3/internal/c;->o(Ljava/lang/String;II)Ljava/net/InetAddress;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
|
|
|
|
return-object v1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-virtual {v0}, Ljava/net/InetAddress;->getAddress()[B
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
move-result-object v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
array-length v1, v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
const/16 v3, 0x10
|
2019-02-27 00:16:35 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
if-ne v1, v3, :cond_9
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const/4 p0, -0x1
|
|
|
|
|
|
|
|
const/4 p0, 0x0
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
const/4 v1, -0x1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
const/4 v4, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:goto_1
|
2019-02-27 21:13:14 +00:00
|
|
|
array-length v5, v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
if-ge p0, v5, :cond_4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
move v5, p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:goto_2
|
2019-02-27 21:13:14 +00:00
|
|
|
if-ge v5, v3, :cond_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
aget-byte v6, v0, v5
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
if-nez v6, :cond_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
add-int/lit8 v6, v5, 0x1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
aget-byte v6, v0, v6
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
if-nez v6, :cond_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
add-int/lit8 v5, v5, 0x2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_2
|
2019-02-27 21:13:14 +00:00
|
|
|
sub-int v6, v5, p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
if-le v6, v4, :cond_3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
const/4 v7, 0x4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
if-lt v6, v7, :cond_3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
move v1, p0
|
|
|
|
|
|
|
|
move v4, v6
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_3
|
2019-02-27 21:13:14 +00:00
|
|
|
add-int/lit8 p0, v5, 0x2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
new-instance p0, Lokio/c;
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lokio/c;-><init>()V
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
:goto_3
|
2019-02-27 21:13:14 +00:00
|
|
|
array-length v5, v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
if-ge v2, v5, :cond_8
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
const/16 v5, 0x3a
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
if-ne v2, v1, :cond_6
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-virtual {p0, v5}, Lokio/c;->dk(I)Lokio/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
add-int/2addr v2, v4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
if-ne v2, v3, :cond_5
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-virtual {p0, v5}, Lokio/c;->dk(I)Lokio/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
if-lez v2, :cond_7
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-virtual {p0, v5}, Lokio/c;->dk(I)Lokio/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_7
|
2019-02-27 21:13:14 +00:00
|
|
|
aget-byte v5, v0, v2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
and-int/lit16 v5, v5, 0xff
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
shl-int/lit8 v5, v5, 0x8
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
add-int/lit8 v6, v2, 0x1
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
aget-byte v6, v0, v6
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
and-int/lit16 v6, v6, 0xff
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
or-int/2addr v5, v6
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
int-to-long v5, v5
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-virtual {p0, v5, v6}, Lokio/c;->aw(J)Lokio/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
add-int/lit8 v2, v2, 0x2
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_8
|
2019-03-08 06:19:26 +00:00
|
|
|
invoke-virtual {p0}, Lokio/c;->Cb()Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_9
|
|
|
|
new-instance v0, Ljava/lang/AssertionError;
|
|
|
|
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v2, "Invalid IPv6 address: \'"
|
|
|
|
|
|
|
|
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string p0, "\'"
|
|
|
|
|
|
|
|
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
invoke-direct {v0, p0}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
:cond_a
|
2019-02-04 20:08:30 +00:00
|
|
|
:try_start_0
|
|
|
|
invoke-static {p0}, Ljava/net/IDN;->toASCII(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
sget-object v0, Ljava/util/Locale;->US:Ljava/util/Locale;
|
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Ljava/lang/String;->isEmpty()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
if-eqz v0, :cond_b
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return-object v1
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
:cond_b
|
|
|
|
invoke-static {p0}, Lokhttp3/internal/c;->dR(Ljava/lang/String;)Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
if-eqz v0, :cond_c
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return-object v1
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
:cond_c
|
2019-02-04 20:08:30 +00:00
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
return-object v1
|
|
|
|
.end method
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
.method private static dR(Ljava/lang/String;)Z
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 5
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-virtual {p0}, Ljava/lang/String;->length()I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-ge v1, v2, :cond_3
|
|
|
|
|
|
|
|
invoke-virtual {p0, v1}, Ljava/lang/String;->charAt(I)C
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
const/16 v3, 0x1f
|
|
|
|
|
|
|
|
const/4 v4, 0x1
|
|
|
|
|
|
|
|
if-le v2, v3, :cond_2
|
|
|
|
|
|
|
|
const/16 v3, 0x7f
|
|
|
|
|
|
|
|
if-lt v2, v3, :cond_0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string v3, " #%/:?@[\\]"
|
|
|
|
|
|
|
|
invoke-virtual {v3, v2}, Ljava/lang/String;->indexOf(I)I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
const/4 v3, -0x1
|
|
|
|
|
|
|
|
if-eq v2, v3, :cond_1
|
|
|
|
|
|
|
|
return v4
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
:goto_1
|
|
|
|
return v4
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
.method public static dS(Ljava/lang/String;)I
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 4
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Ljava/lang/String;->length()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-ge v1, v0, :cond_2
|
|
|
|
|
|
|
|
invoke-virtual {p0, v1}, Ljava/lang/String;->charAt(I)C
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
const/16 v3, 0x1f
|
|
|
|
|
|
|
|
if-le v2, v3, :cond_1
|
|
|
|
|
|
|
|
const/16 v3, 0x7f
|
|
|
|
|
|
|
|
if-lt v2, v3, :cond_0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:goto_1
|
|
|
|
return v1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
const/4 p0, -0x1
|
|
|
|
|
|
|
|
return p0
|
|
|
|
.end method
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
.method public static dT(Ljava/lang/String;)Z
|
2019-02-04 20:32:01 +00:00
|
|
|
.locals 1
|
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
sget-object v0, Lokhttp3/internal/c;->bpo:Ljava/util/regex/Pattern;
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, p0}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Ljava/util/regex/Matcher;->matches()Z
|
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
|
|
|
return p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static decodeHexDigit(C)I
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
const/16 v0, 0x30
|
|
|
|
|
|
|
|
if-lt p0, v0, :cond_0
|
|
|
|
|
|
|
|
const/16 v1, 0x39
|
|
|
|
|
|
|
|
if-gt p0, v1, :cond_0
|
|
|
|
|
|
|
|
sub-int/2addr p0, v0
|
|
|
|
|
|
|
|
return p0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/16 v0, 0x61
|
|
|
|
|
|
|
|
if-lt p0, v0, :cond_1
|
|
|
|
|
|
|
|
const/16 v1, 0x66
|
|
|
|
|
|
|
|
if-gt p0, v1, :cond_1
|
|
|
|
|
|
|
|
sub-int/2addr p0, v0
|
|
|
|
|
|
|
|
add-int/lit8 p0, p0, 0xa
|
|
|
|
|
|
|
|
return p0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/16 v0, 0x41
|
|
|
|
|
|
|
|
if-lt p0, v0, :cond_2
|
|
|
|
|
|
|
|
const/16 v1, 0x46
|
|
|
|
|
|
|
|
if-gt p0, v1, :cond_2
|
|
|
|
|
|
|
|
sub-int/2addr p0, v0
|
|
|
|
|
|
|
|
add-int/lit8 p0, p0, 0xa
|
|
|
|
|
|
|
|
return p0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
const/4 p0, -0x1
|
|
|
|
|
|
|
|
return p0
|
|
|
|
.end method
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
.method public static equal(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
if-eq p0, p1, :cond_1
|
|
|
|
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
|
|
|
|
return p0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:goto_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
|
|
|
|
return p0
|
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
.method public static varargs format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
sget-object v0, Ljava/util/Locale;->US:Ljava/util/Locale;
|
|
|
|
|
|
|
|
invoke-static {v0, p0, p1}, Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
.method public static h(Ljava/lang/String;Z)Ljava/util/concurrent/ThreadFactory;
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 1
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
new-instance v0, Lokhttp3/internal/c$2;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-direct {v0, p0, p1}, Lokhttp3/internal/c$2;-><init>(Ljava/lang/String;Z)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static l(Ljava/lang/String;II)I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-ge p1, p2, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/String;->charAt(I)C
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
sparse-switch v0, :sswitch_data_0
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:sswitch_0
|
|
|
|
add-int/lit8 p1, p1, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return p2
|
|
|
|
|
|
|
|
:sswitch_data_0
|
|
|
|
.sparse-switch
|
|
|
|
0x9 -> :sswitch_0
|
|
|
|
0xa -> :sswitch_0
|
|
|
|
0xc -> :sswitch_0
|
|
|
|
0xd -> :sswitch_0
|
|
|
|
0x20 -> :sswitch_0
|
|
|
|
.end sparse-switch
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static m(Ljava/lang/String;II)I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
add-int/lit8 p2, p2, -0x1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-lt p2, p1, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p0, p2}, Ljava/lang/String;->charAt(I)C
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
sparse-switch v0, :sswitch_data_0
|
|
|
|
|
|
|
|
add-int/lit8 p2, p2, 0x1
|
|
|
|
|
|
|
|
return p2
|
|
|
|
|
|
|
|
:sswitch_0
|
|
|
|
add-int/lit8 p2, p2, -0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:sswitch_data_0
|
|
|
|
.sparse-switch
|
|
|
|
0x9 -> :sswitch_0
|
|
|
|
0xa -> :sswitch_0
|
|
|
|
0xc -> :sswitch_0
|
|
|
|
0xd -> :sswitch_0
|
|
|
|
0x20 -> :sswitch_0
|
|
|
|
.end sparse-switch
|
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
.method public static n(Ljava/lang/String;II)Ljava/lang/String;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-static {p0, p1, p2}, Lokhttp3/internal/c;->l(Ljava/lang/String;II)I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
invoke-static {p0, p1, p2}, Lokhttp3/internal/c;->m(Ljava/lang/String;II)I
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1, p2}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
.method public static varargs n([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
.locals 0
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">([TT;)",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-virtual {p0}, [Ljava/lang/Object;->clone()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
check-cast p0, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
invoke-static {p0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
invoke-static {p0}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
.method private static o(Ljava/lang/String;II)Ljava/net/InetAddress;
|
|
|
|
.locals 16
|
|
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
|
|
|
|
move/from16 v1, p2
|
|
|
|
|
|
|
|
const/16 v2, 0x10
|
|
|
|
|
|
|
|
new-array v3, v2, [B
|
|
|
|
|
|
|
|
const/4 v4, -0x1
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
move/from16 v6, p1
|
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
const/4 v8, -0x1
|
|
|
|
|
|
|
|
const/4 v9, -0x1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
const/4 v10, 0x0
|
|
|
|
|
|
|
|
if-ge v6, v1, :cond_14
|
|
|
|
|
|
|
|
if-ne v7, v2, :cond_0
|
|
|
|
|
|
|
|
return-object v10
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
add-int/lit8 v11, v6, 0x2
|
|
|
|
|
|
|
|
const/16 v12, 0xff
|
|
|
|
|
|
|
|
const/4 v13, 0x4
|
|
|
|
|
|
|
|
if-gt v11, v1, :cond_3
|
|
|
|
|
|
|
|
const-string v14, "::"
|
|
|
|
|
|
|
|
const/4 v15, 0x2
|
|
|
|
|
|
|
|
invoke-virtual {v0, v6, v14, v5, v15}, Ljava/lang/String;->regionMatches(ILjava/lang/String;II)Z
|
|
|
|
|
|
|
|
move-result v14
|
|
|
|
|
|
|
|
if-eqz v14, :cond_3
|
|
|
|
|
|
|
|
if-eq v8, v4, :cond_1
|
|
|
|
|
|
|
|
return-object v10
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
add-int/lit8 v7, v7, 0x2
|
|
|
|
|
|
|
|
if-ne v11, v1, :cond_2
|
|
|
|
|
|
|
|
move v8, v7
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
const/16 v0, 0x10
|
|
|
|
|
|
|
|
goto/16 :goto_7
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_2
|
|
|
|
move v8, v7
|
|
|
|
|
|
|
|
move v9, v11
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
goto/16 :goto_4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_3
|
|
|
|
if-eqz v7, :cond_10
|
|
|
|
|
|
|
|
const-string v11, ":"
|
|
|
|
|
|
|
|
const/4 v14, 0x1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v6, v11, v5, v14}, Ljava/lang/String;->regionMatches(ILjava/lang/String;II)Z
|
|
|
|
|
|
|
|
move-result v11
|
|
|
|
|
|
|
|
if-eqz v11, :cond_4
|
|
|
|
|
|
|
|
add-int/lit8 v6, v6, 0x1
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
move v9, v6
|
|
|
|
|
|
|
|
goto/16 :goto_4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_4
|
|
|
|
const-string v11, "."
|
|
|
|
|
|
|
|
invoke-virtual {v0, v6, v11, v5, v14}, Ljava/lang/String;->regionMatches(ILjava/lang/String;II)Z
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
if-eqz v6, :cond_f
|
|
|
|
|
|
|
|
add-int/lit8 v6, v7, -0x2
|
|
|
|
|
|
|
|
move v11, v6
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
if-ge v9, v1, :cond_c
|
|
|
|
|
|
|
|
if-ne v11, v2, :cond_5
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
goto :goto_3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_5
|
|
|
|
if-eq v11, v6, :cond_7
|
|
|
|
|
|
|
|
invoke-virtual {v0, v9}, Ljava/lang/String;->charAt(I)C
|
|
|
|
|
|
|
|
move-result v15
|
|
|
|
|
|
|
|
const/16 v14, 0x2e
|
|
|
|
|
|
|
|
if-eq v15, v14, :cond_6
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
goto :goto_3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_6
|
|
|
|
add-int/lit8 v9, v9, 0x1
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
move v14, v9
|
|
|
|
|
|
|
|
const/4 v15, 0x0
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
if-ge v14, v1, :cond_a
|
|
|
|
|
|
|
|
invoke-virtual {v0, v14}, Ljava/lang/String;->charAt(I)C
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
const/16 v2, 0x30
|
|
|
|
|
|
|
|
if-lt v5, v2, :cond_a
|
|
|
|
|
|
|
|
const/16 v4, 0x39
|
|
|
|
|
|
|
|
if-gt v5, v4, :cond_a
|
|
|
|
|
|
|
|
if-nez v15, :cond_8
|
|
|
|
|
|
|
|
if-eq v9, v14, :cond_8
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
const/4 v5, 0x0
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
mul-int/lit8 v15, v15, 0xa
|
|
|
|
|
|
|
|
add-int/2addr v15, v5
|
|
|
|
|
|
|
|
sub-int/2addr v15, v2
|
|
|
|
|
|
|
|
if-le v15, v12, :cond_9
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
const/4 v5, 0x0
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_9
|
|
|
|
add-int/lit8 v14, v14, 0x1
|
|
|
|
|
|
|
|
const/16 v2, 0x10
|
|
|
|
|
|
|
|
const/4 v4, -0x1
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_a
|
|
|
|
sub-int v2, v14, v9
|
|
|
|
|
|
|
|
if-nez v2, :cond_b
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
const/4 v5, 0x0
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_b
|
|
|
|
add-int/lit8 v2, v11, 0x1
|
|
|
|
|
|
|
|
int-to-byte v4, v15
|
|
|
|
|
|
|
|
aput-byte v4, v3, v11
|
|
|
|
|
|
|
|
move v11, v2
|
|
|
|
|
|
|
|
move v9, v14
|
|
|
|
|
|
|
|
const/16 v2, 0x10
|
|
|
|
|
|
|
|
const/4 v4, -0x1
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
const/4 v14, 0x1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_c
|
|
|
|
add-int/2addr v6, v13
|
|
|
|
|
|
|
|
if-eq v11, v6, :cond_d
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
goto :goto_3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_d
|
|
|
|
const/4 v5, 0x1
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
:goto_3
|
2019-02-04 20:08:30 +00:00
|
|
|
if-nez v5, :cond_e
|
|
|
|
|
|
|
|
return-object v10
|
|
|
|
|
|
|
|
:cond_e
|
|
|
|
add-int/lit8 v7, v7, 0x2
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
const/16 v0, 0x10
|
|
|
|
|
|
|
|
goto :goto_7
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_f
|
|
|
|
return-object v10
|
|
|
|
|
|
|
|
:cond_10
|
|
|
|
move v9, v6
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
:goto_4
|
2019-02-04 20:08:30 +00:00
|
|
|
move v6, v9
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
:goto_5
|
2019-02-04 20:08:30 +00:00
|
|
|
if-ge v6, v1, :cond_11
|
|
|
|
|
|
|
|
invoke-virtual {v0, v6}, Ljava/lang/String;->charAt(I)C
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
invoke-static {v4}, Lokhttp3/internal/c;->decodeHexDigit(C)I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
const/4 v5, -0x1
|
|
|
|
|
|
|
|
if-eq v4, v5, :cond_11
|
|
|
|
|
|
|
|
shl-int/lit8 v2, v2, 0x4
|
|
|
|
|
|
|
|
add-int/2addr v2, v4
|
|
|
|
|
|
|
|
add-int/lit8 v6, v6, 0x1
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
goto :goto_5
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_11
|
|
|
|
sub-int v4, v6, v9
|
|
|
|
|
|
|
|
if-eqz v4, :cond_13
|
|
|
|
|
|
|
|
if-le v4, v13, :cond_12
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
goto :goto_6
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_12
|
|
|
|
add-int/lit8 v4, v7, 0x1
|
|
|
|
|
|
|
|
ushr-int/lit8 v5, v2, 0x8
|
|
|
|
|
|
|
|
and-int/2addr v5, v12
|
|
|
|
|
|
|
|
int-to-byte v5, v5
|
|
|
|
|
|
|
|
aput-byte v5, v3, v7
|
|
|
|
|
|
|
|
add-int/lit8 v7, v4, 0x1
|
|
|
|
|
|
|
|
and-int/lit16 v2, v2, 0xff
|
|
|
|
|
|
|
|
int-to-byte v2, v2
|
|
|
|
|
|
|
|
aput-byte v2, v3, v4
|
|
|
|
|
|
|
|
const/16 v2, 0x10
|
|
|
|
|
|
|
|
const/4 v4, -0x1
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
goto/16 :goto_0
|
|
|
|
|
|
|
|
:cond_13
|
2019-02-04 20:29:01 +00:00
|
|
|
:goto_6
|
2019-02-04 20:08:30 +00:00
|
|
|
return-object v10
|
|
|
|
|
|
|
|
:cond_14
|
|
|
|
const/16 v0, 0x10
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
:goto_7
|
2019-02-04 20:08:30 +00:00
|
|
|
if-eq v7, v0, :cond_16
|
|
|
|
|
|
|
|
const/4 v1, -0x1
|
|
|
|
|
|
|
|
if-ne v8, v1, :cond_15
|
|
|
|
|
|
|
|
return-object v10
|
|
|
|
|
|
|
|
:cond_15
|
|
|
|
sub-int v1, v7, v8
|
|
|
|
|
|
|
|
rsub-int/lit8 v2, v1, 0x10
|
|
|
|
|
|
|
|
invoke-static {v3, v8, v3, v2, v1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
|
|
|
|
rsub-int/lit8 v2, v7, 0x10
|
|
|
|
|
|
|
|
add-int/2addr v2, v8
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
invoke-static {v3, v8, v2, v0}, Ljava/util/Arrays;->fill([BIIB)V
|
|
|
|
|
|
|
|
:cond_16
|
|
|
|
:try_start_0
|
|
|
|
invoke-static {v3}, Ljava/net/InetAddress;->getByAddress([B)Ljava/net/InetAddress;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/net/UnknownHostException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
new-instance v0, Ljava/lang/AssertionError;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/lang/AssertionError;-><init>()V
|
|
|
|
|
|
|
|
throw v0
|
2019-02-04 20:29:01 +00:00
|
|
|
|
|
|
|
return-void
|
2019-02-04 20:08:30 +00:00
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
.method public static r(Ljava/util/Map;)Ljava/util/Map;
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<K:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
"V:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
|
|
|
"Ljava/util/Map<",
|
|
|
|
"TK;TV;>;)",
|
|
|
|
"Ljava/util/Map<",
|
|
|
|
"TK;TV;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-interface {p0}, Ljava/util/Map;->isEmpty()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-static {}, Ljava/util/Collections;->emptyMap()Ljava/util/Map;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance v0, Ljava/util/LinkedHashMap;
|
|
|
|
|
|
|
|
invoke-direct {v0, p0}, Ljava/util/LinkedHashMap;-><init>(Ljava/util/Map;)V
|
|
|
|
|
|
|
|
invoke-static {v0}, Ljava/util/Collections;->unmodifiableMap(Ljava/util/Map;)Ljava/util/Map;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|