Info Call to Socket API

Description

List of all calls to Server Socket API.

Recommendation

This entry is informative, no recommendations applicable.

Technical details

Method retrofit.client.UrlConnectionClient.openConnection() calling method java.net.URL.<init>()


    protected java.net.HttpURLConnection openConnection(retrofit.client.Request p2)
    {
        java.net.HttpURLConnection v2_3 = ((java.net.HttpURLConnection) new java.net.URL(p2.getUrl()).openConnection());
        v2_3.setConnectTimeout(15000);
        v2_3.setReadTimeout(20000);
        return v2_3;
    }

Method retrofit.appengine.UrlFetchClient.createRequest() calling method java.net.URL.<init>()


    static com.google.appengine.api.urlfetch.HTTPRequest createRequest(retrofit.client.Request p5)
    {
        com.google.appengine.api.urlfetch.HTTPRequest v2_2 = new com.google.appengine.api.urlfetch.HTTPRequest(new java.net.URL(p5.getUrl()), retrofit.appengine.UrlFetchClient.getHttpMethod(p5.getMethod()));
        java.io.ByteArrayOutputStream v0_2 = p5.getHeaders().iterator();
        while (v0_2.hasNext()) {
            com.google.appengine.api.urlfetch.HTTPHeader v1_4 = ((retrofit.client.Header) v0_2.next());
            v2_2.addHeader(new com.google.appengine.api.urlfetch.HTTPHeader(v1_4.getName(), v1_4.getValue()));
        }
        byte[] v5_1 = p5.getBody();
        if (v5_1 != null) {
            java.io.ByteArrayOutputStream v0_3 = v5_1.mimeType();
            if (v0_3 != null) {
                v2_2.addHeader(new com.google.appengine.api.urlfetch.HTTPHeader("Content-Type", v0_3));
            }
            java.io.ByteArrayOutputStream v0_5 = new java.io.ByteArrayOutputStream();
            v5_1.writeTo(v0_5);
            v2_2.setPayload(v0_5.toByteArray());
        }
        return v2_2;
    }

Method org.bouncycastle.x509.PKIXCertPathReviewer.getCRL() calling method java.net.URL.<init>()


    private java.security.cert.X509CRL getCRL(String p7)
    {
        try {
            String v2_4 = new java.net.URL(p7);
        } catch (String v2_8) {
            String v4_4 = new Object[4];
            v4_4[0] = new org.bouncycastle.i18n.filter.UntrustedInput(p7);
            v4_4[1] = v2_8.getMessage();
            v4_4[2] = v2_8;
            v4_4[3] = v2_8.getClass().getName();
            throw new org.bouncycastle.x509.CertPathReviewerException(new org.bouncycastle.i18n.ErrorBundle("org.bouncycastle.x509.CertPathReviewerMessages", "CertPathReviewer.loadCrlDistPointError", v4_4));
        }
        if (v2_4.getProtocol().equals("http")) {
            String v2_1 = ((java.net.HttpURLConnection) v2_4.openConnection());
            v2_1.setUseCaches(0);
            v2_1.setDoInput(1);
            v2_1.connect();
            if (v2_1.getResponseCode() != 200) {
                throw new Exception(v2_1.getResponseMessage());
            } else {
                p7 = ((java.security.cert.X509CRL) java.security.cert.CertificateFactory.getInstance("X.509", "BC").generateCRL(v2_1.getInputStream()));
            }
        } else {
            if (!v2_4.getProtocol().equals("https")) {
                p7 = 0;
            } else {
            }
        }
        return p7;
    }

Method com.google.android.gms.internal.yc.d() calling method java.net.URL.<init>()


    private final java.net.URL d()
    {
        int v0_1;
        int v0_4 = String.valueOf(com.google.android.gms.internal.xh.h());
        String v1_8 = String.valueOf(((String) com.google.android.gms.internal.xp.n.a()));
        if (v1_8.length() == 0) {
            v0_1 = new String(v0_4);
        } else {
            v0_1 = v0_4.concat(v1_8);
        }
        try {
            return new java.net.URL(v0_1);
        } catch (int v0_2) {
            this.e("Error trying to parse the hardcoded host url", v0_2);
            return 0;
        }
    }

Method com.google.android.gms.internal.yc.a() calling method java.net.URL.<init>()


    private final java.net.URL a(com.google.android.gms.internal.xu p4, String p5)
    {
        int v4_3;
        StringBuilder v2_5;
        String v0_0;
        if (!p4.f()) {
            v4_3 = String.valueOf(com.google.android.gms.internal.xh.i());
            v0_0 = String.valueOf(com.google.android.gms.internal.xh.j());
            v2_5 = new StringBuilder((((String.valueOf(v4_3).length() + 1) + String.valueOf(v0_0).length()) + String.valueOf(p5).length()));
        } else {
            v4_3 = String.valueOf(com.google.android.gms.internal.xh.h());
            v0_0 = String.valueOf(com.google.android.gms.internal.xh.j());
            v2_5 = new StringBuilder((((String.valueOf(v4_3).length() + 1) + String.valueOf(v0_0).length()) + String.valueOf(p5).length()));
        }
        v2_5.append(v4_3);
        v2_5.append(v0_0);
        v2_5.append("?");
        v2_5.append(p5);
        try {
            return new java.net.URL(v2_5.toString());
        } catch (int v4_7) {
            this.e("Error trying to parse the hardcoded host url", v4_7);
            return 0;
        }
    }

