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 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) {
            throw new RuntimeException(v0);
        }
    }

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


    private java.io.InputStream openInputStreamByScheme(android.net.Uri p6)
    {
        java.io.InputStream v2;
        String v1 = p6.getScheme().toLowerCase();
        if ((!"android.resource".equals(v1)) && ((!"content".equals(v1)) && (!"file".equals(v1)))) {
            java.net.URLConnection v0 = new java.net.URL(p6.toString()).openConnection();
            v0.setConnectTimeout(android.support.v7.app.MediaRouteControllerDialog.CONNECTION_TIMEOUT_MILLIS);
            v0.setReadTimeout(android.support.v7.app.MediaRouteControllerDialog.CONNECTION_TIMEOUT_MILLIS);
            v2 = v0.getInputStream();
        } else {
            v2 = this.this$0.mContext.getContentResolver().openInputStream(p6);
        }
        java.io.BufferedInputStream v4_11;
        if (v2 != null) {
            v4_11 = new java.io.BufferedInputStream(v2);
        } else {
            v4_11 = 0;
        }
        return v4_11;
    }

Method bolts.WebViewAppLinkResolver$3.call() calling method java.net.URL.<init>()


    public Void call()
    {
        java.net.URL v1_1 = new java.net.URL(this.val$url.toString());
        java.net.HttpURLConnection v0_2 = 0;
        while (v1_1 != null) {
            v0_2 = v1_1.openConnection();
            if ((v0_2 instanceof java.net.HttpURLConnection)) {
                ((java.net.HttpURLConnection) v0_2).setInstanceFollowRedirects(1);
            }
            v0_2.setRequestProperty("Prefer-Html-Meta-Tags", "al");
            v0_2.connect();
            if (!(v0_2 instanceof java.net.HttpURLConnection)) {
                v1_1 = 0;
            } else {
                java.net.HttpURLConnection v2_1 = ((java.net.HttpURLConnection) v0_2);
                if ((v2_1.getResponseCode() < 300) || (v2_1.getResponseCode() >= 400)) {
                    v1_1 = 0;
                } else {
                    v1_1 = new java.net.URL(v2_1.getHeaderField("Location"));
                    v2_1.disconnect();
                }
            }
        }
        try {
            this.val$content.set(bolts.WebViewAppLinkResolver.access$300(v0_2));
            this.val$contentType.set(v0_2.getContentType());
        } catch (String v3_3) {
            if ((v0_2 instanceof java.net.HttpURLConnection)) {
                ((java.net.HttpURLConnection) v0_2).disconnect();
            }
            throw v3_3;
        }
        if ((v0_2 instanceof java.net.HttpURLConnection)) {
            ((java.net.HttpURLConnection) v0_2).disconnect();
        }
        return 0;
    }

Method com.app.helpers.Funcs.getBitmapFromURL() calling method java.net.URL.<init>()


    public static android.graphics.Bitmap getBitmapFromURL(String p6)
    {
        try {
            java.net.HttpURLConnection v0_1 = ((java.net.HttpURLConnection) new java.net.URL(p6).openConnection());
            v0_1.setDoInput(1);
            v0_1.connect();
            int v3 = android.graphics.BitmapFactory.decodeStream(v0_1.getInputStream());
        } catch (java.io.IOException v1) {
            v1.printStackTrace();
            v3 = 0;
        }
        return v3;
    }

Method com.app.helpers.Utils.getBitmapFromURL() calling method java.net.URL.<init>()


    public static android.graphics.Bitmap getBitmapFromURL(String p6)
    {
        try {
            java.net.HttpURLConnection v0_1 = ((java.net.HttpURLConnection) new java.net.URL(p6).openConnection());
            v0_1.setDoInput(1);
            v0_1.connect();
            int v3 = android.graphics.BitmapFactory.decodeStream(v0_1.getInputStream());
        } catch (java.io.IOException v1) {
            v1.printStackTrace();
            v3 = 0;
        }
        return v3;
    }

Method com.bumptech.glide.load.data.HttpUrlFetcher.loadDataWithRedirects() calling method java.net.URL.<init>()


    private java.io.InputStream loadDataWithRedirects(java.net.URL p10, int p11, java.net.URL p12, java.util.Map p13)
    {
        if (p11 < 5) {
            try {
                if ((p12 != null) && (p10.toURI().equals(p12.toURI()))) {
                    throw new com.bumptech.glide.load.HttpException("In re-direct loop");
                }
            } catch (com.bumptech.glide.load.HttpException v4) {
            }
            this.urlConnection = this.connectionFactory.build(p10);
            java.util.Iterator v6 = p13.entrySet().iterator();
            while (v6.hasNext()) {
                java.util.Map$Entry v0_1 = ((java.util.Map$Entry) v6.next());
                this.urlConnection.addRequestProperty(((String) v0_1.getKey()), ((String) v0_1.getValue()));
            }
            com.bumptech.glide.load.HttpException v4_26;
            this.urlConnection.setConnectTimeout(this.timeout);
            this.urlConnection.setReadTimeout(this.timeout);
            this.urlConnection.setUseCaches(0);
            this.urlConnection.setDoInput(1);
            this.urlConnection.setInstanceFollowRedirects(0);
            this.urlConnection.connect();
            if (!this.isCancelled) {
                int v3 = this.urlConnection.getResponseCode();
                if ((v3 / 100) != 2) {
                    if ((v3 / 100) != 3) {
                        if (v3 != -1) {
                            throw new com.bumptech.glide.load.HttpException(this.urlConnection.getResponseMessage(), v3);
                        } else {
                            throw new com.bumptech.glide.load.HttpException(v3);
                        }
                    } else {
                        String v2 = this.urlConnection.getHeaderField("Location");
                        if (!android.text.TextUtils.isEmpty(v2)) {
                            v4_26 = this.loadDataWithRedirects(new java.net.URL(p10, v2), (p11 + 1), p10, p13);
                        } else {
                            throw new com.bumptech.glide.load.HttpException("Received empty or null redirect url");
                        }
                    }
                } else {
                    v4_26 = this.getStreamForSuccessfulRequest(this.urlConnection);
                }
            } else {
                v4_26 = 0;
            }
            return v4_26;
        } else {
            throw new com.bumptech.glide.load.HttpException("Too many (> 5) redirects!");
        }
    }

Method com.bumptech.glide.load.model.GlideUrl.getSafeUrl() calling method java.net.URL.<init>()


    private java.net.URL getSafeUrl()
    {
        if (this.safeUrl == null) {
            this.safeUrl = new java.net.URL(this.getSafeStringUrl());
        }
        return this.safeUrl;
    }

Method com.facebook.GraphRequest.toHttpConnection() calling method java.net.URL.<init>()


    public static java.net.HttpURLConnection toHttpConnection(com.facebook.GraphRequestBatch p6)
    {
        com.facebook.GraphRequest.validateFieldsParamForGetRequests(p6);
        try {
            java.net.URL v3_1;
            if (p6.size() != 1) {
                v3_1 = new java.net.URL(com.facebook.internal.ServerProtocol.getGraphUrlBase());
            } else {
                v3_1 = new java.net.URL(p6.get(0).getUrlForSingleRequest());
            }
            try {
                java.net.HttpURLConnection v0 = com.facebook.GraphRequest.createConnection(v3_1);
                com.facebook.GraphRequest.serializeToUrlConnection(p6, v0);
                return v0;
            } catch (org.json.JSONException v1_1) {
                com.facebook.internal.Utility.disconnectQuietly(v0);
                throw new com.facebook.FacebookException("could not construct request body", v1_1);
            } catch (org.json.JSONException v1_1) {
            }
        } catch (org.json.JSONException v1_0) {
            throw new com.facebook.FacebookException("could not construct URL for request", v1_0);
        }
        v0 = com.facebook.GraphRequest.createConnection(v3_1);
        com.facebook.GraphRequest.serializeToUrlConnection(p6, v0);
        return v0;
    }

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


    public final java.io.InputStream zzfU(String p4)
    {
        String v0_10 = ((java.net.HttpURLConnection) new java.net.URL(p4).openConnection());
        v0_10.setReadTimeout(20000);
        v0_10.setConnectTimeout(20000);
        this.zzbKR = v0_10;
        String v0_11 = this.zzbKR;
        java.io.IOException v1_1 = v0_11.getResponseCode();
        if (v1_1 != 200) {
            String v0_6 = new StringBuilder(25).append("Bad response: ").append(v1_1).toString();
            if (v1_1 != 404) {
                if (v1_1 != 503) {
                    throw new java.io.IOException(v0_6);
                } else {
                    throw new com.google.android.gms.internal.et(v0_6);
                }
            } else {
                throw new java.io.FileNotFoundException(v0_6);
            }
        } else {
            this.zzbKS = v0_11.getInputStream();
            return this.zzbKS;
        }
    }

