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 net.hockeyapp.android.utils.HttpURLConnectionBuilder.build() calling method java.net.URL.<init>()


    public java.net.HttpURLConnection build()
    {
        java.net.HttpURLConnection v0_1 = ((java.net.HttpURLConnection) new java.net.URL(this.mUrlString).openConnection());
        v0_1.setConnectTimeout(this.mTimeout);
        v0_1.setReadTimeout(this.mTimeout);
        if (android.os.Build$VERSION.SDK_INT <= 9) {
            v0_1.setRequestProperty("Connection", "close");
        }
        if (!android.text.TextUtils.isEmpty(this.mRequestMethod)) {
            v0_1.setRequestMethod(this.mRequestMethod);
            if ((!android.text.TextUtils.isEmpty(this.mRequestBody)) || ((this.mRequestMethod.equalsIgnoreCase("POST")) || (this.mRequestMethod.equalsIgnoreCase("PUT")))) {
                v0_1.setDoOutput(1);
            }
        }
        String v6_4 = this.mHeaders.keySet().iterator();
        while (v6_4.hasNext()) {
            String v1_1 = ((String) v6_4.next());
            v0_1.setRequestProperty(v1_1, ((String) this.mHeaders.get(v1_1)));
        }
        if (!android.text.TextUtils.isEmpty(this.mRequestBody)) {
            java.io.BufferedWriter v4_1 = new java.io.BufferedWriter(new java.io.OutputStreamWriter(v0_1.getOutputStream(), "UTF-8"));
            v4_1.write(this.mRequestBody);
            v4_1.flush();
            v4_1.close();
        }
        if (this.mMultipartEntity != null) {
            v0_1.setRequestProperty("Content-Length", String.valueOf(this.mMultipartEntity.getContentLength()));
            java.io.BufferedOutputStream v2_2 = new java.io.BufferedOutputStream(v0_1.getOutputStream());
            v2_2.write(this.mMultipartEntity.getOutputStream().toByteArray());
            v2_2.flush();
            v2_2.close();
        }
        return v0_1;
    }

Method net.hockeyapp.android.tasks.GetFileSizeTask.doInBackground() calling method java.net.URL.<init>()


    protected varargs Long doInBackground(Void[] p7)
    {
        try {
            Long v3_0 = Long.valueOf(((long) this.createConnection(new java.net.URL(this.getURLString()), 6).getContentLength()));
        } catch (java.io.IOException v1) {
            v1.printStackTrace();
            v3_0 = Long.valueOf(0);
        }
        return v3_0;
    }

Method net.hockeyapp.android.tasks.DownloadFileTask.doInBackground() calling method java.net.URL.<init>()


    protected varargs Long doInBackground(Void[] p23)
    {
        java.io.BufferedInputStream v9 = 0;
        java.io.FileOutputStream v12 = 0;
        try {
            Long v18_4;
            java.net.URLConnection v2 = this.createConnection(new java.net.URL(this.getURLString()), 6);
            v2.connect();
            int v11 = v2.getContentLength();
            String v3 = v2.getContentType();
        } catch (Long v18_0) {
            try {
                if (v12 == null) {
                    if (v9 != null) {
                        v9.close();
                    }
                } else {
                    v12.close();
                }
            } catch (java.io.IOException v7_2) {
                v7_2.printStackTrace();
            }
            throw v18_0;
        } catch (java.io.IOException v7_0) {
            v7_0.printStackTrace();
            v18_4 = Long.valueOf(0);
            try {
                if (v12 != null) {
                    v12.close();
                }
            } catch (java.io.IOException v7_1) {
                v7_1.printStackTrace();
                return v18_4;
            }
            if (v9 == null) {
                return v18_4;
            } else {
                v9.close();
                return v18_4;
            }
        }
        if ((v3 == null) || (!v3.contains("text"))) {
            java.io.File v6_1 = new java.io.File(this.mFilePath);
            if ((v6_1.mkdirs()) || (v6_1.exists())) {
                java.io.File v8_1 = new java.io.File(v6_1, this.mFilename);
                java.io.BufferedInputStream v10_1 = new java.io.BufferedInputStream(v2.getInputStream());
                try {
                    java.io.FileOutputStream v13_1 = new java.io.FileOutputStream(v8_1);
                    try {
                        byte[] v5 = new byte[1024];
                        long v16 = 0;
                    } catch (Long v18_0) {
                        v12 = v13_1;
                        v9 = v10_1;
                    }
                    while(true) {
                        int v4 = v10_1.read(v5);
                        if (v4 == -1) {
                            break;
                        }
                        v16 += ((long) v4);
                        int v0_14 = new Integer[1];
                        Long v18_19 = v0_14;
                        v18_19[0] = Integer.valueOf(Math.round(((((float) v16) * 1120403456) / ((float) v11))));
                        this.publishProgress(v18_19);
                        v13_1.write(v5, 0, v4);
                    }
                    v13_1.flush();
                    v18_4 = Long.valueOf(v16);
                    try {
                        if (v13_1 == null) {
                            if (v10_1 != null) {
                                v10_1.close();
                            }
                        } else {
                            v13_1.close();
                        }
                    } catch (java.io.IOException v7_4) {
                        v7_4.printStackTrace();
                    }
                    v9 = v10_1;
                    return v18_4;
                } catch (Long v18_0) {
                    v9 = v10_1;
                } catch (java.io.IOException v7_0) {
                    v9 = v10_1;
                }
            } else {
                throw new java.io.IOException(new StringBuilder().append("Could not create the dir(s):").append(v6_1.getAbsolutePath()).toString());
            }
        } else {
            this.mDownloadErrorMessage = "The requested download does not appear to be a file.";
            v18_4 = Long.valueOf(0);
            try {
                if (0 != 0) {
                    0.close();
                }
            } catch (java.io.IOException v7_3) {
                v7_3.printStackTrace();
                return v18_4;
            }
            if (0 == 0) {
                return v18_4;
            } else {
                0.close();
                return v18_4;
            }
        }
    }

Method net.hockeyapp.android.tasks.DownloadFileTask.createConnection() calling method java.net.URL.<init>()


    protected java.net.URLConnection createConnection(java.net.URL p6, int p7)
    {
        java.net.URLConnection v1_1 = ((java.net.HttpURLConnection) p6.openConnection());
        this.setConnectionProperties(v1_1);
        int v0 = v1_1.getResponseCode();
        if (((v0 == 301) || ((v0 == 302) || (v0 == 303))) && (p7 != 0)) {
            java.net.URL v2_1 = new java.net.URL(v1_1.getHeaderField("Location"));
            if (!p6.getProtocol().equals(v2_1.getProtocol())) {
                v1_1.disconnect();
                v1_1 = this.createConnection(v2_1, (p7 - 1));
            }
        }
        return v1_1;
    }

Method net.hockeyapp.android.tasks.CheckUpdateTask.doInBackground() calling method java.net.URL.<init>()


    protected varargs org.json.JSONArray doInBackground(Void[] p9)
    {
        try {
            int v6 = this.getVersionCode();
            int v3_3 = new org.json.JSONArray(net.hockeyapp.android.utils.VersionCache.getVersionInfo(this.context));
        } catch (org.json.JSONException v1) {
            v1.printStackTrace();
            v3_3 = 0;
            return v3_3;
        } catch (org.json.JSONException v1) {
        }
        if ((!this.getCachingEnabled()) || (!this.findNewVersion(v3_3, v6))) {
            java.net.URLConnection v0 = this.createConnection(new java.net.URL(this.getURLString("json")));
            v0.connect();
            java.io.BufferedInputStream v2_1 = new java.io.BufferedInputStream(v0.getInputStream());
            String v4 = net.hockeyapp.android.tasks.CheckUpdateTask.convertStreamToString(v2_1);
            v2_1.close();
            int v3_2 = new org.json.JSONArray(v4);
            if (!this.findNewVersion(v3_2, v6)) {
            } else {
                v3_3 = this.limitResponseSize(v3_2);
                return v3_3;
            }
        } else {
            return v3_3;
        }
    }

