Info Call to Socket API

Description

List of all calls to Server Socket API.

Recommendation

This entry is informative, no recommendations applicable.

Technical details

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


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

Method bolts.p$3.a() calling method java.net.URL.<init>()


    public Void a()
    {
        java.net.URL v0_5 = new java.net.URL(this.a.toString());
        java.net.HttpURLConnection v2_2 = 0;
        while (v0_5 != null) {
            v2_2 = v0_5.openConnection();
            java.net.URL v0_4 = (v2_2 instanceof java.net.HttpURLConnection);
            if (v0_4 != null) {
                ((java.net.HttpURLConnection) v2_2).setInstanceFollowRedirects(1);
            }
            v2_2.setRequestProperty("Prefer-Html-Meta-Tags", "al");
            v2_2.connect();
            if (v0_4 != null) {
                java.net.URL v0_7 = ((java.net.HttpURLConnection) v2_2);
                if ((v0_7.getResponseCode() >= 300) && (v0_7.getResponseCode() < 400)) {
                    java.net.URL v3_8 = new java.net.URL(v0_7.getHeaderField("Location"));
                    v0_7.disconnect();
                    v0_5 = v3_8;
                }
            }
            v0_5 = 0;
        }
        try {
            this.b.a(bolts.p.a(v2_2));
            this.c.a(v2_2.getContentType());
        } catch (java.net.URL v0_3) {
            if ((v2_2 instanceof java.net.HttpURLConnection)) {
                ((java.net.HttpURLConnection) v2_2).disconnect();
            }
            throw v0_3;
        }
        if ((v2_2 instanceof java.net.HttpURLConnection)) {
            ((java.net.HttpURLConnection) v2_2).disconnect();
        }
        return 0;
    }

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


    public static java.net.HttpURLConnection a(com.facebook.l p2)
    {
        ark>com.facebook.GraphRequestark>.d(p2);
        try {
            String v1_1;
            if (p2.size() != 1) {
                v1_1 = new java.net.URL(com.facebook.internal.ac.b());
            } else {
                v1_1 = new java.net.URL(p2.b(0).p());
            }
        } catch (java.io.IOException v2_1) {
            throw new com.facebook.FacebookException("could not construct URL for request", v2_1);
        }
        String v0_5 = 0;
        try {
            String v1_3 = ark>com.facebook.GraphRequestark>.a(v1_1);
            try {
                ark>com.facebook.GraphRequestark>.a(p2, v1_3);
                return v1_3;
            } catch (java.io.IOException v2_2) {
                v0_5 = v1_3;
                com.facebook.internal.ae.a(v0_5);
                throw new com.facebook.FacebookException("could not construct request body", v2_2);
            }
        } catch (java.io.IOException v2_2) {
        }
        ark>com.facebook.GraphRequestark>.a(p2, v1_3);
        return v1_3;
    }

Method net.hockeyapp.android.c.f.a() calling method java.net.URL.<init>()


    protected varargs Long a(Void[] p3)
    {
        try {
            return Long.valueOf(((long) this.a(new java.net.URL(this.b()), 6).getContentLength()));
        } catch (Long v3_2) {
            long v0_1 = new StringBuilder();
            v0_1.append("Failed to get size ");
            v0_1.append(this.d);
            net.hockeyapp.android.d.e.e(v0_1.toString(), v3_2);
            return Long.valueOf(0);
        }
    }

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


    public com.facebook.GraphRequest a(ark>com.facebook.GraphResponseark>$PagingDirection p5)
    {
        String v5_2;
        if (this.d == null) {
            v5_2 = 0;
        } else {
            com.facebook.GraphRequest v0_8 = this.d.optJSONObject("paging");
            if (v0_8 == null) {
            } else {
                if (p5 != ark>com.facebook.GraphResponseark>$PagingDirection.a) {
                    v5_2 = v0_8.optString("previous");
                } else {
                    v5_2 = v0_8.optString("next");
                }
            }
        }
        if (!com.facebook.internal.ae.a(v5_2)) {
            if ((v5_2 == null) || (!v5_2.equals(this.h.p()))) {
                try {
                    return new com.facebook.GraphRequest(this.h.f(), new java.net.URL(v5_2));
                } catch (java.net.MalformedURLException) {
                    return 0;
                }
            } else {
                return 0;
            }
        } else {
            return 0;
        }
    }

