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 com.google.android.gms.internal.zzapq.zzlQ() calling method java.net.URL.<init>()


    private final java.net.URL zzlQ()
    {
        int v0_1;
        int v0_4 = String.valueOf(com.google.android.gms.internal.zzaow.zzlt());
        String v1_8 = String.valueOf(((String) com.google.android.gms.internal.zzape.zzahz.get()));
        if (v1_8.length() == 0) {
            v0_1 = new String(v0_4);
        } else {
            v0_1 = v0_4.concat(v1_8);
        }
        try {
            return new java.net.URL(v0_1);
        } catch (int v0_2) {
            this.zze("Error trying to parse the hardcoded host url", v0_2);
            return 0;
        }
    }

Method org.androidannotations.api.ViewServer.run() calling method java.net.ServerSocket.<init>()


    public void run()
    {
        try {
            this.mServer = new java.net.ServerSocket(this.mPort, 10, java.net.InetAddress.getLocalHost());
        } catch (java.io.IOException v0_8) {
            android.util.Log.w("ViewServer", "Starting ServerSocket error: ", v0_8);
        }
        while ((this.mServer != null) && (Thread.currentThread() == this.mThread)) {
            try {
                java.io.IOException v0_4 = this.mServer.accept();
            } catch (java.io.IOException v0_6) {
                android.util.Log.w("ViewServer", "Connection error: ", v0_6);
            }
            if (this.mThreadPool == null) {
                try {
                    v0_4.close();
                } catch (java.io.IOException v0_5) {
                    v0_5.printStackTrace();
                }
            } else {
                this.mThreadPool.submit(new org.androidannotations.api.ViewServer$ViewServerWorker(this, v0_4));
            }
        }
        return;
    }

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


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

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


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

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

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


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