Method net.hockeyapp.android.tasks.AttachmentDownloader$DownloadTask.downloadAttachment() calling method java.net.URL.<init>()


    private boolean downloadAttachment(String p21, String p22)
    {
        try {
            int v14_8;
            java.net.URLConnection v2 = this.createConnection(new java.net.URL(p21));
            v2.connect();
            int v8 = v2.getContentLength();
            String v10 = v2.getHeaderField("Status");
        } catch (java.io.IOException v5) {
            v5.printStackTrace();
            v14_8 = 0;
            return v14_8;
        }
        if ((v10 == null) || (v10.startsWith("200"))) {
            java.io.File v6_1 = new java.io.File(this.dropFolder, p22);
            java.io.BufferedInputStream v7_1 = new java.io.BufferedInputStream(v2.getInputStream());
            java.io.FileOutputStream v9_1 = new java.io.FileOutputStream(v6_1);
            byte[] v4 = new byte[1024];
            long v12 = 0;
            while(true) {
                int v3 = v7_1.read(v4);
                if (v3 == -1) {
                    break;
                }
                v12 += ((long) v3);
                int v14_11 = new Integer[1];
                v14_11[0] = Integer.valueOf(((int) ((100 * v12) / ((long) v8))));
                this.publishProgress(v14_11);
                v9_1.write(v4, 0, v3);
            }
            v9_1.flush();
            v9_1.close();
            v7_1.close();
            if (v12 <= 0) {
                v14_8 = 0;
                return v14_8;
            } else {
                v14_8 = 1;
                return v14_8;
            }
        } else {
            v14_8 = 0;
            return v14_8;
        }
    }

Method net.hockeyapp.android.metrics.Sender.createConnection() calling method java.net.URL.<init>()


    protected java.net.HttpURLConnection createConnection()
    {
        java.net.HttpURLConnection v1 = 0;
        try {
            java.net.URL v3_0;
            if (this.getCustomServerURL() != null) {
                v3_0 = new java.net.URL(this.mCustomServerURL);
                if (v3_0 != null) {
                    v1 = ((java.net.HttpURLConnection) v3_0.openConnection());
                    v1.setReadTimeout(10000);
                    v1.setConnectTimeout(15000);
                    v1.setRequestMethod("POST");
                    v1.setRequestProperty("Content-Type", "application/x-json-stream");
                    v1.setDoOutput(1);
                    v1.setDoInput(1);
                    v1.setUseCaches(0);
                } else {
                    v3_0 = new java.net.URL("https://gate.hockeyapp.net/v2/track");
                }
            } else {
                v3_0 = new java.net.URL("https://gate.hockeyapp.net/v2/track");
            }
        } catch (java.io.IOException v2) {
            android.util.Log.e("HockeyApp-Metrics", "Could not open connection for provided URL with exception: ", v2);
        }
        return v1;
    }

Method io.fabric.sdk.android.services.network.HttpRequest.encode() calling method java.net.URL.<init>()


    public static String encode(CharSequence p12)
    {
        try {
            java.net.URL v10_1 = new java.net.URL(p12.toString());
            String v2 = v10_1.getHost();
            int v11 = v10_1.getPort();
        } catch (java.net.URISyntaxException v6_0) {
            throw new io.fabric.sdk.android.services.network.HttpRequest$HttpRequestException(v6_0);
        }
        if (v11 != -1) {
            v2 = new StringBuilder().append(v2).append(58).append(Integer.toString(v11)).toString();
        }
        try {
            String v7 = new java.net.URI(v10_1.getProtocol(), v2, v10_1.getPath(), v10_1.getQuery(), 0).toASCIIString();
            int v9 = v7.indexOf(63);
        } catch (java.net.URISyntaxException v6_1) {
            java.io.IOException v8_1 = new java.io.IOException("Parsing URI failed");
            v8_1.initCause(v6_1);
            throw new io.fabric.sdk.android.services.network.HttpRequest$HttpRequestException(v8_1);
        }
        if ((v9 > 0) && ((v9 + 1) < v7.length())) {
            v7 = new StringBuilder().append(v7.substring(0, (v9 + 1))).append(v7.substring((v9 + 1)).replace("+", "%2B")).toString();
        }
        return v7;
    }

Method io.fabric.sdk.android.services.network.HttpRequest.<init>() calling method java.net.URL.<init>()


    public HttpRequest(CharSequence p4, String p5)
    {
        this.connection = 0;
        this.ignoreCloseExceptions = 1;
        this.uncompress = 0;
        this.bufferSize = 8192;
        try {
            this.url = new java.net.URL(p4.toString());
            this.requestMethod = p5;
            return;
        } catch (java.net.MalformedURLException v0) {
            throw new io.fabric.sdk.android.services.network.HttpRequest$HttpRequestException(v0);
        }
    }

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 com.google.gson.internal.bind.TypeAdapters$22.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.tagmanager.zzde.zzd() calling method java.net.URL.<init>()


    java.net.URL zzd(com.google.android.gms.tagmanager.zzar p3)
    {
        try {
            int v0_1 = new java.net.URL(p3.zzJS());
        } catch (int v0) {
            com.google.android.gms.tagmanager.zzbn.e("Error trying to parse the GTM url.");
            v0_1 = 0;
        }
        return v0_1;
    }