Method com.google.android.gms.internal.yc.a() calling method java.net.URL.<init>()


    private final java.net.URL a(com.google.android.gms.internal.xu p3)
    {
        String v0_2;
        int v3_3;
        int v3_4;
        String v0_0;
        if (!p3.f()) {
            v3_3 = String.valueOf(com.google.android.gms.internal.xh.i());
            v0_0 = String.valueOf(com.google.android.gms.internal.xh.j());
            if (v0_0.length() == 0) {
                v0_2 = new String(v3_3);
                v3_4 = v0_2;
            } else {
                v3_4 = v3_3.concat(v0_0);
            }
        } else {
            v3_3 = String.valueOf(com.google.android.gms.internal.xh.h());
            v0_0 = String.valueOf(com.google.android.gms.internal.xh.j());
            if (v0_0.length() == 0) {
                v0_2 = new String(v3_3);
            }
        }
        try {
            return new java.net.URL(v3_4);
        } catch (int v3_5) {
            this.e("Error trying to parse the hardcoded host url", v3_5);
            return 0;
        }
    }

Method com.google.android.gms.internal.ld.a() calling method java.net.URL.<init>()


    public static com.google.android.gms.internal.jy a(com.google.android.gms.internal.ju p18, android.content.Context p19, String p20, String p21, String p22, com.google.android.gms.internal.lr p23, com.google.android.gms.internal.bhg p24, com.google.android.gms.internal.lc p25)
    {
        int v3;
        com.google.android.gms.internal.ju v0_0 = p18;
        if (p24 == null) {
            v3 = 0;
        } else {
            v3 = p24.a();
        }
        try {
            java.net.URL v5_5;
            com.google.android.gms.internal.lp v4_1 = new com.google.android.gms.internal.lp(p18, p23.c());
            long v6_0 = String.valueOf(p21);
        } catch (com.google.android.gms.internal.ju v0_24) {
            com.google.android.gms.internal.ju v0_26 = String.valueOf(v0_24.getMessage());
            if (v0_26.length() == 0) {
                com.google.android.gms.internal.ju v0_28 = new String("Error while connecting to ad server: ");
            } else {
                v0_28 = "Error while connecting to ad server: ".concat(v0_26);
            }
            com.google.android.gms.internal.pl.e(v0_28);
            return new com.google.android.gms.internal.jy(2);
        }
        if (v6_0.length() == 0) {
            v5_5 = new String("AdRequestServiceImpl: Sending request: ");
        } else {
            v5_5 = "AdRequestServiceImpl: Sending request: ".concat(v6_0);
        }
        com.google.android.gms.internal.pl.b(v5_5);
        java.net.URL v5_2 = new java.net.URL(p21);
        long v6_5 = com.google.android.gms.ads.internal.au.k().b();
        int v8_0 = 0;
        int v9_0 = 0;
        while(true) {
            java.net.HttpURLConnection v10_1 = ((java.net.HttpURLConnection) v5_2.openConnection());
            com.google.android.gms.ads.internal.au.e().a(p19, p20, v8_0, v10_1);
            if ((android.text.TextUtils.isEmpty(p22)) || (!p23.g())) {
            } else {
                v10_1.addRequestProperty("x-afma-drt-cookie", p22);
            }
            int v11_4 = v0_0.G;
            if (!android.text.TextUtils.isEmpty(v11_4)) {
                com.google.android.gms.internal.pl.b("Sending webview cookie in ad request header.");
                v10_1.addRequestProperty("Cookie", v11_4);
            }
            if ((p23 != null) && (!android.text.TextUtils.isEmpty(p23.d()))) {
                v10_1.setDoOutput(1);
                int v11_6 = p23.d().getBytes();
                v10_1.setFixedLengthStreamingMode(v11_6.length);
                int v8_3 = new java.io.BufferedOutputStream(v10_1.getOutputStream());
                v8_3.write(v11_6);
                com.google.android.gms.common.util.l.a(v8_3);
            }
            com.google.android.gms.internal.bgq v2_4 = v10_1.getResponseCode();
            int v8_4 = v10_1.getHeaderFields();
            if ((v2_4 >= 200) && (v2_4 < 300)) {
                break;
            }
            ark>com.google.android.gms.internal.ldark>.a(v5_2.toString(), v8_4, 0, v2_4);
            if ((v2_4 < 300) || (v2_4 >= 400)) {
                int v1_1 = new StringBuilder(46);
                v1_1.append("Received error HTTP response code: ");
                v1_1.append(v2_4);
                com.google.android.gms.internal.pl.e(v1_1.toString());
                com.google.android.gms.internal.ju v0_4 = new com.google.android.gms.internal.jy(0);
                v10_1.disconnect();
                return v0_4;
            } else {
                com.google.android.gms.internal.ju v0_6 = v10_1.getHeaderField("Location");
                if (!android.text.TextUtils.isEmpty(v0_6)) {
                    v5_2 = new java.net.URL(v0_6);
                    v9_0++;
                    if (v9_0 <= ((Integer) com.google.android.gms.ads.internal.au.q().a(com.google.android.gms.internal.bgs.cH)).intValue()) {
                        v4_1.a(v8_4);
                        v10_1.disconnect();
                        v0_0 = p18;
                        v8_0 = 0;
                    } else {
                        com.google.android.gms.internal.pl.e("Too many redirects.");
                        com.google.android.gms.internal.ju v0_14 = new com.google.android.gms.internal.jy(0);
                        v10_1.disconnect();
                        return v0_14;
                    }
                } else {
                    com.google.android.gms.internal.pl.e("No location header to follow redirect.");
                    com.google.android.gms.internal.ju v0_17 = new com.google.android.gms.internal.jy(0);
                    v10_1.disconnect();
                    return v0_17;
                }
            }
        }
        com.google.android.gms.internal.ju v0_18 = v5_2.toString();
        try {
            java.net.URL v5_4 = new java.io.InputStreamReader(v10_1.getInputStream());
            try {
                com.google.android.gms.ads.internal.au.e();
                int v9_2 = com.google.android.gms.internal.qu.a(v5_4);
            } catch (com.google.android.gms.internal.ju v0_19) {
                java.net.URL v17_0 = v5_4;
                com.google.android.gms.common.util.l.a(v17_0);
                throw v0_19;
            }
            com.google.android.gms.common.util.l.a(v5_4);
            ark>com.google.android.gms.internal.ldark>.a(v0_18, v8_4, v9_2, v2_4);
            v4_1.a(v0_18, v8_4, v9_2);
            if (p24 != null) {
                p24.a(v3, new String[] {"ufe"}));
            }
            com.google.android.gms.internal.ju v0_22 = v4_1.a(v6_5);
            v10_1.disconnect();
            return v0_22;
        } catch (com.google.android.gms.internal.ju v0_19) {
            v17_0 = 0;
        }
    }