Method com.facebook.GraphResponse.getRequestForPagedResults() calling method java.net.URL.<init>()


    public com.facebook.GraphRequest getRequestForPagedResults(com.facebook.GraphResponse$PagingDirection p8)
    {
        String v1 = 0;
        if (this.graphObject != null) {
            org.json.JSONObject v2 = this.graphObject.optJSONObject("paging");
            if (v2 != null) {
                if (p8 != com.facebook.GraphResponse$PagingDirection.NEXT) {
                    v1 = v2.optString("previous");
                } else {
                    v1 = v2.optString("next");
                }
            }
        }
        int v3_1;
        if (!com.facebook.internal.Utility.isNullOrEmpty(v1)) {
            if ((v1 == null) || (!v1.equals(this.request.getUrlForSingleRequest()))) {
                try {
                    v3_1 = new com.facebook.GraphRequest(this.request.getAccessToken(), new java.net.URL(v1));
                } catch (java.net.MalformedURLException v0) {
                    v3_1 = 0;
                }
            } else {
                v3_1 = 0;
            }
        } else {
            v3_1 = 0;
        }
        return v3_1;
    }

Method com.facebook.internal.ImageDownloader.download() calling method java.net.URL.<init>()


    private static void download(com.facebook.internal.ImageDownloader$RequestKey p19, android.content.Context p20)
    {
        java.io.InputStream v14 = 0;
        com.facebook.FacebookException v8_0 = 0;
        android.graphics.Bitmap v2 = 0;
        int v10 = 1;
        try {
            java.net.HttpURLConnection v5 = ((java.net.HttpURLConnection) new java.net.URL(p19.uri.toString()).openConnection());
            v5.setInstanceFollowRedirects(0);
            switch (v5.getResponseCode()) {
                case 200:
                    v14 = com.facebook.internal.ImageResponseCache.interceptAndCacheImageStream(p20, v5);
                    v2 = android.graphics.BitmapFactory.decodeStream(v14);
                    com.facebook.internal.Utility.closeQuietly(v14);
                    com.facebook.internal.Utility.disconnectQuietly(v5);
                    break;
                case 301:
                case 302:
                    v10 = 0;
                    String v12 = v5.getHeaderField("location");
                    if (com.facebook.internal.Utility.isNullOrEmpty(v12)) {
                    } else {
                        android.net.Uri v13 = android.net.Uri.parse(v12);
                        com.facebook.internal.UrlRedirectCache.cacheUriRedirect(p19.uri, v13);
                        com.facebook.internal.ImageDownloader$DownloaderContext v6 = com.facebook.internal.ImageDownloader.removePendingRequest(p19);
                        if ((v6 == null) || (v6.isCancelled)) {
                        } else {
                            com.facebook.internal.ImageRequest v16_10 = v6.request;
                            com.facebook.internal.ImageDownloader$RequestKey v17_0 = new com.facebook.internal.ImageDownloader$RequestKey;
                            v17_0(v13, p19.tag);
                            com.facebook.internal.ImageDownloader.enqueueCacheRead(v16_10, v17_0, 0);
                        }
                    }
                    break;
                default:
                    v14 = v5.getErrorStream();
                    StringBuilder v9_1 = new StringBuilder();
                    if (v14 == null) {
                        v9_1.append(p20.getString(com.facebook.R$string.com_facebook_image_download_unknown_error));
                    } else {
                        java.io.InputStreamReader v11_1 = new java.io.InputStreamReader(v14);
                        char[] v3 = new char[128];
                        while(true) {
                            int v4 = v11_1.read(v3, 0, v3.length);
                            if (v4 <= 0) {
                                break;
                            }
                            v9_1.append(v3, 0, v4);
                        }
                        com.facebook.internal.Utility.closeQuietly(v11_1);
                    }
                    v8_0 = new com.facebook.FacebookException(v9_1.toString());
            }
        } catch (com.facebook.internal.ImageRequest v16_17) {
            com.facebook.internal.Utility.closeQuietly(v14);
            com.facebook.internal.Utility.disconnectQuietly(v5);
            throw v16_17;
        } catch (java.io.IOException v7) {
            v8_0 = v7;
            com.facebook.internal.Utility.closeQuietly(v14);
            com.facebook.internal.Utility.disconnectQuietly(v5);
        }
        if (v10 != 0) {
            com.facebook.internal.ImageDownloader.issueResponse(p19, v8_0, v2, 0);
        }
        return;
    }

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


    public final void run()
    {
        new com.google.android.gms.ads.identifier.zzb();
        String v2_0 = this.zzsD;
        try {
            RuntimeException v0_5 = ((java.net.HttpURLConnection) new java.net.URL(v2_0).openConnection());
        } catch (RuntimeException v0_6) {
            String v3_6 = String.valueOf(v0_6.getMessage());
            v2_0 = new StringBuilder(((String.valueOf(v2_0).length() + 32) + String.valueOf(v3_6).length())).append("Error while parsing ping URL: ").append(v2_0).append(". ").append(v3_6).toString();
            android.util.Log.w("HttpUrlPinger", v2_0, v0_6);
            return;
        } catch (RuntimeException v0_3) {
            String v3_4 = String.valueOf(v0_3.getMessage());
            v2_0 = new StringBuilder(((String.valueOf(v2_0).length() + 27) + String.valueOf(v3_4).length())).append("Error while pinging URL: ").append(v2_0).append(". ").append(v3_4).toString();
            android.util.Log.w("HttpUrlPinger", v2_0, v0_3);
            return;
        } catch (RuntimeException v0_3) {
        }
        String v1_7 = v0_5.getResponseCode();
        if ((v1_7 < 200) || (v1_7 >= 300)) {
            android.util.Log.w("HttpUrlPinger", new StringBuilder((String.valueOf(v2_0).length() + 65)).append("Received non-success response code ").append(v1_7).append(" from pinging URL: ").append(v2_0).toString());
        }
        v0_5.disconnect();
        return;
    }

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


    public final java.io.InputStream zzfU(String p4)
    {
        String v0_10 = ((java.net.HttpURLConnection) new java.net.URL(p4).openConnection());
        v0_10.setReadTimeout(20000);
        v0_10.setConnectTimeout(20000);
        this.zzbKR = v0_10;
        String v0_11 = this.zzbKR;
        java.io.IOException v1_1 = v0_11.getResponseCode();
        if (v1_1 != 200) {
            String v0_6 = new StringBuilder(25).append("Bad response: ").append(v1_1).toString();
            if (v1_1 != 404) {
                if (v1_1 != 503) {
                    throw new java.io.IOException(v0_6);
                } else {
                    throw new com.google.android.gms.internal.da(v0_6);
                }
            } else {
                throw new java.io.FileNotFoundException(v0_6);
            }
        } else {
            this.zzbKS = v0_11.getInputStream();
            return this.zzbKS;
        }
    }

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


    public static com.google.android.gms.internal.zzaai zza(com.google.android.gms.internal.zzaae p13, android.content.Context p14, String p15, String p16, String p17, com.google.android.gms.internal.zzaca p18, com.google.android.gms.internal.zznb p19, com.google.android.gms.internal.zzabl p20)
    {
        try {
            int v4_6;
            if (p19 == null) {
                v4_6 = 0;
                com.google.android.gms.internal.zzaai v2_4;
                com.google.android.gms.internal.zzaby v8_1 = new com.google.android.gms.internal.zzaby(p13, p18.zzgI());
                com.google.android.gms.internal.zzaai v2_2 = String.valueOf(p16);
                if (v2_2.length() == 0) {
                    v2_4 = new String("AdRequestServiceImpl: Sending request: ");
                } else {
                    v2_4 = "AdRequestServiceImpl: Sending request: ".concat(v2_2);
                }
                com.google.android.gms.internal.zzafr.zzaC(v2_4);
                int v3_27 = new java.net.URL(p16);
                long v10 = com.google.android.gms.ads.internal.zzbs.zzbF().elapsedRealtime();
                String v7_1 = v3_27;
                int v3_11 = 0;
                while(true) {
                    com.google.android.gms.internal.zzaai v2_13 = ((java.net.HttpURLConnection) v7_1.openConnection());
                    com.google.android.gms.ads.internal.zzbs.zzbz().zza(p14, p15, 0, v2_13);
                    if ((!android.text.TextUtils.isEmpty(p17)) && (p18.zzgK())) {
                        v2_13.addRequestProperty("x-afma-drt-cookie", p17);
                    }
                    int v5_12 = p13.zzSW;
                    if (!android.text.TextUtils.isEmpty(v5_12)) {
                        com.google.android.gms.internal.zzafr.zzaC("Sending webview cookie in ad request header.");
                        v2_13.addRequestProperty("Cookie", v5_12);
                    }
                    if ((p18 != null) && (!android.text.TextUtils.isEmpty(p18.zzgJ()))) {
                        v2_13.setDoOutput(1);
                        byte[] v9_0 = p18.zzgJ().getBytes();
                        v2_13.setFixedLengthStreamingMode(v9_0.length);
                        try {
                            int v5_19 = new java.io.BufferedOutputStream(v2_13.getOutputStream());
                            try {
                                v5_19.write(v9_0);
                            } catch (int v3_28) {
                                int v4_7 = v5_19;
                                com.google.android.gms.common.util.zzn.closeQuietly(v4_7);
                                throw v3_28;
                            }
                            com.google.android.gms.common.util.zzn.closeQuietly(v5_19);
                        } catch (int v3_28) {
                            v4_7 = 0;
                        }
                    }
                    com.google.android.gms.internal.zzaai v2_1;
                    byte[] v9_1 = v2_13.getResponseCode();
                    java.io.OutputStream v12_1 = v2_13.getHeaderFields();
                    if ((v9_1 < 200) || (v9_1 >= 300)) {
                        com.google.android.gms.internal.zzabm.zza(v7_1.toString(), v12_1, 0, v9_1);
                        if ((v9_1 < 300) || (v9_1 >= 400)) {
                            break;
                        }
                        int v5_1 = v2_13.getHeaderField("Location");
                        if (!android.text.TextUtils.isEmpty(v5_1)) {
                            String v6_2 = new java.net.URL(v5_1);
                            int v5_2 = (v3_11 + 1);
                            if (v5_2 <= ((Integer) com.google.android.gms.ads.internal.zzbs.zzbL().zzd(com.google.android.gms.internal.zzmo.zzGG)).intValue()) {
                                v8_1.zzh(v12_1);
                                v2_13.disconnect();
                                if (p20 == null) {
                                    v3_11 = v5_2;
                                    v7_1 = v6_2;
                                } else {
                                    v3_11 = v5_2;
                                    v7_1 = v6_2;
                                }
                            } else {
                                com.google.android.gms.internal.zzafr.zzaT("Too many redirects.");
                                int v3_14 = new com.google.android.gms.internal.zzaai(0);
                                v2_13.disconnect();
                                v2_1 = v3_14;
                            }
                        } else {
                            com.google.android.gms.internal.zzafr.zzaT("No location header to follow redirect.");
                            int v3_17 = new com.google.android.gms.internal.zzaai(0);
                            v2_13.disconnect();
                            v2_1 = v3_17;
                        }
                    } else {
                        int v3_18 = v7_1.toString();
                        try {
                            int v5_5 = new java.io.InputStreamReader(v2_13.getInputStream());
                            try {
                                com.google.android.gms.ads.internal.zzbs.zzbz();
                                String v6_4 = com.google.android.gms.internal.zzagz.zza(v5_5);
                            } catch (int v3_19) {
                                int v4_4 = v5_5;
                                com.google.android.gms.common.util.zzn.closeQuietly(v4_4);
                                throw v3_19;
                            }
                            com.google.android.gms.common.util.zzn.closeQuietly(v5_5);
                            com.google.android.gms.internal.zzabm.zza(v3_18, v12_1, v6_4, v9_1);
                            v8_1.zza(v3_18, v12_1, v6_4);
                            if (p19 != null) {
                                int v3_21 = new String[1];
                                v3_21[0] = "ufe";
                                p19.zza(v4_6, v3_21);
                            }
                            int v3_23 = v8_1.zze(v10);
                            v2_13.disconnect();
                            v2_1 = v3_23;
                        } catch (int v3_19) {
                            v4_4 = 0;
                        }
                    }
                }
                com.google.android.gms.internal.zzafr.zzaT(new StringBuilder(46).append("Received error HTTP response code: ").append(v9_1).toString());
                int v3_6 = new com.google.android.gms.internal.zzaai(0);
                v2_13.disconnect();
                v2_1 = v3_6;
            } else {
                v4_6 = p19.zzdS();
            }
        } catch (com.google.android.gms.internal.zzaai v2_5) {
            com.google.android.gms.internal.zzaai v2_7 = String.valueOf(v2_5.getMessage());
            if (v2_7.length() == 0) {
                com.google.android.gms.internal.zzaai v2_9 = new String("Error while connecting to ad server: ");
            } else {
                v2_9 = "Error while connecting to ad server: ".concat(v2_7);
            }
            com.google.android.gms.internal.zzafr.zzaT(v2_9);
            v2_1 = new com.google.android.gms.internal.zzaai(2);
        }
        return v2_1;
    }

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


    public final void zzaN(String p5)
    {
        try {
            java.net.HttpURLConnection v0_16;
            java.net.HttpURLConnection v0_11 = String.valueOf(p5);
        } catch (java.net.HttpURLConnection v0_3) {
            java.net.HttpURLConnection v0_5 = String.valueOf(v0_3.getMessage());
            com.google.android.gms.internal.zzajc.zzaT(new StringBuilder(((String.valueOf(p5).length() + 32) + String.valueOf(v0_5).length())).append("Error while parsing ping URL: ").append(p5).append(". ").append(v0_5).toString());
            return;
        } catch (java.net.HttpURLConnection v0_19) {
            java.net.HttpURLConnection v0_21 = String.valueOf(v0_19.getMessage());
            com.google.android.gms.internal.zzajc.zzaT(new StringBuilder(((String.valueOf(p5).length() + 27) + String.valueOf(v0_21).length())).append("Error while pinging URL: ").append(p5).append(". ").append(v0_21).toString());
            return;
        } catch (java.net.HttpURLConnection v0_12) {
            java.net.HttpURLConnection v0_14 = String.valueOf(v0_12.getMessage());
            com.google.android.gms.internal.zzajc.zzaT(new StringBuilder(((String.valueOf(p5).length() + 27) + String.valueOf(v0_14).length())).append("Error while pinging URL: ").append(p5).append(". ").append(v0_14).toString());
            return;
        }
        if (v0_11.length() == 0) {
            v0_16 = new String("Pinging URL: ");
        } else {
            v0_16 = "Pinging URL: ".concat(v0_11);
        }
        com.google.android.gms.internal.zzajc.zzaC(v0_16);
        java.net.HttpURLConnection v0_10 = ((java.net.HttpURLConnection) new java.net.URL(p5).openConnection());
        try {
            com.google.android.gms.internal.zzji.zzds();
            com.google.android.gms.internal.zzaiy.zza(1, v0_10, this.zzJP);
            String v1_13 = v0_10.getResponseCode();
        } catch (String v1_18) {
            v0_10.disconnect();
            throw v1_18;
        }
        if ((v1_13 < 200) || (v1_13 >= 300)) {
            com.google.android.gms.internal.zzajc.zzaT(new StringBuilder((String.valueOf(p5).length() + 65)).append("Received non-success response code ").append(v1_13).append(" from pinging URL: ").append(p5).toString());
        }
        v0_10.disconnect();
        return;
    }

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


    public static java.net.HttpURLConnection zzb(String p7, int p8)
    {
        java.net.URL v1_0 = new java.net.URL(p7);
        String v0_5 = 0;
        while(true) {
            String v3_0 = (v0_5 + 1);
            if (v3_0 > 20) {
                throw new java.io.IOException("Too many redirects (20)");
            } else {
                String v0_2 = v1_0.openConnection();
                v0_2.setConnectTimeout(p8);
                v0_2.setReadTimeout(p8);
                if ((v0_2 instanceof java.net.HttpURLConnection)) {
                    String v0_3 = ((java.net.HttpURLConnection) v0_2);
                    v0_3.setInstanceFollowRedirects(0);
                    if ((v0_3.getResponseCode() / 100) != 3) {
                        return v0_3;
                    } else {
                        int v5_1 = v0_3.getHeaderField("Location");
                        if (v5_1 != 0) {
                            java.net.URL v4_5 = new java.net.URL(v1_0, v5_1);
                            java.net.URL v1_1 = v4_5.getProtocol();
                            if (v1_1 != null) {
                                if ((!v1_1.equals("http")) && (!v1_1.equals("https"))) {
                                    break;
                                }
                                java.net.URL v1_4;
                                java.net.URL v1_2 = String.valueOf(v5_1);
                                if (v1_2.length() == 0) {
                                    v1_4 = new String("Redirecting to ");
                                } else {
                                    v1_4 = "Redirecting to ".concat(v1_2);
                                }
                                com.google.android.gms.internal.zzafr.zzaC(v1_4);
                                v0_3.disconnect();
                                v0_5 = v3_0;
                                v1_0 = v4_5;
                            } else {
                                throw new java.io.IOException("Protocol is null");
                            }
                        } else {
                            throw new java.io.IOException("Missing Location header in redirect");
                        }
                    }
                } else {
                    throw new java.io.IOException("Invalid protocol.");
                }
            }
        }
        String v0_9;
        String v0_7 = String.valueOf(v1_1);
        if (v0_7.length() == 0) {
            v0_9 = new String("Unsupported scheme: ");
        } else {
            v0_9 = "Unsupported scheme: ".concat(v0_7);
        }
        throw new java.io.IOException(v0_9);
    }

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


    public android.webkit.WebResourceResponse shouldInterceptRequest(android.webkit.WebView p7, String p8)
    {
        try {
            android.webkit.WebResourceResponse v0_4;
            android.webkit.WebResourceResponse v0_8 = com.google.android.gms.internal.zzaez.zzb(p8, this.zzJH.getContext());
        } catch (android.webkit.WebResourceResponse v0_10) {
            com.google.android.gms.ads.internal.zzbs.zzbD().zza(v0_10, "AdWebViewClient.shouldInterceptRequest");
            v0_4 = 0;
            return v0_4;
        }
        if (v0_8.equals(p8)) {
            android.webkit.WebResourceResponse v0_1 = com.google.android.gms.internal.zzia.zzB(p8);
            if (v0_1 != null) {
                java.io.InputStream v1_1 = com.google.android.gms.ads.internal.zzbs.zzbE().zza(v0_1);
                if ((v1_1 != null) && (v1_1.zzcY())) {
                    v0_4 = new android.webkit.WebResourceResponse("", "", v1_1.zzcZ());
                    return v0_4;
                } else {
                    v0_4 = 0;
                    return v0_4;
                }
            } else {
                v0_4 = 0;
                return v0_4;
            }
        } else {
            android.webkit.WebResourceResponse v0_7 = ((java.net.HttpURLConnection) new java.net.URL(v0_8).openConnection());
            com.google.android.gms.ads.internal.zzbs.zzbz().zza(this.zzJH.getContext(), this.zzJH.zziz().zzaP, 1, v0_7);
            v0_4 = new android.webkit.WebResourceResponse(v0_7.getContentType(), v0_7.getHeaderField("encoding"), v0_7.getInputStream());
            return v0_4;
        }
    }

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


    public final org.apache.http.HttpResponse zza(com.google.android.gms.internal.zzp p8, java.util.Map p9)
    {
        String v0_6;
        String v1_10 = p8.getUrl();
        org.apache.http.message.BasicHttpResponse v5_1 = new java.util.HashMap();
        v5_1.putAll(p8.getHeaders());
        v5_1.putAll(p9);
        if (this.zzaB == null) {
            v0_6 = v1_10;
        } else {
            v0_6 = this.zzaB.zzg(v1_10);
            if (v0_6 == null) {
                String v0_18;
                String v0_16 = String.valueOf(v1_10);
                if (v0_16.length() == 0) {
                    v0_18 = new String("URL blocked by rewriter: ");
                } else {
                    v0_18 = "URL blocked by rewriter: ".concat(v0_16);
                }
                throw new java.io.IOException(v0_18);
            }
        }
        String v1_9 = new java.net.URL(v0_6);
        String v0_20 = ((java.net.HttpURLConnection) v1_9.openConnection());
        v0_20.setInstanceFollowRedirects(java.net.HttpURLConnection.getFollowRedirects());
        java.util.Iterator v2_6 = p8.zzi();
        v0_20.setConnectTimeout(v2_6);
        v0_20.setReadTimeout(v2_6);
        v0_20.setUseCaches(0);
        v0_20.setDoInput(1);
        "https".equals(v1_9.getProtocol());
        int v6_0 = v5_1.keySet().iterator();
        while (v6_0.hasNext()) {
            String v1_6 = ((String) v6_0.next());
            v0_20.addRequestProperty(v1_6, ((String) v5_1.get(v1_6)));
        }
        switch (p8.getMethod()) {
            case -1:
                break;
            case 0:
                v0_20.setRequestMethod("GET");
                break;
            case 1:
                v0_20.setRequestMethod("POST");
                com.google.android.gms.internal.zzao.zza(v0_20, p8);
                break;
            case 2:
                v0_20.setRequestMethod("PUT");
                com.google.android.gms.internal.zzao.zza(v0_20, p8);
                break;
            case 3:
                v0_20.setRequestMethod("DELETE");
                break;
            case 4:
                v0_20.setRequestMethod("HEAD");
                break;
            case 5:
                v0_20.setRequestMethod("OPTIONS");
                break;
            case 6:
                v0_20.setRequestMethod("TRACE");
                break;
            case 7:
                v0_20.setRequestMethod("PATCH");
                com.google.android.gms.internal.zzao.zza(v0_20, p8);
                break;
            default:
                throw new IllegalStateException("Unknown method type.");
        }
        String v1_24 = new org.apache.http.ProtocolVersion("HTTP", 1, 1);
        if (v0_20.getResponseCode() != -1) {
            String v1_30;
            java.util.Iterator v2_11 = new org.apache.http.message.BasicStatusLine(v1_24, v0_20.getResponseCode(), v0_20.getResponseMessage());
            org.apache.http.message.BasicHttpResponse v5_5 = new org.apache.http.message.BasicHttpResponse(v2_11);
            String v1_25 = p8.getMethod();
            java.util.Iterator v2_12 = v2_11.getStatusCode();
            if (((v1_25 == 4) || ((100 <= v2_12) && (v2_12 < 200))) || ((v2_12 == 204) || (v2_12 == 304))) {
                v1_30 = 0;
            } else {
                v1_30 = 1;
            }
            if (v1_30 != null) {
                v5_5.setEntity(com.google.android.gms.internal.zzao.zza(v0_20));
            }
            java.util.Iterator v2_0 = v0_20.getHeaderFields().entrySet().iterator();
            while (v2_0.hasNext()) {
                String v0_5 = ((java.util.Map$Entry) v2_0.next());
                if (v0_5.getKey() != null) {
                    v5_5.addHeader(new org.apache.http.message.BasicHeader(((String) v0_5.getKey()), ((String) ((java.util.List) v0_5.getValue()).get(0))));
                }
            }
            return v5_5;
        } else {
            throw new java.io.IOException("Could not retrieve response code from HttpUrlConnection.");
        }
    }