Method com.google.android.gms.measurement.internal.zzx.zzGl() calling method java.net.URL.<init>()


    public void zzGl()
    {
        com.google.android.gms.measurement.internal.zzx$2 v5_0 = 0;
        byte[] v3_0 = 0;
        this.zzkN();
        this.zzma();
        if (this.zzFo().zzmW()) {
            if (!this.zzGk()) {
                if (this.zzGb().zzod()) {
                    Integer v8_2 = this.zzlQ().currentTimeMillis();
                    this.zzai((v8_2 - this.zzFo().zzEU()));
                    com.google.android.gms.measurement.internal.zzq v0_65 = this.zzFn().zzbdG.get();
                    if (v0_65 != 0) {
                        this.zzFm().zzFK().zzj("Uploading events. Elapsed time since last upload attempt (ms)", Long.valueOf(Math.abs((v8_2 - v0_65))));
                    }
                    String v1_9 = this.zzFh().zzFp();
                    if (android.text.TextUtils.isEmpty(v1_9)) {
                        com.google.android.gms.measurement.internal.zzq v0_73 = this.zzFh().zzaf((v8_2 - this.zzFo().zzEU()));
                        if (!android.text.TextUtils.isEmpty(v0_73)) {
                            String v1_13 = this.zzFh().zzfk(v0_73);
                            if (v1_13 != null) {
                                java.net.URL v2_16 = this.zzFo().zzN(v1_13.zzEb(), v1_13.zzvx());
                                try {
                                    byte[] v3_4 = new java.net.URL(v2_16);
                                    this.zzFm().zzFL().zzj("Fetching remote configuration", v1_13.zziC());
                                    int v4_0 = this.zzFj().zzfy(v1_13.zziC());
                                    String v1_1 = this.zzFj().zzfz(v1_13.zziC());
                                } catch (com.google.android.gms.measurement.internal.zzq v0) {
                                    this.zzFm().zzFE().zzj("Failed to parse config URL. Not fetching", v2_16);
                                }
                                if ((v4_0 != 0) && (!android.text.TextUtils.isEmpty(v1_1))) {
                                    v5_0 = new android.support.v4.util.ArrayMap();
                                    v5_0.put("If-Modified-Since", v1_1);
                                }
                                this.zzGb().zza(v0_73, v3_4, v5_0, new com.google.android.gms.measurement.internal.zzx$3(this));
                            }
                        }
                    } else {
                        int v4_6 = this.zzFh().zzn(v1_9, this.zzFo().zzfg(v1_9), this.zzFo().zzfh(v1_9));
                        if (!v4_6.isEmpty()) {
                            java.net.URL v2_2 = v4_6.iterator();
                            while (v2_2.hasNext()) {
                                com.google.android.gms.measurement.internal.zzq v0_12 = ((com.google.android.gms.internal.zzsp$zze) ((android.util.Pair) v2_2.next()).first);
                                if (!android.text.TextUtils.isEmpty(v0_12.zzbhr)) {
                                    String v6_1 = v0_12.zzbhr;
                                }
                                java.net.URL v2_4;
                                if (v6_1 == null) {
                                    v2_4 = v4_6;
                                } else {
                                    java.net.URL v2_3 = 0;
                                    while (v2_3 < v4_6.size()) {
                                        com.google.android.gms.measurement.internal.zzq v0_18 = ((com.google.android.gms.internal.zzsp$zze) ((android.util.Pair) v4_6.get(v2_3)).first);
                                        if ((android.text.TextUtils.isEmpty(v0_18.zzbhr)) || (v0_18.zzbhr.equals(v6_1))) {
                                            v2_3++;
                                        } else {
                                            v2_4 = v4_6.subList(0, v2_3);
                                        }
                                    }
                                }
                                String v6_5 = new com.google.android.gms.internal.zzsp$zzd();
                                com.google.android.gms.measurement.internal.zzq v0_24 = new com.google.android.gms.internal.zzsp$zze[v2_4.size()];
                                v6_5.zzbhb = v0_24;
                                int v4_8 = new java.util.ArrayList(v2_4.size());
                                while (v3_0 < v6_5.zzbhb.length) {
                                    v6_5.zzbhb[v3_0] = ((com.google.android.gms.internal.zzsp$zze) ((android.util.Pair) v2_4.get(v3_0)).first);
                                    v4_8.add(((Long) ((android.util.Pair) v2_4.get(v3_0)).second));
                                    v6_5.zzbhb[v3_0].zzbhq = Long.valueOf(this.zzFo().zzEi());
                                    v6_5.zzbhb[v3_0].zzbhg = Long.valueOf(v8_2);
                                    v6_5.zzbhb[v3_0].zzbhw = Boolean.valueOf(this.zzFo().zzmW());
                                    v3_0++;
                                }
                                com.google.android.gms.measurement.internal.zzq v0_30;
                                if (!this.zzFm().zzX(2)) {
                                    v0_30 = 0;
                                } else {
                                    v0_30 = com.google.android.gms.measurement.internal.zzal.zzb(v6_5);
                                }
                                byte[] v3_1 = this.zzFi().zza(v6_5);
                                String v7_2 = this.zzFo().zzET();
                                try {
                                    java.net.URL v2_9 = new java.net.URL(v7_2);
                                    this.zzD(v4_8);
                                    this.zzFn().zzbdH.set(v8_2);
                                    int v4_11 = "?";
                                } catch (com.google.android.gms.measurement.internal.zzq v0) {
                                    this.zzFm().zzFE().zzj("Failed to parse upload URL. Not uploading", v7_2);
                                }
                                if (v6_5.zzbhb.length > 0) {
                                    v4_11 = v6_5.zzbhb[0].appId;
                                }
                                this.zzFm().zzFL().zzd("Uploading data. app, uncompressed size, data", v4_11, Integer.valueOf(v3_1.length), v0_30);
                                this.zzGb().zza(v1_9, v2_9, v3_1, 0, new com.google.android.gms.measurement.internal.zzx$2(this));
                            }
                            v6_1 = 0;
                        }
                    }
                } else {
                    this.zzFm().zzFG().log("Network not connected, ignoring upload request");
                    this.zzGn();
                }
            } else {
                this.zzFm().zzFG().log("Uploading requested multiple times");
            }
        } else {
            com.google.android.gms.measurement.internal.zzq v0_2 = this.zzFn().zzFS();
            if (v0_2 != null) {
                if (!v0_2.booleanValue()) {
                } else {
                    this.zzFm().zzFE().log("Upload called in the client side when service should be used");
                }
            } else {
                this.zzFm().zzFG().log("Upload data called on the client side before use of service was decided");
            }
        }
        return;
    }

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


    public org.apache.http.HttpResponse zza(com.google.android.gms.internal.zzk p7, java.util.Map p8)
    {
        String v0_0;
        String v1_2 = p7.getUrl();
        org.apache.http.message.BasicHttpResponse v2_3 = new java.util.HashMap();
        v2_3.putAll(p7.getHeaders());
        v2_3.putAll(p8);
        if (this.zzaE == null) {
            v0_0 = v1_2;
        } else {
            v0_0 = this.zzaE.zzh(v1_2);
            if (v0_0 == null) {
                String v0_24;
                String v0_21 = String.valueOf(v1_2);
                if (v0_21.length() == 0) {
                    v0_24 = new String("URL blocked by rewriter: ");
                } else {
                    v0_24 = "URL blocked by rewriter: ".concat(v0_21);
                }
                throw new java.io.IOException(v0_24);
            }
        }
        java.util.Iterator v3_0 = this.zza(new java.net.URL(v0_0), p7);
        org.apache.http.message.BasicHeader v4_0 = v2_3.keySet().iterator();
        while (v4_0.hasNext()) {
            String v0_20 = ((String) v4_0.next());
            v3_0.addRequestProperty(v0_20, ((String) v2_3.get(v0_20)));
        }
        com.google.android.gms.internal.zzz.zza(v3_0, p7);
        String v0_5 = new org.apache.http.ProtocolVersion("HTTP", 1, 1);
        if (v3_0.getResponseCode() != -1) {
            org.apache.http.message.BasicHttpResponse v2_5 = new org.apache.http.message.BasicHttpResponse(new org.apache.http.message.BasicStatusLine(v0_5, v3_0.getResponseCode(), v3_0.getResponseMessage()));
            v2_5.setEntity(com.google.android.gms.internal.zzz.zza(v3_0));
            java.util.Iterator v3_1 = v3_0.getHeaderFields().entrySet().iterator();
            while (v3_1.hasNext()) {
                String v0_11 = ((java.util.Map$Entry) v3_1.next());
                if (v0_11.getKey() != null) {
                    v2_5.addHeader(new org.apache.http.message.BasicHeader(((String) v0_11.getKey()), ((String) ((java.util.List) v0_11.getValue()).get(0))));
                }
            }
            return v2_5;
        } else {
            throw new java.io.IOException("Could not retrieve response code from HttpUrlConnection.");
        }
    }

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


    java.net.URL zzd(com.google.android.gms.internal.zzuf p3)
    {
        try {
            int v0_1 = new java.net.URL(p3.zzJS());
        } catch (int v0) {
            com.google.android.gms.internal.zzun.e("Error trying to parse the GTM url.");
            v0_1 = 0;
        }
        return v0_1;
    }

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


    public static com.google.android.gms.ads.internal.request.AdResponseParcel zza(com.google.android.gms.ads.internal.request.AdRequestInfoParcel p13, android.content.Context p14, String p15, String p16, String p17, String p18, com.google.android.gms.internal.zzin p19, com.google.android.gms.internal.zzdc p20, com.google.android.gms.internal.zzih p21)
    {
        try {
            com.google.android.gms.ads.internal.request.AdResponseParcel v3_14;
            if (p20 == null) {
                v3_14 = 0;
                com.google.android.gms.ads.internal.request.AdResponseParcel v2_5;
                com.google.android.gms.internal.zzil v8_1 = new com.google.android.gms.internal.zzil(p13);
                com.google.android.gms.ads.internal.request.AdResponseParcel v2_1 = String.valueOf(p16);
                if (v2_1.length() == 0) {
                    v2_5 = new String("AdRequestServiceImpl: Sending request: ");
                } else {
                    v2_5 = "AdRequestServiceImpl: Sending request: ".concat(v2_1);
                }
                com.google.android.gms.internal.zzjw.zzaU(v2_5);
                String[] v4_18 = new java.net.URL(p16);
                long v10 = com.google.android.gms.ads.internal.zzu.zzco().elapsedRealtime();
                String[] v6_1 = 0;
                int v7_0 = v4_18;
                while(true) {
                    if (p21 != null) {
                        p21.zzMN.zzij();
                    }
                    com.google.android.gms.ads.internal.request.AdResponseParcel v2_20 = ((java.net.HttpURLConnection) v7_0.openConnection());
                    try {
                        com.google.android.gms.ads.internal.zzu.zzck().zza(p14, p15, 0, v2_20);
                    } catch (com.google.android.gms.ads.internal.request.AdResponseParcel v3_15) {
                        v2_20.disconnect();
                        if (p21 != null) {
                            p21.zzMN.zzik();
                        }
                        throw v3_15;
                    }
                    if ((!android.text.TextUtils.isEmpty(p17)) && (p19.zzif())) {
                        v2_20.addRequestProperty("x-afma-drt-cookie", p17);
                    }
                    if (!android.text.TextUtils.isEmpty(p18)) {
                        String[] v4_28;
                        int v5_11 = String.valueOf("Bearer ");
                        String[] v4_26 = String.valueOf(p18);
                        if (v4_26.length() == 0) {
                            v4_28 = new String(v5_11);
                        } else {
                            v4_28 = v5_11.concat(v4_26);
                        }
                        v2_20.addRequestProperty("Authorization", v4_28);
                    }
                    String[] v4_29 = p13.zzLI;
                    if (!android.text.TextUtils.isEmpty(v4_29)) {
                        com.google.android.gms.internal.zzjw.zzaU("Sending webview cookie in ad request header.");
                        v2_20.addRequestProperty("Cookie", v4_29);
                    }
                    if ((p19 != null) && (!android.text.TextUtils.isEmpty(p19.zzie()))) {
                        v2_20.setDoOutput(1);
                        byte[] v9_2 = p19.zzie().getBytes();
                        v2_20.setFixedLengthStreamingMode(v9_2.length);
                        try {
                            String[] v4_37 = new java.io.BufferedOutputStream(v2_20.getOutputStream());
                            try {
                                v4_37.write(v9_2);
                            } catch (com.google.android.gms.ads.internal.request.AdResponseParcel v3_19) {
                                com.google.android.gms.common.util.zzo.zzb(v4_37);
                                throw v3_19;
                            }
                            com.google.android.gms.common.util.zzo.zzb(v4_37);
                        } catch (com.google.android.gms.ads.internal.request.AdResponseParcel v3_19) {
                            v4_37 = 0;
                        }
                    }
                    com.google.android.gms.ads.internal.request.AdResponseParcel v2_3;
                    byte[] v9_0 = v2_20.getResponseCode();
                    java.io.OutputStream v12_0 = v2_20.getHeaderFields();
                    if ((v9_0 < 200) || (v9_0 >= 300)) {
                        com.google.android.gms.internal.zzii.zza(v7_0.toString(), v12_0, 0, v9_0);
                        if ((v9_0 < 300) || (v9_0 >= 400)) {
                            break;
                        }
                        String[] v4_9 = v2_20.getHeaderField("Location");
                        if (!android.text.TextUtils.isEmpty(v4_9)) {
                            int v5_4 = new java.net.URL(v4_9);
                            String[] v4_10 = (v6_1 + 1);
                            if (v4_10 <= 5) {
                                v8_1.zzj(v12_0);
                                v2_20.disconnect();
                                if (p21 != null) {
                                    p21.zzMN.zzik();
                                }
                                v6_1 = v4_10;
                                v7_0 = v5_4;
                            } else {
                                com.google.android.gms.internal.zzjw.zzaW("Too many redirects.");
                                com.google.android.gms.ads.internal.request.AdResponseParcel v3_9 = new com.google.android.gms.ads.internal.request.AdResponseParcel(0);
                                v2_20.disconnect();
                                if (p21 != null) {
                                    p21.zzMN.zzik();
                                }
                                v2_3 = v3_9;
                            }
                        } else {
                            com.google.android.gms.internal.zzjw.zzaW("No location header to follow redirect.");
                            com.google.android.gms.ads.internal.request.AdResponseParcel v3_12 = new com.google.android.gms.ads.internal.request.AdResponseParcel(0);
                            v2_20.disconnect();
                            if (p21 != null) {
                                p21.zzMN.zzik();
                            }
                            v2_3 = v3_12;
                        }
                    } else {
                        String[] v6_2 = v7_0.toString();
                        String[] v4_14 = new java.io.InputStreamReader(v2_20.getInputStream());
                        try {
                            int v5_7 = com.google.android.gms.ads.internal.zzu.zzck().zza(v4_14);
                        } catch (com.google.android.gms.ads.internal.request.AdResponseParcel v3_13) {
                            com.google.android.gms.common.util.zzo.zzb(v4_14);
                            throw v3_13;
                        }
                        com.google.android.gms.common.util.zzo.zzb(v4_14);
                        com.google.android.gms.internal.zzii.zza(v6_2, v12_0, v5_7, v9_0);
                        v8_1.zzb(v6_2, v12_0, v5_7);
                        if (p20 != null) {
                            String[] v4_17 = new String[1];
                            v4_17[0] = "ufe";
                            p20.zza(v3_14, v4_17);
                        }
                        com.google.android.gms.ads.internal.request.AdResponseParcel v3_16 = v8_1.zzj(v10);
                        v2_20.disconnect();
                        if (p21 != null) {
                            p21.zzMN.zzik();
                        }
                        v2_3 = v3_16;
                    }
                }
                com.google.android.gms.internal.zzjw.zzaW(new StringBuilder(46).append("Received error HTTP response code: ").append(v9_0).toString());
                com.google.android.gms.ads.internal.request.AdResponseParcel v3_6 = new com.google.android.gms.ads.internal.request.AdResponseParcel(0);
                v2_20.disconnect();
                if (p21 != null) {
                    p21.zzMN.zzik();
                }
                v2_3 = v3_6;
            } else {
                v3_14 = p20.zzeA();
            }
        } catch (com.google.android.gms.ads.internal.request.AdResponseParcel v2_12) {
            com.google.android.gms.ads.internal.request.AdResponseParcel v2_14 = String.valueOf(v2_12.getMessage());
            if (v2_14.length() == 0) {
                com.google.android.gms.ads.internal.request.AdResponseParcel v2_16 = new String("Error while connecting to ad server: ");
            } else {
                v2_16 = "Error while connecting to ad server: ".concat(v2_14);
            }
            com.google.android.gms.internal.zzjw.zzaW(v2_16);
            v2_3 = new com.google.android.gms.ads.internal.request.AdResponseParcel(2);
        }
        return v2_3;
    }

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


    public static com.google.android.gms.ads.internal.request.AdResponseParcel zza(com.google.android.gms.ads.internal.request.AdRequestInfoParcel p13, android.content.Context p14, String p15, String p16, String p17, String p18, com.google.android.gms.internal.zzin p19, com.google.android.gms.internal.zzdc p20, com.google.android.gms.internal.zzih p21)
    {
        try {
            com.google.android.gms.ads.internal.request.AdResponseParcel v3_14;
            if (p20 == null) {
                v3_14 = 0;
                com.google.android.gms.ads.internal.request.AdResponseParcel v2_5;
                com.google.android.gms.internal.zzil v8_1 = new com.google.android.gms.internal.zzil(p13);
                com.google.android.gms.ads.internal.request.AdResponseParcel v2_1 = String.valueOf(p16);
                if (v2_1.length() == 0) {
                    v2_5 = new String("AdRequestServiceImpl: Sending request: ");
                } else {
                    v2_5 = "AdRequestServiceImpl: Sending request: ".concat(v2_1);
                }
                com.google.android.gms.internal.zzjw.zzaU(v2_5);
                String[] v4_18 = new java.net.URL(p16);
                long v10 = com.google.android.gms.ads.internal.zzu.zzco().elapsedRealtime();
                String[] v6_1 = 0;
                int v7_0 = v4_18;
                while(true) {
                    if (p21 != null) {
                        p21.zzMN.zzij();
                    }
                    com.google.android.gms.ads.internal.request.AdResponseParcel v2_20 = ((java.net.HttpURLConnection) v7_0.openConnection());
                    try {
                        com.google.android.gms.ads.internal.zzu.zzck().zza(p14, p15, 0, v2_20);
                    } catch (com.google.android.gms.ads.internal.request.AdResponseParcel v3_15) {
                        v2_20.disconnect();
                        if (p21 != null) {
                            p21.zzMN.zzik();
                        }
                        throw v3_15;
                    }
                    if ((!android.text.TextUtils.isEmpty(p17)) && (p19.zzif())) {
                        v2_20.addRequestProperty("x-afma-drt-cookie", p17);
                    }
                    if (!android.text.TextUtils.isEmpty(p18)) {
                        String[] v4_28;
                        int v5_11 = String.valueOf("Bearer ");
                        String[] v4_26 = String.valueOf(p18);
                        if (v4_26.length() == 0) {
                            v4_28 = new String(v5_11);
                        } else {
                            v4_28 = v5_11.concat(v4_26);
                        }
                        v2_20.addRequestProperty("Authorization", v4_28);
                    }
                    String[] v4_29 = p13.zzLI;
                    if (!android.text.TextUtils.isEmpty(v4_29)) {
                        com.google.android.gms.internal.zzjw.zzaU("Sending webview cookie in ad request header.");
                        v2_20.addRequestProperty("Cookie", v4_29);
                    }
                    if ((p19 != null) && (!android.text.TextUtils.isEmpty(p19.zzie()))) {
                        v2_20.setDoOutput(1);
                        byte[] v9_2 = p19.zzie().getBytes();
                        v2_20.setFixedLengthStreamingMode(v9_2.length);
                        try {
                            String[] v4_37 = new java.io.BufferedOutputStream(v2_20.getOutputStream());
                            try {
                                v4_37.write(v9_2);
                            } catch (com.google.android.gms.ads.internal.request.AdResponseParcel v3_19) {
                                com.google.android.gms.common.util.zzo.zzb(v4_37);
                                throw v3_19;
                            }
                            com.google.android.gms.common.util.zzo.zzb(v4_37);
                        } catch (com.google.android.gms.ads.internal.request.AdResponseParcel v3_19) {
                            v4_37 = 0;
                        }
                    }
                    com.google.android.gms.ads.internal.request.AdResponseParcel v2_3;
                    byte[] v9_0 = v2_20.getResponseCode();
                    java.io.OutputStream v12_0 = v2_20.getHeaderFields();
                    if ((v9_0 < 200) || (v9_0 >= 300)) {
                        com.google.android.gms.internal.zzii.zza(v7_0.toString(), v12_0, 0, v9_0);
                        if ((v9_0 < 300) || (v9_0 >= 400)) {
                            com.google.android.gms.internal.zzjw.zzaW(new StringBuilder(46).append("Received error HTTP response code: ").append(v9_0).toString());
                            com.google.android.gms.ads.internal.request.AdResponseParcel v3_6 = new com.google.android.gms.ads.internal.request.AdResponseParcel(0);
                            v2_20.disconnect();
                            if (p21 != null) {
                                p21.zzMN.zzik();
                            }
                            v2_3 = v3_6;
                        } else {
                            String[] v4_9 = v2_20.getHeaderField("Location");
                            if (!android.text.TextUtils.isEmpty(v4_9)) {
                                int v5_4 = new java.net.URL(v4_9);
                                String[] v4_10 = (v6_1 + 1);
                                if (v4_10 > 5) {
                                    break;
                                }
                                v8_1.zzj(v12_0);
                                v2_20.disconnect();
                                if (p21 != null) {
                                    p21.zzMN.zzik();
                                }
                                v6_1 = v4_10;
                                v7_0 = v5_4;
                            } else {
                                com.google.android.gms.internal.zzjw.zzaW("No location header to follow redirect.");
                                com.google.android.gms.ads.internal.request.AdResponseParcel v3_12 = new com.google.android.gms.ads.internal.request.AdResponseParcel(0);
                                v2_20.disconnect();
                                if (p21 != null) {
                                    p21.zzMN.zzik();
                                }
                                v2_3 = v3_12;
                            }
                        }
                    } else {
                        String[] v6_2 = v7_0.toString();
                        String[] v4_14 = new java.io.InputStreamReader(v2_20.getInputStream());
                        try {
                            int v5_7 = com.google.android.gms.ads.internal.zzu.zzck().zza(v4_14);
                        } catch (com.google.android.gms.ads.internal.request.AdResponseParcel v3_13) {
                            com.google.android.gms.common.util.zzo.zzb(v4_14);
                            throw v3_13;
                        }
                        com.google.android.gms.common.util.zzo.zzb(v4_14);
                        com.google.android.gms.internal.zzii.zza(v6_2, v12_0, v5_7, v9_0);
                        v8_1.zzb(v6_2, v12_0, v5_7);
                        if (p20 != null) {
                            String[] v4_17 = new String[1];
                            v4_17[0] = "ufe";
                            p20.zza(v3_14, v4_17);
                        }
                        com.google.android.gms.ads.internal.request.AdResponseParcel v3_16 = v8_1.zzj(v10);
                        v2_20.disconnect();
                        if (p21 != null) {
                            p21.zzMN.zzik();
                        }
                        v2_3 = v3_16;
                    }
                }
                com.google.android.gms.internal.zzjw.zzaW("Too many redirects.");
                com.google.android.gms.ads.internal.request.AdResponseParcel v3_9 = new com.google.android.gms.ads.internal.request.AdResponseParcel(0);
                v2_20.disconnect();
                if (p21 != null) {
                    p21.zzMN.zzik();
                }
                v2_3 = v3_9;
            } else {
                v3_14 = p20.zzeA();
            }
        } catch (com.google.android.gms.ads.internal.request.AdResponseParcel v2_12) {
            com.google.android.gms.ads.internal.request.AdResponseParcel v2_14 = String.valueOf(v2_12.getMessage());
            if (v2_14.length() == 0) {
                com.google.android.gms.ads.internal.request.AdResponseParcel v2_16 = new String("Error while connecting to ad server: ");
            } else {
                v2_16 = "Error while connecting to ad server: ".concat(v2_14);
            }
            com.google.android.gms.internal.zzjw.zzaW(v2_16);
            v2_3 = new com.google.android.gms.ads.internal.request.AdResponseParcel(2);
        }
        return v2_3;
    }

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


    public boolean zzY(String p27)
    {
        com.google.android.gms.internal.zzex v2_30;
        if (this.zzCK != null) {
            while (this.zzff() > ((Integer) com.google.android.gms.internal.zzcu.zzxn.get()).intValue()) {
                if (!this.zzfg()) {
                    com.google.android.gms.internal.zzjw.zzaW("Unable to expire stream cache");
                    this.zza(p27, 0, "expireFailed", 0);
                    v2_30 = 0;
                }
            }
            java.io.File v12_1 = new java.io.File(this.zzCK, this.zzZ(p27));
            java.io.File v13 = this.zzb(v12_1);
            if ((!v12_1.isFile()) || (!v13.isFile())) {
                String v8;
                String v3_23 = String.valueOf(this.zzCK.getAbsolutePath());
                com.google.android.gms.internal.zzex v2_66 = String.valueOf(p27);
                if (v2_66.length() == 0) {
                    v8 = new String(v3_23);
                } else {
                    v8 = v3_23.concat(v2_66);
                }
                try {
                    if (!com.google.android.gms.internal.zzex.zzCI.contains(v8)) {
                        com.google.android.gms.internal.zzex.zzCI.add(v8);
                        String v5_6 = 0;
                        String v3_12;
                        String v4_7;
                        String v3_34 = new java.net.URL(p27).openConnection();
                        com.google.android.gms.internal.zzex v2_115 = ((Integer) com.google.android.gms.internal.zzcu.zzxs.get()).intValue();
                        v3_34.setConnectTimeout(v2_115);
                        v3_34.setReadTimeout(v2_115);
                        if ((v3_34 instanceof java.net.HttpURLConnection)) {
                            com.google.android.gms.internal.zzex v2_119 = ((java.net.HttpURLConnection) v3_34).getResponseCode();
                            if (v2_119 >= 400) {
                                v4_7 = "badUrl";
                                try {
                                    String v3_28 = String.valueOf(Integer.toString(v2_119));
                                } catch (com.google.android.gms.internal.zzex v2_48) {
                                    v3_12 = 0;
                                    if ((v2_48 instanceof RuntimeException)) {
                                        com.google.android.gms.ads.internal.zzu.zzcn().zzb(v2_48, 1);
                                    }
                                    try {
                                        v5_6.close();
                                    } catch (String v5) {
                                    } catch (String v5) {
                                    }
                                    if (!this.zzCL) {
                                        com.google.android.gms.internal.zzjw.zzd(new StringBuilder((String.valueOf(p27).length() + 25)).append("Preload failed for URL \"").append(p27).append("\"").toString(), v2_48);
                                    } else {
                                        com.google.android.gms.internal.zzjw.zzaV(new StringBuilder((String.valueOf(p27).length() + 26)).append("Preload aborted for URL \"").append(p27).append("\"").toString());
                                    }
                                    if (v12_1.exists()) {
                                        if (!v12_1.delete()) {
                                            com.google.android.gms.internal.zzex v2_88 = String.valueOf(v12_1.getAbsolutePath());
                                            if (v2_88.length() == 0) {
                                                com.google.android.gms.internal.zzex v2_90 = new String("Could not delete partial cache file at ");
                                            } else {
                                                v2_90 = "Could not delete partial cache file at ".concat(v2_88);
                                            }
                                            com.google.android.gms.internal.zzjw.zzaW(v2_90);
                                        }
                                    }
                                    this.zza(p27, v12_1.getAbsolutePath(), v4_7, v3_12);
                                    com.google.android.gms.internal.zzex.zzCI.remove(v8);
                                    v2_30 = 0;
                                    return v2_30;
                                } catch (com.google.android.gms.internal.zzex v2_48) {
                                    v3_12 = 0;
                                }
                                if (v3_28.length() == 0) {
                                    v3_12 = new String("HTTP request failed. Code: ");
                                } else {
                                    v3_12 = "HTTP request failed. Code: ".concat(v3_28);
                                }
                                try {
                                    throw new java.io.IOException(new StringBuilder((String.valueOf(p27).length() + 32)).append("HTTP status code ").append(v2_119).append(" at ").append(p27).toString());
                                } catch (com.google.android.gms.internal.zzex v2_48) {
                                } catch (com.google.android.gms.internal.zzex v2_48) {
                                }
                            }
                        }
                        int v6_16 = v3_34.getContentLength();
                        if (v6_16 >= 0) {
                            String v4_19 = com.google.android.gms.internal.zzex.zzCJ.format(((long) v6_16));
                            int v14_1 = ((Integer) com.google.android.gms.internal.zzcu.zzxo.get()).intValue();
                            if (v6_16 <= v14_1) {
                                com.google.android.gms.internal.zzjw.zzaU(new StringBuilder(((String.valueOf(v4_19).length() + 20) + String.valueOf(p27).length())).append("Caching ").append(v4_19).append(" bytes from ").append(p27).toString());
                                java.nio.channels.ReadableByteChannel v15 = java.nio.channels.Channels.newChannel(v3_34.getInputStream());
                                java.io.FileOutputStream v11_1 = new java.io.FileOutputStream(v12_1);
                                try {
                                    java.nio.channels.FileChannel v16 = v11_1.getChannel();
                                    java.nio.ByteBuffer v17 = java.nio.ByteBuffer.allocate(1048576);
                                    com.google.android.gms.common.util.zze v18 = com.google.android.gms.ads.internal.zzu.zzco();
                                    String v5_0 = 0;
                                    long v20 = v18.currentTimeMillis();
                                    com.google.android.gms.internal.zzkk v19 = new com.google.android.gms.internal.zzkk;
                                    v19(((Long) com.google.android.gms.internal.zzcu.zzxr.get()).longValue());
                                    long v22 = ((Long) com.google.android.gms.internal.zzcu.zzxq.get()).longValue();
                                } catch (com.google.android.gms.internal.zzex v2_48) {
                                    v3_12 = 0;
                                    v4_7 = "error";
                                    v5_6 = v11_1;
                                }
                                do {
                                    com.google.android.gms.internal.zzex v2_18 = v15.read(v17);
                                    if (v2_18 < null) {
                                        v11_1.close();
                                        if (com.google.android.gms.internal.zzjw.zzX(3)) {
                                            com.google.android.gms.internal.zzex v2_22 = com.google.android.gms.internal.zzex.zzCJ.format(((long) v5_0));
                                            com.google.android.gms.internal.zzjw.zzaU(new StringBuilder(((String.valueOf(v2_22).length() + 22) + String.valueOf(p27).length())).append("Preloaded ").append(v2_22).append(" bytes from ").append(p27).toString());
                                        }
                                        v12_1.setReadable(1, 0);
                                        com.google.android.gms.internal.zzex.zzc(v13);
                                        this.zza(p27, v12_1.getAbsolutePath(), v5_0);
                                        com.google.android.gms.internal.zzex.zzCI.remove(v8);
                                        v2_30 = 1;
                                    } else {
                                        v5_0 += v2_18;
                                        try {
                                            if (v5_0 <= v14_1) {
                                                v17.flip();
                                                while (v16.write(v17) > 0) {
                                                }
                                                v17.clear();
                                                if ((v18.currentTimeMillis() - v20) <= (1000 * v22)) {
                                                    if (!this.zzCL) {
                                                    } else {
                                                        v4_7 = "externalAbort";
                                                        throw new java.io.IOException("abort requested");
                                                    }
                                                } else {
                                                    v4_7 = "downloadTimeout";
                                                    com.google.android.gms.internal.zzex v2_42 = String.valueOf(Long.toString(v22));
                                                    v3_12 = new StringBuilder((String.valueOf(v2_42).length() + 29)).append("Timeout exceeded. Limit: ").append(v2_42).append(" sec").toString();
                                                    throw new java.io.IOException("stream cache time limit exceeded");
                                                }
                                            } else {
                                                v4_7 = "sizeExceeded";
                                                String v3_14 = String.valueOf(Integer.toString(v5_0));
                                                if (v3_14.length() == 0) {
                                                    v3_12 = new String("File too big for full file cache. Size: ");
                                                } else {
                                                    v3_12 = "File too big for full file cache. Size: ".concat(v3_14);
                                                }
                                                throw new java.io.IOException("stream cache file size limit exceeded");
                                            }
                                        } catch (com.google.android.gms.internal.zzex v2_48) {
                                            v3_12 = 0;
                                            v5_6 = v11_1;
                                        } catch (com.google.android.gms.internal.zzex v2_48) {
                                            v3_12 = 0;
                                            v5_6 = v11_1;
                                        } catch (com.google.android.gms.internal.zzex v2_48) {
                                            v5_6 = v11_1;
                                        } catch (com.google.android.gms.internal.zzex v2_48) {
                                            v5_6 = v11_1;
                                        }
                                    }
                                } while(!v19.tryAcquire());
                                this.zza(p27, v12_1.getAbsolutePath(), v5_0, v6_16, 0);
                            } else {
                                com.google.android.gms.internal.zzex v2_63;
                                com.google.android.gms.internal.zzjw.zzaW(new StringBuilder(((String.valueOf(v4_19).length() + 33) + String.valueOf(p27).length())).append("Content length ").append(v4_19).append(" exceeds limit at ").append(p27).toString());
                                com.google.android.gms.internal.zzex v2_61 = String.valueOf(v4_19);
                                if (v2_61.length() == 0) {
                                    v2_63 = new String("File too big for full file cache. Size: ");
                                } else {
                                    v2_63 = "File too big for full file cache. Size: ".concat(v2_61);
                                }
                                this.zza(p27, v12_1.getAbsolutePath(), "sizeExceeded", v2_63);
                                com.google.android.gms.internal.zzex.zzCI.remove(v8);
                                v2_30 = 0;
                            }
                        } else {
                            com.google.android.gms.internal.zzex v2_68;
                            com.google.android.gms.internal.zzex v2_65 = String.valueOf(p27);
                            if (v2_65.length() == 0) {
                                v2_68 = new String("Stream cache aborted, missing content-length header at ");
                            } else {
                                v2_68 = "Stream cache aborted, missing content-length header at ".concat(v2_65);
                            }
                            com.google.android.gms.internal.zzjw.zzaW(v2_68);
                            this.zza(p27, v12_1.getAbsolutePath(), "contentLengthMissing", 0);
                            com.google.android.gms.internal.zzex.zzCI.remove(v8);
                            v2_30 = 0;
                        }
                    } else {
                        com.google.android.gms.internal.zzex v2_96;
                        com.google.android.gms.internal.zzex v2_94 = String.valueOf(p27);
                        if (v2_94.length() == 0) {
                            v2_96 = new String("Stream cache already in progress at ");
                        } else {
                            v2_96 = "Stream cache already in progress at ".concat(v2_94);
                        }
                        com.google.android.gms.internal.zzjw.zzaW(v2_96);
                        this.zza(p27, v12_1.getAbsolutePath(), "inProgress", 0);
                        v2_30 = 0;
                    }
                } catch (com.google.android.gms.internal.zzex v2_100) {
                    throw v2_100;
                }
            } else {
                com.google.android.gms.internal.zzex v2_104;
                String v3_31 = ((int) v12_1.length());
                com.google.android.gms.internal.zzex v2_102 = String.valueOf(p27);
                if (v2_102.length() == 0) {
                    v2_104 = new String("Stream cache hit at ");
                } else {
                    v2_104 = "Stream cache hit at ".concat(v2_102);
                }
                com.google.android.gms.internal.zzjw.zzaU(v2_104);
                this.zza(p27, v12_1.getAbsolutePath(), v3_31);
                v2_30 = 1;
            }
        } else {
            this.zza(p27, 0, "noCacheDir", 0);
            v2_30 = 0;
        }
        return v2_30;
    }

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


    protected com.google.android.gms.internal.zzei$zzb zzc(org.json.JSONObject p10)
    {
        String v3 = p10.optString("http_request_id");
        int v2_2 = p10.optString("url");
        String v4 = p10.optString("post_body", 0);
        try {
            int v0_2 = new java.net.URL(v2_2);
        } catch (int v0_3) {
            com.google.android.gms.internal.zzjw.zzb("Error constructing http request.", v0_3);
            v0_2 = 0;
        }
        java.util.ArrayList v5_1 = new java.util.ArrayList();
        com.google.android.gms.internal.zzei$zzb v1_2 = p10.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.zzei$zza(v6_1.optString("key"), v6_1.optString("value")));
            }
            v2_1++;
        }
        return new com.google.android.gms.internal.zzei$zzb(v3, v0_2, v5_1, v4);
    }