Method com.google.b.b.a.n$14.a() calling method java.net.URL.<init>()


    public java.net.URL a(com.google.b.d.a p4)
    {
        java.net.URL v2_1 = 0;
        if (p4.f() != com.google.b.d.b.i) {
            String v4_1 = p4.h();
            if (!"null".equals(v4_1)) {
                v2_1 = new java.net.URL(v4_1);
            }
            return v2_1;
        } else {
            p4.j();
            return 0;
        }
    }

Method com.google.android.gms.internal.xy.a() calling method java.net.URL.<init>()


    public final org.apache.http.HttpResponse a(com.google.android.gms.internal.bjg p7, java.util.Map p8)
    {
        String v8_1;
        org.apache.http.message.BasicHttpResponse v0_0 = p7.e();
        org.apache.http.message.BasicHeader v1_5 = new java.util.HashMap();
        v1_5.putAll(p7.b());
        v1_5.putAll(p8);
        if (this.a == null) {
            v8_1 = v0_0;
        } else {
            v8_1 = this.a.a(v0_0);
            if (v8_1 == null) {
                String v8_12;
                org.apache.http.message.BasicHttpResponse v0_1 = String.valueOf(v0_0);
                if (v0_1.length() == 0) {
                    v8_12 = new String("URL blocked by rewriter: ");
                } else {
                    v8_12 = "URL blocked by rewriter: ".concat(v0_1);
                }
                throw new java.io.IOException(v8_12);
            }
        }
        org.apache.http.message.BasicHttpResponse v0_5 = new java.net.URL(v8_1);
        String v8_14 = ((java.net.HttpURLConnection) v0_5.openConnection());
        v8_14.setInstanceFollowRedirects(java.net.HttpURLConnection.getFollowRedirects());
        int v2_1 = p7.j();
        v8_14.setConnectTimeout(v2_1);
        v8_14.setReadTimeout(v2_1);
        v8_14.setUseCaches(0);
        String v3_2 = 1;
        v8_14.setDoInput(1);
        "https".equals(v0_5.getProtocol());
        org.apache.http.message.BasicHttpResponse v0_8 = v1_5.keySet().iterator();
        while (v0_8.hasNext()) {
            int v4_1 = ((String) v0_8.next());
            v8_14.addRequestProperty(v4_1, ((String) v1_5.get(v4_1)));
        }
        org.apache.http.message.BasicHttpResponse v0_11;
        org.apache.http.message.BasicHttpResponse v0_10;
        switch (p7.c()) {
            case -1:
                break;
            case 0:
                v0_11 = "GET";
                v8_14.setRequestMethod(v0_11);
                break;
            case 1:
                v0_10 = "POST";
                v8_14.setRequestMethod(v0_10);
                ark>com.google.android.gms.internal.xyark>.a(v8_14, p7);
                break;
            case 2:
                v0_10 = "PUT";
                break;
            case 3:
                v0_11 = "DELETE";
                break;
            case 4:
                v0_11 = "HEAD";
                break;
            case 5:
                v0_11 = "OPTIONS";
                break;
            case 6:
                v0_11 = "TRACE";
                break;
            case 7:
                v0_10 = "PATCH";
                break;
            default:
                throw new IllegalStateException("Unknown method type.");
        }
        org.apache.http.message.BasicHttpResponse v0_13 = new org.apache.http.ProtocolVersion("HTTP", 1, 1);
        if (v8_14.getResponseCode() == -1) {
            throw new java.io.IOException("Could not retrieve response code from HttpUrlConnection.");
        } else {
            org.apache.http.message.BasicHeader v1_9 = new org.apache.http.message.BasicStatusLine(v0_13, v8_14.getResponseCode(), v8_14.getResponseMessage());
            org.apache.http.message.BasicHttpResponse v0_15 = new org.apache.http.message.BasicHttpResponse(v1_9);
            java.util.Iterator v7_7 = p7.c();
            org.apache.http.message.BasicHeader v1_10 = v1_9.getStatusCode();
            if (((v7_7 == 4) || ((100 <= v1_10) && (v1_10 < 200))) || ((v1_10 == 204) || (v1_10 == 304))) {
                v3_2 = 0;
            }
            if (v3_2 != null) {
                v0_15.setEntity(ark>com.google.android.gms.internal.xyark>.a(v8_14));
            }
            java.util.Iterator v7_15 = v8_14.getHeaderFields().entrySet().iterator();
            while (v7_15.hasNext()) {
                String v8_4 = ((java.util.Map$Entry) v7_15.next());
                if (v8_4.getKey() != null) {
                    v0_15.addHeader(new org.apache.http.message.BasicHeader(((String) v8_4.getKey()), ((String) ((java.util.List) v8_4.getValue()).get(0))));
                }
            }
            return v0_15;
        }
    }

