package com.google.firebase.analytics; import android.app.Activity; import android.content.Context; import android.os.Bundle; import androidx.annotation.Keep; import com.google.android.gms.common.internal.Preconditions; import com.google.android.gms.internal.measurement.zzef; import com.google.android.gms.measurement.internal.zzil; import com.google.android.gms.tasks.Tasks; import com.google.firebase.installations.c; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; /* loaded from: classes2.dex */ public final class FirebaseAnalytics { /* renamed from: b, reason: collision with root package name */ private static volatile FirebaseAnalytics f5266b; /* renamed from: a, reason: collision with root package name */ private final zzef f5267a; public FirebaseAnalytics(zzef zzefVar) { Preconditions.checkNotNull(zzefVar); this.f5267a = zzefVar; } @Keep public static FirebaseAnalytics getInstance(Context context) { if (f5266b == null) { synchronized (FirebaseAnalytics.class) { if (f5266b == null) { f5266b = new FirebaseAnalytics(zzef.zzg(context, null, null, null, null)); } } } return f5266b; } @Keep public static zzil getScionFrontendApiImplementation(Context context, Bundle bundle) { zzef zzg = zzef.zzg(context, null, null, null, bundle); if (zzg == null) { return null; } return new a(zzg); } @Keep public String getFirebaseInstanceId() { try { return (String) Tasks.await(c.p().getId(), 30000L, TimeUnit.MILLISECONDS); } catch (InterruptedException e10) { throw new IllegalStateException(e10); } catch (ExecutionException e11) { throw new IllegalStateException(e11.getCause()); } catch (TimeoutException unused) { throw new IllegalThreadStateException("Firebase Installations getId Task has timed out."); } } @Keep @Deprecated public void setCurrentScreen(Activity activity, String str, String str2) { this.f5267a.zzH(activity, str, str2); } }