Method com.google.android.gms.internal.zzalu$10.zzv() calling method java.net.URL.<init>()


    public java.net.URL zzv(com.google.android.gms.internal.zzalw p4)
    {
        java.net.URL v0_0 = 0;
        if (p4.zzWa() != com.google.android.gms.internal.zzalx.zzbZG) {
            String v1_1 = p4.nextString();
            if (!"null".equals(v1_1)) {
                v0_0 = new java.net.URL(v1_1);
            }
        } else {
            p4.nextNull();
        }
        return v0_0;
    }

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


    java.net.HttpURLConnection zzhp(String p3)
    {
        java.net.HttpURLConnection v0_3 = ((java.net.HttpURLConnection) new java.net.URL(p3).openConnection());
        v0_3.setReadTimeout(20000);
        v0_3.setConnectTimeout(20000);
        return v0_3;
    }

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


    java.net.HttpURLConnection zzhp(String p3)
    {
        java.net.HttpURLConnection v0_3 = ((java.net.HttpURLConnection) new java.net.URL(p3).openConnection());
        v0_3.setReadTimeout(20000);
        v0_3.setConnectTimeout(20000);
        return v0_3;
    }

Method com.google.android.gms.analytics.internal.zzah.zzoe() calling method java.net.URL.<init>()


    private java.net.URL zzoe()
    {
        int v0_3;
        String v1_3 = String.valueOf(this.zzlS().zznk());
        int v0_1 = String.valueOf(this.zzlS().zznn());
        if (v0_1.length() == 0) {
            v0_3 = new String(v1_3);
        } else {
            v0_3 = v1_3.concat(v0_1);
        }
        try {
            int v0_4 = new java.net.URL(v0_3);
        } catch (int v0_5) {
            this.zze("Error trying to parse the hardcoded host url", v0_5);
            v0_4 = 0;
        }
        return v0_4;
    }