Method com.google.android.gms.internal.tb.a() calling method java.net.URL.<init>()


    public final void a(String p5)
    {
        try {
            java.net.HttpURLConnection v0_1;
            String v1_2 = String.valueOf(p5);
        } catch (java.net.HttpURLConnection v0_11) {
            java.net.HttpURLConnection v0_8 = String.valueOf(v0_11.getMessage());
            String v2_11 = new StringBuilder(((String.valueOf(p5).length() + 32) + String.valueOf(v0_8).length()));
            String v1_0 = "Error while parsing ping URL: ";
            v2_11.append(v1_0);
            v2_11.append(p5);
            v2_11.append(". ");
            v2_11.append(v0_8);
            com.google.android.gms.internal.ta.e(v2_11.toString());
            return;
        } catch (java.net.HttpURLConnection v0_9) {
            v0_8 = String.valueOf(v0_9.getMessage());
            v2_11 = new StringBuilder(((String.valueOf(p5).length() + 27) + String.valueOf(v0_8).length()));
            v1_0 = "Error while pinging URL: ";
            v2_11.append(v1_0);
            v2_11.append(p5);
            v2_11.append(". ");
            v2_11.append(v0_8);
            com.google.android.gms.internal.ta.e(v2_11.toString());
            return;
        } catch (java.net.HttpURLConnection v0_6) {
            v0_8 = String.valueOf(v0_6.getMessage());
            v2_11 = new StringBuilder(((String.valueOf(p5).length() + 27) + String.valueOf(v0_8).length()));
        }
        if (v1_2.length() == 0) {
            v0_1 = new String("Pinging URL: ");
        } else {
            v0_1 = "Pinging URL: ".concat(v1_2);
        }
        com.google.android.gms.internal.ta.b(v0_1);
        java.net.HttpURLConnection v0_5 = ((java.net.HttpURLConnection) new java.net.URL(p5).openConnection());
        com.google.android.gms.internal.bdq.a();
        com.google.android.gms.internal.sv.a(1, v0_5, this.a);
        String v1_3 = v0_5.getResponseCode();
        if ((v1_3 < 200) || (v1_3 >= 300)) {
            StringBuilder v3_1 = new StringBuilder((String.valueOf(p5).length() + 65));
            v3_1.append("Received non-success response code ");
            v3_1.append(v1_3);
            v3_1.append(" from pinging URL: ");
            v3_1.append(p5);
            com.google.android.gms.internal.ta.e(v3_1.toString());
        }
        v0_5.disconnect();
        return;
    }

Method com.google.android.gms.internal.dg.a() calling method java.net.URL.<init>()


    public final java.io.InputStream a(String p3)
    {
        String v3_7 = ((java.net.HttpURLConnection) new java.net.URL(p3).openConnection());
        v3_7.setReadTimeout(20000);
        v3_7.setConnectTimeout(20000);
        this.a = v3_7;
        String v3_8 = this.a;
        java.io.IOException v0_2 = v3_8.getResponseCode();
        if (v0_2 != 200) {
            int v1_2 = new StringBuilder(25);
            v1_2.append("Bad response: ");
            v1_2.append(v0_2);
            String v3_3 = v1_2.toString();
            if (v0_2 == 404) {
                throw new java.io.FileNotFoundException(v3_3);
            } else {
                if (v0_2 != 503) {
                    throw new java.io.IOException(v3_3);
                } else {
                    throw new com.google.android.gms.internal.dl(v3_3);
                }
            }
        } else {
            this.b = v3_8.getInputStream();
            return this.b;
        }
    }