Method com.facebook.imagepipeline.producers.HttpUrlConnectionNetworkFetcher.openConnectionTo() calling method java.net.URL.<init>()


    static java.net.HttpURLConnection openConnectionTo(android.net.Uri p1)
    {
        return ((java.net.HttpURLConnection) new java.net.URL(p1.toString()).openConnection());
    }

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


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

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


    public android.webkit.WebResourceResponse shouldInterceptRequest(android.webkit.WebView p5, String p6)
    {
        try {
            android.webkit.WebResourceResponse v0_8 = com.google.android.gms.internal.zzagl.zzb(p6, this.zzJK.getContext());
        } catch (java.io.InputStream v6_9) {
            com.google.android.gms.ads.internal.zzbs.zzbC().zza(v6_9, "AdWebViewClient.shouldInterceptRequest");
            return 0;
        }
        if (v0_8.equals(p6)) {
            java.io.InputStream v6_1 = com.google.android.gms.internal.zzia.zzB(p6);
            if (v6_1 != null) {
                java.io.InputStream v6_2 = com.google.android.gms.ads.internal.zzbs.zzbD().zza(v6_1);
                if (v6_2 != null) {
                    if (v6_2.zzcX()) {
                        return new android.webkit.WebResourceResponse("", "", v6_2.zzcY());
                    } else {
                    }
                }
                return 0;
            } else {
                return 0;
            }
        } else {
            java.io.InputStream v6_7 = ((java.net.HttpURLConnection) new java.net.URL(v0_8).openConnection());
            com.google.android.gms.ads.internal.zzbs.zzby().zza(this.zzJK.getContext(), this.zzJK.zziy().zzaS, 1, v6_7);
            return new android.webkit.WebResourceResponse(v6_7.getContentType(), v6_7.getHeaderField("encoding"), v6_7.getInputStream());
        }
    }

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


    private final void zzb(com.google.android.gms.internal.zzcfs p8)
    {
        this.zzwD().zzjB();
        if (!android.text.TextUtils.isEmpty(p8.getGmpAppId())) {
            String v0_3;
            String v0_11 = p8.getGmpAppId();
            com.google.android.gms.internal.zzcgz v1_0 = p8.getAppInstanceId();
            String v2_2 = new android.net.Uri$Builder();
            android.support.v4.util.ArrayMap v3_5 = v2_2.scheme(((String) com.google.android.gms.internal.zzcgn.zzbqd.get())).encodedAuthority(((String) com.google.android.gms.internal.zzcgn.zzbqe.get()));
            String v0_1 = String.valueOf(v0_11);
            if (v0_1.length() == 0) {
                v0_3 = new String("config/app/");
            } else {
                v0_3 = "config/app/".concat(v0_1);
            }
            v3_5.path(v0_3).appendQueryParameter("app_instance_id", v1_0).appendQueryParameter("platform", "android").appendQueryParameter("gmp_version", "11010");
            String v0_9 = v2_2.build().toString();
            try {
                com.google.android.gms.internal.zzcgz v1_5 = new java.net.URL(v0_9);
                this.zzwE().zzyB().zzj("Fetching remote configuration", p8.zzhk());
                String v2_6 = this.zzwB().zzei(p8.zzhk());
                android.support.v4.util.ArrayMap v3_11 = 0;
                String v4_7 = this.zzwB().zzej(p8.zzhk());
            } catch (java.net.MalformedURLException) {
                this.zzwE().zzyv().zze("Failed to parse config URL. Not fetching. appId", com.google.android.gms.internal.zzcgx.zzea(p8.zzhk()), v0_9);
                return;
            }
            if ((v2_6 != null) && (!android.text.TextUtils.isEmpty(v4_7))) {
                v3_11 = new android.support.v4.util.ArrayMap();
                v3_11.put("If-Modified-Since", v4_7);
            }
            this.zzbsY = 1;
            this.zzyS().zza(p8.zzhk(), v1_5, v3_11, new com.google.android.gms.internal.zzcib(this));
            return;
        } else {
            this.zzb(p8.zzhk(), 204, 0, 0, 0);
            return;
        }
    }

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


    public final void zzyY()
    {
        this.zzwD().zzjB();
        this.zzkC();
        this.zzbta = 1;
        try {
            com.google.android.gms.internal.zzcgz v0_6;
            String v2_11;
            com.google.android.gms.internal.zzcfy.zzxD();
            String v2_0 = this.zzwF().zzyG();
        } catch (com.google.android.gms.internal.zzcgz v0_9) {
            this.zzbta = 0;
            this.zzze();
            throw v0_9;
        }
        if (v2_0 != null) {
            if (!v2_0.booleanValue()) {
                if (this.zzbsX <= 0) {
                    String v2_9;
                    this.zzwD().zzjB();
                    if (this.zzbsS == null) {
                        v2_9 = 0;
                    } else {
                        v2_9 = 1;
                    }
                    if (v2_9 == null) {
                        if (this.zzyS().zzlP()) {
                            String v2_15 = this.zzvz.currentTimeMillis();
                            String v8 = 0;
                            this.zzg(0, (v2_15 - com.google.android.gms.internal.zzcfy.zzxO()));
                            String v6_13 = this.zzwF().zzbro.get();
                            if (v6_13 != 0) {
                                this.zzwE().zzyA().zzj("Uploading events. Elapsed time since last upload attempt (ms)", Long.valueOf(Math.abs((v2_15 - v6_13))));
                            }
                            long v4_4 = this.zzwy().zzyb();
                            if (android.text.TextUtils.isEmpty(v4_4)) {
                                this.zzbsW = -1;
                                com.google.android.gms.internal.zzcgz v0_12 = this.zzwy().zzaa((v2_15 - com.google.android.gms.internal.zzcfy.zzxO()));
                                if (android.text.TextUtils.isEmpty(v0_12)) {
                                    this.zzbta = 0;
                                    this.zzze();
                                    return;
                                } else {
                                    com.google.android.gms.internal.zzcgz v0_13 = this.zzwy().zzdR(v0_12);
                                    if (v0_13 == null) {
                                        this.zzbta = 0;
                                        this.zzze();
                                        return;
                                    } else {
                                        this.zzb(v0_13);
                                        this.zzbta = 0;
                                        this.zzze();
                                        return;
                                    }
                                }
                            } else {
                                if (this.zzbsW == -1) {
                                    this.zzbsW = this.zzwy().zzyi();
                                }
                                String v5_0 = this.zzwy().zzl(v4_4, this.zzbsr.zzb(v4_4, com.google.android.gms.internal.zzcgn.zzbqf), Math.max(0, this.zzbsr.zzb(v4_4, com.google.android.gms.internal.zzcgn.zzbqg)));
                                if (v5_0.isEmpty()) {
                                    this.zzbta = 0;
                                    this.zzze();
                                    return;
                                } else {
                                    String v6_3 = v5_0.iterator();
                                    while (v6_3.hasNext()) {
                                        Integer v7_6 = ((com.google.android.gms.internal.zzcll) ((android.util.Pair) v6_3.next()).first);
                                        if (!android.text.TextUtils.isEmpty(v7_6.zzbvV)) {
                                            String v6_4 = v7_6.zzbvV;
                                        }
                                        if (v6_4 != null) {
                                            Integer v7_7 = 0;
                                            while (v7_7 < v5_0.size()) {
                                                com.google.android.gms.internal.zzchb v9_6 = ((com.google.android.gms.internal.zzcll) ((android.util.Pair) v5_0.get(v7_7)).first);
                                                if ((android.text.TextUtils.isEmpty(v9_6.zzbvV)) || (v9_6.zzbvV.equals(v6_4))) {
                                                    v7_7++;
                                                } else {
                                                    v5_0 = v5_0.subList(0, v7_7);
                                                    break;
                                                }
                                            }
                                        }
                                        com.google.android.gms.internal.zzchb v9_13;
                                        String v6_6 = new com.google.android.gms.internal.zzclk();
                                        Integer v7_9 = new com.google.android.gms.internal.zzcll[v5_0.size()];
                                        v6_6.zzbvF = v7_9;
                                        Integer v7_11 = new java.util.ArrayList(v5_0.size());
                                        if ((!com.google.android.gms.internal.zzcfy.zzya()) || (!this.zzbsr.zzdP(v4_4))) {
                                            v9_13 = 0;
                                        } else {
                                            v9_13 = 1;
                                        }
                                        long v10_2 = 0;
                                        while (v10_2 < v6_6.zzbvF.length) {
                                            v6_6.zzbvF[v10_2] = ((com.google.android.gms.internal.zzcll) ((android.util.Pair) v5_0.get(v10_2)).first);
                                            v7_11.add(((Long) ((android.util.Pair) v5_0.get(v10_2)).second));
                                            v6_6.zzbvF[v10_2].zzbvU = Long.valueOf(com.google.android.gms.internal.zzcfy.zzwO());
                                            v6_6.zzbvF[v10_2].zzbvK = Long.valueOf(v2_15);
                                            v6_6.zzbvF[v10_2].zzbwa = Boolean.valueOf(com.google.android.gms.internal.zzcfy.zzxD());
                                            if (v9_13 == null) {
                                                v6_6.zzbvF[v10_2].zzbwh = 0;
                                            }
                                            v10_2++;
                                        }
                                        if (this.zzwE().zzz(2)) {
                                            v8 = this.zzwz().zza(v6_6);
                                        }
                                        byte[] v12_0 = this.zzwA().zzb(v6_6);
                                        String v5_5 = com.google.android.gms.internal.zzcfy.zzxN();
                                        java.net.URL v11_3 = new java.net.URL(v5_5);
                                        com.google.android.gms.common.internal.zzbr.zzaf((v7_11.isEmpty() ^ 1));
                                        if (this.zzbsS == null) {
                                            this.zzbsS = new java.util.ArrayList(v7_11);
                                        } else {
                                            this.zzwE().zzyv().log("Set uploading progress before finishing the previous upload");
                                        }
                                        this.zzwF().zzbrp.set(v2_15);
                                        String v2_3 = "?";
                                        if (v6_6.zzbvF.length > 0) {
                                            v2_3 = v6_6.zzbvF[0].zzaK;
                                        }
                                        this.zzwE().zzyB().zzd("Uploading data. app, uncompressed size, data", v2_3, Integer.valueOf(v12_0.length), v8);
                                        this.zzbsZ = 1;
                                        this.zzyS().zza(v4_4, v11_3, v12_0, 0, new com.google.android.gms.internal.zzcia(this));
                                        this.zzbta = 0;
                                        this.zzze();
                                        return;
                                    }
                                    v6_4 = 0;
                                }
                            }
                        } else {
                            this.zzwE().zzyB().log("Network not connected, ignoring upload request");
                        }
                    } else {
                        v0_6 = this.zzwE().zzyB();
                        v2_11 = "Uploading requested multiple times";
                        v0_6.log(v2_11);
                        this.zzbta = 0;
                        this.zzze();
                        return;
                    }
                }
                this.zzza();
            } else {
                v0_6 = this.zzwE().zzyv();
                v2_11 = "Upload called in the client side when service should be used";
            }
        } else {
            v0_6 = this.zzwE().zzyx();
            v2_11 = "Upload data called on the client side before use of service was decided";
        }
        this.zzbta = 0;
        this.zzze();
        return;
    }