Method com.google.android.gms.analytics.internal.zzah.zzh() calling method java.net.URL.<init>()


    private java.net.URL zzh(com.google.android.gms.analytics.internal.zzab p4)
    {
        String v1_0;
        if (!p4.zznV()) {
            int v0_5;
            String v1_3 = String.valueOf(this.zzlS().zznl());
            int v0_3 = String.valueOf(this.zzlS().zznm());
            if (v0_3.length() == 0) {
                v0_5 = new String(v1_3);
            } else {
                v0_5 = v1_3.concat(v0_3);
            }
            v1_0 = v0_5;
        } else {
            int v0_12;
            String v1_1 = String.valueOf(this.zzlS().zznk());
            int v0_10 = String.valueOf(this.zzlS().zznm());
            if (v0_10.length() == 0) {
                v0_12 = new String(v1_1);
            } else {
                v0_12 = v1_1.concat(v0_10);
            }
            v1_0 = v0_12;
        }
        try {
            int v0_15 = new java.net.URL(v1_0);
        } catch (int v0_16) {
            this.zze("Error trying to parse the hardcoded host url", v0_16);
            v0_15 = 0;
        }
        return v0_15;
    }

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


    private java.net.URL zzb(com.google.android.gms.analytics.internal.zzab p6, String p7)
    {
        String v1_4;
        if (!p6.zznV()) {
            int v0_14 = String.valueOf(this.zzlS().zznl());
            String v1_2 = String.valueOf(this.zzlS().zznm());
            v1_4 = new StringBuilder((((String.valueOf(v0_14).length() + 1) + String.valueOf(v1_2).length()) + String.valueOf(p7).length())).append(v0_14).append(v1_2).append("?").append(p7).toString();
        } else {
            int v0_9 = String.valueOf(this.zzlS().zznk());
            String v1_7 = String.valueOf(this.zzlS().zznm());
            v1_4 = new StringBuilder((((String.valueOf(v0_9).length() + 1) + String.valueOf(v1_7).length()) + String.valueOf(p7).length())).append(v0_9).append(v1_7).append("?").append(p7).toString();
        }
        try {
            int v0_18 = new java.net.URL(v1_4);
        } catch (int v0_19) {
            this.zze("Error trying to parse the hardcoded host url", v0_19);
            v0_18 = 0;
        }
        return v0_18;
    }