Method com.facebook.internal.q.b() calling method java.net.URL.<init>()


    private static void b(com.facebook.internal.q$d p9, android.content.Context p10)
    {
        com.facebook.FacebookException v0 = 0;
        com.facebook.internal.r v2_0 = 1;
        try {
            int v3_0 = ((java.net.HttpURLConnection) new java.net.URL(p9.a.toString()).openConnection());
            try {
                int v10_1;
                com.facebook.internal.q$d v4_2;
                v3_0.setInstanceFollowRedirects(0);
                com.facebook.internal.q$d v4_1 = v3_0.getResponseCode();
                try {
                    if (v4_1 == 200) {
                        v10_1 = com.facebook.internal.t.a(p10, v3_0);
                        v4_2 = android.graphics.BitmapFactory.decodeStream(v10_1);
                    } else {
                        switch (v4_1) {
                            case 301:
                            case 302:
                                try {
                                    int v10_3 = v3_0.getHeaderField("location");
                                } catch (com.facebook.internal.q$d v4_0) {
                                    v10_1 = 0;
                                    v2_0 = 0;
                                    com.facebook.internal.ae.a(v10_1);
                                    com.facebook.internal.ae.a(v3_0);
                                    v4_2 = 0;
                                    v0 = v4_0;
                                    if (v2_0 != null) {
                                        com.facebook.internal.q.a(p9, v0, v4_2, 0);
                                    }
                                    return;
                                }
                                if (!com.facebook.internal.ae.a(v10_3)) {
                                    int v10_4 = android.net.Uri.parse(v10_3);
                                    com.facebook.internal.ad.a(p9.a, v10_4);
                                    com.facebook.internal.r v2_3 = com.facebook.internal.q.a(p9);
                                    if ((v2_3 != null) && (!v2_3.c)) {
                                        com.facebook.internal.q.a(v2_3.b, new com.facebook.internal.q$d(v10_4, p9.b), 0);
                                    }
                                }
                                v10_1 = 0;
                                v4_2 = 0;
                                v2_0 = 0;
                            default:
                                v10_1 = v3_0.getErrorStream();
                                com.facebook.internal.q$d v4_8 = new StringBuilder();
                                if (v10_1 == 0) {
                                    v4_8.append("Unexpected error while downloading an image.");
                                } else {
                                    Object v5_4 = new java.io.InputStreamReader(v10_1);
                                    char[] v6_1 = new char[128];
                                    while(true) {
                                        int v7_1 = v5_4.read(v6_1, 0, v6_1.length);
                                        if (v7_1 <= 0) {
                                            break;
                                        }
                                        v4_8.append(v6_1, 0, v7_1);
                                    }
                                    com.facebook.internal.ae.a(v5_4);
                                }
                                v4_2 = 0;
                                v0 = new com.facebook.FacebookException(v4_8.toString());
                        }
                    }
                } catch (Throwable v9_1) {
                    v0 = v10_1;
                    com.facebook.internal.ae.a(v0);
                    com.facebook.internal.ae.a(v3_0);
                    throw v9_1;
                } catch (com.facebook.internal.q$d v4_0) {
                }
                com.facebook.internal.ae.a(v10_1);
                com.facebook.internal.ae.a(v3_0);
            } catch (Throwable v9_1) {
            } catch (com.facebook.internal.q$d v4_0) {
                v10_1 = 0;
            }
        } catch (Throwable v9_1) {
            v3_0 = 0;
        } catch (com.facebook.internal.q$d v4_0) {
            v10_1 = 0;
            v3_0 = 0;
        }
    }

Method com.fitbit.coin.kit.internal.service.mifare.MifareApi$downloadMifareService$2.a() calling method java.net.URL.<init>()


    public final com.fitbit.coin.kit.internal.service.mifare.y a(retrofit2.l p8)
    {
        com.fitbit.coin.kit.internal.service.mifare.y v8_18;
        kotlin.jvm.internal.ae.f(p8, "response");
        com.fitbit.coin.kit.internal.service.mifare.y v8_17 = ((okhttp3.ad) p8.f());
        if (v8_17 == null) {
            v8_18 = 0;
        } else {
            v8_18 = v8_17.g();
        }
        com.fitbit.coin.kit.internal.service.mifare.MifareLsScript$a v0_1 = new org.json.JSONObject(v8_18);
        com.fitbit.coin.kit.internal.service.mifare.y v8_2 = v0_1.get("persoScriptUrl");
        if (v8_2 != null) {
            java.net.URL v5_1 = new java.net.URL(((String) v8_2));
            com.fitbit.coin.kit.internal.service.mifare.y v8_5 = v0_1.get("tokenId");
            if (v8_5 != null) {
                String v2_1 = ((String) v8_5);
                com.fitbit.coin.kit.internal.service.mifare.y v8_7 = v0_1.get("protocolScript");
                if (v8_7 != null) {
                    com.fitbit.coin.kit.internal.service.mifare.y v8_9 = new com.fitbit.coin.kit.internal.service.mifare.y;
                    v8_9(v2_1, this.$widgetId, this.$widgetType, v5_1, com.fitbit.coin.kit.internal.service.mifare.MifareLsScript.Companion.a(((org.json.JSONObject) v8_7)));
                    return v8_9;
                } else {
                    throw new kotlin.TypeCastException("null cannot be cast to non-null type org.json.JSONObject");
                }
            } else {
                throw new kotlin.TypeCastException("null cannot be cast to non-null type kotlin.String");
            }
        } else {
            throw new kotlin.TypeCastException("null cannot be cast to non-null type kotlin.String");
        }
    }

