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.newrelic.agent.android.analytics.NetworkRequestEvent.createDefaultAttributeSet() calling method java.net.URL.<init>()


    static java.util.Set createDefaultAttributeSet(com.newrelic.agent.android.harvest.HttpTransaction p7)
    {
        java.util.HashSet v0_1 = new java.util.HashSet();
        try {
            float v1_10 = new java.net.URL(p7.getUrl());
            v0_1.add(new com.newrelic.agent.android.analytics.AnalyticAttribute("requestDomain", v1_10.getHost()));
            v0_1.add(new com.newrelic.agent.android.analytics.AnalyticAttribute("requestPath", v1_10.getPath()));
        } catch (java.net.MalformedURLException) {
            String v2_4 = new StringBuilder();
            v2_4.append(p7.getUrl());
            v2_4.append(" is not a valid URL. Unable to set host or path attributes.");
            com.newrelic.agent.android.analytics.NetworkRequestEvent.log.error(v2_4.toString());
        }
        v0_1.add(new com.newrelic.agent.android.analytics.AnalyticAttribute("requestUrl", p7.getUrl()));
        v0_1.add(new com.newrelic.agent.android.analytics.AnalyticAttribute("connectionType", p7.getWanType()));
        v0_1.add(new com.newrelic.agent.android.analytics.AnalyticAttribute("requestMethod", p7.getHttpMethod()));
        float v1_9 = p7.getTotalTime();
        if (v1_9 != 0) {
            v0_1.add(new com.newrelic.agent.android.analytics.AnalyticAttribute("responseTime", Double.valueOf(v1_9).floatValue()));
        }
        float v1_14 = ((double) p7.getBytesSent());
        if (v1_14 != 0) {
            v0_1.add(new com.newrelic.agent.android.analytics.AnalyticAttribute("byteSent", Double.valueOf(v1_14).floatValue()));
        }
        float v1_18 = ((double) p7.getBytesReceived());
        if (v1_18 != 0) {
            v0_1.add(new com.newrelic.agent.android.analytics.AnalyticAttribute("bytesReceived", Double.valueOf(v1_18).floatValue()));
        }
        return v0_1;
    }

Method com.rnfs.RNFSManager.downloadFile() calling method java.net.URL.<init>()


    public void downloadFile(com.facebook.react.bridge.ReadableMap p7, com.facebook.react.bridge.Promise p8)
    {
        try {
            Exception v0_10 = new java.io.File(p7.f("toFile"));
            String v1_7 = new java.net.URL(p7.f("fromUrl"));
            int v2_1 = p7.e("jobId");
            int v3_1 = p7.k("headers");
            int v4_1 = p7.e("progressDivider");
            com.rnfs.DownloadParams v5_1 = new com.rnfs.DownloadParams();
            v5_1.a = v1_7;
            v5_1.b = v0_10;
            v5_1.c = v3_1;
            v5_1.d = ((float) v4_1);
            v5_1.g = new com.rnfs.RNFSManager$1(this, v2_1, p8, p7);
            v5_1.h = new com.rnfs.RNFSManager$2(this, v2_1);
            v5_1.i = new com.rnfs.RNFSManager$3(this, v2_1);
            Exception v0_9 = new com.rnfs.Downloader();
            String v1_3 = new com.rnfs.DownloadParams[1];
            v1_3[0] = v5_1;
            v0_9.execute(v1_3);
            this.downloaders.put(v2_1, v0_9);
        } catch (Exception v0_11) {
            v0_11.printStackTrace();
            this.reject(p8, p7.f("toFile"), v0_11);
        }
        return;
    }