Method com.google.android.gms.internal.bll.a() calling method java.net.URL.<init>()


    private static com.google.android.gms.internal.blp a(org.json.JSONObject p8)
    {
        String v0_1 = p8.optString("http_request_id");
        java.util.ArrayList v1_4 = p8.optString("url");
        String v2_1 = p8.optString("post_body", 0);
        try {
            java.net.URL v3_0 = new java.net.URL(v1_4);
        } catch (java.util.ArrayList v1_0) {
            com.google.android.gms.internal.pl.b("Error constructing http request.", v1_0);
        }
        java.util.ArrayList v1_2 = new java.util.ArrayList();
        com.google.android.gms.internal.blp v8_1 = p8.optJSONArray("headers");
        if (v8_1 == null) {
            v8_1 = new org.json.JSONArray();
        }
        int v4_4 = 0;
        while (v4_4 < v8_1.length()) {
            String v5_1 = v8_1.optJSONObject(v4_4);
            if (v5_1 != null) {
                v1_2.add(new com.google.android.gms.internal.blo(v5_1.optString("key"), v5_1.optString("value")));
            }
            v4_4++;
        }
        return new com.google.android.gms.internal.blp(v0_1, v3_0, v1_2, v2_1);
    }

Method com.google.android.gms.internal.atx.a() calling method java.net.URL.<init>()


    private static java.net.URL a(com.google.android.gms.internal.asi p1)
    {
        try {
            return new java.net.URL(p1.c());
        } catch (java.net.MalformedURLException) {
            com.google.android.gms.internal.asx.a("Error trying to parse the GTM url.");
            return 0;
        }
    }

Method okhttp3.HttpUrl.url() calling method java.net.URL.<init>()


    public java.net.URL url()
    {
        try {
            return new java.net.URL(this.url);
        } catch (java.net.MalformedURLException v0_2) {
            throw new RuntimeException(v0_2);
        }
    }

Method io.a.a.a.a.e.d.a() calling method java.net.URL.<init>()


    public static String a(CharSequence p7)
    {
        try {
            String v0_3 = new java.net.URL(p7.toString());
            String v7_5 = v0_3.getHost();
            StringBuilder v1_5 = v0_3.getPort();
        } catch (String v7_1) {
            throw new ark>io.a.a.a.a.e.dark>$c(v7_1);
        }
        if (v1_5 != -1) {
            String v2_1 = new StringBuilder();
            v2_1.append(v7_5);
            v2_1.append(58);
            v2_1.append(Integer.toString(v1_5));
            v7_5 = v2_1.toString();
        }
        try {
            String v7_6 = new java.net.URI;
            v7_6(v0_3.getProtocol(), v7_5, v0_3.getPath(), v0_3.getQuery(), 0);
            String v7_7 = v7_6.toASCIIString();
            String v0_5 = v7_7.indexOf(63);
        } catch (String v7_10) {
            String v0_9 = new java.io.IOException("Parsing URI failed");
            v0_9.initCause(v7_10);
            throw new ark>io.a.a.a.a.e.dark>$c(v0_9);
        }
        if (v0_5 > null) {
            String v0_6 = (v0_5 + 1);
            if (v0_6 < v7_7.length()) {
                StringBuilder v1_3 = new StringBuilder();
                v1_3.append(v7_7.substring(0, v0_6));
                v1_3.append(v7_7.substring(v0_6).replace("+", "%2B"));
                v7_7 = v1_3.toString();
            }
        }
        return v7_7;
    }

Method io.a.a.a.a.e.d.<init>() calling method java.net.URL.<init>()


    public d(CharSequence p2, String p3)
    {
        this.d = 0;
        this.h = 1;
        this.i = 0;
        this.j = 8192;
        try {
            this.a = new java.net.URL(p2.toString());
            this.e = p3;
            return;
        } catch (java.net.MalformedURLException v2_2) {
            throw new io.a.a.a.a.e.d$c(v2_2);
        }
    }

