z.smali

.class public Lokhttp3/z;
.super Ljava/lang/Object;
.source "OkHttpClient.java"

# interfaces
.implements Ljava/lang/Cloneable;
.implements Lokhttp3/Call$Factory;
.implements Lokhttp3/WebSocket$Factory;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lokhttp3/z$a;
    }
.end annotation


# static fields
.field static final a:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lokhttp3/Protocol;",
            ">;"
        }
    .end annotation
.end field

.field static final b:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lokhttp3/m;",
            ">;"
        }
    .end annotation
.end field


# instance fields
.field final A:I

.field final B:I

.field final C:I

.field final D:I

.field final c:Lokhttp3/Dispatcher;

.field final d:Ljava/net/Proxy;

.field final e:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lokhttp3/Protocol;",
            ">;"
        }
    .end annotation
.end field

.field final f:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lokhttp3/m;",
            ">;"
        }
    .end annotation
.end field

.field final g:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lokhttp3/Interceptor;",
            ">;"
        }
    .end annotation
.end field

.field final h:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lokhttp3/Interceptor;",
            ">;"
        }
    .end annotation
.end field

.field final i:Lokhttp3/EventListener$Factory;

.field final j:Ljava/net/ProxySelector;

.field final k:Lokhttp3/CookieJar;

.field final l:Lokhttp3/e;

.field final m:Lokhttp3/internal/cache/InternalCache;

.field final n:Ljavax/net/SocketFactory;

.field final o:Ljavax/net/ssl/SSLSocketFactory;

.field final p:Lokhttp3/internal/tls/c;

.field final q:Ljavax/net/ssl/HostnameVerifier;

.field final r:Lokhttp3/h;

.field final s:Lokhttp3/Authenticator;

.field final t:Lokhttp3/Authenticator;

.field final u:Lokhttp3/l;

.field final v:Lokhttp3/Dns;

.field final w:Z

.field final x:Z

.field final y:Z

.field final z:I