Method net.hockeyapp.android.c.a$d.a() calling method java.net.URL.<init>()


    private boolean a(String p18, java.io.File p19)
    {
        Throwable v2_0 = p19;
        try {
            int v5_0 = ((java.net.HttpURLConnection) this.a(new java.net.URL(p18)));
            try {
                v5_0.connect();
                String v6_1 = v5_0.getContentLength();
                java.io.BufferedInputStream v7_2 = v5_0.getHeaderField("Status");
            } catch (java.io.IOException v0_4) {
                Throwable v2_2 = v0_4;
                java.io.BufferedInputStream v7_0 = 0;
                int v8_2 = v7_0;
                try {
                    if (v8_2 == 0) {
                        if (v7_0 != null) {
                            v7_0.close();
                        }
                    } else {
                        v8_2.close();
                    }
                } catch (java.io.IOException) {
                }
                if (v5_0 != 0) {
                    v5_0.disconnect();
                }
                throw v2_2;
            } catch (java.io.IOException v0_0) {
                v7_0 = 0;
                v8_2 = v7_0;
                java.io.IOException v3_4 = v0_0;
                int v4_5 = new StringBuilder();
                v4_5.append("Failed to download attachment to ");
                v4_5.append(v2_0);
                net.hockeyapp.android.d.e.e(v4_5.toString(), v3_4);
                try {
                    if (v8_2 == 0) {
                        if (v7_0 != null) {
                            v7_0.close();
                        }
                    } else {
                        v8_2.close();
                    }
                } catch (java.io.IOException) {
                }
                if (v5_0 != 0) {
                    v5_0.disconnect();
                }
                return 0;
            }
            if ((v7_2 == null) || (v7_2.startsWith("200"))) {
                v7_0 = new java.io.BufferedInputStream(v5_0.getInputStream());
                try {
                    v8_2 = new java.io.FileOutputStream(p19);
                    try {
                        java.io.IOException v3_2 = new byte[1024];
                        long v11 = 0;
                    } catch (java.io.IOException v0_0) {
                    }
                    while(true) {
                        int v13 = v7_0.read(v3_2);
                        int v15 = 1;
                        if (v13 == -1) {
                            break;
                        }
                        v11 += ((long) v13);
                        try {
                            Integer[] v9_1 = new Integer[1];
                            int v16_1 = v5_0;
                            try {
                                v9_1[0] = Integer.valueOf(((int) ((100 * v11) / ((long) v6_1))));
                                this.publishProgress(v9_1);
                                v8_2.write(v3_2, 0, v13);
                                v5_0 = v16_1;
                            } catch (java.io.IOException v0_2) {
                                v2_2 = v0_2;
                                v5_0 = v16_1;
                            } catch (java.io.IOException v0_6) {
                                v3_4 = v0_6;
                                v5_0 = v16_1;
                            }
                        } catch (java.io.IOException v0_1) {
                            v2_2 = v0_1;
                        } catch (java.io.IOException v0_0) {
                        }
                    }
                    int v16_0 = v5_0;
                    try {
                        v8_2.flush();
                        v2_0 = v11 cmp 0;
                    } catch (java.io.IOException v0_1) {
                        v5_0 = v16_0;
                    } catch (java.io.IOException v0_0) {
                        v5_0 = v16_0;
                    }
                    if (v2_0 <= null) {
                        v15 = 0;
                    }
                    try {
                        if (v8_2 == 0) {
                            if (v7_0 != null) {
                                v7_0.close();
                            }
                        } else {
                            v8_2.close();
                        }
                    } catch (java.io.IOException) {
                    }
                    if (v16_0 != 0) {
                        v16_0.disconnect();
                    }
                    return v15;
                } catch (java.io.IOException v0_5) {
                    v2_2 = v0_5;
                    v8_2 = 1024;
                } catch (java.io.IOException v0_0) {
                    v8_2 = 1024;
                }
            } else {
                if (v5_0 != 0) {
                    v5_0.disconnect();
                }
                return 0;
            }
        } catch (java.io.IOException v0_3) {
            v2_2 = v0_3;
            v5_0 = 0;
            v7_0 = 0;
        } catch (java.io.IOException v0_0) {
            v5_0 = 0;
            v7_0 = 0;
        } catch (java.io.IOException v0_1) {
        }
    }

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


    final void j()
    {
        void v1 = this;
        void v18_1 = this.v();
        v18_1.i();
        this.r = 1;
        try {
            this.i.u();
            com.google.android.gms.measurement.internal.ao v4_1 = this.i.x().C();
        } catch (Throwable v0) {
            com.google.android.gms.measurement.internal.ef v2_6 = v0;
            v1.r = 0;
            v18_1.z();
            throw v2_6;
        }
        if (v4_1 != null) {
            if (!v4_1.booleanValue()) {
                if (this.l <= 0) {
                    com.google.android.gms.measurement.internal.ao v4_10;
                    v18_1 = v18_1.v();
                    if (this.u == null) {
                        v4_10 = 0;
                    } else {
                        v4_10 = 1;
                    }
                    if (v4_10 == null) {
                        if (v18_1.c().f()) {
                            com.google.android.gms.measurement.internal.ao v4_20 = this.i.m().a();
                            String v10 = 0;
                            this.a(0, (v4_20 - com.google.android.gms.measurement.internal.eu.k()));
                            String v8_16 = this.i.c().c.a();
                            if (v8_16 != 0) {
                                this.i.r().w().a("Uploading events. Elapsed time since last upload attempt (ms)", Long.valueOf(Math.abs((v4_20 - v8_16))));
                            }
                            long v6_6 = v18_1.d().z();
                            if (android.text.TextUtils.isEmpty(v6_6)) {
                                this.w = -1;
                                com.google.android.gms.measurement.internal.ef v2_20 = v18_1.d().a((v4_20 - com.google.android.gms.measurement.internal.eu.k()));
                                if (!android.text.TextUtils.isEmpty(v2_20)) {
                                    com.google.android.gms.measurement.internal.ef v2_21 = v18_1.d().b(v2_20);
                                    if (v2_21 != null) {
                                        v1 = this.a(v2_21);
                                    }
                                }
                            } else {
                                if (this.w == -1) {
                                    this.w = v18_1.d().G();
                                }
                                String v7_2 = v18_1.d().a(v6_6, this.i.b().b(v6_6, com.google.android.gms.measurement.internal.e.o), Math.max(0, this.i.b().b(v6_6, com.google.android.gms.measurement.internal.e.p)));
                                if (!v7_2.isEmpty()) {
                                    String v8_6 = v7_2.iterator();
                                    while (v8_6.hasNext()) {
                                        Integer v9_6 = ((com.google.android.gms.internal.measurement.t) ((android.util.Pair) v8_6.next()).first);
                                        if (!android.text.TextUtils.isEmpty(v9_6.s)) {
                                            String v8_7 = v9_6.s;
                                        }
                                        if (v8_7 != null) {
                                            Integer v9_7 = 0;
                                            while (v9_7 < v7_2.size()) {
                                                com.google.android.gms.measurement.internal.w v11_6 = ((com.google.android.gms.internal.measurement.t) ((android.util.Pair) v7_2.get(v9_7)).first);
                                                if ((android.text.TextUtils.isEmpty(v11_6.s)) || (v11_6.s.equals(v8_7))) {
                                                    v9_7++;
                                                } else {
                                                    v7_2 = v7_2.subList(0, v9_7);
                                                    break;
                                                }
                                            }
                                        }
                                        com.google.android.gms.measurement.internal.w v11_14;
                                        String v8_9 = new com.google.android.gms.internal.measurement.s();
                                        Integer v9_9 = new com.google.android.gms.internal.measurement.t[v7_2.size()];
                                        v8_9.a = v9_9;
                                        Integer v9_11 = new java.util.ArrayList(v7_2.size());
                                        if ((!com.google.android.gms.measurement.internal.eu.w()) || (!this.i.b().c(v6_6))) {
                                            v11_14 = 0;
                                        } else {
                                            v11_14 = 1;
                                        }
                                        com.google.android.gms.measurement.internal.s v12_2 = 0;
                                        while (v12_2 < v8_9.a.length) {
                                            v8_9.a[v12_2] = ((com.google.android.gms.internal.measurement.t) ((android.util.Pair) v7_2.get(v12_2)).first);
                                            v9_11.add(((Long) ((android.util.Pair) v7_2.get(v12_2)).second));
                                            v8_9.a[v12_2].r = Long.valueOf(this.i.b().f());
                                            v8_9.a[v12_2].d = Long.valueOf(v4_20);
                                            long v13_13 = v8_9.a[v12_2];
                                            this.i.u();
                                            v13_13.z = Boolean.valueOf(0);
                                            if (v11_14 == null) {
                                                v8_9.a[v12_2].G = 0;
                                            }
                                            v12_2++;
                                        }
                                        if (this.i.r().a(2)) {
                                            v10 = v18_1.f().b(v8_9);
                                        }
                                        byte[] v15 = v18_1.f().a(v8_9);
                                        String v7_10 = ((String) com.google.android.gms.measurement.internal.e.y.b());
                                        java.net.URL v14_1 = new java.net.URL(v7_10);
                                        com.google.android.gms.common.internal.ab.b((v9_11.isEmpty() ^ 1));
                                        if (this.u == null) {
                                            this.u = new java.util.ArrayList(v9_11);
                                        } else {
                                            this.i.r().an_().a("Set uploading progress before finishing the previous upload");
                                        }
                                        this.i.c().d.a(v4_20);
                                        com.google.android.gms.measurement.internal.ao v4_6 = "?";
                                        if (v8_9.a.length > 0) {
                                            v4_6 = v8_9.a[0].o;
                                        }
                                        this.i.r().x().a("Uploading data. app, uncompressed size, data", v4_6, Integer.valueOf(v15.length), v10);
                                        this.q = 1;
                                        com.google.android.gms.measurement.internal.s v12_3 = v18_1.c();
                                        com.google.android.gms.measurement.internal.ef v2_4 = new com.google.android.gms.measurement.internal.ef(this, v6_6);
                                        v12_3.d();
                                        v12_3.k();
                                        com.google.android.gms.common.internal.ab.a(v14_1);
                                        com.google.android.gms.common.internal.ab.a(v15);
                                        com.google.android.gms.common.internal.ab.a(v2_4);
                                        com.google.android.gms.measurement.internal.ao v4_11 = v12_3.q();
                                        com.google.android.gms.measurement.internal.w v5_6 = new com.google.android.gms.measurement.internal.w;
                                        v5_6(v12_3, v6_6, v14_1, v15, 0, v2_4);
                                        v4_11.b(v5_6);
                                    }
                                    v8_7 = 0;
                                }
                            }
                            v1.r = 0;
                            v18_1.z();
                            return;
                        } else {
                            this.i.r().x().a("Network not connected, ignoring upload request");
                            void v18_2 = v18_1.y();
                            this.r = 0;
                            v18_2.z();
                            return;
                        }
                    } else {
                        this.i.r().x().a("Uploading requested multiple times");
                        this.r = 0;
                        v18_1.z();
                        return;
                    }
                } else {
                    void v18_3 = v18_1.y();
                    this.r = 0;
                    v18_3.z();
                    return;
                }
            } else {
                this.i.r().an_().a("Upload called in the client side when service should be used");
                this.r = 0;
                v18_1.z();
                return;
            }
        } else {
            this.i.r().i().a("Upload data called on the client side before use of service was decided");
            this.r = 0;
            v18_1.z();
            return;
        }
    }