Method com.google.android.gms.internal.ua.shouldInterceptRequest() calling method java.net.URL.<init>()


    public android.webkit.WebResourceResponse shouldInterceptRequest(android.webkit.WebView p5, String p6)
    {
        try {
            android.webkit.WebResourceResponse v0_8 = com.google.android.gms.internal.os.a(p6, this.a.getContext());
        } catch (java.io.InputStream v6_9) {
            com.google.android.gms.ads.internal.au.i().a(v6_9, "AdWebViewClient.shouldInterceptRequest");
            return 0;
        }
        if (v0_8.equals(p6)) {
            java.io.InputStream v6_1 = com.google.android.gms.internal.bck.a(p6);
            if (v6_1 != null) {
                java.io.InputStream v6_2 = com.google.android.gms.ads.internal.au.j().a(v6_1);
                if (v6_2 != null) {
                    if (v6_2.a()) {
                        return new android.webkit.WebResourceResponse("", "", v6_2.b());
                    } else {
                    }
                }
                return 0;
            } else {
                return 0;
            }
        } else {
            java.io.InputStream v6_7 = ((java.net.HttpURLConnection) new java.net.URL(v0_8).openConnection());
            com.google.android.gms.ads.internal.au.e().a(this.a.getContext(), this.a.q().a, 1, v6_7);
            return new android.webkit.WebResourceResponse(v6_7.getContentType(), v6_7.getHeaderField("encoding"), v6_7.getInputStream());
        }
    }

Method com.google.android.gms.internal.tm.a() calling method java.net.URL.<init>()


    public static java.net.HttpURLConnection a(String p6, int p7)
    {
        java.net.URL v1_0 = new java.net.URL(p6);
        String v0_2 = 0;
        while(true) {
            v0_2++;
            if (v0_2 > 20) {
                throw new java.io.IOException("Too many redirects (20)");
            } else {
                java.net.HttpURLConnection v2_0 = v1_0.openConnection();
                v2_0.setConnectTimeout(p7);
                v2_0.setReadTimeout(p7);
                if (!(v2_0 instanceof java.net.HttpURLConnection)) {
                    throw new java.io.IOException("Invalid protocol.");
                } else {
                    java.net.HttpURLConnection v2_1 = ((java.net.HttpURLConnection) v2_0);
                    v2_1.setInstanceFollowRedirects(0);
                    if ((v2_1.getResponseCode() / 100) != 3) {
                        return v2_1;
                    } else {
                        String v3_4 = v2_1.getHeaderField("Location");
                        if (v3_4 == null) {
                            throw new java.io.IOException("Missing Location header in redirect");
                        } else {
                            java.net.URL v4_2 = new java.net.URL(v1_0, v3_4);
                            java.net.URL v1_1 = v4_2.getProtocol();
                            if (v1_1 == null) {
                                throw new java.io.IOException("Protocol is null");
                            } else {
                                if ((!v1_1.equals("http")) && (!v1_1.equals("https"))) {
                                    break;
                                }
                                java.net.URL v1_3;
                                String v3_5 = String.valueOf(v3_4);
                                if (v3_5.length() == 0) {
                                    v1_3 = new String("Redirecting to ");
                                } else {
                                    v1_3 = "Redirecting to ".concat(v3_5);
                                }
                                com.google.android.gms.internal.pl.b(v1_3);
                                v2_1.disconnect();
                                v1_0 = v4_2;
                            }
                        }
                    }
                }
            }
        }
        String v7_5;
        String v0_3 = String.valueOf(v1_1);
        if (v0_3.length() == 0) {
            v7_5 = new String("Unsupported scheme: ");
        } else {
            v7_5 = "Unsupported scheme: ".concat(v0_3);
        }
        throw new java.io.IOException(v7_5);
    }