Method com.reactlibrary.RNReactNativeDocViewerModule.downloadFile() calling method java.net.URL.<init>()


    private java.io.File downloadFile(String p19, String p20, Boolean p21, String p22, byte[] p23, com.facebook.react.bridge.Callback p24)
    {
        String v2_0 = p20;
        byte[] v4_3 = p22;
        try {
            java.io.PrintStream v10_1 = this.getReactApplicationContext().getBaseContext().getCacheDir();
        } catch (java.io.IOException v0_7) {
            v0_7.printStackTrace();
            java.io.PrintStream v1_14 = new Object[1];
            v1_14[0] = Integer.valueOf(2);
            p24.a(v1_14);
            return 0;
        } catch (java.io.IOException v0_6) {
            v0_6.printStackTrace();
            java.io.PrintStream v1_12 = new Object[1];
            v1_12[0] = Integer.valueOf(1);
            p24.a(v1_12);
            return 0;
        }
        if (p23.length <= 0) {
            int v5_2 = android.webkit.MimeTypeMap.getFileExtensionFromUrl(p19);
            long v12_7 = new StringBuilder();
            v12_7.append("Extensions DownloadFile ");
            v12_7.append(v5_2);
            System.out.println(v12_7.toString());
            if ((v5_2.equals("")) && (p22.equals(""))) {
                v5_2 = "pdf";
                long v12_10 = new StringBuilder();
                v12_10.append("extension (default): ");
                v12_10.append("pdf");
                System.out.println(v12_10.toString());
            }
            if ((p22 == "") || (!v5_2.equals(""))) {
                v4_3 = v5_2;
            } else {
                int v11_11 = new StringBuilder();
                v11_11.append("extension (default): ");
                v11_11.append(p22);
                System.out.println(v11_11.toString());
            }
            if (p20.indexOf("\\.") == -1) {
                int v5_8 = new StringBuilder();
                v5_8.append(p20);
                v5_8.append(46);
                v5_8.append(v4_3);
                v2_0 = v5_8.toString();
            }
            if ((p21 != null) && (p21.booleanValue())) {
                int v5_11 = new java.io.File(v10_1, v2_0);
                if (v5_11.exists()) {
                    return v5_11;
                }
            }
            int v5_13;
            int v5_12 = android.webkit.CookieManager.getInstance();
            if (v5_12.getCookie(p19) == null) {
                v5_13 = 0;
            } else {
                v5_13 = v5_12.getCookie(p19).toString();
            }
            java.io.PrintStream v1_16 = ((java.net.HttpURLConnection) new java.net.URL(p19).openConnection());
            int v11_18 = v1_16.getContentLength();
            if (v5_13 != 0) {
                v1_16.setRequestProperty("Cookie", v5_13);
            }
            java.io.File v3_4;
            java.io.PrintStream v1_1 = v1_16.getInputStream();
            if ((p21 == null) || (!p21.booleanValue())) {
                java.io.File v3_2 = new StringBuilder();
                v3_2.append(".");
                v3_2.append(v4_3);
                v3_4 = java.io.File.createTempFile("PP_", v3_2.toString(), v10_1);
            } else {
                v3_4 = new java.io.File(v10_1, v2_0);
            }
            v3_4.setReadable(1, 0);
            System.out.println(v3_4.getPath());
            String v2_4 = new java.io.FileOutputStream(v3_4);
            byte[] v4_2 = new byte[4096];
            long v12_1 = 0;
            int v5_1 = v1_1.read(v4_2);
            while (v5_1 > 0) {
                long v16 = (v12_1 + ((long) v5_1));
                if (v11_18 > 0) {
                    System.out.println(((int) ((100 * v16) / ((long) v11_18))));
                }
                v2_4.write(v4_2, 0, v5_1);
                v5_1 = v1_1.read(v4_2);
                v12_1 = v16;
            }
            v1_1.close();
            v2_4.close();
            if (!v3_4.exists()) {
                System.out.println("File doesn\'t exist");
            } else {
                System.out.println("File exists");
            }
            return v3_4;
        } else {
            if ((p21 == null) || (!p21.booleanValue())) {
                String v2_8 = new StringBuilder();
                v2_8.append(".");
                v2_8.append(p22);
                java.io.PrintStream v1_7 = java.io.File.createTempFile("PP_", v2_8.toString(), v10_1);
            } else {
                v1_7 = new java.io.File(v10_1, p20);
            }
            System.out.println("Bytes will be creating a file");
            java.io.File v3_9 = new java.io.BufferedOutputStream(new java.io.FileOutputStream(v1_7));
            try {
                v3_9.write(p23);
                try {
                    v3_9.close();
                } catch (java.io.IOException v0_5) {
                    v0_5.printStackTrace();
                }
                return v1_7;
            } catch (java.io.IOException v0_3) {
                java.io.PrintStream v1_10 = v0_3;
                try {
                    v3_9.close();
                } catch (java.io.IOException v0_4) {
                    v0_4.printStackTrace();
                }
                throw v1_10;
            } catch (java.io.IOException v0_1) {
                v0_1.printStackTrace();
                try {
                    v3_9.close();
                } catch (java.io.IOException v0_2) {
                    v0_2.printStackTrace();
                }
                return 0;
            }
        }
    }

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


    public java.net.URL read(com.newrelic.com.google.gson.stream.JsonReader p4)
    {
        java.net.URL v2_1 = 0;
        if (p4.peek() != com.newrelic.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.newrelic.agent.android.crash.CrashSender.getConnection() calling method java.net.URL.<init>()


    protected java.net.HttpURLConnection getConnection()
    {
        java.net.HttpURLConnection v0_1 = new StringBuilder();
        v0_1.append(this.getProtocol());
        v0_1.append(this.agentConfiguration.getCrashCollectorHost());
        v0_1.append("/mobile_crash");
        java.net.HttpURLConnection v0_4 = ((java.net.HttpURLConnection) new java.net.URL(v0_1.toString()).openConnection());
        v0_4.setDoOutput(1);
        v0_4.setChunkedStreamingMode(0);
        v0_4.setRequestProperty("Content-Type", "application/json");
        v0_4.setRequestProperty(this.agentConfiguration.getAppTokenHeader(), this.agentConfiguration.getApplicationToken());
        v0_4.setRequestProperty(this.agentConfiguration.getDeviceOsNameHeader(), com.newrelic.agent.android.Agent.getDeviceInformation().getOsName());
        v0_4.setRequestProperty(this.agentConfiguration.getAppVersionHeader(), com.newrelic.agent.android.Agent.getApplicationInformation().getAppVersion());
        v0_4.setConnectTimeout(5000);
        v0_4.setReadTimeout(5000);
        return v0_4;
    }

Method com.newrelic.agent.android.agentdata.AgentDataSender.getConnection() calling method java.net.URL.<init>()


    protected java.net.HttpURLConnection getConnection()
    {
        java.net.HttpURLConnection v0_1 = new StringBuilder();
        v0_1.append(this.getProtocol());
        v0_1.append(this.agentConfiguration.getHexCollectorHost());
        v0_1.append(this.agentConfiguration.getHexCollectorPath());
        java.net.HttpURLConnection v0_4 = ((java.net.HttpURLConnection) new java.net.URL(v0_1.toString()).openConnection());
        v0_4.setDoOutput(1);
        v0_4.setChunkedStreamingMode(0);
        v0_4.setRequestMethod("POST");
        v0_4.setRequestProperty("Content-Type", "application/octet-stream");
        v0_4.setRequestProperty(this.agentConfiguration.getAppTokenHeader(), this.agentConfiguration.getApplicationToken());
        v0_4.setRequestProperty(this.agentConfiguration.getDeviceOsNameHeader(), com.newrelic.agent.android.Agent.getDeviceInformation().getOsName());
        v0_4.setRequestProperty(this.agentConfiguration.getAppVersionHeader(), com.newrelic.agent.android.Agent.getApplicationInformation().getAppVersion());
        v0_4.setConnectTimeout(this.agentConfiguration.getHexCollectorTimeout());
        v0_4.setReadTimeout(this.agentConfiguration.getHexCollectorTimeout());
        return v0_4;
    }

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 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 io.fabric.sdk.android.services.network.HttpRequest.<init>() calling method java.net.URL.<init>()


    public HttpRequest(CharSequence p2, String p3)
    {
        this.d = 0;
        this.h = 1;
        this.i = 0;
        this.j = 8192;
        try {
            this.a = new java.net.URL(p2.toString());
            this.e = p3;
            return;
        } catch (java.net.MalformedURLException v2_2) {
            throw new io.fabric.sdk.android.services.network.HttpRequest$HttpRequestException(v2_2);
        }
    }

Method com.rnfs.Downloader.a() calling method java.net.URL.<init>()


    private void a(com.rnfs.DownloadParams p27, com.rnfs.DownloadResult p28)
    {
        java.io.FileOutputStream v4_0 = 0;
        try {
            java.io.FileOutputStream v5_0 = ((java.net.HttpURLConnection) p27.a.openConnection());
            try {
                java.io.FileOutputStream v6_3 = p27.c.a();
            } catch (Throwable v0_4) {
                Throwable v2_1 = v0_4;
                java.io.BufferedInputStream v8_0 = 0;
                if (v4_0 != null) {
                    v4_0.close();
                }
                if (v8_0 != null) {
                    v8_0.close();
                }
                if (v5_0 != null) {
                    v5_0.disconnect();
                }
                throw v2_1;
            }
            while (v6_3.hasNextKey()) {
                int v7_1 = v6_3.nextKey();
                v5_0.setRequestProperty(v7_1, p27.c.f(v7_1));
            }
            java.io.BufferedInputStream v8_8;
            v5_0.setConnectTimeout(p27.f);
            v5_0.setReadTimeout(p27.e);
            v5_0.connect();
            java.io.FileOutputStream v6_0 = v5_0.getResponseCode();
            int v7_2 = v5_0.getContentLength();
            if ((v6_0 == 200) || ((v6_0 != 301) && ((v6_0 != 302) && ((v6_0 != 307) && (v6_0 != 308))))) {
                v8_8 = 0;
            } else {
                v8_8 = 1;
            }
            if (v8_8 == null) {
                try {
                    java.io.BufferedInputStream v8_9 = v5_0.getHeaderFields();
                    int[] v11_7 = new java.util.HashMap();
                    java.io.BufferedInputStream v8_11 = v8_9.entrySet().iterator();
                } catch (Throwable v0_4) {
                }
                while (v8_11.hasNext()) {
                    int v12_1 = ((java.util.Map$Entry) v8_11.next());
                    int v13_12 = ((String) v12_1.getKey());
                    int v12_5 = ((String) ((java.util.List) v12_1.getValue()).get(0));
                    if ((v13_12 != 0) && (v12_5 != 0)) {
                        v11_7.put(v13_12, v12_5);
                    }
                }
                this.b.h.a(v6_0, v7_2, v11_7);
                v8_0 = new java.io.BufferedInputStream(v5_0.getInputStream(), 8192);
                try {
                    int[] v11_5 = new java.io.FileOutputStream(p27.b);
                    try {
                        java.io.FileOutputStream v4_1 = new byte[8192];
                        int v14 = 0;
                        java.io.FileOutputStream v15 = 0;
                    } catch (Throwable v0_0) {
                        v6_0 = v5_0;
                        java.io.FileOutputStream v5_1 = v11_5;
                        v2_1 = v0_0;
                        v4_0 = v5_1;
                    }
                    while(true) {
                        int v12_8 = v8_0.read(v4_1);
                        if (v12_8 == -1) {
                            break;
                        }
                        try {
                            if (!this.c.get()) {
                                v14 += v12_8;
                                java.io.FileOutputStream v23_1;
                                java.io.FileOutputStream v24;
                                java.io.FileOutputStream v20;
                                if (p27.d > 0) {
                                    v20 = v11_5;
                                    v23_1 = v5_0;
                                    v24 = v6_0;
                                    try {
                                        java.io.FileOutputStream v5_4 = ((double) Math.round(((((double) v14) * 100.0) / ((double) v7_2))));
                                    } catch (Throwable v0_1) {
                                        v5_0 = v20;
                                        v2_1 = v0_1;
                                        v4_0 = v5_0;
                                        v5_0 = v23_1;
                                    }
                                    if (((v5_4 % ((double) p27.d)) == 0) && ((v5_4 != v15) || (v14 == v7_2))) {
                                        try {
                                            int[] v11_1 = new StringBuilder();
                                            v11_1.append("EMIT: ");
                                            v11_1.append(String.valueOf(v5_4));
                                            v11_1.append(", TOTAL:");
                                            v11_1.append(String.valueOf(v14));
                                            android.util.Log.d("Downloader", v11_1.toString());
                                            int[][] v10_9 = new int[][1];
                                            int[] v11_4 = new int[2];
                                            v11_4[0] = v7_2;
                                            v11_4[1] = v14;
                                            v10_9[0] = v11_4;
                                            this.publishProgress(v10_9);
                                            v15 = v5_4;
                                        } catch (Throwable v0_2) {
                                            v2_1 = v0_2;
                                            v4_0 = v20;
                                        }
                                    }
                                } else {
                                    int v13_10 = new int[][1];
                                    int[][] v10_10 = new int[2];
                                    v10_10[0] = v7_2;
                                    v10_10[1] = v14;
                                    v13_10[0] = v10_10;
                                    this.publishProgress(v13_10);
                                    v23_1 = v5_0;
                                    v24 = v6_0;
                                    v20 = v11_5;
                                }
                                java.io.FileOutputStream v5_5 = v20;
                                try {
                                    v5_5.write(v4_1, 0, v12_8);
                                    v11_5 = v5_5;
                                    v5_0 = v23_1;
                                    v6_0 = v24;
                                } catch (Throwable v0_1) {
                                }
                            } else {
                                throw new Exception("Download has been aborted");
                            }
                        } catch (Throwable v0_1) {
                            v23_1 = v5_0;
                            v5_0 = v11_5;
                        } catch (Throwable v0_3) {
                            v2_1 = v0_3;
                            v4_0 = v11_5;
                        }
                    }
                    java.io.FileOutputStream v23_0 = v5_0;
                    v5_1 = v11_5;
                    try {
                        v5_1.flush();
                        p28.a = v6_0;
                        p28.b = v14;
                    } catch (Throwable v0_0) {
                        v6_0 = v23_0;
                    }
                    if (v5_1 != null) {
                        v5_1.close();
                    }
                    if (v8_0 != null) {
                        v8_0.close();
                    }
                    if (v23_0 != null) {
                        v23_0.disconnect();
                    }
                    return;
                } catch (Throwable v0_7) {
                    v2_1 = v0_7;
                }
            } else {
                java.io.FileOutputStream v6_8 = v5_0.getHeaderField("Location");
                v5_0.disconnect();
                java.io.FileOutputStream v6_10 = ((java.net.HttpURLConnection) new java.net.URL(v6_8).openConnection());
                try {
                    v6_10.setConnectTimeout(5000);
                    v6_10.connect();
                    java.io.FileOutputStream v5_8 = v6_10.getResponseCode();
                    v7_2 = v6_10.getContentLength();
                    v6_0 = v5_8;
                    v5_0 = v6_10;
                } catch (Throwable v0_5) {
                    v2_1 = v0_5;
                    v8_0 = 0;
                }
            }
            v5_0 = v6_0;
        } catch (Throwable v0_6) {
            v2_1 = v0_6;
            v5_0 = 0;
            v8_0 = 0;
        }
    }

Method com.newrelic.agent.android.util.Util.sanitizeUrl() calling method java.net.URL.<init>()


    public static String sanitizeUrl(String p3)
    {
        if (p3 != null) {
            try {
                java.net.URL v1_1 = new java.net.URL(p3);
                String v3_3 = new StringBuffer();
                v3_3.append(v1_1.getProtocol());
                v3_3.append("://");
                v3_3.append(v1_1.getHost());
                String v0_2 = v1_1.getPort();
            } catch (java.net.MalformedURLException) {
                return v0_2;
            }
            if (v0_2 != -1) {
                v3_3.append(":");
                v3_3.append(v1_1.getPort());
            }
            v3_3.append(v1_1.getPath());
            return v3_3.toString();
        } else {
            return 0;
        }
    }

Method com.newrelic.agent.android.instrumentation.TransactionState.setUrl() calling method java.net.URL.<init>()


    public void setUrl(String p4)
    {
        com.newrelic.agent.android.logging.AgentLog v4_1 = com.newrelic.agent.android.util.Util.sanitizeUrl(p4);
        if (v4_1 != null) {
            if (this.isSent()) {
                String v0_8 = new StringBuilder();
                v0_8.append("setUrl(...) called on TransactionState in ");
                v0_8.append(this.state.toString());
                v0_8.append(" state");
                com.newrelic.agent.android.instrumentation.TransactionState.log.warning(v0_8.toString());
            } else {
                this.url = v4_1;
                try {
                    String v0_2 = new StringBuilder();
                    v0_2.append("External/");
                    v0_2.append(new java.net.URL(v4_1).getHost());
                    com.newrelic.agent.android.tracing.TraceMachine.setCurrentDisplayName(v0_2.toString());
                } catch (java.net.MalformedURLException) {
                    String v1_8 = new StringBuilder();
                    v1_8.append("unable to parse host name from ");
                    v1_8.append(v4_1);
                    com.newrelic.agent.android.instrumentation.TransactionState.log.error(v1_8.toString());
                }
                com.newrelic.agent.android.tracing.TraceMachine.setCurrentTraceParam("uri", v4_1);
            }
            return;
        } else {
            return;
        }
    }

Method com.newrelic.agent.android.NewRelic._noticeHttpTransaction() calling method java.net.URL.<init>()


    protected static void _noticeHttpTransaction(String p18, String p19, int p20, long p21, long p23, long p25, long p27, String p29, java.util.Map p30, String p31)
    {
        com.newrelic.agent.android.NewRelic.checkEmpty(p18, "noticeHttpTransaction: url must not be empty.");
        com.newrelic.agent.android.NewRelic.checkEmpty(p19, "noticeHttpTransaction: httpMethod must not be empty.");
        try {
            new java.net.URL(p18);
            String v0_0 = ((double) (p23 - p21));
        } catch (java.net.MalformedURLException) {
            String v2_4 = new StringBuilder();
            v2_4.append("noticeHttpTransaction: URL is malformed: ");
            v2_4.append(p18);
            throw new IllegalArgumentException(v2_4.toString());
        }
        if (!com.newrelic.agent.android.NewRelic.checkNegative(((int) v0_0), "noticeHttpTransaction: the startTimeMs is later than the endTimeMs, resulting in a negative total time.")) {
            long v11_0 = new com.newrelic.agent.android.measurement.http.HttpTransactionMeasurement;
            com.newrelic.agent.android.measurement.http.HttpTransactionMeasurement v16 = v11_0;
            v11_0(p18, p19, p20, 0, p21, (v0_0 / 1000.0), p25, p27, p31);
            com.newrelic.agent.android.TaskQueue.queue(v16);
            if (((long) p20) >= 400) {
                com.newrelic.agent.android.Measurements.addHttpError(p18, p19, p20, p29, p30);
            }
        }
        return;
    }

Method com.coupa.android.coupamobile.views.LoginCoupaInstanceActivity.validateInstance() calling method java.net.URL.<init>()


    private boolean validateInstance(String p6)
    {
        int v0 = 1;
        try {
            java.net.URL v2_5;
            String v6_5 = com.coupa.android.coupamobile.core.cs_api.CSApi.urlEncode(p6);
        } catch (Exception) {
            v0 = 0;
            return v0;
        }
        if (!v6_5.contains("http://")) {
            v2_5 = "https";
        } else {
            v2_5 = "http";
        }
        String v6_2 = v6_5.replace("http://", "").replace("https://", "");
        Object[] v4_3 = new Object[3];
        v4_3[0] = v2_5;
        v4_3[1] = v6_2;
        v4_3[2] = "path";
        String v6_6 = new java.net.URL(String.format("%s://%s/%s", v4_3)).toURI();
        v6_6.toString();
        if (v6_6.getHost() != null) {
            return v0;
        } else {
            return 0;
        }
    }

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


    private final java.net.URL d()
    {
        int v0_1;
        int v0_4 = String.valueOf(com.google.android.gms.internal.zzard.h());
        String v1_8 = String.valueOf(((String) com.google.android.gms.internal.zzarl.n.a()));
        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.e("Error trying to parse the hardcoded host url", v0_2);
            return 0;
        }
    }

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


    private final java.net.URL a(com.google.android.gms.internal.zzarq p4, String p5)
    {
        int v4_2;
        StringBuilder v2_5;
        String v0;
        if (!p4.f()) {
            v4_2 = com.google.android.gms.internal.zzard.i();
            v0 = com.google.android.gms.internal.zzard.j();
            v2_5 = new StringBuilder((((String.valueOf(v4_2).length() + 1) + String.valueOf(v0).length()) + String.valueOf(p5).length()));
        } else {
            v4_2 = com.google.android.gms.internal.zzard.h();
            v0 = com.google.android.gms.internal.zzard.j();
            v2_5 = new StringBuilder((((String.valueOf(v4_2).length() + 1) + String.valueOf(v0).length()) + String.valueOf(p5).length()));
        }
        v2_5.append(v4_2);
        v2_5.append(v0);
        v2_5.append("?");
        v2_5.append(p5);
        try {
            return new java.net.URL(v2_5.toString());
        } catch (int v4_5) {
            this.e("Error trying to parse the hardcoded host url", v4_5);
            return 0;
        }
    }

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


    private final java.net.URL a(com.google.android.gms.internal.zzarq p3)
    {
        int v3_3;
        String v0_2;
        int v3_4;
        String v0_0;
        if (!p3.f()) {
            v3_3 = String.valueOf(com.google.android.gms.internal.zzard.i());
            v0_0 = String.valueOf(com.google.android.gms.internal.zzard.j());
            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.zzard.h());
            v0_0 = String.valueOf(com.google.android.gms.internal.zzard.j());
            if (v0_0.length() == 0) {
                v0_2 = new String(v3_3);
            }
        }
        try {
            return new java.net.URL(v3_4);
        } catch (int v3_5) {
            this.e("Error trying to parse the hardcoded host url", v3_5);
            return 0;
        }
    }

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


    public final com.google.android.gms.internal.zzap a(com.google.android.gms.internal.zzr p7, java.util.Map p8)
    {
        java.io.InputStream v8_1;
        String v0_0 = p7.c();
        java.util.List v1_2 = new java.util.HashMap();
        v1_2.putAll(p7.e());
        v1_2.putAll(p8);
        if (this.a == null) {
            v8_1 = v0_0;
        } else {
            v8_1 = this.a.a(v0_0);
            if (v8_1 == null) {
                java.io.InputStream v8_4;
                String v0_1 = String.valueOf(v0_0);
                if (v0_1.length() == 0) {
                    v8_4 = new String("URL blocked by rewriter: ");
                } else {
                    v8_4 = "URL blocked by rewriter: ".concat(v0_1);
                }
                throw new java.io.IOException(v8_4);
            }
        }
        String v0_5 = new java.net.URL(v8_1);
        java.io.InputStream v8_6 = ((java.net.HttpURLConnection) v0_5.openConnection());
        v8_6.setInstanceFollowRedirects(java.net.HttpURLConnection.getFollowRedirects());
        int v2_1 = p7.h();
        v8_6.setConnectTimeout(v2_1);
        v8_6.setReadTimeout(v2_1);
        int v2_2 = 0;
        v8_6.setUseCaches(0);
        v8_6.setDoInput(1);
        "https".equals(v0_5.getProtocol());
        String v0_8 = v1_2.keySet().iterator();
        while (v0_8.hasNext()) {
            String v4_1 = ((String) v0_8.next());
            v8_6.addRequestProperty(v4_1, ((String) v1_2.get(v4_1)));
        }
        String v0_11;
        String v0_10;
        switch (p7.a()) {
            case -1:
                break;
            case 0:
                v0_11 = "GET";
                v8_6.setRequestMethod(v0_11);
                break;
            case 1:
                v0_10 = "POST";
                v8_6.setRequestMethod(v0_10);
                ark>com.google.android.gms.internal.zzarark>.a(v8_6, 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.");
        }
        String v0_12 = v8_6.getResponseCode();
        if (v0_12 != -1) {
            if (((p7.a() != 4) && ((100 > v0_12) || (v0_12 >= 200))) && ((v0_12 != 204) && (v0_12 != 304))) {
                v2_2 = 1;
            }
            if (v2_2 != 0) {
                return new com.google.android.gms.internal.zzap(v0_12, ark>com.google.android.gms.internal.zzarark>.a(v8_6.getHeaderFields()), v8_6.getContentLength(), ark>com.google.android.gms.internal.zzarark>.a(v8_6));
            } else {
                return new com.google.android.gms.internal.zzap(v0_12, ark>com.google.android.gms.internal.zzarark>.a(v8_6.getHeaderFields()));
            }
        } else {
            throw new java.io.IOException("Could not retrieve response code from HttpUrlConnection.");
        }
    }

Method com.flurry.sdk.lg.i() calling method java.net.URL.<init>()


    private void i()
    {
        if (!this.x) {
            this.g = com.flurry.sdk.mi.a(this.g);
            try {
                this.v = ((java.net.HttpURLConnection) new java.net.URL(this.g).openConnection());
                this.v.setConnectTimeout(this.i);
                this.v.setReadTimeout(this.j);
                this.v.setRequestMethod(this.h.toString());
                this.v.setInstanceFollowRedirects(this.k);
                this.v.setDoOutput(com.flurry.sdk.lg$a.c.equals(this.h));
                this.v.setDoInput(1);
                Throwable v0_31 = this.a.b().iterator();
            } catch (Throwable v0_24) {
                this.j();
                throw v0_24;
            }
            while (v0_31.hasNext()) {
                com.flurry.sdk.lg$c v1_7 = ((java.util.Map$Entry) v0_31.next());
                this.v.addRequestProperty(((String) v1_7.getKey()), ((String) v1_7.getValue()));
            }
            if ((!com.flurry.sdk.lg$a.b.equals(this.h)) && (!com.flurry.sdk.lg$a.c.equals(this.h))) {
                this.v.setRequestProperty("Accept-Encoding", "");
            }
            if (!this.x) {
                if (com.flurry.sdk.lg$a.c.equals(this.h)) {
                    Throwable v0_42 = this.v.getOutputStream();
                    Throwable v2_15 = new java.io.BufferedOutputStream(v0_42);
                    if ((this.l != null) && (!this.g())) {
                        this.l.a(v2_15);
                    }
                    com.flurry.sdk.mi.a(v2_15);
                    com.flurry.sdk.mi.a(v0_42);
                }
                if (this.m) {
                    this.n = System.currentTimeMillis();
                }
                if (this.r) {
                    this.y.a(((long) this.s));
                }
                this.q = this.v.getResponseCode();
                if ((this.m) && (this.n != -1)) {
                    this.o = (System.currentTimeMillis() - this.n);
                }
                this.y.a();
                Throwable v0_11 = this.v.getHeaderFields().entrySet().iterator();
                while (v0_11.hasNext()) {
                    Throwable v2_11 = ((java.util.Map$Entry) v0_11.next());
                    java.util.Iterator v3_2 = ((java.util.List) v2_11.getValue()).iterator();
                    while (v3_2.hasNext()) {
                        this.f.a(v2_11.getKey(), ((String) v3_2.next()));
                    }
                }
                if ((com.flurry.sdk.lg$a.b.equals(this.h)) || (com.flurry.sdk.lg$a.c.equals(this.h))) {
                    if (!this.x) {
                        try {
                            Throwable v0_19 = this.v.getInputStream();
                            try {
                                Throwable v2_7 = new java.io.BufferedInputStream(v0_19);
                                try {
                                    if ((this.l != null) && (!this.g())) {
                                        this.l.a(this, v2_7);
                                    }
                                } catch (com.flurry.sdk.lg$c v1_1) {
                                    com.flurry.sdk.mi.a(v2_7);
                                    com.flurry.sdk.mi.a(v0_19);
                                    throw v1_1;
                                }
                                com.flurry.sdk.mi.a(v2_7);
                                com.flurry.sdk.mi.a(v0_19);
                                this.j();
                                return;
                            } catch (Throwable v2_9) {
                                v2_7 = 0;
                                v1_1 = v2_9;
                            }
                        } catch (Throwable v0_20) {
                            v2_7 = 0;
                            v1_1 = v0_20;
                            v0_19 = 0;
                        }
                    } else {
                        this.j();
                        return;
                    }
                } else {
                    this.j();
                    return;
                }
            } else {
                this.j();
                return;
            }
        } else {
            return;
        }
    }

Method com.facebook.react.devsupport.DevSupportManagerImpl.c() calling method java.net.URL.<init>()


    private void c(com.facebook.react.bridge.ReactContext p5)
    {
        if (this.p != p5) {
            this.p = p5;
            if (this.n != null) {
                this.n.a(0);
            }
            if (p5 != null) {
                this.n = new com.facebook.react.devsupport.DebugOverlayController(p5);
            }
            if ((this.q.f()) && (this.p != null)) {
                try {
                    java.net.MalformedURLException v5_5 = new java.net.URL(this.j());
                    ((com.facebook.react.devsupport.HMRClient) this.p.a(com.facebook.react.devsupport.HMRClient)).enable("android", v5_5.getPath().substring(1), v5_5.getHost(), v5_5.getPort());
                } catch (java.net.MalformedURLException v5_7) {
                    this.a(v5_7.getMessage(), v5_7);
                }
            }
            this.n();
            return;
        } else {
            return;
        }
    }

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


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

Method com.airbnb.android.react.maps.AirMapUrlTile$AIRMapUrlTileProvider.b() calling method java.net.URL.<init>()


    public declared_synchronized java.net.URL b(int p3, int p4, int p5)
    {
        try {
            try {
                return new java.net.URL(this.c.replace("{x}", Integer.toString(p3)).replace("{y}", Integer.toString(p4)).replace("{z}", Integer.toString(p5)));
            } catch (java.net.MalformedURLException v3_3) {
                throw new AssertionError(v3_3);
            }
        } catch (java.net.MalformedURLException v3_4) {
            throw v3_4;
        }
        return new java.net.URL(this.c.replace("{x}", Integer.toString(p3)).replace("{y}", Integer.toString(p4)).replace("{z}", Integer.toString(p5)));
    }

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.google.android.gms.tagmanager.zzfv.a() calling method java.net.URL.<init>()


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

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


    public final java.io.InputStream a(String p3)
    {
        String v3_7 = ((java.net.HttpURLConnection) new java.net.URL(p3).openConnection());
        v3_7.setReadTimeout(20000);
        v3_7.setConnectTimeout(20000);
        this.a = v3_7;
        String v3_8 = this.a;
        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) {
                if (v0_2 != 503) {
                    throw new java.io.IOException(v3_3);
                } else {
                    throw new com.google.android.gms.internal.zzdjn(v3_3);
                }
            } else {
                throw new java.io.FileNotFoundException(v3_3);
            }
        } else {
            this.b = v3_8.getInputStream();
            return this.b;
        }
    }