Method com.google.gson.internal.bind.TypeAdapters$21.read() calling method java.net.URL.<init>()


    public java.net.URL read(com.google.gson.stream.JsonReader p5)
    {
        java.net.URL v1_0 = 0;
        if (p5.peek() != com.google.gson.stream.JsonToken.NULL) {
            String v0 = p5.nextString();
            if (!"null".equals(v0)) {
                v1_0 = new java.net.URL(v0);
            }
        } else {
            p5.nextNull();
        }
        return v1_0;
    }

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


    private final java.net.URL zzb(com.google.android.gms.internal.zzanx p5, String p6)
    {
        String v1_2;
        if (!p5.zzlI()) {
            int v0_9 = String.valueOf(com.google.android.gms.internal.zzank.zzlv());
            String v1_0 = String.valueOf(com.google.android.gms.internal.zzank.zzlw());
            v1_2 = new StringBuilder((((String.valueOf(v0_9).length() + 1) + String.valueOf(v1_0).length()) + String.valueOf(p6).length())).append(v0_9).append(v1_0).append("?").append(p6).toString();
        } else {
            int v0_8 = String.valueOf(com.google.android.gms.internal.zzank.zzlu());
            String v1_4 = String.valueOf(com.google.android.gms.internal.zzank.zzlw());
            v1_2 = new StringBuilder((((String.valueOf(v0_8).length() + 1) + String.valueOf(v1_4).length()) + String.valueOf(p6).length())).append(v0_8).append(v1_4).append("?").append(p6).toString();
        }
        try {
            int v0_16 = new java.net.URL(v1_2);
        } catch (int v0_17) {
            this.zze("Error trying to parse the hardcoded host url", v0_17);
            v0_16 = 0;
        }
        return v0_16;
    }

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


    private final java.net.URL zzd(com.google.android.gms.internal.zzanx p4)
    {
        String v1_0;
        if (!p4.zzlI()) {
            int v0_3;
            String v1_3 = String.valueOf(com.google.android.gms.internal.zzank.zzlv());
            int v0_1 = String.valueOf(com.google.android.gms.internal.zzank.zzlw());
            if (v0_1.length() == 0) {
                v0_3 = new String(v1_3);
            } else {
                v0_3 = v1_3.concat(v0_1);
            }
            v1_0 = v0_3;
        } else {
            int v0_8;
            String v1_1 = String.valueOf(com.google.android.gms.internal.zzank.zzlu());
            int v0_6 = String.valueOf(com.google.android.gms.internal.zzank.zzlw());
            if (v0_6.length() == 0) {
                v0_8 = new String(v1_1);
            } else {
                v0_8 = v1_1.concat(v0_6);
            }
            v1_0 = v0_8;
        }
        try {
            int v0_10 = new java.net.URL(v1_0);
        } catch (int v0_11) {
            this.zze("Error trying to parse the hardcoded host url", v0_11);
            v0_10 = 0;
        }
        return v0_10;
    }

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


    private final java.net.URL zzlR()
    {
        int v0_2;
        String v1_3 = String.valueOf(com.google.android.gms.internal.zzank.zzlu());
        int v0_8 = String.valueOf(((String) com.google.android.gms.internal.zzans.zzahx.get()));
        if (v0_8.length() == 0) {
            v0_2 = new String(v1_3);
        } else {
            v0_2 = v1_3.concat(v0_8);
        }
        try {
            int v0_3 = new java.net.URL(v0_2);
        } catch (int v0_4) {
            this.zze("Error trying to parse the hardcoded host url", v0_4);
            v0_3 = 0;
        }
        return v0_3;
    }

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


    private static com.google.android.gms.internal.zzri zzc(org.json.JSONObject p9)
    {
        String v3 = p9.optString("http_request_id");
        int v2_2 = p9.optString("url");
        String v4 = p9.optString("post_body", 0);
        try {
            int v0_2 = new java.net.URL(v2_2);
        } catch (int v0_3) {
            com.google.android.gms.internal.zzafr.zzb("Error constructing http request.", v0_3);
            v0_2 = 0;
        }
        java.util.ArrayList v5_1 = new java.util.ArrayList();
        com.google.android.gms.internal.zzri v1_2 = p9.optJSONArray("headers");
        if (v1_2 == null) {
            v1_2 = new org.json.JSONArray();
        }
        int v2_1 = 0;
        while (v2_1 < v1_2.length()) {
            String v6_1 = v1_2.optJSONObject(v2_1);
            if (v6_1 != null) {
                v5_1.add(new com.google.android.gms.internal.zzrh(v6_1.optString("key"), v6_1.optString("value")));
            }
            v2_1++;
        }
        return new com.google.android.gms.internal.zzri(v3, v0_2, v5_1, v4);
    }

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


    private final void zzb(com.google.android.gms.internal.zzceg p8)
    {
        android.support.v4.util.ArrayMap v3_0 = 0;
        this.zzwE().zzjC();
        if (!android.text.TextUtils.isEmpty(p8.getGmpAppId())) {
            String v0_10;
            com.google.android.gms.internal.zzcfn v1_0 = p8.getGmpAppId();
            String v2_1 = p8.getAppInstanceId();
            String v4_2 = new android.net.Uri$Builder();
            com.google.android.gms.internal.zzcgp v5_4 = v4_2.scheme(((String) com.google.android.gms.internal.zzcfb.zzbpZ.get())).encodedAuthority(((String) com.google.android.gms.internal.zzcfb.zzbqa.get()));
            String v0_8 = String.valueOf(v1_0);
            if (v0_8.length() == 0) {
                v0_10 = new String("config/app/");
            } else {
                v0_10 = "config/app/".concat(v0_8);
            }
            v5_4.path(v0_10).appendQueryParameter("app_instance_id", v2_1).appendQueryParameter("platform", "android").appendQueryParameter("gmp_version", "11020");
            String v0_16 = v4_2.build().toString();
            try {
                com.google.android.gms.internal.zzcfn v1_7 = new java.net.URL(v0_16);
                this.zzwF().zzyD().zzj("Fetching remote configuration", p8.zzhl());
                String v2_7 = this.zzwC().zzeh(p8.zzhl());
                String v4_6 = this.zzwC().zzei(p8.zzhl());
            } catch (com.google.android.gms.internal.zzcfn v1) {
                this.zzwF().zzyx().zze("Failed to parse config URL. Not fetching. appId", com.google.android.gms.internal.zzcfl.zzdZ(p8.zzhl()), v0_16);
            }
            if ((v2_7 != null) && (!android.text.TextUtils.isEmpty(v4_6))) {
                v3_0 = new android.support.v4.util.ArrayMap();
                v3_0.put("If-Modified-Since", v4_6);
            }
            this.zzbsU = 1;
            this.zzyU().zza(p8.zzhl(), v1_7, v3_0, new com.google.android.gms.internal.zzcgp(this));
        } else {
            this.zzb(p8.zzhl(), 204, 0, 0, 0);
        }
        return;
    }

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


    public final void zzza()
    {
        int v4_0 = 1;
        this.zzwE().zzjC();
        this.zzkD();
        this.zzbsW = 1;
        try {
            com.google.android.gms.internal.zzcem.zzxE();
            com.google.android.gms.internal.zzcfp v0_13 = this.zzwG().zzyI();
        } catch (com.google.android.gms.internal.zzcfp v0_70) {
            this.zzbsW = 0;
            this.zzzg();
            throw v0_70;
        }
        if (v0_13 != null) {
            if (!v0_13.booleanValue()) {
                if (this.zzbsT <= 0) {
                    com.google.android.gms.internal.zzcfp v0_62;
                    this.zzwE().zzjC();
                    if (this.zzbsO == null) {
                        v0_62 = 0;
                    } else {
                        v0_62 = 1;
                    }
                    if (v0_62 == null) {
                        if (this.zzyU().zzlQ()) {
                            String v8_1 = this.zzvw.currentTimeMillis();
                            this.zzg(0, (v8_1 - com.google.android.gms.internal.zzcem.zzxP()));
                            com.google.android.gms.internal.zzcfp v0_86 = this.zzwG().zzbrk.get();
                            if (v0_86 != 0) {
                                this.zzwF().zzyC().zzj("Uploading events. Elapsed time since last upload attempt (ms)", Long.valueOf(Math.abs((v8_1 - v0_86))));
                            }
                            Object v1_5 = this.zzwz().zzyc();
                            if (android.text.TextUtils.isEmpty(v1_5)) {
                                this.zzbsS = -1;
                                com.google.android.gms.internal.zzcfp v0_95 = this.zzwz().zzaa((v8_1 - com.google.android.gms.internal.zzcem.zzxP()));
                                if (!android.text.TextUtils.isEmpty(v0_95)) {
                                    com.google.android.gms.internal.zzcfp v0_96 = this.zzwz().zzdQ(v0_95);
                                    if (v0_96 != null) {
                                        this.zzb(v0_96);
                                    }
                                }
                            } else {
                                if (this.zzbsS == -1) {
                                    this.zzbsS = this.zzwz().zzyj();
                                }
                                String v2_2 = this.zzwz().zzl(v1_5, this.zzbsn.zzb(v1_5, com.google.android.gms.internal.zzcfb.zzbqb), Math.max(0, this.zzbsn.zzb(v1_5, com.google.android.gms.internal.zzcfb.zzbqc)));
                                if (!v2_2.isEmpty()) {
                                    com.google.android.gms.internal.zzcgo v5_1 = v2_2.iterator();
                                    while (v5_1.hasNext()) {
                                        com.google.android.gms.internal.zzcfp v0_6 = ((com.google.android.gms.internal.zzcjz) ((android.util.Pair) v5_1.next()).first);
                                        if (!android.text.TextUtils.isEmpty(v0_6.zzbvR)) {
                                            String v7_1 = v0_6.zzbvR;
                                        }
                                        String v7_4;
                                        if (v7_1 == null) {
                                            v7_4 = v2_2;
                                        } else {
                                            com.google.android.gms.internal.zzcgo v5_2 = 0;
                                            while (v5_2 < v2_2.size()) {
                                                com.google.android.gms.internal.zzcfp v0_12 = ((com.google.android.gms.internal.zzcjz) ((android.util.Pair) v2_2.get(v5_2)).first);
                                                if ((android.text.TextUtils.isEmpty(v0_12.zzbvR)) || (v0_12.zzbvR.equals(v7_1))) {
                                                    v5_2++;
                                                } else {
                                                    v7_4 = v2_2.subList(0, v5_2);
                                                }
                                            }
                                        }
                                        String v2_3;
                                        boolean v10_4 = new com.google.android.gms.internal.zzcjy();
                                        com.google.android.gms.internal.zzcfp v0_20 = new com.google.android.gms.internal.zzcjz[v7_4.size()];
                                        v10_4.zzbvB = v0_20;
                                        java.util.ArrayList v11_1 = new java.util.ArrayList(v7_4.size());
                                        if ((!com.google.android.gms.internal.zzcem.zzyb()) || (!this.zzbsn.zzdO(v1_5))) {
                                            v2_3 = 0;
                                        } else {
                                            v2_3 = 1;
                                        }
                                        com.google.android.gms.internal.zzcgo v5_3 = 0;
                                        while (v5_3 < v10_4.zzbvB.length) {
                                            v10_4.zzbvB[v5_3] = ((com.google.android.gms.internal.zzcjz) ((android.util.Pair) v7_4.get(v5_3)).first);
                                            v11_1.add(((Long) ((android.util.Pair) v7_4.get(v5_3)).second));
                                            v10_4.zzbvB[v5_3].zzbvQ = Long.valueOf(com.google.android.gms.internal.zzcem.zzwP());
                                            v10_4.zzbvB[v5_3].zzbvG = Long.valueOf(v8_1);
                                            v10_4.zzbvB[v5_3].zzbvW = Boolean.valueOf(com.google.android.gms.internal.zzcem.zzxE());
                                            if (v2_3 == null) {
                                                v10_4.zzbvB[v5_3].zzbwd = 0;
                                            }
                                            v5_3++;
                                        }
                                        com.google.android.gms.internal.zzcgo v5_4;
                                        if (!this.zzwF().zzz(2)) {
                                            v5_4 = 0;
                                        } else {
                                            v5_4 = this.zzwA().zza(v10_4);
                                        }
                                        byte[] v3_0 = this.zzwB().zzb(v10_4);
                                        String v7_5 = com.google.android.gms.internal.zzcem.zzxO();
                                        try {
                                            String v2_6 = new java.net.URL(v7_5);
                                        } catch (com.google.android.gms.internal.zzcfp v0) {
                                            this.zzwF().zzyx().zze("Failed to parse upload URL. Not uploading. appId", com.google.android.gms.internal.zzcfl.zzdZ(v1_5), v7_5);
                                        }
                                        if (v11_1.isEmpty()) {
                                            v4_0 = 0;
                                        }
                                        com.google.android.gms.common.internal.zzbo.zzaf(v4_0);
                                        if (this.zzbsO == null) {
                                            this.zzbsO = new java.util.ArrayList(v11_1);
                                        } else {
                                            this.zzwF().zzyx().log("Set uploading progress before finishing the previous upload");
                                        }
                                        this.zzwG().zzbrl.set(v8_1);
                                        com.google.android.gms.internal.zzcfp v0_43 = "?";
                                        if (v10_4.zzbvB.length > 0) {
                                            v0_43 = v10_4.zzbvB[0].zzaH;
                                        }
                                        this.zzwF().zzyD().zzd("Uploading data. app, uncompressed size, data", v0_43, Integer.valueOf(v3_0.length), v5_4);
                                        this.zzbsV = 1;
                                        this.zzyU().zza(v1_5, v2_6, v3_0, 0, new com.google.android.gms.internal.zzcgo(this));
                                    }
                                    v7_1 = 0;
                                }
                            }
                            this.zzbsW = 0;
                            this.zzzg();
                        } else {
                            this.zzwF().zzyD().log("Network not connected, ignoring upload request");
                            this.zzzc();
                            this.zzbsW = 0;
                            this.zzzg();
                        }
                    } else {
                        this.zzwF().zzyD().log("Uploading requested multiple times");
                        this.zzbsW = 0;
                        this.zzzg();
                    }
                } else {
                    this.zzzc();
                    this.zzbsW = 0;
                    this.zzzg();
                }
            } else {
                this.zzwF().zzyx().log("Upload called in the client side when service should be used");
                this.zzbsW = 0;
                this.zzzg();
            }
        } else {
            this.zzwF().zzyz().log("Upload data called on the client side before use of service was decided");
            this.zzbsW = 0;
            this.zzzg();
        }
        return;
    }

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


    private static java.net.URL zzd(com.google.android.gms.internal.zzcuw p2)
    {
        try {
            int v0_1 = new java.net.URL(p2.zzBo());
        } catch (int v0) {
            com.google.android.gms.internal.zzcvk.e("Error trying to parse the GTM url.");
            v0_1 = 0;
        }
        return v0_1;
    }

