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.measurement.zzjt.zzle() calling method java.net.URL.<init>()


    final void zzle()
    {
        this.zzab();
        this.zzlc();
        this.zzasg = 1;
        try {
            this.zzacv.zzgl();
            com.google.android.gms.internal.measurement.zzfq v2_0 = this.zzacv.zzga().zzkr();
        } catch (com.google.android.gms.internal.measurement.zzfq v2_86) {
            this.zzasg = 0;
            this.zzlh();
            throw v2_86;
        }
        if (v2_0 != null) {
            if (!v2_0.booleanValue()) {
                if (this.zzasa <= 0) {
                    com.google.android.gms.internal.measurement.zzfq v2_45;
                    this.zzab();
                    if (this.zzasj == null) {
                        v2_45 = 0;
                    } else {
                        v2_45 = 1;
                    }
                    if (v2_45 == null) {
                        if (this.zzkz().zzex()) {
                            com.google.android.gms.internal.measurement.zzgi v10_3 = this.zzacv.zzbt().currentTimeMillis();
                            this.zzd(0, (v10_3 - com.google.android.gms.internal.measurement.zzeh.zzhr()));
                            com.google.android.gms.internal.measurement.zzfq v2_110 = this.zzacv.zzgj().zzalt.get();
                            if (v2_110 != 0) {
                                this.zzacv.zzgi().zzjb().zzg("Uploading events. Elapsed time since last upload attempt (ms)", Long.valueOf(Math.abs((v10_3 - v2_110))));
                            }
                            Object v4_8 = this.zzjh().zzhv();
                            if (android.text.TextUtils.isEmpty(v4_8)) {
                                this.zzasl = -1;
                                com.google.android.gms.internal.measurement.zzfq v2_119 = this.zzjh().zzag((v10_3 - com.google.android.gms.internal.measurement.zzeh.zzhr()));
                                if (!android.text.TextUtils.isEmpty(v2_119)) {
                                    com.google.android.gms.internal.measurement.zzfq v2_121 = this.zzjh().zzbf(v2_119);
                                    if (v2_121 != null) {
                                        this.zzb(v2_121);
                                    }
                                }
                            } else {
                                if (this.zzasl == -1) {
                                    this.zzasl = this.zzjh().zzic();
                                }
                                com.google.android.gms.internal.measurement.zzfm v3_4 = this.zzjh().zzb(v4_8, this.zzacv.zzgk().zzb(v4_8, com.google.android.gms.internal.measurement.zzez.zzaik), Math.max(0, this.zzacv.zzgk().zzb(v4_8, com.google.android.gms.internal.measurement.zzez.zzail)));
                                if (!v3_4.isEmpty()) {
                                    byte[] v6_1 = v3_4.iterator();
                                    while (v6_1.hasNext()) {
                                        com.google.android.gms.internal.measurement.zzfq v2_7 = ((com.google.android.gms.internal.measurement.zzku) ((android.util.Pair) v6_1.next()).first);
                                        if (!android.text.TextUtils.isEmpty(v2_7.zzavv)) {
                                            byte[] v6_2 = v2_7.zzavv;
                                        }
                                        byte[] v6_3;
                                        if (v6_2 == null) {
                                            v6_3 = v3_4;
                                        } else {
                                            java.net.URL v5_3 = 0;
                                            while (v5_3 < v3_4.size()) {
                                                com.google.android.gms.internal.measurement.zzfq v2_15 = ((com.google.android.gms.internal.measurement.zzku) ((android.util.Pair) v3_4.get(v5_3)).first);
                                                if ((android.text.TextUtils.isEmpty(v2_15.zzavv)) || (v2_15.zzavv.equals(v6_2))) {
                                                    v5_3++;
                                                } else {
                                                    v6_3 = v3_4.subList(0, v5_3);
                                                }
                                            }
                                        }
                                        com.google.android.gms.internal.measurement.zzfm v3_5;
                                        int v7_5 = new com.google.android.gms.internal.measurement.zzkt();
                                        com.google.android.gms.internal.measurement.zzfq v2_23 = new com.google.android.gms.internal.measurement.zzku[v6_3.size()];
                                        v7_5.zzavf = v2_23;
                                        com.google.android.gms.internal.measurement.zzjv v8_1 = new java.util.ArrayList(v6_3.size());
                                        if ((!com.google.android.gms.internal.measurement.zzeh.zzht()) || (!this.zzacv.zzgk().zzau(v4_8))) {
                                            v3_5 = 0;
                                        } else {
                                            v3_5 = 1;
                                        }
                                        java.net.URL v5_4 = 0;
                                        while (v5_4 < v7_5.zzavf.length) {
                                            v7_5.zzavf[v5_4] = ((com.google.android.gms.internal.measurement.zzku) ((android.util.Pair) v6_3.get(v5_4)).first);
                                            v8_1.add(((Long) ((android.util.Pair) v6_3.get(v5_4)).second));
                                            v7_5.zzavf[v5_4].zzavu = Long.valueOf(this.zzacv.zzgk().zzgw());
                                            v7_5.zzavf[v5_4].zzavk = Long.valueOf(v10_3);
                                            com.google.android.gms.internal.measurement.zzfq v2_81 = v7_5.zzavf[v5_4];
                                            this.zzacv.zzgl();
                                            v2_81.zzavz = Boolean.valueOf(0);
                                            if (v3_5 == null) {
                                                v7_5.zzavf[v5_4].zzawh = 0;
                                            }
                                            v5_4++;
                                        }
                                        com.google.android.gms.internal.measurement.zzfm v3_9;
                                        if (!this.zzacv.zzgi().isLoggable(2)) {
                                            v3_9 = 0;
                                        } else {
                                            v3_9 = this.zzjf().zzb(v7_5);
                                        }
                                        byte[] v6_4 = this.zzjf().zza(v7_5);
                                        String v9_0 = ((String) com.google.android.gms.internal.measurement.zzez.zzaiu.get());
                                        try {
                                            com.google.android.gms.internal.measurement.zzfq v2_44;
                                            java.net.URL v5_7 = new java.net.URL(v9_0);
                                        } catch (com.google.android.gms.internal.measurement.zzfq v2) {
                                            this.zzacv.zzgi().zziv().zze("Failed to parse upload URL. Not uploading. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(v4_8), v9_0);
                                        }
                                        if (v8_1.isEmpty()) {
                                            v2_44 = 0;
                                        } else {
                                            v2_44 = 1;
                                        }
                                        com.google.android.gms.common.internal.Preconditions.checkArgument(v2_44);
                                        if (this.zzasj == null) {
                                            this.zzasj = new java.util.ArrayList(v8_1);
                                        } else {
                                            this.zzacv.zzgi().zziv().log("Set uploading progress before finishing the previous upload");
                                        }
                                        this.zzacv.zzgj().zzalu.set(v10_3);
                                        com.google.android.gms.internal.measurement.zzfq v2_55 = "?";
                                        if (v7_5.zzavf.length > 0) {
                                            v2_55 = v7_5.zzavf[0].zzth;
                                        }
                                        this.zzacv.zzgi().zzjc().zzd("Uploading data. app, uncompressed size, data", v2_55, Integer.valueOf(v6_4.length), v3_9);
                                        this.zzasf = 1;
                                        com.google.android.gms.internal.measurement.zzfm v3_10 = this.zzkz();
                                        com.google.android.gms.internal.measurement.zzjv v8_7 = new com.google.android.gms.internal.measurement.zzjv(this, v4_8);
                                        v3_10.zzab();
                                        v3_10.zzch();
                                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v5_7);
                                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v6_4);
                                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v8_7);
                                        v3_10.zzgh().zzd(new com.google.android.gms.internal.measurement.zzfq(v3_10, v4_8, v5_7, v6_4, 0, v8_7));
                                    }
                                    v6_2 = 0;
                                }
                            }
                            this.zzasg = 0;
                            this.zzlh();
                        } else {
                            this.zzacv.zzgi().zzjc().log("Network not connected, ignoring upload request");
                            this.zzlg();
                            this.zzasg = 0;
                            this.zzlh();
                        }
                    } else {
                        this.zzacv.zzgi().zzjc().log("Uploading requested multiple times");
                        this.zzasg = 0;
                        this.zzlh();
                    }
                } else {
                    this.zzlg();
                    this.zzasg = 0;
                    this.zzlh();
                }
            } else {
                this.zzacv.zzgi().zziv().log("Upload called in the client side when service should be used");
                this.zzasg = 0;
                this.zzlh();
            }
        } else {
            this.zzacv.zzgi().zziy().log("Upload data called on the client side before use of service was decided");
            this.zzasg = 0;
            this.zzlh();
        }
        return;
    }

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


    private final void zzb(com.google.android.gms.internal.measurement.zzea p11)
    {
        this.zzab();
        if (!android.text.TextUtils.isEmpty(p11.getGmpAppId())) {
            com.google.android.gms.internal.measurement.zzfq v0_13;
            com.google.android.gms.internal.measurement.zzfm v1_7 = this.zzacv.zzgk();
            String v2_2 = p11.getGmpAppId();
            int v4_2 = p11.getAppInstanceId();
            android.support.v4.util.ArrayMap v5_2 = new android.net.Uri$Builder();
            com.google.android.gms.internal.measurement.zzjw v6_3 = v5_2.scheme(((String) com.google.android.gms.internal.measurement.zzez.zzaii.get())).encodedAuthority(((String) com.google.android.gms.internal.measurement.zzez.zzaij.get()));
            com.google.android.gms.internal.measurement.zzfq v0_11 = String.valueOf(v2_2);
            if (v0_11.length() == 0) {
                v0_13 = new String("config/app/");
            } else {
                v0_13 = "config/app/".concat(v0_11);
            }
            v6_3.path(v0_13).appendQueryParameter("app_instance_id", v4_2).appendQueryParameter("platform", "android").appendQueryParameter("gmp_version", String.valueOf(v1_7.zzgw()));
            String v7_1 = v5_2.build().toString();
            try {
                android.support.v4.util.ArrayMap v5_3;
                java.net.URL v8_1 = new java.net.URL(v7_1);
                this.zzacv.zzgi().zzjc().zzg("Fetching remote configuration", p11.zzah());
                com.google.android.gms.internal.measurement.zzfq v0_24 = this.zzky().zzbx(p11.zzah());
                com.google.android.gms.internal.measurement.zzfm v1_6 = this.zzky().zzby(p11.zzah());
            } catch (com.google.android.gms.internal.measurement.zzfq v0) {
                this.zzacv.zzgi().zziv().zze("Failed to parse config URL. Not fetching. appId", com.google.android.gms.internal.measurement.zzfi.zzbp(p11.zzah()), v7_1);
            }
            if ((v0_24 == null) || (android.text.TextUtils.isEmpty(v1_6))) {
                v5_3 = 0;
            } else {
                java.net.URL v3_3 = new android.support.v4.util.ArrayMap();
                v3_3.put("If-Modified-Since", v1_6);
                v5_3 = v3_3;
            }
            this.zzase = 1;
            com.google.android.gms.internal.measurement.zzfm v1_0 = this.zzkz();
            String v2_1 = p11.zzah();
            com.google.android.gms.internal.measurement.zzjw v6_1 = new com.google.android.gms.internal.measurement.zzjw(this);
            v1_0.zzab();
            v1_0.zzch();
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v8_1);
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v6_1);
            v1_0.zzgh().zzd(new com.google.android.gms.internal.measurement.zzfq(v1_0, v2_1, v8_1, 0, v5_3, v6_1));
        } else {
            this.zzb(p11.zzah(), 204, 0, 0, 0);
        }
        return;
    }