Method com.flurry.sdk.t.a() calling method java.net.URL.<init>()


    protected final java.io.InputStream a()
    {
        this.i = ((javax.net.ssl.HttpsURLConnection) new java.net.URL(this.a).openConnection());
        this.i.setReadTimeout(10000);
        this.i.setConnectTimeout(15000);
        this.i.setRequestMethod("POST");
        this.i.setRequestProperty("User-Agent", ark>com.flurry.sdk.tark>.h);
        this.i.setRequestProperty("Content-Type", "application/json");
        this.i.setDoInput(1);
        this.i.setDoOutput(1);
        this.c = java.util.UUID.randomUUID().toString().toUpperCase(java.util.Locale.ENGLISH);
        String v0_26 = 0;
        try {
            int v2_19 = this.i.getOutputStream();
            try {
                com.flurry.sdk.l v3_4 = new java.io.BufferedWriter(new java.io.OutputStreamWriter(v2_19, "UTF-8"));
                try {
                    v3_4.write(com.flurry.sdk.v.a(this.c));
                    v3_4.close();
                } catch (String v0_31) {
                    String v1_11 = v0_31;
                    v0_26 = v3_4;
                    if (v0_26 != null) {
                        v0_26.close();
                    }
                    if (v2_19 != 0) {
                        v2_19.close();
                    }
                    throw v1_11;
                }
                if (v2_19 != 0) {
                    v2_19.close();
                }
                String v0_33 = this.i.getResponseCode();
                if (v0_33 < 400) {
                    if (v0_33 == 304) {
                        String v0_36 = this.i.getHeaderField("guid");
                        if (this.c.equals(v0_36)) {
                            this.b = com.flurry.sdk.l.b;
                            com.flurry.sdk.kx.a(ark>com.flurry.sdk.tark>.g, "Empty payload; No Change.");
                        } else {
                            StringBuilder v4_3 = new StringBuilder("Guid: ");
                            v4_3.append(this.c);
                            v4_3.append(", payload: ");
                            v4_3.append(v0_36);
                            this.b = new com.flurry.sdk.l(com.flurry.sdk.l$a.e, v4_3.toString());
                            int v2_0 = new StringBuilder("Authentication error: ");
                            v2_0.append(this.b);
                            com.flurry.sdk.kx.b(ark>com.flurry.sdk.tark>.g, v2_0.toString());
                        }
                    }
                    this.j = this.i.getHeaderField("Content-Signature");
                    this.e = this.i.getHeaderField("ETag");
                    if ((this.e != null) && ((this.e.startsWith("\"")) && (this.e.endsWith("\"")))) {
                        this.e = this.e.substring(1, (this.e.length() - 1));
                    }
                    String v1_4 = new StringBuilder("Content-Signature: ");
                    v1_4.append(this.j);
                    v1_4.append(", ETag: ");
                    v1_4.append(this.e);
                    com.flurry.sdk.kx.a(ark>com.flurry.sdk.tark>.g, v1_4.toString());
                    return this.i.getInputStream();
                } else {
                    int v2_14 = new StringBuilder("Server response code is ");
                    v2_14.append(v0_33);
                    throw new java.io.IOException(v2_14.toString());
                }
            } catch (String v1_11) {
            }
        } catch (String v1_11) {
            v2_19 = 0;
        }
    }