Method com.google.android.gms.tagmanager.zzfv.zzd() calling method java.net.URL.<init>()


    private static java.net.URL zzd(com.google.android.gms.tagmanager.zzbx p2)
    {
        try {
            int v0_1 = new java.net.URL(p2.zzBo());
        } catch (int v0) {
            com.google.android.gms.tagmanager.zzdj.e("Error trying to parse the GTM url.");
            v0_1 = 0;
        }
        return v0_1;
    }

Method com.ingic.tripcrasher.fragments.EditProfileFragment.autocomplete() calling method java.net.URL.<init>()


    public static java.util.ArrayList autocomplete(String p16, String p17)
    {
        java.util.ArrayList v10 = 0;
        StringBuilder v7_1 = new StringBuilder();
        if (!p17.equals(0)) {
            com.ingic.tripcrasher.fragments.EditProfileFragment.country_code = com.ingic.tripcrasher.fragments.EditProfileFragment.search(p17);
        }
        try {
            StringBuilder v12_1 = new StringBuilder("https://maps.googleapis.com/maps/api/place/autocomplete/json");
            v12_1.append("?key=AIzaSyCo6BLxwj0pv69PUubj96W1sIsn70aBslA");
            v12_1.append(new StringBuilder().append("&components=country:").append(com.ingic.tripcrasher.fragments.EditProfileFragment.country_code.toString().toLowerCase()).toString());
            v12_1.append(new StringBuilder().append("&input=").append(java.net.URLEncoder.encode(p16, "utf8")).toString());
            java.net.HttpURLConnection v2 = ((java.net.HttpURLConnection) new java.net.URL(v12_1.toString()).openConnection());
            java.io.InputStreamReader v5_1 = new java.io.InputStreamReader(v2.getInputStream());
            char[] v1 = new char[1024];
        } catch (org.json.JSONException v3_2) {
            android.util.Log.e("GooglePlaces", "Error processing Places API URL", v3_2);
            if (v2 != null) {
                v2.disconnect();
            }
            java.util.ArrayList v11_0 = 0;
            return v11_0;
        } catch (org.json.JSONException v3_1) {
            android.util.Log.e("GooglePlaces", "Error connecting to Places API", v3_1);
            if (v2 != null) {
                v2.disconnect();
            }
            v11_0 = 0;
            return v11_0;
        } catch (String v14_26) {
            if (v2 != null) {
                v2.disconnect();
            }
            throw v14_26;
        }
        while(true) {
            int v9 = v5_1.read(v1);
            if (v9 == -1) {
                break;
            }
            v7_1.append(v1, 0, v9);
        }
        if (v2 != null) {
            v2.disconnect();
        }
        try {
            org.json.JSONArray v8 = new org.json.JSONObject(v7_1.toString()).getJSONArray("predictions");
            java.util.ArrayList v11_2 = new java.util.ArrayList(v8.length());
            int v4 = 0;
            try {
                while (v4 < v8.length()) {
                    v11_2.add(v8.getJSONObject(v4).getString("description"));
                    v4++;
                }
            } catch (org.json.JSONException v3_0) {
                v10 = v11_2;
                android.util.Log.e("GooglePlaces", "Cannot process JSON results", v3_0);
                v11_0 = v10;
                return v11_0;
            }
            v10 = v11_2;
        } catch (org.json.JSONException v3_0) {
        }
    }

