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 io.realm.internal.network.OkHttpAuthenticationServer.buildActionUrl() calling method java.net.URL.<init>()


    private static java.net.URL buildActionUrl(java.net.URL p3, String p4)
    {
        String v3_1 = p3.toExternalForm();
        try {
            String v0_2;
            if (!v3_1.endsWith("/")) {
                v0_2 = "/";
            } else {
                v0_2 = "";
            }
        } catch (String v3_3) {
            throw new RuntimeException(v3_3);
        }
        StringBuilder v2_1 = new StringBuilder();
        v2_1.append(v3_1);
        v2_1.append(v0_2);
        v2_1.append(p4);
        return new java.net.URL(v2_1.toString());
    }

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.realm.SyncUser.getUrl() calling method java.net.URL.<init>()


    private static java.net.URL getUrl(String p4)
    {
        try {
            java.net.URL v0_1 = new java.net.URL(p4);
        } catch (java.net.URL v0_5) {
            StringBuilder v2_1 = new StringBuilder();
            v2_1.append("Invalid URL ");
            v2_1.append(p4);
            v2_1.append(".");
            throw new IllegalArgumentException(v2_1.toString(), v0_5);
        }
        if (v0_1.getPath().equals("")) {
            StringBuilder v2_3 = new StringBuilder();
            v2_3.append(v0_1.toString());
            v2_3.append("/auth");
            v0_1 = new java.net.URL(v2_3.toString());
        }
        return v0_1;
    }