Method net.hockeyapp.android.c.b.a() calling method java.net.URL.<init>()


    protected varargs org.json.JSONArray a(Void[] p5)
    {
        String v5_1;
        if (this.g == null) {
            v5_1 = 0;
        } else {
            v5_1 = ((android.content.Context) this.g.get());
        }
        if (v5_1 != null) {
            this.b = this.a(v5_1, "apk");
            try {
                org.json.JSONArray v1_1 = this.b();
                String v2_2 = this.a(new java.net.URL(this.a(v5_1, "json")));
                v2_2.connect();
                org.json.JSONArray v3_3 = new java.io.BufferedInputStream(v2_2.getInputStream());
                String v2_4 = net.hockeyapp.android.d.l.a(v3_3);
                v3_3.close();
                org.json.JSONArray v3_5 = new org.json.JSONArray(v2_4);
            } catch (org.json.JSONArray v1_3) {
                if (!net.hockeyapp.android.d.l.d(v5_1)) {
                    return 0;
                } else {
                    net.hockeyapp.android.d.e.e("HockeyUpdate", "Could not fetch updates although connected to internet", v1_3);
                    return 0;
                }
            }
            if (!this.a(v5_1, v3_5, v1_1)) {
                return 0;
            } else {
                return this.b(v3_5);
            }
        } else {
            return 0;
        }
    }