Method com.ingic.tripcrasher.ui.viewbinders.MessageListItemBinder.getBitmapFromURL() calling method java.net.URL.<init>()


    public static android.graphics.Bitmap getBitmapFromURL(String p6)
    {
        try {
            java.net.HttpURLConnection v0_1 = ((java.net.HttpURLConnection) new java.net.URL(p6).openConnection());
            v0_1.setDoInput(1);
            v0_1.connect();
            int v3 = android.graphics.BitmapFactory.decodeStream(v0_1.getInputStream());
        } catch (java.io.IOException v1) {
            v3 = 0;
        }
        return v3;
    }

Method com.ingic.tripcrasher.ui.viewbinders.PlacesAutoCompleteAdapter.autocomplete() calling method java.net.URL.<init>()


    private java.util.ArrayList autocomplete(String p18)
    {
        java.util.ArrayList v10 = 0;
        StringBuilder v7_1 = new StringBuilder();
        try {
            StringBuilder v12_1 = new StringBuilder("https://maps.googleapis.com/maps/api/place/autocomplete/json");
            v12_1.append("?key=AIzaSyD2AT-cVVfic6IHek5MwYioCzOYJQmQSek");
            v12_1.append("&components=country:us");
            v12_1.append(new StringBuilder().append("&input=").append(java.net.URLEncoder.encode(p18, "utf8")).toString());
            java.net.HttpURLConnection v2 = ((java.net.HttpURLConnection) new java.net.URL(v12_1.toString()).openConnection());
            java.io.InputStreamReader v5_1 = new java.io.InputStreamReader(v2.getInputStream());
            char[] v1 = new char[1024];
        } catch (org.json.JSONException v3_1) {
            android.util.Log.e("ExampleApp", "Error processing Places API URL", v3_1);
            if (v2 != null) {
                v2.disconnect();
            }
            java.util.ArrayList v11_0 = 0;
            return v11_0;
        } catch (org.json.JSONException v3_0) {
            android.util.Log.e("ExampleApp", "Error connecting to Places API", v3_0);
            if (v2 != null) {
                v2.disconnect();
            }
            v11_0 = 0;
            return v11_0;
        } catch (String v14_16) {
            if (v2 != null) {
                v2.disconnect();
            }
            throw v14_16;
        }
        while(true) {
            int v9 = v5_1.read(v1);
            if (v9 == -1) {
                break;
            }
            v7_1.append(v1, 0, v9);
        }
        if (v2 != null) {
            v2.disconnect();
        }
        try {
            android.util.Log.e("jsonResults.toString()", new StringBuilder().append("").append(v7_1.toString()).toString());
            org.json.JSONArray v8 = new org.json.JSONObject(v7_1.toString()).getJSONArray("predictions");
            java.util.ArrayList v11_2 = new java.util.ArrayList(v8.length());
            int v4 = 0;
            try {
                while (v4 < v8.length()) {
                    v11_2.add(v8.getJSONObject(v4).getString("description"));
                    v4++;
                }
            } catch (org.json.JSONException v3_2) {
                v10 = v11_2;
                android.util.Log.e("ExampleApp", "Cannot process JSON results", v3_2);
                v11_0 = v10;
                return v11_0;
            }
            v10 = v11_2;
        } catch (org.json.JSONException v3_2) {
        }
    }