Method com.facebook.react.modules.camera.ImageEditingManager$CropTask.a() calling method java.net.URL.<init>()


    private java.io.InputStream a()
    {
        java.io.IOException v0_1;
        if (!com.facebook.react.modules.camera.ImageEditingManager.access$200(this.b)) {
            v0_1 = new java.net.URL(this.b).openConnection().getInputStream();
        } else {
            v0_1 = this.a.getContentResolver().openInputStream(android.net.Uri.parse(this.b));
        }
        if (v0_1 != null) {
            return v0_1;
        } else {
            String v1_3 = new StringBuilder();
            v1_3.append("Cannot open bitmap: ");
            v1_3.append(this.b);
            throw new java.io.IOException(v1_3.toString());
        }
    }

Method com.coupa.android.coupamobile.core.cs_api.CSApi.createUrl() calling method java.net.URL.<init>()


    public java.net.URL createUrl(String p6)
    {
        if (p6.startsWith("/")) {
            p6 = p6.substring(1);
        }
        int v6_4 = com.coupa.android.coupamobile.core.cs_api.CSApi.urlEncode(p6);
        this.reloadRootUrl();
        Object[] v2_1 = new Object[2];
        v2_1[0] = this.rootUrl;
        v2_1[1] = v6_4;
        try {
            return new java.net.URL(String.format("%s/%s", v2_1));
        } catch (int v6_2) {
            v6_2.printStackTrace();
            return 0;
        }
    }