Method org.apache.cordova.CordovaResourceApi.openForRead() calling method java.net.URL.<init>()


    public org.apache.cordova.CordovaResourceApi$OpenForReadResult openForRead(android.net.Uri p23, boolean p24)
    {
        if (!p24) {
            this = this.assertBackgroundThread();
        }
        org.apache.cordova.CordovaResourceApi$OpenForReadResult v2_2;
        switch (org.apache.cordova.CordovaResourceApi.getUriType(p23)) {
            case 0:
                java.io.InputStream v4_2 = new java.io.FileInputStream(p23.getPath());
                v2_2 = new org.apache.cordova.CordovaResourceApi$OpenForReadResult(p23, v4_2, this.getMimeTypeFromPath(p23.getPath()), v4_2.getChannel().size(), 0);
                return v2_2;
            case 1:
                String v9 = p23.getPath().substring(15);
                int v6 = -1;
                try {
                    android.content.res.AssetFileDescriptor v8_2 = this.assetManager.openFd(v9);
                    java.io.InputStream v4_0 = v8_2.createInputStream();
                    int v6_3 = v8_2.getLength();
                } catch (java.io.FileNotFoundException v18) {
                    v4_0 = this.assetManager.open(v9);
                }
                v2_2 = new org.apache.cordova.CordovaResourceApi$OpenForReadResult(p23, v4_0, this.getMimeTypeFromPath(v9), v6_3, v8_2);
                return v2_2;
            case 2:
            case 3:
                String v5_3 = this.contentResolver.getType(p23);
                android.content.res.AssetFileDescriptor v8_1 = this.contentResolver.openAssetFileDescriptor(p23, "r");
                v2_2 = new org.apache.cordova.CordovaResourceApi$OpenForReadResult(p23, v8_1.createInputStream(), v5_3, v8_1.getLength(), v8_1);
                return v2_2;
            case 4:
                org.apache.cordova.CordovaResourceApi$OpenForReadResult v21 = this.readDataUri(p23);
                if (v21 == null) {
                } else {
                    v2_2 = v21;
                    return v2_2;
                }
            case 5:
            case 6:
                java.net.HttpURLConnection v17_1 = ((java.net.HttpURLConnection) new java.net.URL(p23.toString()).openConnection());
                v17_1.setDoInput(1);
                String v5_2 = v17_1.getHeaderField("Content-Type");
                if (v5_2 != null) {
                    v5_2 = v5_2.split(";")[0];
                }
                v2_2 = new org.apache.cordova.CordovaResourceApi$OpenForReadResult(p23, v17_1.getInputStream(), v5_2, ((long) v17_1.getContentLength()), 0);
                return v2_2;
            case 7:
                org.apache.cordova.CordovaPlugin v19 = this.pluginManager.getPlugin(p23.getHost());
                if (v19 != null) {
                    v2_2 = v19.handleOpenForRead(p23);
                    return v2_2;
                } else {
                    throw new java.io.FileNotFoundException(new StringBuilder().append("Invalid plugin ID in URI: ").append(p23).toString());
                }
        }
        throw new java.io.FileNotFoundException(new StringBuilder().append("URI not supported by CordovaResourceApi: ").append(p23).toString());
    }

