package e.c.a.a.b.a; import android.net.Uri; import android.util.Log; import java.io.IOException; import java.net.HttpURLConnection; import java.net.URL; import java.util.Map; /* access modifiers changed from: package-private */ public final class b extends Thread { private final /* synthetic */ Map t; b(a aVar, Map map) { this.t = map; } public final void run() { String message; StringBuilder sb; String str; Exception exc; new d(); Map map = this.t; Uri.Builder buildUpon = Uri.parse("https://pagead2.googlesyndication.com/pagead/gen_204?id=gmob-apps").buildUpon(); for (String str2 : map.keySet()) { buildUpon.appendQueryParameter(str2, (String) map.get(str2)); } String uri = buildUpon.build().toString(); try { HttpURLConnection httpURLConnection = (HttpURLConnection) new URL(uri).openConnection(); try { int responseCode = httpURLConnection.getResponseCode(); if (responseCode < 200 || responseCode >= 300) { StringBuilder sb2 = new StringBuilder(String.valueOf(uri).length() + 65); sb2.append("Received non-success response code "); sb2.append(responseCode); sb2.append(" from pinging URL: "); sb2.append(uri); Log.w("HttpUrlPinger", sb2.toString()); } } finally { httpURLConnection.disconnect(); } } catch (IndexOutOfBoundsException e2) { message = e2.getMessage(); sb = new StringBuilder(String.valueOf(uri).length() + 32 + String.valueOf(message).length()); str = "Error while parsing ping URL: "; exc = e2; sb.append(str); sb.append(uri); sb.append(". "); sb.append(message); Log.w("HttpUrlPinger", sb.toString(), exc); } catch (IOException | RuntimeException e3) { message = e3.getMessage(); sb = new StringBuilder(String.valueOf(uri).length() + 27 + String.valueOf(message).length()); str = "Error while pinging URL: "; exc = e3; sb.append(str); sb.append(uri); sb.append(". "); sb.append(message); Log.w("HttpUrlPinger", sb.toString(), exc); } } }