Method com.kbeanie.imagechooser.threads.MediaProcessorThread.downloadFile() calling method java.net.URL.<init>()


    protected String downloadFile(String p15)
    {
        try {
            java.io.BufferedInputStream v0_1 = new java.io.BufferedInputStream(new java.io.BufferedInputStream(((java.net.HttpURLConnection) new java.net.URL(p15).openConnection()).getInputStream()));
            String v6 = new StringBuilder().append(com.kbeanie.imagechooser.api.FileUtils.getDirectory(this.foldername)).append(java.io.File.separator).append(java.util.Calendar.getInstance().getTimeInMillis()).append(".").append(this.mediaExtension).toString();
            java.io.FileOutputStream v3_1 = new java.io.FileOutputStream(new java.io.File(v6));
            byte[] v1 = new byte[1024];
        } catch (Exception v2_1) {
            v2_1.printStackTrace();
            return v6;
        } catch (Exception v2_0) {
            v2_0.printStackTrace();
            return v6;
        }
        while(true) {
            int v4 = v0_1.read(v1);
            if (v4 <= 0) {
                break;
            }
            v3_1.write(v1, 0, v4);
        }
        v3_1.flush();
        v3_1.close();
        v0_1.close();
        return v6;
    }

Method com.splunk.mint.NetSender.sendBlocking() calling method java.net.URL.<init>()


    public declared_synchronized com.splunk.mint.NetSenderResponse sendBlocking(String p23, String p24, boolean p25)
    {
        try {
            com.splunk.mint.NetSenderResponse v12;
            if (com.splunk.mint.Properties.USER_OPTEDOUT) {
                com.splunk.mint.NetSenderResponse v11_3 = new com.splunk.mint.NetSenderResponse(p23, 0);
                v11_3.setSentSuccessfully(Boolean.valueOf(0));
                v11_3.setException(new Exception("User has opt out from logging data!"));
                v12 = v11_3;
            } else {
                com.splunk.mint.NetSenderResponse v11_2 = new com.splunk.mint.NetSenderResponse(p23, p24);
                if (p24 != null) {
                    if (p23 == null) {
                        int v15 = 0;
                        int v14 = 0;
                        int v13 = this.findAllActions(p24);
                        if (v13 > 0) {
                            v15 = this.findAllErrors(p24);
                            v14 = (v13 - v15);
                        }
                        p23 = com.splunk.mint.MintUrls.getURL(v15, v14);
                        v11_2.setUrl(p23);
                    }
                    com.splunk.mint.Logger.logInfo(new StringBuilder().append("NetSender: Sending data to url: ").append(p23).toString());
                    java.io.ByteArrayOutputStream v2 = 0;
                    com.splunk.mint.NetSender$2 v8 = 0;
                    try {
                        java.net.URL v19 = new java.net.URL;
                        v19(p23);
                        javax.net.ssl.HttpsURLConnection v5 = ((javax.net.ssl.HttpsURLConnection) v19.openConnection());
                        v5.setReadTimeout(10000);
                        v5.setConnectTimeout(10000);
                        v5.setDoInput(1);
                        v5.setDoOutput(1);
                        v5.setRequestMethod("POST");
                        v5.setRequestProperty("Accept-Encoding", "gzip");
                        v5.setRequestProperty("Content-Type", "application/x-gzip");
                        java.io.ByteArrayOutputStream v3_1 = new java.io.ByteArrayOutputStream();
                        try {
                            com.splunk.mint.NetSender$2 v9_1 = new com.splunk.mint.NetSender$2(this, v3_1);
                            try {
                                v9_1.write(p24.getBytes());
                                v9_1.close();
                                java.io.OutputStream v16 = v5.getOutputStream();
                                v16.write(v3_1.toByteArray());
                                v16.close();
                                int v17 = v5.getResponseCode();
                                v11_2.setResponseCode(v17);
                            } catch (java.io.IOException v20_27) {
                                v8 = v9_1;
                                v2 = v3_1;
                                if (v2 != null) {
                                    try {
                                        v2.close();
                                    } catch (java.io.IOException v21) {
                                    }
                                }
                                if (v8 != null) {
                                    try {
                                        v8.close();
                                    } catch (java.io.IOException v21) {
                                    }
                                }
                                throw v20_27;
                            } catch (Exception v6) {
                                v8 = v9_1;
                                v2 = v3_1;
                                com.splunk.mint.Logger.logError(new StringBuilder().append("NetSender: Transmitting Exception ").append(v6.getMessage()).toString());
                                if (com.splunk.mint.Mint.DEBUG) {
                                    v6.printStackTrace();
                                }
                                if (v5 != null) {
                                    try {
                                        v11_2.setResponseCode(v5.getResponseCode());
                                    } catch (java.io.IOException v7) {
                                        v7.printStackTrace();
                                    }
                                }
                                v11_2.setException(v6);
                                if (com.splunk.mint.Mint.mintCallback != null) {
                                    com.splunk.mint.Mint.mintCallback.netSenderResponse(v11_2);
                                }
                                if (p25) {
                                    com.splunk.mint.Logger.logWarning("NetSender: Couldn\'t send data, saving...");
                                    new com.splunk.mint.DataSaver().save(p24);
                                }
                                if (v2 != null) {
                                    try {
                                        v2.close();
                                    } catch (java.io.IOException v20) {
                                    }
                                }
                                if (v8 != null) {
                                    try {
                                        v8.close();
                                    } catch (java.io.IOException v20) {
                                    }
                                }
                                v12 = v11_2;
                            }
                            if (v17 < 400) {
                                StringBuilder v18_1 = new StringBuilder();
                                java.io.BufferedReader v4_1 = new java.io.BufferedReader(new java.io.InputStreamReader(v5.getInputStream()));
                                while(true) {
                                    String v10 = v4_1.readLine();
                                    if (v10 == null) {
                                        break;
                                    }
                                    v18_1.append(v10);
                                }
                                v11_2.setServerResponse(v18_1.toString());
                                v11_2.setSentSuccessfully(Boolean.valueOf(1));
                            } else {
                                v11_2.setException(new Exception(v5.getResponseMessage()));
                                if (com.splunk.mint.Mint.mintCallback != null) {
                                    com.splunk.mint.Mint.mintCallback.netSenderResponse(v11_2);
                                }
                            }
                            if (v3_1 != null) {
                                try {
                                    v3_1.close();
                                } catch (java.io.IOException v20) {
                                }
                            }
                            if (v9_1 != null) {
                                try {
                                    v9_1.close();
                                } catch (java.io.IOException v20) {
                                }
                            }
                            if (com.splunk.mint.Mint.mintCallback != null) {
                                com.splunk.mint.Mint.mintCallback.netSenderResponse(v11_2);
                            }
                            v12 = v11_2;
                        } catch (java.io.IOException v20_27) {
                            v2 = v3_1;
                        } catch (Exception v6) {
                            v2 = v3_1;
                        }
                    } catch (java.io.IOException v20_27) {
                    } catch (Exception v6) {
                    }
                } else {
                    v11_2.setException(new IllegalArgumentException("null data!"));
                    if (com.splunk.mint.Mint.mintCallback != null) {
                        com.splunk.mint.Mint.mintCallback.netSenderResponse(v11_2);
                    }
                    com.splunk.mint.Logger.logInfo(v11_2.toString());
                    v12 = v11_2;
                }
            }
        } catch (java.io.IOException v20_34) {
            throw v20_34;
        }
        return v12;
    }