Method net.hockeyapp.android.c.e.a() calling method java.net.URL.<init>()


    protected varargs Long a(Void[] p13)
    {
        Long v13_0 = 0;
        try {
            java.io.IOException v2_7 = this.a(new java.net.URL(this.b()), 6);
            v2_7.connect();
            String v3_1 = v2_7.getContentLength();
            int v4_1 = v2_7.getContentType();
        } catch (Throwable v0_2) {
            java.io.BufferedInputStream v5_0 = 0;
            try {
                if (v13_0 == null) {
                    if (v5_0 != null) {
                        v5_0.close();
                    }
                } else {
                    v13_0.close();
                }
            } catch (java.io.IOException) {
            }
            throw v0_2;
        } catch (java.io.IOException v2_4) {
            v5_0 = 0;
            String v3_8 = new StringBuilder();
            v3_8.append("Failed to download ");
            v3_8.append(this.d);
            net.hockeyapp.android.d.e.e(v3_8.toString(), v2_4);
            Throwable v0_1 = Long.valueOf(0);
            try {
                if (v13_0 == null) {
                    if (v5_0 != null) {
                        v5_0.close();
                    }
                } else {
                    v13_0.close();
                }
            } catch (java.io.IOException) {
            }
            return v0_1;
        } catch (Throwable v0_2) {
        }
        if ((v4_1 == 0) || (!v4_1.contains("text"))) {
            if ((this.f.mkdirs()) || (this.f.exists())) {
                int v4_8 = new java.io.File(this.f, this.e);
                v5_0 = new java.io.BufferedInputStream(v2_7.getInputStream());
                try {
                    java.io.IOException v2_3 = new java.io.FileOutputStream(v4_8);
                    v13_0 = 1024;
                    try {
                        Long v13_1 = new byte[1024];
                        long v6_1 = 0;
                    } catch (Throwable v0_2) {
                        v13_0 = v2_3;
                    } catch (Long v13_3) {
                        v2_4 = v13_3;
                        v13_0 = v2_3;
                    }
                    while(true) {
                        int v4_9 = v5_0.read(v13_1);
                        if (v4_9 == -1) {
                            break;
                        }
                        v6_1 += ((long) v4_9);
                        Integer[] v8_3 = new Integer[1];
                        v8_3[0] = Integer.valueOf(Math.round(((((float) v6_1) * 1120403456) / ((float) v3_1))));
                        this.publishProgress(v8_3);
                        v2_3.write(v13_1, 0, v4_9);
                    }
                    v2_3.flush();
                    Long v13_2 = Long.valueOf(v6_1);
                    try {
                        if (v2_3 == null) {
                            if (v5_0 != null) {
                                v5_0.close();
                            }
                        } else {
                            v2_3.close();
                        }
                    } catch (java.io.IOException) {
                    }
                    return v13_2;
                } catch (java.io.IOException v2_4) {
                }
            } else {
                String v3_5 = new StringBuilder();
                v3_5.append("Could not create the dir(s):");
                v3_5.append(this.f.getAbsolutePath());
                throw new java.io.IOException(v3_5.toString());
            }
        } else {
            this.h = "The requested download does not appear to be a file.";
            return Long.valueOf(0);
        }
    }

Method net.hockeyapp.android.c.e.a() calling method java.net.URL.<init>()


    protected java.net.URLConnection a(java.net.URL p4, int p5)
    {
        java.net.HttpURLConnection v0_1 = ((java.net.HttpURLConnection) p4.openConnection());
        this.a(v0_1);
        java.net.URL v1_2 = v0_1.getResponseCode();
        if ((v1_2 == 301) || ((v1_2 == 302) || (v1_2 == 303))) {
            if (p5 != 0) {
                java.net.URL v1_1 = new java.net.URL(v0_1.getHeaderField("Location"));
                if (!p4.getProtocol().equals(v1_1.getProtocol())) {
                    v0_1.disconnect();
                    return this.a(v1_1, (p5 - 1));
                }
            } else {
                return v0_1;
            }
        }
        return v0_1;
    }