Method com.google.android.gms.ads.internal.util.client.zzc.zzaQ() calling method java.net.URL.<init>()


    public void zzaQ(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.ads.internal.util.client.zzb.zzaW(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.ads.internal.util.client.zzb.zzaW(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.ads.internal.util.client.zzb.zzaW(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.ads.internal.util.client.zzb.zzaU(v0_16);
        java.net.HttpURLConnection v0_10 = ((java.net.HttpURLConnection) new java.net.URL(p5).openConnection());
        try {
            com.google.android.gms.ads.internal.client.zzm.zzdQ().zza(1, v0_10, this.zzCy);
            String v1_10 = v0_10.getResponseCode();
        } catch (String v1_15) {
            v0_10.disconnect();
            throw v1_15;
        }
        if ((v1_10 < 200) || (v1_10 >= 300)) {
            com.google.android.gms.ads.internal.util.client.zzb.zzaW(new StringBuilder((String.valueOf(p5).length() + 65)).append("Received non-success response code ").append(v1_10).append(" from pinging URL: ").append(p5).toString());
        }
        v0_10.disconnect();
        return;
    }

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.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.GraphRequest.toHttpConnection() calling method java.net.URL.<init>()


    public static java.net.HttpURLConnection toHttpConnection(com.facebook.GraphRequestBatch 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_2) {
                throw new com.facebook.FacebookException("could not construct request body", v1_2);
            } catch (org.json.JSONException v1_1) {
                throw new com.facebook.FacebookException("could not construct request body", 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.deniz.dijitaldeniz.helper.AppMethods.getBitmapFromURL() calling method java.net.URL.<init>()


    public static android.graphics.Bitmap getBitmapFromURL(String p8)
    {
        try {
            java.net.HttpURLConnection v1_1 = ((java.net.HttpURLConnection) new java.net.URL(p8).openConnection());
            v1_1.setDoInput(1);
            v1_1.connect();
            java.io.InputStream v4 = v1_1.getInputStream();
            android.graphics.BitmapFactory$Options v0_1 = new android.graphics.BitmapFactory$Options();
            v0_1.inSampleSize = 1;
            int v3 = android.graphics.BitmapFactory.decodeStream(v4, 0, v0_1);
            v4.close();
        } catch (java.io.IOException v2) {
            v2.printStackTrace();
            v3 = 0;
        }
        return v3;
    }

Method com.deniz.dijitaldeniz.helper.AppMethods.getBitmapFromProtectedURL() calling method java.net.URL.<init>()


    public static android.graphics.Bitmap getBitmapFromProtectedURL(String p12)
    {
        try {
            java.net.HttpURLConnection v2_1 = ((java.net.HttpURLConnection) new java.net.URL(p12).openConnection());
            v2_1.setRequestProperty("Authorization", new StringBuilder().append("Basic ").append(android.util.Base64.encodeToString("denizbank:dnz_2015_mgc".getBytes(), 0)).toString());
            v2_1.setRequestMethod("POST");
            v2_1.setUseCaches(0);
            v2_1.setDoOutput(1);
            v2_1.setDoInput(1);
            v2_1.connect();
            java.io.InputStream v5 = v2_1.getInputStream();
            android.graphics.BitmapFactory$Options v1_1 = new android.graphics.BitmapFactory$Options();
            v1_1.inSampleSize = 1;
            int v4 = android.graphics.BitmapFactory.decodeStream(v5, 0, v1_1);
            v5.close();
        } catch (java.io.IOException v3) {
            v3.printStackTrace();
            v4 = 0;
        }
        return v4;
    }

Method com.android.volley.toolbox.HurlStack.performRequest() calling method java.net.URL.<init>()


    public org.apache.http.HttpResponse performRequest(com.android.volley.Request p19, java.util.Map p20)
    {
        String v14 = p19.getUrl();
        java.util.HashMap v7_1 = new java.util.HashMap();
        v7_1.putAll(p19.getHeaders());
        v7_1.putAll(p20);
        if (this.mUrlRewriter != null) {
            String v13 = this.mUrlRewriter.rewriteUrl(v14);
            if (v13 != null) {
                v14 = v13;
            } else {
                throw new java.io.IOException(new StringBuilder().append("URL blocked by rewriter: ").append(v14).toString());
            }
        }
        java.net.HttpURLConnection v2 = this.openConnection(new java.net.URL(v14), p19);
        if (!android.text.TextUtils.isEmpty(this.mUserAgent)) {
            v2.setRequestProperty("User-Agent", this.mUserAgent);
        }
        java.util.Iterator v6_0 = v7_1.keySet().iterator();
        while (v6_0.hasNext()) {
            String v5_1 = ((String) v6_0.next());
            v2.addRequestProperty(v5_1, ((String) v7_1.get(v5_1)));
        }
        if (!(p19 instanceof com.android.volley.request.MultiPartRequest)) {
            com.android.volley.toolbox.HurlStack.setConnectionParametersForRequest(v2, p19);
        } else {
            com.android.volley.toolbox.HurlStack.setConnectionParametersForMultipartRequest(v2, p19);
        }
        org.apache.http.ProtocolVersion v9_1 = new org.apache.http.ProtocolVersion("HTTP", 1, 1);
        if (v2.getResponseCode() != -1) {
            org.apache.http.message.BasicHttpResponse v10_1 = new org.apache.http.message.BasicHttpResponse(new org.apache.http.message.BasicStatusLine(v9_1, v2.getResponseCode(), v2.getResponseMessage()));
            v10_1.setEntity(com.android.volley.toolbox.HurlStack.entityFromConnection(v2));
            java.util.Iterator v6_1 = v2.getHeaderFields().entrySet().iterator();
            while (v6_1.hasNext()) {
                java.util.Map$Entry v4_1 = ((java.util.Map$Entry) v6_1.next());
                if (v4_1.getKey() != null) {
                    v10_1.addHeader(new org.apache.http.message.BasicHeader(((String) v4_1.getKey()), ((String) ((java.util.List) v4_1.getValue()).get(0))));
                }
            }
            return v10_1;
        } else {
            throw new java.io.IOException("Could not retrieve response code from HttpUrlConnection.");
        }
    }

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;
    }