Method com.squareup.okhttp.Request.url() calling method java.net.URL.<init>()


    public java.net.URL url()
    {
        try {
            java.net.URL v1_0 = this.url;
        } catch (java.net.MalformedURLException v0) {
            throw new RuntimeException(new StringBuilder().append("Malformed URL: ").append(this.urlString).toString(), v0);
        }
        if (v1_0 == null) {
            v1_0 = new java.net.URL(this.urlString);
            this.url = v1_0;
        }
        return v1_0;
    }

Method com.squareup.okhttp.internal.http.HttpEngine.tunnelRequest() calling method java.net.URL.<init>()


    private com.squareup.okhttp.Request tunnelRequest(com.squareup.okhttp.Connection p11, com.squareup.okhttp.Request p12)
    {
        com.squareup.okhttp.Request v6_18;
        if (p11.getRoute().requiresTunnel()) {
            String v0;
            String v1 = p12.url().getHost();
            int v2 = com.squareup.okhttp.internal.Util.getEffectivePort(p12.url());
            if (v2 != com.squareup.okhttp.internal.Util.getDefaultPort("https")) {
                v0 = new StringBuilder().append(v1).append(":").append(v2).toString();
            } else {
                v0 = v1;
            }
            com.squareup.okhttp.Request$Builder v4 = new com.squareup.okhttp.Request$Builder().url(new java.net.URL("https", v1, v2, "/")).header("Host", v0).header("Proxy-Connection", "Keep-Alive");
            String v5 = p12.header("User-Agent");
            if (v5 != null) {
                v4.header("User-Agent", v5);
            }
            String v3 = p12.header("Proxy-Authorization");
            if (v3 != null) {
                v4.header("Proxy-Authorization", v3);
            }
            v6_18 = v4.build();
        } else {
            v6_18 = 0;
        }
        return v6_18;
    }