Method com.coupa.android.coupamobile.controllers.SSOLoginController$SSOWebViewClient.getHostName() calling method java.net.URL.<init>()


    private String getHostName(String p2)
    {
        try {
            int v0_1 = new java.net.URL(p2);
        } catch (String v2_1) {
            v2_1.printStackTrace();
            v0_1 = 0;
        }
        if (v0_1 == 0) {
            return "";
        } else {
            return v0_1.getHost();
        }
    }

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


    private java.net.URL e()
    {
        if (this.f == null) {
            this.f = new java.net.URL(this.f());
        }
        return this.f;
    }

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

Couldn't retrieve source code

Method com.google.maps.android.data.kml.KmlRenderer$MarkerIconImageDownload.a() calling method java.net.URL.<init>()


    protected varargs android.graphics.Bitmap a(String[] p2)
    {
        try {
            return android.graphics.BitmapFactory.decodeStream(((java.io.InputStream) new java.net.URL(this.b).getContent()));
        } catch (java.net.MalformedURLException) {
            return android.graphics.BitmapFactory.decodeFile(this.b);
        } catch (int v2_8) {
            v2_8.printStackTrace();
            return 0;
        }
    }

Method com.google.maps.android.data.kml.KmlRenderer$GroundOverlayImageDownload.a() calling method java.net.URL.<init>()


    protected varargs android.graphics.Bitmap a(String[] p4)
    {
        try {
            return android.graphics.BitmapFactory.decodeStream(((java.io.InputStream) new java.net.URL(this.b).getContent()));
        } catch (java.net.MalformedURLException) {
            return android.graphics.BitmapFactory.decodeFile(this.b);
        } catch (int v4_8) {
            String v1_1 = new StringBuilder();
            v1_1.append("Image [");
            v1_1.append(this.b);
            v1_1.append("] download issue");
            android.util.Log.e("KmlRenderer", v1_1.toString(), v4_8);
            return 0;
        }
    }

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


    public final void E()
    {
        this.h().c();
        this.a();
        this.N = 1;
        try {
            com.google.android.gms.internal.zzchu v2_13;
            com.google.android.gms.internal.zzcih v0_7;
            com.google.android.gms.internal.zzchu v2_0 = this.w().D();
        } catch (com.google.android.gms.internal.zzcih v0_10) {
            this.N = 0;
            this.P();
            throw v0_10;
        }
        if (v2_0 != null) {
            if (!v2_0.booleanValue()) {
                if (this.K <= 0) {
                    com.google.android.gms.internal.zzchu v2_9;
                    this.h().c();
                    if (this.F == null) {
                        v2_9 = 0;
                    } else {
                        v2_9 = 1;
                    }
                    if (v2_9 == null) {
                        if (this.s().y()) {
                            com.google.android.gms.internal.zzchu v2_16 = this.p.a();
                            String v6_1 = 0;
                            this.a(0, (v2_16 - com.google.android.gms.internal.zzcgn.z()));
                            com.google.android.gms.internal.zzchu v7_11 = this.e().c.a();
                            if (v7_11 != 0) {
                                this.f().D().a("Uploading events. Elapsed time since last upload attempt (ms)", Long.valueOf(Math.abs((v2_16 - v7_11))));
                            }
                            long v4_4 = this.q().B();
                            if (android.text.TextUtils.isEmpty(v4_4)) {
                                this.J = -1;
                                com.google.android.gms.internal.zzcih v0_13 = this.q().a((v2_16 - com.google.android.gms.internal.zzcgn.z()));
                                if (android.text.TextUtils.isEmpty(v0_13)) {
                                    this.N = 0;
                                    this.P();
                                    return;
                                } else {
                                    com.google.android.gms.internal.zzcih v0_14 = this.q().b(v0_13);
                                    if (v0_14 == null) {
                                        this.N = 0;
                                        this.P();
                                        return;
                                    } else {
                                        this.a(v0_14);
                                        this.N = 0;
                                        this.P();
                                        return;
                                    }
                                }
                            } else {
                                if (this.J == -1) {
                                    this.J = this.q().I();
                                }
                                String v5_0 = this.q().a(v4_4, this.c.b(v4_4, com.google.android.gms.internal.zzchc.i), Math.max(0, this.c.b(v4_4, com.google.android.gms.internal.zzchc.j)));
                                if (v5_0.isEmpty()) {
                                    this.N = 0;
                                    this.P();
                                    return;
                                } else {
                                    com.google.android.gms.internal.zzchu v7_3 = v5_0.iterator();
                                    while (v7_3.hasNext()) {
                                        com.google.android.gms.internal.zzchq v8_5 = ((com.google.android.gms.internal.zzcme) ((android.util.Pair) v7_3.next()).first);
                                        if (!android.text.TextUtils.isEmpty(v8_5.s)) {
                                            com.google.android.gms.internal.zzchu v7_4 = v8_5.s;
                                        }
                                        if (v7_4 != null) {
                                            com.google.android.gms.internal.zzchq v8_6 = 0;
                                            while (v8_6 < v5_0.size()) {
                                                long v9_6 = ((com.google.android.gms.internal.zzcme) ((android.util.Pair) v5_0.get(v8_6)).first);
                                                if ((android.text.TextUtils.isEmpty(v9_6.s)) || (v9_6.s.equals(v7_4))) {
                                                    v8_6++;
                                                } else {
                                                    v5_0 = v5_0.subList(0, v8_6);
                                                    break;
                                                }
                                            }
                                        }
                                        long v9_13;
                                        com.google.android.gms.internal.zzchu v7_6 = new com.google.android.gms.internal.zzcmd();
                                        com.google.android.gms.internal.zzchq v8_8 = new com.google.android.gms.internal.zzcme[v5_0.size()];
                                        v7_6.a = v8_8;
                                        com.google.android.gms.internal.zzchq v8_10 = new java.util.ArrayList(v5_0.size());
                                        if ((!com.google.android.gms.internal.zzcgn.B()) || (!this.c.c(v4_4))) {
                                            v9_13 = 0;
                                        } else {
                                            v9_13 = 1;
                                        }
                                        java.net.URL v10_2 = 0;
                                        while (v10_2 < v7_6.a.length) {
                                            v7_6.a[v10_2] = ((com.google.android.gms.internal.zzcme) ((android.util.Pair) v5_0.get(v10_2)).first);
                                            v8_10.add(((Long) ((android.util.Pair) v5_0.get(v10_2)).second));
                                            v7_6.a[v10_2].r = Long.valueOf(11910);
                                            v7_6.a[v10_2].d = Long.valueOf(v2_16);
                                            v7_6.a[v10_2].z = Boolean.valueOf(0);
                                            if (v9_13 == 0) {
                                                v7_6.a[v10_2].G = 0;
                                            }
                                            v10_2++;
                                        }
                                        if (this.f().a(2)) {
                                            v6_1 = this.p().a(v7_6);
                                        }
                                        byte[] v11_2 = this.o().a(v7_6);
                                        String v5_7 = ((String) com.google.android.gms.internal.zzchc.s.b());
                                        java.net.URL v10_4 = new java.net.URL(v5_7);
                                        com.google.android.gms.common.internal.zzbq.b((v8_10.isEmpty() ^ 1));
                                        if (this.F == null) {
                                            this.F = new java.util.ArrayList(v8_10);
                                        } else {
                                            this.f().y().a("Set uploading progress before finishing the previous upload");
                                        }
                                        this.e().d.a(v2_16);
                                        com.google.android.gms.internal.zzchu v2_4 = "?";
                                        if (v7_6.a.length > 0) {
                                            v2_4 = v7_6.a[0].o;
                                        }
                                        this.f().E().a("Uploading data. app, uncompressed size, data", v2_4, Integer.valueOf(v11_2.length), v6_1);
                                        this.M = 1;
                                        com.google.android.gms.internal.zzchq v8_17 = this.s();
                                        com.google.android.gms.internal.zzcip v13_1 = new com.google.android.gms.internal.zzcip(this);
                                        v8_17.c();
                                        v8_17.Q();
                                        com.google.android.gms.common.internal.zzbq.a(v10_4);
                                        com.google.android.gms.common.internal.zzbq.a(v11_2);
                                        com.google.android.gms.common.internal.zzbq.a(v13_1);
                                        com.google.android.gms.internal.zzcih v0_3 = v8_17.s();
                                        com.google.android.gms.internal.zzchu v2_10 = new com.google.android.gms.internal.zzchu;
                                        v2_10(v8_17, v4_4, v10_4, v11_2, 0, v13_1);
                                        v0_3.b(v2_10);
                                        this.N = 0;
                                        this.P();
                                        return;
                                    }
                                    v7_4 = 0;
                                }
                            }
                        } else {
                            this.f().E().a("Network not connected, ignoring upload request");
                        }
                    } else {
                        v0_7 = this.f().E();
                        v2_13 = "Uploading requested multiple times";
                        v0_7.a(v2_13);
                        this.N = 0;
                        this.P();
                        return;
                    }
                }
                this.N();
            } else {
                v0_7 = this.f().y();
                v2_13 = "Upload called in the client side when service should be used";
            }
        } else {
            v0_7 = this.f().A();
            v2_13 = "Upload data called on the client side before use of service was decided";
        }
        this.N = 0;
        this.P();
        return;
    }

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


    private final void a(com.google.android.gms.internal.zzcgh p11)
    {
        this.h().c();
        if (!android.text.TextUtils.isEmpty(p11.d())) {
            String v0_3;
            String v0_11 = p11.d();
            com.google.android.gms.internal.zzchu v1_0 = p11.c();
            com.google.android.gms.internal.zzchq v2_2 = new android.net.Uri$Builder();
            String v3_6 = v2_2.scheme(((String) com.google.android.gms.internal.zzchc.g.b())).encodedAuthority(((String) com.google.android.gms.internal.zzchc.h.b()));
            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_6.path(v0_3).appendQueryParameter("app_instance_id", v1_0).appendQueryParameter("platform", "android").appendQueryParameter("gmp_version", "11910");
            String v0_9 = v2_2.build().toString();
            try {
                android.support.v4.util.ArrayMap v6_1;
                java.net.URL v4_6 = new java.net.URL(v0_9);
                this.f().E().a("Fetching remote configuration", p11.b());
                com.google.android.gms.internal.zzchu v1_8 = this.j().a(p11.b());
                String v3_12 = this.j().b(p11.b());
            } catch (java.net.MalformedURLException) {
                this.f().y().a("Failed to parse config URL. Not fetching. appId", com.google.android.gms.internal.zzchm.a(p11.b()), v0_9);
                return;
            }
            if ((v1_8 == null) || (android.text.TextUtils.isEmpty(v3_12))) {
                v6_1 = 0;
            } else {
                com.google.android.gms.internal.zzchu v1_11 = new android.support.v4.util.ArrayMap();
                v1_11.put("If-Modified-Since", v3_12);
                v6_1 = v1_11;
            }
            this.L = 1;
            com.google.android.gms.internal.zzchq v2_8 = this.s();
            String v3_0 = p11.b();
            com.google.android.gms.internal.zzciq v7_1 = new com.google.android.gms.internal.zzciq(this);
            v2_8.c();
            v2_8.Q();
            com.google.android.gms.common.internal.zzbq.a(v4_6);
            com.google.android.gms.common.internal.zzbq.a(v7_1);
            com.google.android.gms.internal.zzcih v8 = v2_8.s();
            com.google.android.gms.internal.zzchu v9 = new com.google.android.gms.internal.zzchu;
            v9(v2_8, v3_0, v4_6, 0, v6_1, v7_1);
            v8.b(v9);
            return;
        } else {
            this.a(p11.b(), 204, 0, 0, 0);
            return;
        }
    }

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


    public final void run()
    {
        new com.google.android.gms.ads.identifier.zzc();
        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.flurry.sdk.mj.a() calling method java.net.URL.<init>()


    public static java.net.URL a(String p2)
    {
        if (p2.length() != 0) {
            try {
                return new java.net.URL(p2);
            } catch (java.net.MalformedURLException) {
                return 0;
            } catch (RuntimeException) {
                return 0;
            }
        } else {
            return 0;
        }
    }

Method com.facebook.react.modules.network.RequestBodyUtil.a() calling method java.net.URL.<init>()


    private static java.io.InputStream a(android.content.Context p8, android.net.Uri p9)
    {
        Throwable v8_6 = java.io.File.createTempFile("RequestBodyUtil", "temp", p8.getApplicationContext().getCacheDir());
        v8_6.deleteOnExit();
        java.io.InputStream v9_2 = new java.net.URL(p9.toString()).openStream();
        try {
            java.nio.channels.ReadableByteChannel v6 = java.nio.channels.Channels.newChannel(v9_2);
            try {
                java.io.FileOutputStream v7_1 = new java.io.FileOutputStream(v8_6);
                try {
                    v7_1.getChannel().transferFrom(v6, 0, nan);
                    java.io.FileInputStream v0_3 = new java.io.FileInputStream(v8_6);
                } catch (Throwable v8_2) {
                    v7_1.close();
                    throw v8_2;
                }
                v7_1.close();
                v6.close();
                v9_2.close();
                return v0_3;
            } catch (Throwable v8_4) {
                v6.close();
                throw v8_4;
            }
        } catch (Throwable v8_5) {
            v9_2.close();
            throw v8_5;
        }
    }

Method com.facebook.react.devsupport.DevLoadingViewController.a() calling method java.net.URL.<init>()


    public void a(String p7)
    {
        try {
            String v0_1 = new java.net.URL(p7);
            String v7_1 = this.c;
            String v2_2 = new Object[1];
            StringBuilder v4_1 = new StringBuilder();
            v4_1.append(v0_1.getHost());
            v4_1.append(":");
            v4_1.append(v0_1.getPort());
            v2_2[0] = v4_1.toString();
            this.a(v7_1.getString(com.facebook.react.R$string.catalyst_loading_from_url, v2_2), -1, ark>com.facebook.react.devsupport.DevLoadingViewControllerark>.a);
            return;
        } catch (String v7_3) {
            StringBuilder v1_2 = new StringBuilder();
            v1_2.append("Bundle url format is invalid. \n\n");
            v1_2.append(v7_3.toString());
            com.facebook.common.logging.FLog.d("ReactNative", v1_2.toString());
            return;
        }
    }

Method com.airbnb.android.react.maps.FileUtil.a() calling method java.net.URL.<init>()


    private java.io.InputStream a(android.content.Context p9, android.net.Uri p10)
    {
        Throwable v9_6 = java.io.File.createTempFile("FileUtil", "temp", p9.getApplicationContext().getCacheDir());
        v9_6.deleteOnExit();
        java.io.InputStream v10_2 = new java.net.URL(p10.toString()).openStream();
        try {
            java.nio.channels.ReadableByteChannel v6 = java.nio.channels.Channels.newChannel(v10_2);
            try {
                java.io.FileOutputStream v7_1 = new java.io.FileOutputStream(v9_6);
                try {
                    v7_1.getChannel().transferFrom(v6, 0, nan);
                    java.io.FileInputStream v0_3 = new java.io.FileInputStream(v9_6);
                } catch (Throwable v9_2) {
                    v7_1.close();
                    throw v9_2;
                }
                v7_1.close();
                v6.close();
                v10_2.close();
                return v0_3;
            } catch (Throwable v9_4) {
                v6.close();
                throw v9_4;
            }
        } catch (Throwable v9_5) {
            v10_2.close();
            throw v9_5;
        }
    }

Method com.RNFetchBlob.RNFetchBlobReq.run() calling method java.net.URL.<init>()


    public void run()
    {
        if ((this.f.d == null) || ((!this.f.d.a("useDownloadManager")) || (!this.f.d.c("useDownloadManager")))) {
            com.RNFetchBlob.RNFetchBlobReq$3 v2_7;
            okhttp3.Call v0_5 = this.g;
            if (!this.f.c.isEmpty()) {
                com.RNFetchBlob.RNFetchBlobReq$3 v2_5 = new StringBuilder();
                v2_5.append(".");
                v2_5.append(this.f.c);
                v2_7 = v2_5.toString();
            } else {
                v2_7 = "";
            }
            if (this.f.f != null) {
                v0_5 = com.RNFetchBlob.RNFetchBlobUtils.a(this.f.f);
                if (v0_5 == null) {
                    v0_5 = this.g;
                }
                com.RNFetchBlob.RNFetchBlobReq$RequestType v6_38 = new StringBuilder();
                v6_38.append(com.RNFetchBlob.RNFetchBlobFS.a(com.RNFetchBlob.RNFetchBlob.RCTContext, v0_5));
                v6_38.append(v2_7);
                String v3_69 = new java.io.File(v6_38.toString());
                if (v3_69.exists()) {
                    okhttp3.Call v0_14 = this.n;
                    com.RNFetchBlob.RNFetchBlobReq$3 v2_13 = new Object[3];
                    v2_13[0] = 0;
                    v2_13[1] = "path";
                    v2_13[2] = v3_69.getAbsolutePath();
                    v0_14.a(v2_13);
                    return;
                }
            }
            if (this.f.b == null) {
                if (this.f.a.booleanValue()) {
                    String v3_76 = new StringBuilder();
                    v3_76.append(com.RNFetchBlob.RNFetchBlobFS.a(com.RNFetchBlob.RNFetchBlob.RCTContext, v0_5));
                    v3_76.append(v2_7);
                    this.k = v3_76.toString();
                }
            } else {
                this.k = this.f.b;
            }
            try {
                okhttp3.Call v0_57;
                if (!this.f.e.booleanValue()) {
                    v0_57 = this.x.newBuilder();
                    com.RNFetchBlob.RNFetchBlobReq$3 v2_19 = new okhttp3.Request$Builder();
                    try {
                        v2_19.url(new java.net.URL(this.i));
                    } catch (String v3_79) {
                        v3_79.printStackTrace();
                    }
                    String v3_81 = new java.util.HashMap();
                    if (this.m != null) {
                        com.RNFetchBlob.RNFetchBlobReq$RequestType v6_1 = this.m.a();
                        while (v6_1.hasNextKey()) {
                            String v7_31 = v6_1.nextKey();
                            String v8_10 = this.m.f(v7_31);
                            if (!v7_31.equalsIgnoreCase("RNFB-Response")) {
                                v2_19.header(v7_31.toLowerCase(), v8_10);
                                v3_81.put(v7_31.toLowerCase(), v8_10);
                            } else {
                                if (!v8_10.equalsIgnoreCase("base64")) {
                                    if (v8_10.equalsIgnoreCase("utf8")) {
                                        this.t = com.RNFetchBlob.RNFetchBlobReq$ResponseFormat.b;
                                    }
                                } else {
                                    this.t = com.RNFetchBlob.RNFetchBlobReq$ResponseFormat.c;
                                }
                            }
                        }
                    }
                    if ((this.h.equalsIgnoreCase("post")) || (this.h.equalsIgnoreCase("put"))) {
                        com.RNFetchBlob.RNFetchBlobReq$RequestType v6_11 = this.a(v3_81, "Content-Type").toLowerCase();
                        if (this.l == null) {
                            if (v6_11.isEmpty()) {
                                v2_19.header("Content-Type", "application/octet-stream");
                                this.r = com.RNFetchBlob.RNFetchBlobReq$RequestType.b;
                            }
                        } else {
                            this.r = com.RNFetchBlob.RNFetchBlobReq$RequestType.a;
                        }
                        if (this.j != null) {
                            if (!this.j.startsWith("RNFetchBlob-file://")) {
                                if (!v6_11.toLowerCase().contains(";base64")) {
                                    if (!v6_11.toLowerCase().startsWith("application/octet")) {
                                        this.r = com.RNFetchBlob.RNFetchBlobReq$RequestType.c;
                                        com.RNFetchBlob.RNFetchBlobReq$RequestType v6_19 = this.a(v3_81, "Transfer-Encoding").equalsIgnoreCase("chunked");
                                        switch (com.RNFetchBlob.RNFetchBlobReq$4.a[this.r.ordinal()]) {
                                            case 1:
                                                this.q = new com.RNFetchBlob.RNFetchBlobBody(this.g).a(v6_19).a(this.r).a(this.j).a(okhttp3.MediaType.parse(this.a(v3_81, "content-type")));
                                                v2_19.method(this.h, this.q);
                                            case 2:
                                                this.q = new com.RNFetchBlob.RNFetchBlobBody(this.g).a(v6_19).a(this.r).a(this.j).a(okhttp3.MediaType.parse(this.a(v3_81, "content-type")));
                                                v2_19.method(this.h, this.q);
                                                break;
                                            case 3:
                                                String v3_9 = new StringBuilder();
                                                v3_9.append("RNFetchBlob-");
                                                v3_9.append(this.g);
                                                String v3_10 = v3_9.toString();
                                                okhttp3.RequestBody v4_7 = new com.RNFetchBlob.RNFetchBlobBody(this.g).a(v6_19).a(this.r).a(this.l);
                                                com.RNFetchBlob.RNFetchBlobReq$RequestType v6_27 = new StringBuilder();
                                                v6_27.append("multipart/form-data; boundary=");
                                                v6_27.append(v3_10);
                                                this.q = v4_7.a(okhttp3.MediaType.parse(v6_27.toString()));
                                                v2_19.method(this.h, this.q);
                                                break;
                                            case 4:
                                                if ((!this.h.equalsIgnoreCase("post")) && (!this.h.equalsIgnoreCase("put"))) {
                                                    if (!this.h.equalsIgnoreCase("patch")) {
                                                        v2_19.method(this.h, 0);
                                                    } else {
                                                    }
                                                }
                                                com.RNFetchBlob.RNFetchBlobReq$RequestType v6_23 = new byte[0];
                                                v2_19.method(this.h, okhttp3.RequestBody.create(0, v6_23));
                                                break;
                                            default:
                                        }
                                        com.RNFetchBlob.RNFetchBlobReq$3 v2_6 = v2_19.build();
                                        v0_57.addNetworkInterceptor(new com.RNFetchBlob.RNFetchBlobReq$1(this));
                                        v0_57.addInterceptor(new com.RNFetchBlob.RNFetchBlobReq$2(this, v2_6));
                                        if (this.f.j >= 0) {
                                            v0_57.connectTimeout(this.f.j, java.util.concurrent.TimeUnit.MILLISECONDS);
                                            v0_57.readTimeout(this.f.j, java.util.concurrent.TimeUnit.MILLISECONDS);
                                        }
                                        v0_57.connectionPool(com.RNFetchBlob.RNFetchBlobReq.d);
                                        v0_57.retryOnConnectionFailure(0);
                                        v0_57.followRedirects(this.f.l.booleanValue());
                                        v0_57.followSslRedirects(this.f.l.booleanValue());
                                        v0_57.retryOnConnectionFailure(1);
                                        okhttp3.Call v0_8 = com.RNFetchBlob.RNFetchBlobReq.a(v0_57).build().newCall(v2_6);
                                        com.RNFetchBlob.RNFetchBlobReq.a.put(this.g, v0_8);
                                        v0_8.enqueue(new com.RNFetchBlob.RNFetchBlobReq$3(this));
                                    } else {
                                    }
                                }
                                com.RNFetchBlob.RNFetchBlobReq$RequestType v6_14 = v6_11.replace(";base64", "").replace(";BASE64", "");
                                if (v3_81.containsKey("content-type")) {
                                    v3_81.put("content-type", v6_14);
                                }
                                if (v3_81.containsKey("Content-Type")) {
                                    v3_81.put("Content-Type", v6_14);
                                }
                                this.r = com.RNFetchBlob.RNFetchBlobReq$RequestType.b;
                            } else {
                                this.r = com.RNFetchBlob.RNFetchBlobReq$RequestType.b;
                            }
                        }
                    } else {
                        if (!this.h.equalsIgnoreCase("patch")) {
                            this.r = com.RNFetchBlob.RNFetchBlobReq$RequestType.d;
                        } else {
                        }
                    }
                } else {
                    v0_57 = com.RNFetchBlob.RNFetchBlobUtils.a(this.x);
                }
            } catch (okhttp3.Call v0_10) {
                v0_10.printStackTrace();
                this.a();
                com.RNFetchBlob.RNFetchBlobReq$3 v2_11 = this.n;
                android.content.IntentFilter v1_1 = new Object[1];
                String v3_47 = new StringBuilder();
                v3_47.append("RNFetchBlob request error: ");
                v3_47.append(v0_10.getMessage());
                v3_47.append(v0_10.getCause());
                v1_1[0] = v3_47.toString();
                v2_11.a(v1_1);
            }
            return;
        } else {
            com.RNFetchBlob.RNFetchBlobReq$3 v2_15 = new android.app.DownloadManager$Request(android.net.Uri.parse(this.i));
            v2_15.setNotificationVisibility(1);
            if (this.f.d.a("title")) {
                v2_15.setTitle(this.f.d.f("title"));
            }
            if (this.f.d.a("description")) {
                v2_15.setDescription(this.f.d.f("description"));
            }
            if (this.f.d.a("path")) {
                okhttp3.Call v0_34 = new StringBuilder();
                v0_34.append("file://");
                v0_34.append(this.f.d.f("path"));
                v2_15.setDestinationUri(android.net.Uri.parse(v0_34.toString()));
            }
            if (this.f.d.a("mime")) {
                v2_15.setMimeType(this.f.d.f("mime"));
            }
            okhttp3.Call v0_44 = this.m.a();
            if ((this.f.d.a("mediaScannable")) && (this.f.d.a("mediaScannable") == 1)) {
                v2_15.allowScanningByMediaScanner();
            }
            while (v0_44.hasNextKey()) {
                android.content.IntentFilter v1_10 = v0_44.nextKey();
                v2_15.addRequestHeader(v1_10, this.m.f(v1_10));
            }
            okhttp3.Call v0_46 = com.RNFetchBlob.RNFetchBlob.RCTContext.getApplicationContext();
            this.p = ((android.app.DownloadManager) v0_46.getSystemService("download")).enqueue(v2_15);
            v0_46.registerReceiver(this, new android.content.IntentFilter("android.intent.action.DOWNLOAD_COMPLETE"));
            return;
        }
    }