package com.google.android.gms.common.config; import android.os.Binder; import android.os.StrictMode; import android.util.Log; import com.google.android.gms.common.annotation.KeepForSdk; import com.google.errorprone.annotations.ResultIgnorabilityUnspecified; @KeepForSdk /* loaded from: classes.dex */ public abstract class GservicesValue { private static final Object zzc = new Object(); protected final String zza; protected final Object zzb; private Object zzd = null; protected GservicesValue(String str, Object obj) { this.zza = str; this.zzb = obj; } @ResultIgnorabilityUnspecified @KeepForSdk public static boolean isInitialized() { synchronized (zzc) { } return false; } @KeepForSdk public static GservicesValue value(String str, Float f10) { return new zzd(str, f10); } @ResultIgnorabilityUnspecified @KeepForSdk public final T get() { T t10; T t11 = (T) this.zzd; if (t11 != null) { return t11; } StrictMode.ThreadPolicy allowThreadDiskReads = StrictMode.allowThreadDiskReads(); Object obj = zzc; synchronized (obj) { } synchronized (obj) { try { } finally { StrictMode.setThreadPolicy(allowThreadDiskReads); } } try { t10 = (T) zza(this.zza); } catch (SecurityException unused) { long clearCallingIdentity = Binder.clearCallingIdentity(); try { t10 = (T) zza(this.zza); } finally { Binder.restoreCallingIdentity(clearCallingIdentity); } } return t10; } @KeepForSdk @Deprecated public final T getBinderSafe() { return get(); } @KeepForSdk public void override(T t10) { Log.w("GservicesValue", "GservicesValue.override(): test should probably call initForTests() first"); this.zzd = t10; Object obj = zzc; synchronized (obj) { synchronized (obj) { } } } @KeepForSdk public void resetOverride() { this.zzd = null; } protected abstract Object zza(String str); @KeepForSdk public static GservicesValue value(String str, Integer num) { return new zzc(str, num); } @KeepForSdk public static GservicesValue value(String str, Long l10) { return new zzb(str, l10); } @KeepForSdk public static GservicesValue value(String str, String str2) { return new zze(str, str2); } @KeepForSdk public static GservicesValue value(String str, boolean z10) { return new zza(str, Boolean.valueOf(z10)); } }