Method io.realm.SyncUser.fromJson() calling method java.net.URL.<init>()


    public static io.realm.SyncUser fromJson(String p4)
    {
        try {
            java.net.MalformedURLException v0_3 = com.newrelic.agent.android.instrumentation.JSONObjectInstrumentation.init(p4);
            return new io.realm.SyncUser(io.realm.internal.objectserver.Token.from(v0_3.getJSONObject("userToken")), new java.net.URL(v0_3.getString("authUrl")));
        } catch (java.net.MalformedURLException v0_4) {
            StringBuilder v2_5 = new StringBuilder();
            v2_5.append("Could not parse user json: ");
            v2_5.append(p4);
            throw new IllegalArgumentException(v2_5.toString(), v0_4);
        } catch (java.net.MalformedURLException v0_2) {
            StringBuilder v2_3 = new StringBuilder();
            v2_3.append("URL in JSON not valid: ");
            v2_3.append(p4);
            throw new IllegalArgumentException(v2_3.toString(), v0_2);
        }
    }

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 {
            String v1_16 = new java.net.URL(p7.getUrl());
            v0_1.add(new com.newrelic.agent.android.analytics.AnalyticAttribute("requestDomain", v1_16.getHost()));
            v0_1.add(new com.newrelic.agent.android.analytics.AnalyticAttribute("requestPath", v1_16.getPath()));
        } catch (java.net.MalformedURLException) {
            com.newrelic.agent.android.logging.AgentLog v2_7 = new StringBuilder();
            v2_7.append(p7.getUrl());
            v2_7.append(" is not a valid URL. Unable to set host or path attributes.");
            com.newrelic.agent.android.analytics.NetworkRequestEvent.log.error(v2_7.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()));
        String v1_15 = p7.getTotalTime();
        if (v1_15 != 0) {
            v0_1.add(new com.newrelic.agent.android.analytics.AnalyticAttribute("responseTime", Double.valueOf(v1_15).floatValue()));
        }
        String v1_20 = ((double) p7.getBytesSent());
        if (v1_20 != 0) {
            v0_1.add(new com.newrelic.agent.android.analytics.AnalyticAttribute("bytesSent", Double.valueOf(v1_20).floatValue()));
        }
        String v1_24 = ((double) p7.getBytesReceived());
        if (v1_24 != 0) {
            v0_1.add(new com.newrelic.agent.android.analytics.AnalyticAttribute("bytesReceived", Double.valueOf(v1_24).floatValue()));
        }
        if (com.newrelic.agent.android.FeatureFlag.featureEnabled(com.newrelic.agent.android.FeatureFlag.DistributedTracing)) {
            java.util.Iterator v7_4 = p7.getCatPayload().asMapForRequest().entrySet().iterator();
            while (v7_4.hasNext()) {
                String v1_1 = ((java.util.Map$Entry) v7_4.next());
                com.newrelic.agent.android.logging.AgentLog v2_2 = com.newrelic.agent.android.analytics.NetworkRequestEvent.analyticsController.createAttribute(((String) v1_1.getKey()), v1_1.getValue());
                if (v2_2 == null) {
                    StringBuilder v3_3 = new StringBuilder();
                    v3_3.append("Unsupported event attribute type for key [");
                    v3_3.append(((String) v1_1.getKey()));
                    v3_3.append("]: ");
                    v3_3.append(v1_1.getValue().getClass().getName());
                    com.newrelic.agent.android.analytics.NetworkRequestEvent.log.error(v3_3.toString());
                } else {
                    v0_1.add(v2_2);
                }
            }
        }
        return v0_1;
    }

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.harvest.HarvestConnection.createPost() calling method java.net.URL.<init>()


    public java.net.HttpURLConnection createPost(String p6)
    {
        try {
            int v6_2 = ((java.net.HttpURLConnection) new java.net.URL(p6).openConnection());
            try {
                v6_2.setRequestMethod("POST");
                v6_2.setConnectTimeout(com.newrelic.agent.android.harvest.HarvestConnection.CONNECTION_TIMEOUT);
                v6_2.setReadTimeout(com.newrelic.agent.android.harvest.HarvestConnection.CONNECTION_TIMEOUT);
                v6_2.setDoInput(1);
                v6_2.setDoOutput(1);
                v6_2.setUseCaches(0);
                v6_2.setRequestProperty("X-App-License-Key", this.applicationToken);
                v6_2.setRequestProperty("Content-Type", "application/json");
                String v0_9 = System.getProperty("http.agent");
            } catch (String v0_14) {
                v0_14.printStackTrace();
                String v1_6 = this.log;
                long v2_2 = new StringBuilder();
                v2_2.append("Failed to create data POST: ");
                v2_2.append(v0_14.getMessage());
                v1_6.error(v2_2.toString());
                return v6_2;
            }
            if ((v0_9 != null) && (v0_9.length() > 0)) {
                v6_2.setRequestProperty("User-Agent", System.getProperty("http.agent"));
            }
            if (this.serverTimestamp == 0) {
                return v6_2;
            } else {
                v6_2.setRequestProperty("X-NewRelic-Connect-Time", Long.valueOf(this.serverTimestamp).toString());
                return v6_2;
            }
        } catch (int v6_3) {
            v0_14 = v6_3;
            v6_2 = 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 com.google.gson.internal.bind.TypeAdapters$21.a() calling method java.net.URL.<init>()


    public java.net.URL a(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.internal.measurement.zzjr.zzks() calling method java.net.URL.<init>()


    public final void zzks()
    {
        void v1 = this;
        this.zzab();
        this.e();
        this.q = 1;
        try {
            com.google.android.gms.internal.measurement.zzgg v4_14;
            com.google.android.gms.internal.measurement.zzjs v2_7;
            com.google.android.gms.internal.measurement.zzgg v4_0 = this.h.zzfx().b();
        } catch (Throwable v0) {
            com.google.android.gms.internal.measurement.zzjs v2_11 = v0;
            this.q = 0;
            this.k();
            throw v2_11;
        }
        if (v4_0 != null) {
            if (!v4_0.booleanValue()) {
                if (this.k <= 0) {
                    com.google.android.gms.internal.measurement.zzgg v4_8;
                    this.zzab();
                    if (this.t == null) {
                        v4_8 = 0;
                    } else {
                        v4_8 = 1;
                    }
                    if (v4_8 == null) {
                        if (this.zzkn().zzex()) {
                            com.google.android.gms.internal.measurement.zzgg v4_16 = this.zzbt().currentTimeMillis();
                            String v10 = 0;
                            this.a(0, (v4_16 - com.google.android.gms.internal.measurement.zzef.zzhi()));
                            String v8_12 = this.zzgf().c.get();
                            if (v8_12 != 0) {
                                this.zzge().zzis().zzg("Uploading events. Elapsed time since last upload attempt (ms)", Long.valueOf(Math.abs((v4_16 - v8_12))));
                            }
                            long v6_5 = this.zzix().e();
                            if (android.text.TextUtils.isEmpty(v6_5)) {
                                this.c = -1;
                                com.google.android.gms.internal.measurement.zzjs v2_13 = this.zzix().a((v4_16 - com.google.android.gms.internal.measurement.zzef.zzhi()));
                                if (android.text.TextUtils.isEmpty(v2_13)) {
                                    v1.q = 0;
                                    this.k();
                                    return;
                                } else {
                                    com.google.android.gms.internal.measurement.zzjs v2_14 = this.zzix().b(v2_13);
                                    if (v2_14 == null) {
                                        v1.q = 0;
                                        this.k();
                                        return;
                                    } else {
                                        v1 = this.a(v2_14);
                                        v1.q = 0;
                                        this.k();
                                        return;
                                    }
                                }
                            } else {
                                if (this.c == -1) {
                                    this.c = this.zzix().l();
                                }
                                String v7_0 = this.zzix().a(v6_5, this.zzgg().zzb(v6_5, com.google.android.gms.internal.measurement.zzew.zzago), Math.max(0, this.zzgg().zzb(v6_5, com.google.android.gms.internal.measurement.zzew.zzagp)));
                                if (v7_0.isEmpty()) {
                                    v1.q = 0;
                                    this.k();
                                    return;
                                } else {
                                    String v8_3 = v7_0.iterator();
                                    while (v8_3.hasNext()) {
                                        Integer v9_6 = ((com.google.android.gms.internal.measurement.zzkq) ((android.util.Pair) v8_3.next()).first);
                                        if (!android.text.TextUtils.isEmpty(v9_6.zzatv)) {
                                            String v8_4 = v9_6.zzatv;
                                        }
                                        if (v8_4 != null) {
                                            Integer v9_7 = 0;
                                            while (v9_7 < v7_0.size()) {
                                                com.google.android.gms.internal.measurement.zzfo v11_6 = ((com.google.android.gms.internal.measurement.zzkq) ((android.util.Pair) v7_0.get(v9_7)).first);
                                                if ((android.text.TextUtils.isEmpty(v11_6.zzatv)) || (v11_6.zzatv.equals(v8_4))) {
                                                    v9_7++;
                                                } else {
                                                    v7_0 = v7_0.subList(0, v9_7);
                                                    break;
                                                }
                                            }
                                        }
                                        com.google.android.gms.internal.measurement.zzfo v11_13;
                                        String v8_6 = new com.google.android.gms.internal.measurement.zzkp();
                                        Integer v9_9 = new com.google.android.gms.internal.measurement.zzkq[v7_0.size()];
                                        v8_6.zzatf = v9_9;
                                        Integer v9_11 = new java.util.ArrayList(v7_0.size());
                                        if ((!com.google.android.gms.internal.measurement.zzef.zzhk()) || (!this.zzgg().zzat(v6_5))) {
                                            v11_13 = 0;
                                        } else {
                                            v11_13 = 1;
                                        }
                                        com.google.android.gms.internal.measurement.zzfk v12_2 = 0;
                                        while (v12_2 < v8_6.zzatf.length) {
                                            v8_6.zzatf[v12_2] = ((com.google.android.gms.internal.measurement.zzkq) ((android.util.Pair) v7_0.get(v12_2)).first);
                                            v9_11.add(((Long) ((android.util.Pair) v7_0.get(v12_2)).second));
                                            v8_6.zzatf[v12_2].zzatu = Long.valueOf(12451);
                                            v8_6.zzatf[v12_2].zzatk = Long.valueOf(v4_16);
                                            v8_6.zzatf[v12_2].zzatz = Boolean.valueOf(0);
                                            if (v11_13 == null) {
                                                v8_6.zzatf[v12_2].zzauh = 0;
                                            }
                                            v12_2++;
                                        }
                                        if (this.zzge().isLoggable(2)) {
                                            v10 = this.zzga().zza(v8_6);
                                        }
                                        byte[] v15 = this.zzgb().zzb(v8_6);
                                        String v7_7 = ((String) com.google.android.gms.internal.measurement.zzew.zzagy.get());
                                        java.net.URL v14_1 = new java.net.URL(v7_7);
                                        com.google.android.gms.common.internal.Preconditions.checkArgument((v9_11.isEmpty() ^ 1));
                                        if (this.t == null) {
                                            this.t = new java.util.ArrayList(v9_11);
                                        } else {
                                            this.zzge().zzim().log("Set uploading progress before finishing the previous upload");
                                        }
                                        this.zzgf().d.set(v4_16);
                                        com.google.android.gms.internal.measurement.zzgg v4_5 = "?";
                                        if (v8_6.zzatf.length > 0) {
                                            v4_5 = v8_6.zzatf[0].zzti;
                                        }
                                        this.zzge().zzit().zzd("Uploading data. app, uncompressed size, data", v4_5, Integer.valueOf(v15.length), v10);
                                        this.p = 1;
                                        com.google.android.gms.internal.measurement.zzfk v12_3 = this.zzkn();
                                        com.google.android.gms.internal.measurement.zzjs v2_3 = new com.google.android.gms.internal.measurement.zzjs(this, v6_5);
                                        v12_3.zzab();
                                        v12_3.zzch();
                                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v14_1);
                                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v15);
                                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v2_3);
                                        com.google.android.gms.internal.measurement.zzgg v4_10 = v12_3.zzgd();
                                        com.google.android.gms.internal.measurement.zzfo v5_5 = new com.google.android.gms.internal.measurement.zzfo;
                                        v5_5(v12_3, v6_5, v14_1, v15, 0, v2_3);
                                        v4_10.zzd(v5_5);
                                        v1.q = 0;
                                        this.k();
                                        return;
                                    }
                                    v8_4 = 0;
                                }
                            }
                        } else {
                            this.zzge().zzit().log("Network not connected, ignoring upload request");
                        }
                    } else {
                        v2_7 = this.zzge().zzit();
                        v4_14 = "Uploading requested multiple times";
                        v2_7.log(v4_14);
                        v1.q = 0;
                        this.k();
                        return;
                    }
                }
                this = this.j();
            } else {
                v2_7 = this.zzge().zzim();
                v4_14 = "Upload called in the client side when service should be used";
            }
        } else {
            v2_7 = this.zzge().zzip();
            v4_14 = "Upload data called on the client side before use of service was decided";
        }
        v1.q = 0;
        this.k();
        return;
    }

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


    private final void a(com.google.android.gms.internal.measurement.zzdy p11)
    {
        this.zzab();
        if (!android.text.TextUtils.isEmpty(p11.d())) {
            String v0_3;
            String v0_10 = p11.d();
            com.google.android.gms.internal.measurement.zzfo v1_13 = p11.c();
            com.google.android.gms.internal.measurement.zzfk v2_1 = new android.net.Uri$Builder();
            String v3_5 = v2_1.scheme(((String) com.google.android.gms.internal.measurement.zzew.zzagm.get())).encodedAuthority(((String) com.google.android.gms.internal.measurement.zzew.zzagn.get()));
            String v0_1 = String.valueOf(v0_10);
            if (v0_1.length() == 0) {
                v0_3 = new String("config/app/");
            } else {
                v0_3 = "config/app/".concat(v0_1);
            }
            v3_5.path(v0_3).appendQueryParameter("app_instance_id", v1_13).appendQueryParameter("platform", "android").appendQueryParameter("gmp_version", "12451");
            String v0_9 = v2_1.build().toString();
            try {
                android.support.v4.util.ArrayMap v6_1;
                java.net.URL v4_6 = new java.net.URL(v0_9);
                this.zzge().zzit().zzg("Fetching remote configuration", p11.b());
                com.google.android.gms.internal.measurement.zzfo v1_7 = this.a().zzbu(p11.b());
                String v3_11 = this.a().zzbv(p11.b());
            } catch (java.net.MalformedURLException) {
                this.zzge().zzim().zze("Failed to parse config URL. Not fetching. appId", com.google.android.gms.internal.measurement.zzfg.zzbm(p11.b()), v0_9);
                return;
            }
            if ((v1_7 == null) || (android.text.TextUtils.isEmpty(v3_11))) {
                v6_1 = 0;
            } else {
                com.google.android.gms.internal.measurement.zzfo v1_10 = new android.support.v4.util.ArrayMap();
                v1_10.put("If-Modified-Since", v3_11);
                v6_1 = v1_10;
            }
            this.o = 1;
            com.google.android.gms.internal.measurement.zzfk v2_8 = this.zzkn();
            String v3_12 = p11.b();
            com.google.android.gms.internal.measurement.zzjt v7_1 = new com.google.android.gms.internal.measurement.zzjt(this);
            v2_8.zzab();
            v2_8.zzch();
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v4_6);
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v7_1);
            com.google.android.gms.internal.measurement.zzgg v8 = v2_8.zzgd();
            com.google.android.gms.internal.measurement.zzfo v9 = new com.google.android.gms.internal.measurement.zzfo;
            v9(v2_8, v3_12, v4_6, 0, v6_1, v7_1);
            v8.zzd(v9);
            return;
        } else {
            this.a(p11.b(), 204, 0, 0, 0);
            return;
        }
    }

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_1 = ((double) (p23 - p21));
        } catch (java.net.MalformedURLException) {
            String v2_3 = new StringBuilder();
            v2_3.append("noticeHttpTransaction: URL is malformed: ");
            v2_3.append(p18);
            throw new IllegalArgumentException(v2_3.toString());
        }
        if (!com.newrelic.agent.android.NewRelic.checkNegative(((int) v0_1), "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_1 / 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.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_8 = 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_8.appendQueryParameter(v3_6, ((String) v0_3.get(v3_6)));
        }
        String v0_2 = v1_8.build().toString();
        try {
            java.io.IOException v1_4 = ((java.net.HttpURLConnection) com.newrelic.agent.android.instrumentation.URLConnectionInstrumentation.openConnection(new java.net.URL(v0_2).openConnection()));
        } catch (java.io.IOException v1_7) {
            String v2_5 = "HttpUrlPinger";
            String v3_4 = v1_7.getMessage();
            StringBuilder v5_5 = new StringBuilder(((String.valueOf(v0_2).length() + 32) + String.valueOf(v3_4).length()));
            String v4_10 = "Error while parsing ping URL: ";
            v5_5.append(v4_10);
            v5_5.append(v0_2);
            v5_5.append(". ");
            v5_5.append(v3_4);
            android.util.Log.w(v2_5, v5_5.toString(), v1_7);
            return;
        } catch (java.io.IOException v1_7) {
            v2_5 = "HttpUrlPinger";
            v3_4 = v1_7.getMessage();
            v5_5 = new StringBuilder(((String.valueOf(v0_2).length() + 27) + String.valueOf(v3_4).length()));
            v4_10 = "Error while pinging URL: ";
            v5_5.append(v4_10);
            v5_5.append(v0_2);
            v5_5.append(". ");
            v5_5.append(v3_4);
            android.util.Log.w(v2_5, v5_5.toString(), v1_7);
            return;
        }
        String v2_1 = v1_4.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_4.disconnect();
        return;
    }