Method org.apache.cordova.CordovaResourceApi.getMimeType() calling method java.net.URL.<init>()


    public String getMimeType(android.net.Uri p5)
    {
        String v1;
        switch (org.apache.cordova.CordovaResourceApi.getUriType(p5)) {
            case 0:
            case 1:
                v1 = this.getMimeTypeFromPath(p5.getPath());
                break;
            case 2:
            case 3:
                v1 = this.contentResolver.getType(p5);
                break;
            case 4:
                v1 = this.getDataUriMimeType(p5);
                break;
            case 5:
            case 6:
                try {
                    java.net.HttpURLConnection v0_1 = ((java.net.HttpURLConnection) new java.net.URL(p5.toString()).openConnection());
                    v0_1.setDoInput(0);
                    v0_1.setRequestMethod("HEAD");
                    v1 = v0_1.getHeaderField("Content-Type");
                } catch (String[] v2) {
                    v1 = 0;
                }
                if (v1 == null) {
                } else {
                    v1 = v1.split(";")[0];
                }
                break;
            default:
        }
        return v1;
    }

Method org.apache.cordova.CordovaResourceApi.createHttpConnection() calling method java.net.URL.<init>()


    public java.net.HttpURLConnection createHttpConnection(android.net.Uri p3)
    {
        this.assertBackgroundThread();
        return ((java.net.HttpURLConnection) new java.net.URL(p3.toString()).openConnection());
    }

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.zzc();
        String v2_4 = this.zzl;
        String v3_4 = android.net.Uri.parse("https://pagead2.googlesyndication.com/pagead/gen_204?id=gmob-apps").buildUpon();
        String v4_3 = v2_4.keySet().iterator();
        while (v4_3.hasNext()) {
            RuntimeException v0_2 = ((String) v4_3.next());
            v3_4.appendQueryParameter(v0_2, ((String) v2_4.get(v0_2)));
        }
        String v2_3 = v3_4.build().toString();
        try {
            RuntimeException v0_8 = ((java.net.HttpURLConnection) new java.net.URL(v2_3).openConnection());
        } catch (RuntimeException v0_12) {
            String v3_5 = v0_12.getMessage();
            v2_3 = new StringBuilder(((String.valueOf(v2_3).length() + 32) + String.valueOf(v3_5).length())).append("Error while parsing ping URL: ").append(v2_3).append(". ").append(v3_5).toString();
            android.util.Log.w("HttpUrlPinger", v2_3, v0_12);
            return;
        } catch (RuntimeException v0_11) {
            String v3_3 = v0_11.getMessage();
            v2_3 = new StringBuilder(((String.valueOf(v2_3).length() + 27) + String.valueOf(v3_3).length())).append("Error while pinging URL: ").append(v2_3).append(". ").append(v3_3).toString();
            android.util.Log.w("HttpUrlPinger", v2_3, v0_11);
            return;
        } catch (RuntimeException v0_11) {
        }
        String v1_2 = v0_8.getResponseCode();
        if ((v1_2 < 200) || (v1_2 >= 300)) {
            android.util.Log.w("HttpUrlPinger", new StringBuilder((String.valueOf(v2_3).length() + 65)).append("Received non-success response code ").append(v1_2).append(" from pinging URL: ").append(v2_3).toString());
        }
        v0_8.disconnect();
        return;
    }

Method com.github.kevinsawicki.http.HttpRequest.encode() calling method java.net.URL.<init>()


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

Method com.github.kevinsawicki.http.HttpRequest.<init>() calling method java.net.URL.<init>()


    public HttpRequest(CharSequence p5, String p6)
    {
        this.connection = 0;
        this.ignoreCloseExceptions = 1;
        this.uncompress = 0;
        this.bufferSize = 8192;
        this.totalSize = -1;
        this.totalWritten = 0;
        this.progress = com.github.kevinsawicki.http.HttpRequest$UploadProgress.DEFAULT;
        try {
            this.url = new java.net.URL(p5.toString());
            this.requestMethod = p6;
            return;
        } catch (java.net.MalformedURLException v0) {
            throw new com.github.kevinsawicki.http.HttpRequest$HttpRequestException(v0);
        }
    }

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


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

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


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

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


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

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


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