Method net.hockeyapp.android.d.f.a() calling method java.net.URL.<init>()


    public java.net.HttpURLConnection a()
    {
        java.net.HttpURLConnection v0_3 = ((java.net.HttpURLConnection) new java.net.URL(this.e).openConnection());
        v0_3.setConnectTimeout(this.i);
        v0_3.setReadTimeout(this.i);
        if (!android.text.TextUtils.isEmpty(this.f)) {
            v0_3.setRequestMethod(this.f);
            if ((!android.text.TextUtils.isEmpty(this.g)) || ((this.f.equalsIgnoreCase("POST")) || (this.f.equalsIgnoreCase("PUT")))) {
                v0_3.setDoOutput(1);
            }
        }
        net.hockeyapp.android.d.k v1_13 = this.j.keySet().iterator();
        while (v1_13.hasNext()) {
            java.io.OutputStream v2_10 = ((String) v1_13.next());
            v0_3.setRequestProperty(v2_10, ((String) this.j.get(v2_10)));
        }
        if (!android.text.TextUtils.isEmpty(this.g)) {
            java.io.OutputStream v2_4 = new java.io.BufferedWriter(new java.io.OutputStreamWriter(v0_3.getOutputStream(), "UTF-8"));
            v2_4.write(this.g);
            v2_4.flush();
            v2_4.close();
        }
        if (this.h != null) {
            v0_3.setRequestProperty("Content-Length", String.valueOf(this.h.d()));
            this.h.a(v0_3.getOutputStream());
        }
        return v0_3;
    }

Method net.hockeyapp.android.metrics.f.c() calling method java.net.URL.<init>()


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

Method com.fitbit.safetynet.c$b.a() calling method java.net.URL.<init>()


    protected varargs Boolean a(Void[] p8)
    {
        Object[] v0_0 = 0;
        try {
            org.json.JSONObject v3_11 = new StringBuilder();
            v3_11.append("https://www.googleapis.com/androidcheck/v1/attestations/verify?key=");
            v3_11.append(this.a.d);
            Exception v2_2 = new java.net.URL(v3_11.toString());
            org.json.JSONObject v3_3 = javax.net.ssl.SSLContext.getInstance("TLS");
            v3_3.init(0, this.a.a(), 0);
            Exception v2_4 = ((javax.net.ssl.HttpsURLConnection) v2_2.openConnection());
            v2_4.setSSLSocketFactory(v3_3.getSocketFactory());
            v2_4.setRequestMethod("POST");
            v2_4.setRequestProperty("Content-Type", "application/json");
            String v4_4 = new Object[1];
            v4_4[0] = this.a.e;
            org.json.JSONObject v3_10 = String.format("{ \"signedAttestation\": \"%s\"}", v4_4).getBytes("UTF-8");
            String v4_6 = v2_4.getOutputStream();
            try {
                v4_6.write(v3_10);
                v2_4.connect();
                String v5_4 = new Object[2];
                v5_4[0] = Integer.valueOf(v2_4.getResponseCode());
                v5_4[1] = v2_4.getResponseMessage();
                d.a.b.b("Get response code %d : msg %s", v5_4);
                Exception v2_1 = v2_4.getInputStream();
                try {
                    Object[] v0_5 = new StringBuilder();
                    org.json.JSONObject v3_14 = new java.io.BufferedReader(new java.io.InputStreamReader(v2_1));
                } catch (Boolean v8_4) {
                    v0_0 = v4_6;
                    try {
                        if (v0_0 == null) {
                            if (v2_1 != null) {
                                v2_1.close();
                            }
                        } else {
                            v0_0.close();
                        }
                    } catch (java.io.IOException) {
                        Object[] v1_2 = new Object[0];
                        d.a.b.e("Catching IO exception closing connection", v1_2);
                    }
                    throw v8_4;
                } catch (Object[] v0_1) {
                    org.json.JSONObject v3_0 = v2_1;
                    Exception v2_0 = v0_1;
                    v0_0 = v4_6;
                    try {
                        this.b = v2_0;
                        Boolean v8_2 = new Object[1];
                        v8_2[0] = v2_0.getMessage();
                        d.a.b.e(v2_0, "There was a problem validating JWS Message : %s", v8_2);
                        Boolean v8_3 = Boolean.valueOf(0);
                        try {
                            if (v0_0 == null) {
                                if (v3_0 != null) {
                                    v3_0.close();
                                }
                            } else {
                                v0_0.close();
                            }
                        } catch (java.io.IOException) {
                            Object[] v1_1 = new Object[0];
                            d.a.b.e("Catching IO exception closing connection", v1_1);
                        }
                        return v8_3;
                    } catch (Boolean v8_4) {
                        v2_1 = v3_0;
                    }
                }
                while(true) {
                    String v5_7 = v3_14.readLine();
                    if (v5_7 == null) {
                        break;
                    }
                    v0_5.append(v5_7);
                }
                org.json.JSONObject v3_16 = new org.json.JSONObject(v0_5.toString());
                if (!v3_16.has("isValidSignature")) {
                    try {
                        if (v4_6 == null) {
                            if (v2_1 != null) {
                                v2_1.close();
                            }
                        } else {
                            v4_6.close();
                        }
                    } catch (java.io.IOException) {
                        Object[] v0_9 = new Object[0];
                        d.a.b.e("Catching IO exception closing connection", v0_9);
                    }
                    return Boolean.valueOf(0);
                } else {
                    Object[] v0_12 = Boolean.valueOf(v3_16.getBoolean("isValidSignature"));
                    try {
                        if (v4_6 == null) {
                            if (v2_1 != null) {
                                v2_1.close();
                            }
                        } else {
                            v4_6.close();
                        }
                    } catch (java.io.IOException) {
                        Object[] v1_0 = new Object[0];
                        d.a.b.e("Catching IO exception closing connection", v1_0);
                    }
                    return v0_12;
                }
            } catch (Boolean v8_4) {
                v2_1 = 0;
            } catch (Exception v2_0) {
                v3_0 = 0;
            }
        } catch (Boolean v8_4) {
            v2_1 = 0;
        } catch (Exception v2_0) {
            v3_0 = 0;
        }
    }