Method com.keabis.dtss.curia.utils.NotificationUtils.getBitmapFromURL() calling method java.net.URL.<init>()


    public android.graphics.Bitmap getBitmapFromURL(String p2)
    {
        try {
            int v2_5 = ((java.net.HttpURLConnection) new java.net.URL(p2).openConnection());
            v2_5.setDoInput(1);
            v2_5.connect();
            return android.graphics.BitmapFactory.decodeStream(v2_5.getInputStream());
        } catch (int v2_2) {
            v2_2.printStackTrace();
            return 0;
        }
    }

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


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

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


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

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

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


    private static java.net.URL zzd(com.google.android.gms.internal.zzcwi p1)
    {
        try {
            return new java.net.URL(p1.zzBm());
        } catch (java.net.MalformedURLException) {
            com.google.android.gms.internal.zzcww.e("Error trying to parse the GTM url.");
            return 0;
        }
    }

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 p8)
    {
        String v0_1 = p8.optString("http_request_id");
        java.util.ArrayList v1_4 = p8.optString("url");
        String v2_1 = p8.optString("post_body", 0);
        try {
            java.net.URL v3_0 = new java.net.URL(v1_4);
        } catch (java.util.ArrayList v1_0) {
            com.google.android.gms.internal.zzahd.zzb("Error constructing http request.", v1_0);
        }
        java.util.ArrayList v1_2 = new java.util.ArrayList();
        com.google.android.gms.internal.zzri v8_1 = p8.optJSONArray("headers");
        if (v8_1 == null) {
            v8_1 = new org.json.JSONArray();
        }
        int v4_4 = 0;
        while (v4_4 < v8_1.length()) {
            String v5_1 = v8_1.optJSONObject(v4_4);
            if (v5_1 != null) {
                v1_2.add(new com.google.android.gms.internal.zzrh(v5_1.optString("key"), v5_1.optString("value")));
            }
            v4_4++;
        }
        return new com.google.android.gms.internal.zzri(v0_1, v3_0, v1_2, v2_1);
    }

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


    private static java.net.URL zzd(com.google.android.gms.tagmanager.zzbx p1)
    {
        try {
            return new java.net.URL(p1.zzBm());
        } catch (java.net.MalformedURLException) {
            com.google.android.gms.tagmanager.zzdi.e("Error trying to parse the GTM url.");
            return 0;
        }
    }

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 p4)
    {
        java.net.URL v2_1 = 0;
        if (p4.peek() != com.google.gson.stream.JsonToken.NULL) {
            String v4_1 = p4.nextString();
            if (!"null".equals(v4_1)) {
                v2_1 = new java.net.URL(v4_1);
            }
            return v2_1;
        } else {
            p4.nextNull();
            return 0;
        }
    }

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


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

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


    public static com.google.android.gms.internal.zzabu zza(com.google.android.gms.internal.zzabq p18, android.content.Context p19, String p20, String p21, String p22, com.google.android.gms.internal.zzadm p23, com.google.android.gms.internal.zznb p24, com.google.android.gms.internal.zzacx p25)
    {
        int v3;
        com.google.android.gms.internal.zzabq v0_0 = p18;
        if (p24 == null) {
            v3 = 0;
        } else {
            v3 = p24.zzdR();
        }
        try {
            java.net.URL v5_5;
            com.google.android.gms.internal.zzadk v4_1 = new com.google.android.gms.internal.zzadk(p18, p23.zzgH());
            long v6_0 = String.valueOf(p21);
        } catch (com.google.android.gms.internal.zzabq v0_24) {
            com.google.android.gms.internal.zzabq v0_26 = String.valueOf(v0_24.getMessage());
            if (v0_26.length() == 0) {
                com.google.android.gms.internal.zzabq v0_28 = new String("Error while connecting to ad server: ");
            } else {
                v0_28 = "Error while connecting to ad server: ".concat(v0_26);
            }
            com.google.android.gms.internal.zzahd.zzaT(v0_28);
            return new com.google.android.gms.internal.zzabu(2);
        }
        if (v6_0.length() == 0) {
            v5_5 = new String("AdRequestServiceImpl: Sending request: ");
        } else {
            v5_5 = "AdRequestServiceImpl: Sending request: ".concat(v6_0);
        }
        com.google.android.gms.internal.zzahd.zzaC(v5_5);
        java.net.URL v5_2 = new java.net.URL(p21);
        long v6_5 = com.google.android.gms.ads.internal.zzbs.zzbE().elapsedRealtime();
        int v8_0 = 0;
        int v9_0 = 0;
        while(true) {
            java.net.HttpURLConnection v10_1 = ((java.net.HttpURLConnection) v5_2.openConnection());
            com.google.android.gms.ads.internal.zzbs.zzby().zza(p19, p20, v8_0, v10_1);
            if ((android.text.TextUtils.isEmpty(p22)) || (!p23.zzgJ())) {
            } else {
                v10_1.addRequestProperty("x-afma-drt-cookie", p22);
            }
            int v11_4 = v0_0.zzSY;
            if (!android.text.TextUtils.isEmpty(v11_4)) {
                com.google.android.gms.internal.zzahd.zzaC("Sending webview cookie in ad request header.");
                v10_1.addRequestProperty("Cookie", v11_4);
            }
            if ((p23 != null) && (!android.text.TextUtils.isEmpty(p23.zzgI()))) {
                v10_1.setDoOutput(1);
                int v11_6 = p23.zzgI().getBytes();
                v10_1.setFixedLengthStreamingMode(v11_6.length);
                int v8_3 = new java.io.BufferedOutputStream(v10_1.getOutputStream());
                v8_3.write(v11_6);
                com.google.android.gms.common.util.zzp.closeQuietly(v8_3);
            }
            com.google.android.gms.internal.zzmm v2_4 = v10_1.getResponseCode();
            int v8_4 = v10_1.getHeaderFields();
            if ((v2_4 >= 200) && (v2_4 < 300)) {
                break;
            }
            com.google.android.gms.internal.zzacy.zza(v5_2.toString(), v8_4, 0, v2_4);
            if ((v2_4 < 300) || (v2_4 >= 400)) {
                int v1_1 = new StringBuilder(46);
                v1_1.append("Received error HTTP response code: ");
                v1_1.append(v2_4);
                com.google.android.gms.internal.zzahd.zzaT(v1_1.toString());
                com.google.android.gms.internal.zzabq v0_4 = new com.google.android.gms.internal.zzabu(0);
                v10_1.disconnect();
                return v0_4;
            } else {
                com.google.android.gms.internal.zzabq v0_6 = v10_1.getHeaderField("Location");
                if (!android.text.TextUtils.isEmpty(v0_6)) {
                    v5_2 = new java.net.URL(v0_6);
                    v9_0++;
                    if (v9_0 <= ((Integer) com.google.android.gms.ads.internal.zzbs.zzbK().zzd(com.google.android.gms.internal.zzmo.zzGJ)).intValue()) {
                        v4_1.zzh(v8_4);
                        v10_1.disconnect();
                        v0_0 = p18;
                        v8_0 = 0;
                    } else {
                        com.google.android.gms.internal.zzahd.zzaT("Too many redirects.");
                        com.google.android.gms.internal.zzabq v0_14 = new com.google.android.gms.internal.zzabu(0);
                        v10_1.disconnect();
                        return v0_14;
                    }
                } else {
                    com.google.android.gms.internal.zzahd.zzaT("No location header to follow redirect.");
                    com.google.android.gms.internal.zzabq v0_17 = new com.google.android.gms.internal.zzabu(0);
                    v10_1.disconnect();
                    return v0_17;
                }
            }
        }
        com.google.android.gms.internal.zzabq v0_18 = v5_2.toString();
        try {
            java.net.URL v5_4 = new java.io.InputStreamReader(v10_1.getInputStream());
            try {
                com.google.android.gms.ads.internal.zzbs.zzby();
                int v9_2 = com.google.android.gms.internal.zzail.zza(v5_4);
            } catch (com.google.android.gms.internal.zzabq v0_19) {
                java.net.URL v17_0 = v5_4;
                com.google.android.gms.common.util.zzp.closeQuietly(v17_0);
                throw v0_19;
            }
            com.google.android.gms.common.util.zzp.closeQuietly(v5_4);
            com.google.android.gms.internal.zzacy.zza(v0_18, v8_4, v9_2, v2_4);
            v4_1.zza(v0_18, v8_4, v9_2);
            if (p24 != null) {
                p24.zza(v3, new String[] {"ufe"}));
            }
            com.google.android.gms.internal.zzabq v0_22 = v4_1.zze(v6_5);
            v10_1.disconnect();
            return v0_22;
        } catch (com.google.android.gms.internal.zzabq v0_19) {
            v17_0 = 0;
        }
    }

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


    private final java.net.URL zzb(com.google.android.gms.internal.zzapj p4, String p5)
    {
        StringBuilder v2_5;
        int v4_3;
        String v0_0;
        if (!p4.zzlH()) {
            v4_3 = String.valueOf(com.google.android.gms.internal.zzaow.zzlu());
            v0_0 = String.valueOf(com.google.android.gms.internal.zzaow.zzlv());
            v2_5 = new StringBuilder((((String.valueOf(v4_3).length() + 1) + String.valueOf(v0_0).length()) + String.valueOf(p5).length()));
        } else {
            v4_3 = String.valueOf(com.google.android.gms.internal.zzaow.zzlt());
            v0_0 = String.valueOf(com.google.android.gms.internal.zzaow.zzlv());
            v2_5 = new StringBuilder((((String.valueOf(v4_3).length() + 1) + String.valueOf(v0_0).length()) + String.valueOf(p5).length()));
        }
        v2_5.append(v4_3);
        v2_5.append(v0_0);
        v2_5.append("?");
        v2_5.append(p5);
        try {
            return new java.net.URL(v2_5.toString());
        } catch (int v4_7) {
            this.zze("Error trying to parse the hardcoded host url", v4_7);
            return 0;
        }
    }

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


    private final java.net.URL zzd(com.google.android.gms.internal.zzapj p3)
    {
        int v3_4;
        int v3_3;
        String v0_2;
        String v0_0;
        if (!p3.zzlH()) {
            v3_3 = String.valueOf(com.google.android.gms.internal.zzaow.zzlu());
            v0_0 = String.valueOf(com.google.android.gms.internal.zzaow.zzlv());
            if (v0_0.length() == 0) {
                v0_2 = new String(v3_3);
                v3_4 = v0_2;
            } else {
                v3_4 = v3_3.concat(v0_0);
            }
        } else {
            v3_3 = String.valueOf(com.google.android.gms.internal.zzaow.zzlt());
            v0_0 = String.valueOf(com.google.android.gms.internal.zzaow.zzlv());
            if (v0_0.length() == 0) {
                v0_2 = new String(v3_3);
            }
        }
        try {
            return new java.net.URL(v3_4);
        } catch (int v3_5) {
            this.zze("Error trying to parse the hardcoded host url", v3_5);
            return 0;
        }
    }