Method com.google.android.gms.internal.alt.E() calling method java.net.URL.<init>()


    public final void E()
    {
        this.h().e();
        this.a();
        this.N = 1;
        try {
            com.google.android.gms.internal.aku v0_6;
            String v2_11;
            com.google.android.gms.internal.ajs.X();
            String v2_0 = this.e().A();
        } catch (com.google.android.gms.internal.aku v0_9) {
            this.N = 0;
            this.O();
            throw v0_9;
        }
        if (v2_0 != null) {
            if (!v2_0.booleanValue()) {
                if (this.K <= 0) {
                    String v2_9;
                    this.h().e();
                    if (this.F == null) {
                        v2_9 = 0;
                    } else {
                        v2_9 = 1;
                    }
                    if (v2_9 == null) {
                        if (this.s().y()) {
                            String v2_15 = this.p.a();
                            String v8 = 0;
                            this.a(0, (v2_15 - com.google.android.gms.internal.ajs.ak()));
                            String v6_13 = this.e().c.a();
                            if (v6_13 != 0) {
                                this.f().D().a("Uploading events. Elapsed time since last upload attempt (ms)", Long.valueOf(Math.abs((v2_15 - v6_13))));
                            }
                            long v4_4 = this.q().C();
                            if (android.text.TextUtils.isEmpty(v4_4)) {
                                this.J = -1;
                                com.google.android.gms.internal.aku v0_12 = this.q().a((v2_15 - com.google.android.gms.internal.ajs.ak()));
                                if (android.text.TextUtils.isEmpty(v0_12)) {
                                    this.N = 0;
                                    this.O();
                                    return;
                                } else {
                                    com.google.android.gms.internal.aku v0_13 = this.q().b(v0_12);
                                    if (v0_13 == null) {
                                        this.N = 0;
                                        this.O();
                                        return;
                                    } else {
                                        this.a(v0_13);
                                        this.N = 0;
                                        this.O();
                                        return;
                                    }
                                }
                            } else {
                                if (this.J == -1) {
                                    this.J = this.q().J();
                                }
                                String v5_0 = this.q().a(v4_4, this.c.b(v4_4, com.google.android.gms.internal.aki.h), Math.max(0, this.c.b(v4_4, com.google.android.gms.internal.aki.i)));
                                if (v5_0.isEmpty()) {
                                    this.N = 0;
                                    this.O();
                                    return;
                                } else {
                                    String v6_3 = v5_0.iterator();
                                    while (v6_3.hasNext()) {
                                        Integer v7_6 = ((com.google.android.gms.internal.apk) ((android.util.Pair) v6_3.next()).first);
                                        if (!android.text.TextUtils.isEmpty(v7_6.u)) {
                                            String v6_4 = v7_6.u;
                                        }
                                        if (v6_4 != null) {
                                            Integer v7_7 = 0;
                                            while (v7_7 < v5_0.size()) {
                                                com.google.android.gms.internal.akw v9_6 = ((com.google.android.gms.internal.apk) ((android.util.Pair) v5_0.get(v7_7)).first);
                                                if ((android.text.TextUtils.isEmpty(v9_6.u)) || (v9_6.u.equals(v6_4))) {
                                                    v7_7++;
                                                } else {
                                                    v5_0 = v5_0.subList(0, v7_7);
                                                    break;
                                                }
                                            }
                                        }
                                        com.google.android.gms.internal.akw v9_13;
                                        String v6_6 = new com.google.android.gms.internal.apj();
                                        Integer v7_9 = new com.google.android.gms.internal.apk[v5_0.size()];
                                        v6_6.c = v7_9;
                                        Integer v7_11 = new java.util.ArrayList(v5_0.size());
                                        if ((!com.google.android.gms.internal.ajs.aw()) || (!this.c.c(v4_4))) {
                                            v9_13 = 0;
                                        } else {
                                            v9_13 = 1;
                                        }
                                        long v10_2 = 0;
                                        while (v10_2 < v6_6.c.length) {
                                            v6_6.c[v10_2] = ((com.google.android.gms.internal.apk) ((android.util.Pair) v5_0.get(v10_2)).first);
                                            v7_11.add(((Long) ((android.util.Pair) v5_0.get(v10_2)).second));
                                            v6_6.c[v10_2].t = Long.valueOf(com.google.android.gms.internal.ajs.W());
                                            v6_6.c[v10_2].f = Long.valueOf(v2_15);
                                            v6_6.c[v10_2].B = Boolean.valueOf(com.google.android.gms.internal.ajs.X());
                                            if (v9_13 == null) {
                                                v6_6.c[v10_2].H = 0;
                                            }
                                            v10_2++;
                                        }
                                        if (this.f().a(2)) {
                                            v8 = this.p().a(v6_6);
                                        }
                                        byte[] v12_0 = this.o().a(v6_6);
                                        String v5_5 = com.google.android.gms.internal.ajs.aj();
                                        java.net.URL v11_3 = new java.net.URL(v5_5);
                                        com.google.android.gms.common.internal.ae.b((v7_11.isEmpty() ^ 1));
                                        if (this.F == null) {
                                            this.F = new java.util.ArrayList(v7_11);
                                        } else {
                                            this.f().y().a("Set uploading progress before finishing the previous upload");
                                        }
                                        this.e().d.a(v2_15);
                                        String v2_3 = "?";
                                        if (v6_6.c.length > 0) {
                                            v2_3 = v6_6.c[0].q;
                                        }
                                        this.f().E().a("Uploading data. app, uncompressed size, data", v2_3, Integer.valueOf(v12_0.length), v8);
                                        this.M = 1;
                                        this.s().a(v4_4, v11_3, v12_0, 0, new com.google.android.gms.internal.alw(this));
                                        this.N = 0;
                                        this.O();
                                        return;
                                    }
                                    v6_4 = 0;
                                }
                            }
                        } else {
                            this.f().E().a("Network not connected, ignoring upload request");
                        }
                    } else {
                        v0_6 = this.f().E();
                        v2_11 = "Uploading requested multiple times";
                        v0_6.a(v2_11);
                        this.N = 0;
                        this.O();
                        return;
                    }
                }
                this.M();
            } else {
                v0_6 = this.f().y();
                v2_11 = "Upload called in the client side when service should be used";
            }
        } else {
            v0_6 = this.f().A();
            v2_11 = "Upload data called on the client side before use of service was decided";
        }
        this.N = 0;
        this.O();
        return;
    }