Method com.squareup.okhttp.internal.http.HttpEngine.followUpRequest() calling method java.net.URL.<init>()


    public com.squareup.okhttp.Request followUpRequest()
    {
        com.squareup.okhttp.Request v6_0 = 0;
        if (this.userResponse != null) {
            java.net.Proxy v4;
            if (this.getRoute() == null) {
                v4 = this.client.getProxy();
            } else {
                v4 = this.getRoute().getProxy();
            }
            switch (this.userResponse.code()) {
                case 300:
                case 301:
                case 302:
                case 303:
                    String v0 = this.userResponse.header("Location");
                    if (v0 == null) {
                    } else {
                        java.net.URL v5_1 = new java.net.URL(this.userRequest.url(), v0);
                        if (((!v5_1.getProtocol().equals("https")) && (!v5_1.getProtocol().equals("http"))) || ((!v5_1.getProtocol().equals(this.userRequest.url().getProtocol())) && (!this.client.getFollowSslRedirects()))) {
                        } else {
                            com.squareup.okhttp.Request$Builder v1 = this.userRequest.newBuilder();
                            if (com.squareup.okhttp.internal.http.HttpMethod.hasRequestBody(this.userRequest.method())) {
                                v1.method("GET", 0);
                                v1.removeHeader("Transfer-Encoding");
                                v1.removeHeader("Content-Length");
                                v1.removeHeader("Content-Type");
                            }
                            if (!this.sameConnection(v5_1)) {
                                v1.removeHeader("Authorization");
                            }
                            v6_0 = v1.url(v5_1).build();
                        }
                    }
                    break;
                case 307:
                    if ((!this.userRequest.method().equals("GET")) && (!this.userRequest.method().equals("HEAD"))) {
                    } else {
                    }
                    break;
                case 401:
                    v6_0 = com.squareup.okhttp.internal.http.OkHeaders.processAuthHeader(this.client.getAuthenticator(), this.userResponse, v4);
                    break;
                case 407:
                    if (v4.type() == java.net.Proxy$Type.HTTP) {
                    } else {
                        throw new java.net.ProtocolException("Received HTTP_PROXY_AUTH (407) code while not using proxy");
                    }
                    break;
            }
            return v6_0;
        } else {
            throw new IllegalStateException();
        }
    }

Method com.squareup.picasso.UrlConnectionDownloader.openConnection() calling method java.net.URL.<init>()


    protected java.net.HttpURLConnection openConnection(android.net.Uri p4)
    {
        java.net.HttpURLConnection v0_1 = ((java.net.HttpURLConnection) new java.net.URL(p4.toString()).openConnection());
        v0_1.setConnectTimeout(15000);
        v0_1.setReadTimeout(20000);
        return v0_1;
    }

Method io.socket.client.Url.extractId() calling method java.net.URL.<init>()


    public static String extractId(String p1)
    {
        return io.socket.client.Url.extractId(new java.net.URL(p1));
    }

Method io.socket.client.Url.parse() calling method java.net.URL.<init>()


    public static java.net.URL parse(java.net.URI p12)
    {
        String v4 = p12.getScheme();
        if ((v4 == null) || (!v4.matches("^https?|wss?$"))) {
            v4 = "https";
        }
        int v3 = p12.getPort();
        if (v3 == -1) {
            if (!io.socket.client.Url.PATTERN_HTTP.matcher(v4).matches()) {
                if (io.socket.client.Url.PATTERN_HTTPS.matcher(v4).matches()) {
                    v3 = 443;
                }
            } else {
                v3 = 80;
            }
        }
        String v2 = p12.getRawPath();
        if ((v2 == null) || (v2.length() == 0)) {
            v2 = "/";
        }
        String v6 = p12.getRawUserInfo();
        String v5 = p12.getRawQuery();
        String v1 = p12.getRawFragment();
        try {
            String v7_17;
            StringBuilder v9_1 = new StringBuilder().append(v4).append("://");
        } catch (java.net.MalformedURLException v0) {
            throw new RuntimeException(v0);
        }
        if (v6 == null) {
            v7_17 = "";
        } else {
            v7_17 = new StringBuilder().append(v6).append("@").toString();
        }
        String v7_24;
        StringBuilder v9_3 = v9_1.append(v7_17).append(p12.getHost());
        if (v3 == -1) {
            v7_24 = "";
        } else {
            v7_24 = new StringBuilder().append(":").append(v3).toString();
        }
        String v7_30;
        StringBuilder v9_4 = v9_3.append(v7_24).append(v2);
        if (v5 == null) {
            v7_30 = "";
        } else {
            v7_30 = new StringBuilder().append("?").append(v5).toString();
        }
        String v7_1;
        StringBuilder v9_5 = v9_4.append(v7_30);
        if (v1 == null) {
            v7_1 = "";
        } else {
            v7_1 = new StringBuilder().append("#").append(v1).toString();
        }
        return new java.net.URL(v9_5.append(v7_1).toString());
    }

Method io.socket.engineio.client.transports.PollingXHR$Request.create() calling method java.net.URL.<init>()


    public void create()
    {
        try {
            String v6_8;
            String v6_18 = io.socket.engineio.client.transports.PollingXHR.access$200();
            Object[] v8_4 = new Object[2];
            v8_4[0] = this.method;
            v8_4[1] = this.uri;
            v6_18.fine(String.format("xhr open %s: %s", v8_4));
            java.net.URL v4_1 = new java.net.URL(this.uri);
        } catch (java.io.IOException v0) {
            this.onError(v0);
            return;
        }
        if (this.proxy == null) {
            v6_8 = ((java.net.HttpURLConnection) v4_1.openConnection());
        } else {
            v6_8 = ((java.net.HttpURLConnection) v4_1.openConnection(this.proxy));
        }
        this.xhr = v6_8;
        this.xhr.setRequestMethod(this.method);
        this.xhr.setConnectTimeout(10000);
        if ((this.xhr instanceof javax.net.ssl.HttpsURLConnection)) {
            if (this.sslContext != null) {
                ((javax.net.ssl.HttpsURLConnection) this.xhr).setSSLSocketFactory(this.sslContext.getSocketFactory());
            }
            if (this.hostnameVerifier != null) {
                ((javax.net.ssl.HttpsURLConnection) this.xhr).setHostnameVerifier(this.hostnameVerifier);
            }
        }
        java.util.TreeMap v2_1 = new java.util.TreeMap(String.CASE_INSENSITIVE_ORDER);
        if ("POST".equals(this.method)) {
            this.xhr.setDoOutput(1);
            Object[] v8_1 = new String[1];
            v8_1[0] = "application/octet-stream";
            v2_1.put("Content-type", new java.util.LinkedList(java.util.Arrays.asList(v8_1)));
        }
        void v3_1 = this.onRequestHeaders(v2_1);
        io.socket.engineio.client.transports.PollingXHR$Request$1 v7_10 = v2_1.entrySet().iterator();
        while (v7_10.hasNext()) {
            java.util.Map$Entry v1_1 = ((java.util.Map$Entry) v7_10.next());
            Object[] v8_0 = ((java.util.List) v1_1.getValue()).iterator();
            while (v8_0.hasNext()) {
                this.xhr.addRequestProperty(((String) v1_1.getKey()), ((String) v8_0.next()));
            }
        }
        String v6_29 = io.socket.engineio.client.transports.PollingXHR.access$200();
        Object[] v8_5 = new Object[2];
        v8_5[0] = this.uri;
        v8_5[1] = this.data;
        v6_29.fine(String.format("sending xhr with url %s | data %s", v8_5));
        new Thread(new io.socket.engineio.client.transports.PollingXHR$Request$1(this, v3_1)).start();
        return;
    }

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


    static com.google.appengine.api.urlfetch.HTTPRequest createRequest(retrofit.client.Request p10)
    {
        com.google.appengine.api.urlfetch.HTTPRequest v2_1 = new com.google.appengine.api.urlfetch.HTTPRequest(new java.net.URL(p10.getUrl()), retrofit.appengine.UrlFetchClient.getHttpMethod(p10.getMethod()));
        byte[] v6_2 = p10.getHeaders().iterator();
        while (v6_2.hasNext()) {
            retrofit.client.Header v3_1 = ((retrofit.client.Header) v6_2.next());
            v2_1.addHeader(new com.google.appengine.api.urlfetch.HTTPHeader(v3_1.getName(), v3_1.getValue()));
        }
        retrofit.mime.TypedOutput v1 = p10.getBody();
        if (v1 != null) {
            java.io.ByteArrayOutputStream v0_1 = new java.io.ByteArrayOutputStream();
            v1.writeTo(v0_1);
            v2_1.setPayload(v0_1.toByteArray());
        }
        return v2_1;
    }

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


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

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


    protected java.net.HttpURLConnection openConnection(retrofit.client.Request p4)
    {
        return this.okUrlFactory.open(new java.net.URL(p4.getUrl()));
    }