Method com.facebook.common.util.UriUtil.uriToUrl() calling method java.net.URL.<init>()


    public static java.net.URL uriToUrl(android.net.Uri p1)
    {
        if (p1 != null) {
            try {
                return new java.net.URL(p1.toString());
            } catch (java.net.MalformedURLException v1_3) {
                throw new RuntimeException(v1_3);
            }
        } else {
            return 0;
        }
    }

Method com.bkash.businessapp.util.NetworkUtil.isInternetAvailable() calling method java.net.URL.<init>()


    public static boolean isInternetAvailable()
    {
        try {
            Object[] v4 = new Object[1];
            v4[0] = "https://prod.bapi.bka.sh/v0.1.0/auth/ping";
            timber.log.Timber.i("ping url: %s", v4);
            Exception v1_2 = com.newrelic.agent.android.instrumentation.URLConnectionInstrumentation.openConnection(new java.net.URL("https://prod.bapi.bka.sh/v0.1.0/auth/ping").openConnection());
            v1_2.setConnectTimeout(5000);
            v1_2.setReadTimeout(5000);
            v1_2.connect();
            return 1;
        } catch (Exception v1_3) {
            Object[] v3_0 = new Object[0];
            timber.log.Timber.e(v1_3, "Sorry, No Internet Connection", v3_0);
            return 0;
        }
    }