# direct methods
.method static constructor <clinit>()V
    .registers 5

    const/4 v0, 0x2

    .line 1
    new-array v1, v0, [Lokhttp3/Protocol;

    sget-object v2, Lokhttp3/Protocol;->HTTP_2:Lokhttp3/Protocol;

    const/4 v3, 0x0

    aput-object v2, v1, v3

    sget-object v2, Lokhttp3/Protocol;->HTTP_1_1:Lokhttp3/Protocol;

    const/4 v4, 0x1

    aput-object v2, v1, v4

    invoke-static {v1}, Lokhttp3/a/e;->a([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v1

    sput-object v1, Lokhttp3/z;->a:Ljava/util/List;

    .line 2
    new-array v0, v0, [Lokhttp3/m;

    sget-object v1, Lokhttp3/m;->d:Lokhttp3/m;

    aput-object v1, v0, v3

    sget-object v1, Lokhttp3/m;->f:Lokhttp3/m;

    aput-object v1, v0, v4

    invoke-static {v0}, Lokhttp3/a/e;->a([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v0

    sput-object v0, Lokhttp3/z;->b:Ljava/util/List;

    .line 3
    new-instance v0, Lokhttp3/y;

    invoke-direct {v0}, Lokhttp3/y;-><init>()V

    sput-object v0, Lokhttp3/a/a;->a:Lokhttp3/a/a;

    return-void
.end method

.method public constructor <init>()V
    .registers 2

    .line 1
    new-instance v0, Lokhttp3/z$a;

    invoke-direct {v0}, Lokhttp3/z$a;-><init>()V

    invoke-direct {p0, v0}, Lokhttp3/z;-><init>(Lokhttp3/z$a;)V

    return-void
.end method

.method constructor <init>(Lokhttp3/z$a;)V
    .registers 6

    .line 2
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 3
    iget-object v0, p1, Lokhttp3/z$a;->a:Lokhttp3/Dispatcher;

    iput-object v0, p0, Lokhttp3/z;->c:Lokhttp3/Dispatcher;

    .line 4
    iget-object v0, p1, Lokhttp3/z$a;->b:Ljava/net/Proxy;

    iput-object v0, p0, Lokhttp3/z;->d:Ljava/net/Proxy;

    .line 5
    iget-object v0, p1, Lokhttp3/z$a;->c:Ljava/util/List;

    iput-object v0, p0, Lokhttp3/z;->e:Ljava/util/List;

    .line 6
    iget-object v0, p1, Lokhttp3/z$a;->d:Ljava/util/List;

    iput-object v0, p0, Lokhttp3/z;->f:Ljava/util/List;

    .line 7
    iget-object v0, p1, Lokhttp3/z$a;->e:Ljava/util/List;

    invoke-static {v0}, Lokhttp3/a/e;->a(Ljava/util/List;)Ljava/util/List;

    move-result-object v0

    iput-object v0, p0, Lokhttp3/z;->g:Ljava/util/List;

    .line 8
    iget-object v0, p1, Lokhttp3/z$a;->f:Ljava/util/List;

    invoke-static {v0}, Lokhttp3/a/e;->a(Ljava/util/List;)Ljava/util/List;

    move-result-object v0

    iput-object v0, p0, Lokhttp3/z;->h:Ljava/util/List;

    .line 9
    iget-object v0, p1, Lokhttp3/z$a;->g:Lokhttp3/EventListener$Factory;

    iput-object v0, p0, Lokhttp3/z;->i:Lokhttp3/EventListener$Factory;

    .line 10
    iget-object v0, p1, Lokhttp3/z$a;->h:Ljava/net/ProxySelector;

    iput-object v0, p0, Lokhttp3/z;->j:Ljava/net/ProxySelector;

    .line 11
    iget-object v0, p1, Lokhttp3/z$a;->i:Lokhttp3/CookieJar;

    iput-object v0, p0, Lokhttp3/z;->k:Lokhttp3/CookieJar;

    .line 12
    iget-object v0, p1, Lokhttp3/z$a;->j:Lokhttp3/e;

    iput-object v0, p0, Lokhttp3/z;->l:Lokhttp3/e;

    .line 13
    iget-object v0, p1, Lokhttp3/z$a;->k:Lokhttp3/internal/cache/InternalCache;

    iput-object v0, p0, Lokhttp3/z;->m:Lokhttp3/internal/cache/InternalCache;

    .line 14
    iget-object v0, p1, Lokhttp3/z$a;->l:Ljavax/net/SocketFactory;

    iput-object v0, p0, Lokhttp3/z;->n:Ljavax/net/SocketFactory;

    .line 15
    iget-object v0, p0, Lokhttp3/z;->f:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    const/4 v1, 0x0

    :cond_42
    const/4 v2, 0x0

    :goto_43
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_59

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lokhttp3/m;

    if-nez v2, :cond_57

    .line 16
    invoke-virtual {v3}, Lokhttp3/m;->b()Z

    move-result v2

    if-eqz v2, :cond_42

    :cond_57
    const/4 v2, 0x1

    goto :goto_43

    .line 17
    :cond_59
    iget-object v0, p1, Lokhttp3/z$a;->m:Ljavax/net/ssl/SSLSocketFactory;

    if-nez v0, :cond_71

    if-nez v2, :cond_60

    goto :goto_71

    .line 18
    :cond_60
    invoke-static {}, Lokhttp3/a/e;->a()Ljavax/net/ssl/X509TrustManager;

    move-result-object v0

    .line 19
    invoke-static {v0}, Lokhttp3/z;->a(Ljavax/net/ssl/X509TrustManager;)Ljavax/net/ssl/SSLSocketFactory;

    move-result-object v1

    iput-object v1, p0, Lokhttp3/z;->o:Ljavax/net/ssl/SSLSocketFactory;

    .line 20
    invoke-static {v0}, Lokhttp3/internal/tls/c;->a(Ljavax/net/ssl/X509TrustManager;)Lokhttp3/internal/tls/c;

    move-result-object v0

    iput-object v0, p0, Lokhttp3/z;->p:Lokhttp3/internal/tls/c;

    goto :goto_79

    .line 21
    :cond_71
    :goto_71
    iget-object v0, p1, Lokhttp3/z$a;->m:Ljavax/net/ssl/SSLSocketFactory;

    iput-object v0, p0, Lokhttp3/z;->o:Ljavax/net/ssl/SSLSocketFactory;

    .line 22
    iget-object v0, p1, Lokhttp3/z$a;->n:Lokhttp3/internal/tls/c;

    iput-object v0, p0, Lokhttp3/z;->p:Lokhttp3/internal/tls/c;

    .line 23
    :goto_79
    iget-object v0, p0, Lokhttp3/z;->o:Ljavax/net/ssl/SSLSocketFactory;

    if-eqz v0, :cond_86

    .line 24
    invoke-static {}, Lokhttp3/a/b/g;->a()Lokhttp3/a/b/g;

    move-result-object v0

    iget-object v1, p0, Lokhttp3/z;->o:Ljavax/net/ssl/SSLSocketFactory;

    invoke-virtual {v0, v1}, Lokhttp3/a/b/g;->a(Ljavax/net/ssl/SSLSocketFactory;)V

    .line 25
    :cond_86
    iget-object v0, p1, Lokhttp3/z$a;->o:Ljavax/net/ssl/HostnameVerifier;

    iput-object v0, p0, Lokhttp3/z;->q:Ljavax/net/ssl/HostnameVerifier;

    .line 26
    iget-object v0, p1, Lokhttp3/z$a;->p:Lokhttp3/h;

    iget-object v1, p0, Lokhttp3/z;->p:Lokhttp3/internal/tls/c;

    invoke-virtual {v0, v1}, Lokhttp3/h;->a(Lokhttp3/internal/tls/c;)Lokhttp3/h;

    move-result-object v0

    iput-object v0, p0, Lokhttp3/z;->r:Lokhttp3/h;

    .line 27
    iget-object v0, p1, Lokhttp3/z$a;->q:Lokhttp3/Authenticator;

    iput-object v0, p0, Lokhttp3/z;->s:Lokhttp3/Authenticator;

    .line 28
    iget-object v0, p1, Lokhttp3/z$a;->r:Lokhttp3/Authenticator;

    iput-object v0, p0, Lokhttp3/z;->t:Lokhttp3/Authenticator;

    .line 29
    iget-object v0, p1, Lokhttp3/z$a;->s:Lokhttp3/l;

    iput-object v0, p0, Lokhttp3/z;->u:Lokhttp3/l;

    .line 30
    iget-object v0, p1, Lokhttp3/z$a;->t:Lokhttp3/Dns;

    iput-object v0, p0, Lokhttp3/z;->v:Lokhttp3/Dns;

    .line 31
    iget-boolean v0, p1, Lokhttp3/z$a;->u:Z

    iput-boolean v0, p0, Lokhttp3/z;->w:Z

    .line 32
    iget-boolean v0, p1, Lokhttp3/z$a;->v:Z

    iput-boolean v0, p0, Lokhttp3/z;->x:Z

    .line 33
    iget-boolean v0, p1, Lokhttp3/z$a;->w:Z

    iput-boolean v0, p0, Lokhttp3/z;->y:Z

    .line 34
    iget v0, p1, Lokhttp3/z$a;->x:I

    iput v0, p0, Lokhttp3/z;->z:I

    .line 35
    iget v0, p1, Lokhttp3/z$a;->y:I

    iput v0, p0, Lokhttp3/z;->A:I

    .line 36
    iget v0, p1, Lokhttp3/z$a;->z:I

    iput v0, p0, Lokhttp3/z;->B:I

    .line 37
    iget v0, p1, Lokhttp3/z$a;->A:I

    iput v0, p0, Lokhttp3/z;->C:I

    .line 38
    iget p1, p1, Lokhttp3/z$a;->B:I

    iput p1, p0, Lokhttp3/z;->D:I

    .line 39
    iget-object p1, p0, Lokhttp3/z;->g:Ljava/util/List;

    const/4 v0, 0x0

    invoke-interface {p1, v0}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result p1

    if-nez p1, :cond_ef

    .line 40
    iget-object p1, p0, Lokhttp3/z;->h:Ljava/util/List;

    invoke-interface {p1, v0}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result p1

    if-nez p1, :cond_d6

    return-void

    .line 41
    :cond_d6
    new-instance p1, Ljava/lang/IllegalStateException;

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "Null network interceptor: "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p0, Lokhttp3/z;->h:Ljava/util/List;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw p1

    .line 42
    :cond_ef
    new-instance p1, Ljava/lang/IllegalStateException;

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "Null interceptor: "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p0, Lokhttp3/z;->g:Ljava/util/List;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    goto :goto_109

    :goto_108
    throw p1

    :goto_109
    goto :goto_108
.end method

.method private static a(Ljavax/net/ssl/X509TrustManager;)Ljavax/net/ssl/SSLSocketFactory;
    .registers 4

    .line 1
    :try_start_0
    invoke-static {}, Lokhttp3/a/b/g;->a()Lokhttp3/a/b/g;

    move-result-object v0

    invoke-virtual {v0}, Lokhttp3/a/b/g;->c()Ljavax/net/ssl/SSLContext;

    move-result-object v0

    const/4 v1, 0x1

    .line 2
    new-array v1, v1, [Ljavax/net/ssl/TrustManager;

    const/4 v2, 0x0

    aput-object p0, v1, v2

    const/4 p0, 0x0

    invoke-virtual {v0, p0, v1, p0}, Ljavax/net/ssl/SSLContext;->init([Ljavax/net/ssl/KeyManager;[Ljavax/net/ssl/TrustManager;Ljava/security/SecureRandom;)V

    .line 3
    invoke-virtual {v0}, Ljavax/net/ssl/SSLContext;->getSocketFactory()Ljavax/net/ssl/SSLSocketFactory;

    move-result-object p0
    :try_end_16
    .catch Ljava/security/GeneralSecurityException; {:try_start_0 .. :try_end_16} :catch_17

    return-object p0

    :catch_17
    move-exception p0

    const-string v0, "No System TLS"

    .line 4
    invoke-static {v0, p0}, Lokhttp3/a/e;->a(Ljava/lang/String;Ljava/lang/Exception;)Ljava/lang/AssertionError;

    move-result-object p0

    throw p0
.end method


# virtual methods
.method public A()Ljavax/net/ssl/SSLSocketFactory;
    .registers 2

    .line 1
    iget-object v0, p0, Lokhttp3/z;->o:Ljavax/net/ssl/SSLSocketFactory;

    return-object v0
.end method

.method public B()I
    .registers 2

    .line 1
    iget v0, p0, Lokhttp3/z;->C:I

    return v0
.end method

.method public b()Lokhttp3/Authenticator;
    .registers 2

    .line 1
    iget-object v0, p0, Lokhttp3/z;->t:Lokhttp3/Authenticator;

    return-object v0
.end method

.method public c()I
    .registers 2

    .line 1
    iget v0, p0, Lokhttp3/z;->z:I

    return v0
.end method

.method public d()Lokhttp3/h;
    .registers 2

    .line 1
    iget-object v0, p0, Lokhttp3/z;->r:Lokhttp3/h;

    return-object v0
.end method

.method public e()I
    .registers 2

    .line 1
    iget v0, p0, Lokhttp3/z;->A:I

    return v0
.end method

.method public f()Lokhttp3/l;
    .registers 2

    .line 1
    iget-object v0, p0, Lokhttp3/z;->u:Lokhttp3/l;

    return-object v0
.end method

.method public g()Ljava/util/List;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Lokhttp3/m;",
            ">;"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lokhttp3/z;->f:Ljava/util/List;

    return-object v0
.end method

.method public h()Lokhttp3/CookieJar;
    .registers 2

    .line 1
    iget-object v0, p0, Lokhttp3/z;->k:Lokhttp3/CookieJar;

    return-object v0
.end method

.method public i()Lokhttp3/Dispatcher;
    .registers 2

    .line 1
    iget-object v0, p0, Lokhttp3/z;->c:Lokhttp3/Dispatcher;

    return-object v0
.end method

.method public j()Lokhttp3/Dns;
    .registers 2

    .line 1
    iget-object v0, p0, Lokhttp3/z;->v:Lokhttp3/Dns;

    return-object v0
.end method

.method public k()Lokhttp3/EventListener$Factory;
    .registers 2

    .line 1
    iget-object v0, p0, Lokhttp3/z;->i:Lokhttp3/EventListener$Factory;

    return-object v0
.end method

.method public l()Z
    .registers 2

    .line 1
    iget-boolean v0, p0, Lokhttp3/z;->x:Z

    return v0
.end method

.method public m()Z
    .registers 2

    .line 1
    iget-boolean v0, p0, Lokhttp3/z;->w:Z

    return v0
.end method

.method public n()Ljavax/net/ssl/HostnameVerifier;
    .registers 2

    .line 1
    iget-object v0, p0, Lokhttp3/z;->q:Ljavax/net/ssl/HostnameVerifier;

    return-object v0
.end method

.method public newCall(Lokhttp3/C;)Lokhttp3/Call;
    .registers 3

    const/4 v0, 0x0

    .line 1
    invoke-static {p0, p1, v0}, Lokhttp3/B;->a(Lokhttp3/z;Lokhttp3/C;Z)Lokhttp3/B;

    move-result-object p1

    return-object p1
.end method

.method public newWebSocket(Lokhttp3/C;Lokhttp3/L;)Lokhttp3/WebSocket;
    .registers 10

    .line 1
    new-instance v6, Lokhttp3/internal/ws/c;

    new-instance v3, Ljava/util/Random;

    invoke-direct {v3}, Ljava/util/Random;-><init>()V

    iget v0, p0, Lokhttp3/z;->D:I

    int-to-long v4, v0

    move-object v0, v6

    move-object v1, p1

    move-object v2, p2

    invoke-direct/range {v0 .. v5}, Lokhttp3/internal/ws/c;-><init>(Lokhttp3/C;Lokhttp3/L;Ljava/util/Random;J)V

    .line 2
    invoke-virtual {v6, p0}, Lokhttp3/internal/ws/c;->a(Lokhttp3/z;)V

    return-object v6
.end method

.method public o()Ljava/util/List;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Lokhttp3/Interceptor;",
            ">;"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lokhttp3/z;->g:Ljava/util/List;

    return-object v0
.end method

.method p()Lokhttp3/internal/cache/InternalCache;
    .registers 2

    .line 1
    iget-object v0, p0, Lokhttp3/z;->l:Lokhttp3/e;

    if-eqz v0, :cond_7

    iget-object v0, v0, Lokhttp3/e;->a:Lokhttp3/internal/cache/InternalCache;

    goto :goto_9

    :cond_7
    iget-object v0, p0, Lokhttp3/z;->m:Lokhttp3/internal/cache/InternalCache;

    :goto_9
    return-object v0
.end method

.method public q()Ljava/util/List;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Lokhttp3/Interceptor;",
            ">;"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lokhttp3/z;->h:Ljava/util/List;

    return-object v0
.end method

.method public r()Lokhttp3/z$a;
    .registers 2

    .line 1
    new-instance v0, Lokhttp3/z$a;

    invoke-direct {v0, p0}, Lokhttp3/z$a;-><init>(Lokhttp3/z;)V

    return-object v0
.end method

.method public s()I
    .registers 2

    .line 1
    iget v0, p0, Lokhttp3/z;->D:I

    return v0
.end method

.method public t()Ljava/util/List;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Lokhttp3/Protocol;",
            ">;"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lokhttp3/z;->e:Ljava/util/List;

    return-object v0
.end method

.method public u()Ljava/net/Proxy;
    .registers 2

    .line 1
    iget-object v0, p0, Lokhttp3/z;->d:Ljava/net/Proxy;

    return-object v0
.end method

.method public v()Lokhttp3/Authenticator;
    .registers 2

    .line 1
    iget-object v0, p0, Lokhttp3/z;->s:Lokhttp3/Authenticator;

    return-object v0
.end method

.method public w()Ljava/net/ProxySelector;
    .registers 2

    .line 1
    iget-object v0, p0, Lokhttp3/z;->j:Ljava/net/ProxySelector;

    return-object v0
.end method

.method public x()I
    .registers 2

    .line 1
    iget v0, p0, Lokhttp3/z;->B:I

    return v0
.end method

.method public y()Z
    .registers 2

    .line 1
    iget-boolean v0, p0, Lokhttp3/z;->y:Z

    return v0
.end method

.method public z()Ljavax/net/SocketFactory;
    .registers 2

    .line 1
    iget-object v0, p0, Lokhttp3/z;->n:Ljavax/net/SocketFactory;

    return-object v0
.end method