Method com.google.android.gms.internal.alt.a() calling method java.net.URL.<init>()


    private final void a(com.google.android.gms.internal.ajm p8)
    {
        this.h().e();
        if (!android.text.TextUtils.isEmpty(p8.d())) {
            String v0_3;
            String v0_11 = p8.d();
            com.google.android.gms.internal.aku v1_0 = p8.c();
            String v2_2 = new android.net.Uri$Builder();
            android.support.v4.util.ArrayMap v3_5 = v2_2.scheme(((String) com.google.android.gms.internal.aki.f.b())).encodedAuthority(((String) com.google.android.gms.internal.aki.g.b()));
            String v0_1 = String.valueOf(v0_11);
            if (v0_1.length() == 0) {
                v0_3 = new String("config/app/");
            } else {
                v0_3 = "config/app/".concat(v0_1);
            }
            v3_5.path(v0_3).appendQueryParameter("app_instance_id", v1_0).appendQueryParameter("platform", "android").appendQueryParameter("gmp_version", "11011");
            String v0_9 = v2_2.build().toString();
            try {
                com.google.android.gms.internal.aku v1_5 = new java.net.URL(v0_9);
                this.f().E().a("Fetching remote configuration", p8.b());
                String v2_6 = this.j().a(p8.b());
                android.support.v4.util.ArrayMap v3_11 = 0;
                String v4_7 = this.j().b(p8.b());
            } catch (java.net.MalformedURLException) {
                this.f().y().a("Failed to parse config URL. Not fetching. appId", com.google.android.gms.internal.aks.a(p8.b()), v0_9);
                return;
            }
            if ((v2_6 != null) && (!android.text.TextUtils.isEmpty(v4_7))) {
                v3_11 = new android.support.v4.util.ArrayMap();
                v3_11.put("If-Modified-Since", v4_7);
            }
            this.L = 1;
            this.s().a(p8.b(), v1_5, v3_11, new com.google.android.gms.internal.alx(this));
            return;
        } else {
            this.a(p8.b(), 204, 0, 0, 0);
            return;
        }
    }

Method com.google.android.gms.ads.identifier.a.run() calling method java.net.URL.<init>()


    public final void run()
    {
        new com.google.android.gms.ads.identifier.b();
        String v0_1 = this.a;
        try {
            java.io.IOException v1_4 = ((java.net.HttpURLConnection) new java.net.URL(v0_1).openConnection());
        } catch (java.io.IOException v1_1) {
            String v2_3 = "HttpUrlPinger";
            String v3_4 = String.valueOf(v1_1.getMessage());
            StringBuilder v5_5 = new StringBuilder(((String.valueOf(v0_1).length() + 32) + String.valueOf(v3_4).length()));
            String v4_8 = "Error while parsing ping URL: ";
            v5_5.append(v4_8);
            v5_5.append(v0_1);
            v5_5.append(". ");
            v5_5.append(v3_4);
            android.util.Log.w(v2_3, v5_5.toString(), v1_1);
            return;
        } catch (java.io.IOException v1_1) {
            v2_3 = "HttpUrlPinger";
            v3_4 = String.valueOf(v1_1.getMessage());
            v5_5 = new StringBuilder(((String.valueOf(v0_1).length() + 27) + String.valueOf(v3_4).length()));
            v4_8 = "Error while pinging URL: ";
            v5_5.append(v4_8);
            v5_5.append(v0_1);
            v5_5.append(". ");
            v5_5.append(v3_4);
            android.util.Log.w(v2_3, v5_5.toString(), v1_1);
            return;
        }
        String v2_4 = v1_4.getResponseCode();
        if ((v2_4 < 200) || (v2_4 >= 300)) {
            StringBuilder v5_1 = new StringBuilder((String.valueOf(v0_1).length() + 65));
            v5_1.append("Received non-success response code ");
            v5_1.append(v2_4);
            v5_1.append(" from pinging URL: ");
            v5_1.append(v0_1);
            android.util.Log.w("HttpUrlPinger", v5_1.toString());
        }
        v1_4.disconnect();
        return;
    }

Method com.d.a.q.a() calling method java.net.URL.<init>()


    public java.net.URL a()
    {
        try {
            return new java.net.URL(this.j);
        } catch (java.net.MalformedURLException v0_2) {
            throw new RuntimeException(v0_2);
        }
    }

Method android.support.v7.app.MediaRouteControllerDialog$FetchArtTask.openInputStreamByScheme() calling method java.net.URL.<init>()


    private java.io.InputStream openInputStreamByScheme(android.net.Uri p3)
    {
        java.io.BufferedInputStream v3_3;
        java.io.BufferedInputStream v0_8 = p3.getScheme().toLowerCase();
        if ((!"android.resource".equals(v0_8)) && ((!"content".equals(v0_8)) && (!"file".equals(v0_8)))) {
            java.io.BufferedInputStream v3_2 = new java.net.URL(p3.toString()).openConnection();
            v3_2.setConnectTimeout(android.support.v7.app.MediaRouteControllerDialog.CONNECTION_TIMEOUT_MILLIS);
            v3_2.setReadTimeout(android.support.v7.app.MediaRouteControllerDialog.CONNECTION_TIMEOUT_MILLIS);
            v3_3 = v3_2.getInputStream();
        } else {
            v3_3 = this.this$0.mContext.getContentResolver().openInputStream(p3);
        }
        java.io.BufferedInputStream v3_4;
        if (v3_3 != null) {
            v3_4 = new java.io.BufferedInputStream(v3_3);
        } else {
            v3_4 = 0;
        }
        return v3_4;
    }