Method com.fitbit.serverinteraction.ServerGateway.<init>() calling method java.net.URL.<init>()


    public ServerGateway(android.app.Application p2, com.fitbit.savedstate.ServerSavedState p3, com.fitbit.serverinteraction.ServerGateway$a p4, com.fitbit.savedstate.ag p5, com.fitbit.serverinteraction.ServerGateway$b p6)
    {
        this.c = new com.fitbit.util.service.metrics.b();
        com.fitbit.serverinteraction.ServerGateway.d = this;
        this.f = p3;
        this.g = p4;
        this.h = p5;
        this.i = p6;
        this.e = p2;
        IllegalArgumentException v2_1 = com.fitbit.httpcore.FitbitHttpConfig.b();
        try {
            java.net.Authenticator.setDefault(new com.fitbit.serverinteraction.ServerGateway$1(this, new java.net.URL(v2_1.e()), v2_1));
            return;
        } catch (java.net.MalformedURLException) {
            throw new IllegalArgumentException("Tracker request url is invalid");
        }
    }

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


    public final void run()
    {
        new com.google.android.gms.ads.identifier.c();
        String v0_3 = this.a;
        java.io.IOException v1_7 = android.net.Uri.parse("https://pagead2.googlesyndication.com/pagead/gen_204?id=gmob-apps").buildUpon();
        String v2_0 = v0_3.keySet().iterator();
        while (v2_0.hasNext()) {
            String v3_6 = ((String) v2_0.next());
            v1_7.appendQueryParameter(v3_6, ((String) v0_3.get(v3_6)));
        }
        String v0_2 = v1_7.build().toString();
        try {
            java.io.IOException v1_3 = ((java.net.HttpURLConnection) new java.net.URL(v0_2).openConnection());
        } catch (java.io.IOException v1_6) {
            String v2_5 = "HttpUrlPinger";
            String v3_4 = v1_6.getMessage();
            StringBuilder v5_5 = new StringBuilder(((String.valueOf(v0_2).length() + 32) + String.valueOf(v3_4).length()));
            String v4_9 = "Error while parsing ping URL: ";
            v5_5.append(v4_9);
            v5_5.append(v0_2);
            v5_5.append(". ");
            v5_5.append(v3_4);
            android.util.Log.w(v2_5, v5_5.toString(), v1_6);
            return;
        } catch (java.io.IOException v1_6) {
            v2_5 = "HttpUrlPinger";
            v3_4 = v1_6.getMessage();
            v5_5 = new StringBuilder(((String.valueOf(v0_2).length() + 27) + String.valueOf(v3_4).length()));
            v4_9 = "Error while pinging URL: ";
            v5_5.append(v4_9);
            v5_5.append(v0_2);
            v5_5.append(". ");
            v5_5.append(v3_4);
            android.util.Log.w(v2_5, v5_5.toString(), v1_6);
            return;
        }
        String v2_1 = v1_3.getResponseCode();
        if ((v2_1 < 200) || (v2_1 >= 300)) {
            StringBuilder v5_1 = new StringBuilder((String.valueOf(v0_2).length() + 65));
            v5_1.append("Received non-success response code ");
            v5_1.append(v2_1);
            v5_1.append(" from pinging URL: ");
            v5_1.append(v0_2);
            android.util.Log.w("HttpUrlPinger", v5_1.toString());
        }
        v1_3.disconnect();
        return;
    }

