package defpackage; import J.N; import android.os.SystemClock; import java.util.HashMap; import java.util.Map; import org.chromium.base.ThreadUtils; import org.chromium.chrome.browser.feedback.ConnectivityChecker; import org.chromium.chrome.browser.profiles.Profile; import org.chromium.net.NetworkChangeNotifier; /* renamed from: LA reason: default package */ /* compiled from: chromium-ChromePublic.apk-stable-447210115 */ public class LA { public final Map a = new HashMap(); public final int b; public final HA c; public final long d; public LA(Profile profile, int i, HA ha) { this.b = i; this.c = ha; this.d = SystemClock.elapsedRealtime(); for (int i2 = 0; i2 < 4; i2++) { KA ka = new KA(this, i2); if (i2 == 0) { Object obj = ThreadUtils.a; N.MvuVYy8Q(profile, "http://clients4.google.com/generate_204", (long) i, ka); } else if (i2 == 1) { Object obj2 = ThreadUtils.a; N.MvuVYy8Q(profile, "https://clients4.google.com/generate_204", (long) i, ka); } else if (i2 == 2) { ConnectivityChecker.a(false, i, ka); } else if (i2 != 3) { AbstractC5452vj0.a("feedback", Y50.a("Failed to recognize type ", i2), new Object[0]); } else { ConnectivityChecker.a(true, i, ka); } } } public static String a(int i) { if (i == 0) { return "HTTP connection check (Chrome network stack)"; } if (i == 1) { return "HTTPS connection check (Chrome network stack)"; } if (i == 2) { return "HTTP connection check (Android network stack)"; } if (i == 3) { return "HTTPS connection check (Android network stack)"; } throw new IllegalArgumentException(Y50.a("Unknown connection type: ", i)); } public static String c(int i) { if (i == 0) { return "UNKNOWN"; } if (i == 1) { return "CONNECTED"; } if (i == 2) { return "NOT_CONNECTED"; } if (i == 3) { return "TIMEOUT"; } if (i == 4) { return "ERROR"; } throw new IllegalArgumentException(Y50.a("Unknown result value: ", i)); } public IA b() { Object obj = ThreadUtils.a; HashMap hashMap = new HashMap(); for (int i = 0; i < 4; i++) { if (this.a.containsKey(Integer.valueOf(i))) { hashMap.put(Integer.valueOf(i), (Integer) this.a.get(Integer.valueOf(i))); } else { hashMap.put(Integer.valueOf(i), 0); } } return new IA(hashMap, this.b, SystemClock.elapsedRealtime() - this.d, NetworkChangeNotifier.f.getCurrentConnectionType()); } }