Method com.google.android.gms.auth.api.signin.internal.e.run() calling method java.net.URL.<init>()


    public final void run()
    {
        com.google.android.gms.common.api.Status v0 = com.google.android.gms.common.api.Status.RESULT_INTERNAL_ERROR;
        try {
            com.google.android.gms.common.b.a v3_0;
            com.google.android.gms.common.b.a v3_7 = String.valueOf("https://accounts.google.com/o/oauth2/revoke?token=");
            Object[] v4_9 = String.valueOf(this.b);
        } catch (String v2_10) {
            com.google.android.gms.common.b.a v3_6 = com.google.android.gms.auth.api.signin.internal.e.a;
            Object[] v4_4 = "IOException when revoking access: ";
            String v2_7 = String.valueOf(v2_10.toString());
            if (v2_7.length() == 0) {
                String v2_9 = new String("IOException when revoking access: ");
                com.google.android.gms.common.api.internal.v v1_1 = new Object[0];
                v3_6.e(v2_9, v1_1);
                this.c.b(v0);
                return;
            } else {
                v2_9 = v4_4.concat(v2_7);
            }
            StringBuilder v5_5 = new StringBuilder(26);
            v5_5.append("Response Code: ");
            v5_5.append(String v2_4);
            Object[] v4_8 = new Object[0];
            com.google.android.gms.auth.api.signin.internal.e.a.b(v5_5.toString(), v4_8);
            this.c.b(v0);
            return;
        } catch (String v2_5) {
            v3_6 = com.google.android.gms.auth.api.signin.internal.e.a;
            v4_4 = "Exception when revoking access: ";
            v2_7 = String.valueOf(v2_5.toString());
            if (v2_7.length() == 0) {
                v2_9 = new String("Exception when revoking access: ");
            }
        }
        if (v4_9.length() == 0) {
            v3_0 = new String(v3_7);
        } else {
            v3_0 = v3_7.concat(v4_9);
        }
        String v2_3 = ((java.net.HttpURLConnection) new java.net.URL(v3_0).openConnection());
        v2_3.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
        v2_4 = v2_3.getResponseCode();
        if (v2_4 != 200) {
            StringBuilder v5_1 = new Object[0];
            com.google.android.gms.auth.api.signin.internal.e.a.e("Unable to revoke access!", v5_1);
        } else {
            v0 = com.google.android.gms.common.api.Status.RESULT_SUCCESS;
        }
    }

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


    public HttpRequest(CharSequence p2, String p3)
    {
        this.K = 0;
        this.P = 1;
        this.Q = 0;
        this.R = 8192;
        try {
            this.E = new java.net.URL(p2.toString());
            this.L = p3;
            return;
        } catch (java.net.MalformedURLException v2_2) {
            throw new io.fabric.sdk.android.services.network.HttpRequest$HttpRequestException(v2_2);
        }
    }

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


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

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


    private final void a(com.google.android.gms.measurement.internal.ep p11)
    {
        this.v();
        if ((!android.text.TextUtils.isEmpty(p11.d())) || ((com.google.android.gms.measurement.internal.eu.z()) && (!android.text.TextUtils.isEmpty(p11.e())))) {
            String v0_3 = this.i.b();
            com.google.android.gms.measurement.internal.w v1_9 = new android.net.Uri$Builder();
            com.google.android.gms.measurement.internal.s v2_4 = p11.d();
            if ((android.text.TextUtils.isEmpty(v2_4)) && (com.google.android.gms.measurement.internal.eu.z())) {
                v2_4 = p11.e();
            }
            com.google.android.gms.measurement.internal.s v2_7;
            String v3_8 = v1_9.scheme(((String) com.google.android.gms.measurement.internal.e.m.b())).encodedAuthority(((String) com.google.android.gms.measurement.internal.e.n.b()));
            com.google.android.gms.measurement.internal.s v2_5 = String.valueOf(v2_4);
            if (v2_5.length() == 0) {
                v2_7 = new String("config/app/");
            } else {
                v2_7 = "config/app/".concat(v2_5);
            }
            v3_8.path(v2_7).appendQueryParameter("app_instance_id", p11.c()).appendQueryParameter("platform", "android").appendQueryParameter("gmp_version", String.valueOf(v0_3.f()));
            String v0_9 = v1_9.build().toString();
            try {
                android.support.v4.util.ArrayMap v6_0;
                java.net.URL v4_9 = new java.net.URL(v0_9);
                this.i.r().x().a("Fetching remote configuration", p11.b());
                com.google.android.gms.measurement.internal.w v1_14 = this.p().a(p11.b());
                String v3_14 = this.p().b(p11.b());
            } catch (java.net.MalformedURLException) {
                this.i.r().an_().a("Failed to parse config URL. Not fetching. appId", com.google.android.gms.measurement.internal.o.a(p11.b()), v0_9);
                return;
            }
            if ((v1_14 == null) || (android.text.TextUtils.isEmpty(v3_14))) {
                v6_0 = 0;
            } else {
                com.google.android.gms.measurement.internal.w v1_1 = new android.support.v4.util.ArrayMap();
                v1_1.put("If-Modified-Since", v3_14);
                v6_0 = v1_1;
            }
            this.p = 1;
            com.google.android.gms.measurement.internal.s v2_2 = this.c();
            String v3_0 = p11.b();
            com.google.android.gms.measurement.internal.eg v7_1 = new com.google.android.gms.measurement.internal.eg(this);
            v2_2.d();
            v2_2.k();
            com.google.android.gms.common.internal.ab.a(v4_9);
            com.google.android.gms.common.internal.ab.a(v7_1);
            com.google.android.gms.measurement.internal.ao v8 = v2_2.q();
            com.google.android.gms.measurement.internal.w v9 = new com.google.android.gms.measurement.internal.w;
            v9(v2_2, v3_0, v4_9, 0, v6_0, v7_1);
            v8.b(v9);
            return;
        } else {
            this.a(p11.b(), 204, 0, 0, 0);
            return;
        }
    }

Method com.google.gson.internal.bind.i$14.a() calling method java.net.URL.<init>()


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

Method com.ibm.icu.impl.bb$b.<init>() calling method java.net.URL.<init>()


    bb$b(java.net.URL p5)
    {
        try {
            this.c = p5.getPath();
            String v0_13 = this.c.lastIndexOf("!/");
        } catch (java.net.URL v5_2) {
            if (com.ibm.icu.impl.bb.a()) {
                int v1_4 = new StringBuilder();
                v1_4.append("icurb jar error: ");
                v1_4.append(v5_2);
                System.err.println(v1_4.toString());
            }
            int v1_8 = new StringBuilder();
            v1_8.append("jar error: ");
            v1_8.append(v5_2.getMessage());
            throw new IllegalArgumentException(v1_8.toString());
        }
        if (v0_13 >= null) {
            this.c = this.c.substring((v0_13 + 2));
        }
        if (!p5.getProtocol().equals("jar")) {
            String v0_5 = p5.toString();
            int v1_2 = v0_5.indexOf(":");
            if (v1_2 != -1) {
                StringBuilder v2_2 = new StringBuilder();
                v2_2.append("jar");
                v2_2.append(v0_5.substring(v1_2));
                p5 = new java.net.URL(v2_2.toString());
            }
        }
        this.b = ((java.net.JarURLConnection) p5.openConnection()).getJarFile();
        return;
    }

Method com.mixpanel.android.util.c.a() calling method java.net.URL.<init>()

Couldn't retrieve source code

Method com.squareup.picasso.ad.a() calling method java.net.URL.<init>()


    protected java.net.HttpURLConnection a(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 org.spongycastle.x509.i.a() calling method java.net.URL.<init>()


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