granularity level: instruction

		.class public final Lcom/google/android/gms/common/api/internal/GoogleServices;
.super Ljava/lang/Object;
.source "com.google.android.gms:play-services-basement@@18.1.0"

.annotation runtime Ljava/lang/Deprecated;
.end annotation

.field private static final zza:Ljava/lang/Object;
.field private static zzb:Lcom/google/android/gms/common/api/internal/GoogleServices;
.field private final zzc:Ljava/lang/String;
.field private final zzd:Lcom/google/android/gms/common/api/Status;
.field private final zze:Z
.field private final zzf:Z


.method static constructor <clinit>()V
	.locals 1

	new-instance v0, Ljava/lang/Object;
	invoke-direct {v0}, Ljava/lang/Object;-><init>()V
	sput-object v0, Lcom/google/android/gms/common/api/internal/GoogleServices;->zza:Ljava/lang/Object;
	return-void
.end method

.method constructor <init>(Landroid/content/Context;)V
	.locals 4

	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
	move-result-object v0
	sget v1, Lcom/google/android/gms/common/R$string;->common_google_play_services_unknown_issue:I
	invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getResourcePackageName(I)Ljava/lang/String;
	move-result-object v1
	const-string v2, "google_app_measurement_enable"
	const-string v3, "integer"
	invoke-virtual {v0, v2, v3, v1}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I
	move-result v1
	const/4 v2, 0x1
	const/4 v3, 0x0
	if-eqz v1, :cond_2
	invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getInteger(I)I
	move-result v0
	if-eqz v0, :cond_0
	const/4 v1, 0x0
	goto :goto_0
	:cond_0
	const/4 v1, 0x1
	:goto_0
	if-eqz v0, :cond_1
	goto :goto_1
	:cond_1
	const/4 v2, 0x0
	:goto_1
	iput-boolean v1, p0, Lcom/google/android/gms/common/api/internal/GoogleServices;->zzf:Z
	goto :goto_2
	:cond_2
	iput-boolean v3, p0, Lcom/google/android/gms/common/api/internal/GoogleServices;->zzf:Z
	:goto_2
	iput-boolean v2, p0, Lcom/google/android/gms/common/api/internal/GoogleServices;->zze:Z
	invoke-static {p1}, Lcom/google/android/gms/common/internal/zzag;->zzb(Landroid/content/Context;)Ljava/lang/String;
	move-result-object v0
	if-nez v0, :cond_3
	new-instance v0, Lcom/google/android/gms/common/internal/StringResourceValueReader;
	invoke-direct {v0, p1}, Lcom/google/android/gms/common/internal/StringResourceValueReader;-><init>(Landroid/content/Context;)V
	const-string p1, "google_app_id"
	invoke-virtual {v0, p1}, Lcom/google/android/gms/common/internal/StringResourceValueReader;->getString(Ljava/lang/String;)Ljava/lang/String;
	move-result-object v0
	:cond_3
	invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
	move-result p1
	if-eqz p1, :cond_4
	new-instance p1, Lcom/google/android/gms/common/api/Status;
	const/16 v0, 0xa
	const-string v1, "Missing google app id value from from string resources with name google_app_id."
	invoke-direct {p1, v0, v1}, Lcom/google/android/gms/common/api/Status;-><init>(ILjava/lang/String;)V
	iput-object p1, p0, Lcom/google/android/gms/common/api/internal/GoogleServices;->zzd:Lcom/google/android/gms/common/api/Status;
	const/4 p1, 0x0
	iput-object p1, p0, Lcom/google/android/gms/common/api/internal/GoogleServices;->zzc:Ljava/lang/String;
	return-void
	:cond_4
	iput-object v0, p0, Lcom/google/android/gms/common/api/internal/GoogleServices;->zzc:Ljava/lang/String;
	sget-object p1, Lcom/google/android/gms/common/api/Status;->RESULT_SUCCESS:Lcom/google/android/gms/common/api/Status;
	iput-object p1, p0, Lcom/google/android/gms/common/api/internal/GoogleServices;->zzd:Lcom/google/android/gms/common/api/Status;
	return-void
.end method

.method constructor <init>(Ljava/lang/String;Z)V
	.locals 0

	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	iput-object p1, p0, Lcom/google/android/gms/common/api/internal/GoogleServices;->zzc:Ljava/lang/String;
	sget-object p1, Lcom/google/android/gms/common/api/Status;->RESULT_SUCCESS:Lcom/google/android/gms/common/api/Status;
	iput-object p1, p0, Lcom/google/android/gms/common/api/internal/GoogleServices;->zzd:Lcom/google/android/gms/common/api/Status;
	iput-boolean p2, p0, Lcom/google/android/gms/common/api/internal/GoogleServices;->zze:Z
	xor-int/lit8 p1, p2, 0x1
	iput-boolean p1, p0, Lcom/google/android/gms/common/api/internal/GoogleServices;->zzf:Z
	return-void
.end method

.method private static checkInitialized(Ljava/lang/String;)Lcom/google/android/gms/common/api/internal/GoogleServices;
	.locals 4

	sget-object v0, Lcom/google/android/gms/common/api/internal/GoogleServices;->zza:Ljava/lang/Object;
	monitor-enter v0
	:try_start_0
	sget-object v1, Lcom/google/android/gms/common/api/internal/GoogleServices;->zzb:Lcom/google/android/gms/common/api/internal/GoogleServices;
	if-eqz v1, :cond_0
	monitor-exit v0
	return-object v1
	:cond_0
	new-instance v1, Ljava/lang/IllegalStateException;
	new-instance v2, Ljava/lang/StringBuilder;
	invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
	const-string v3, "Initialize must be called before "
	invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	const-string p0, "."
	invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object p0
	invoke-direct {v1, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
	throw v1
	:catchall_0
	move-exception p0
	monitor-exit v0
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	throw p0
.end method

.method static clearInstanceForTest()V
	.locals 2

	sget-object v0, Lcom/google/android/gms/common/api/internal/GoogleServices;->zza:Ljava/lang/Object;
	monitor-enter v0
	const/4 v1, 0x0
	:try_start_0
	sput-object v1, Lcom/google/android/gms/common/api/internal/GoogleServices;->zzb:Lcom/google/android/gms/common/api/internal/GoogleServices;
	monitor-exit v0
	return-void
	:catchall_0
	move-exception v1
	monitor-exit v0
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	throw v1
.end method

.method public static getGoogleAppId()Ljava/lang/String;
	.locals 1

	const-string v0, "getGoogleAppId"
	invoke-static {v0}, Lcom/google/android/gms/common/api/internal/GoogleServices;->checkInitialized(Ljava/lang/String;)Lcom/google/android/gms/common/api/internal/GoogleServices;
	move-result-object v0
	iget-object v0, v0, Lcom/google/android/gms/common/api/internal/GoogleServices;->zzc:Ljava/lang/String;
	return-object v0
.end method

.method public static initialize(Landroid/content/Context;)Lcom/google/android/gms/common/api/Status;
	.locals 2

	const-string v0, "Context must not be null."
	invoke-static {p0, v0}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
	sget-object v0, Lcom/google/android/gms/common/api/internal/GoogleServices;->zza:Ljava/lang/Object;
	monitor-enter v0
	:try_start_0
	sget-object v1, Lcom/google/android/gms/common/api/internal/GoogleServices;->zzb:Lcom/google/android/gms/common/api/internal/GoogleServices;
	if-nez v1, :cond_0
	new-instance v1, Lcom/google/android/gms/common/api/internal/GoogleServices;
	invoke-direct {v1, p0}, Lcom/google/android/gms/common/api/internal/GoogleServices;-><init>(Landroid/content/Context;)V
	sput-object v1, Lcom/google/android/gms/common/api/internal/GoogleServices;->zzb:Lcom/google/android/gms/common/api/internal/GoogleServices;
	:cond_0
	sget-object p0, Lcom/google/android/gms/common/api/internal/GoogleServices;->zzb:Lcom/google/android/gms/common/api/internal/GoogleServices;
	iget-object p0, p0, Lcom/google/android/gms/common/api/internal/GoogleServices;->zzd:Lcom/google/android/gms/common/api/Status;
	monitor-exit v0
	return-object p0
	:catchall_0
	move-exception p0
	monitor-exit v0
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	throw p0
.end method

.method public static initialize(Landroid/content/Context;Ljava/lang/String;Z)Lcom/google/android/gms/common/api/Status;
	.locals 1

	const-string v0, "Context must not be null."
	invoke-static {p0, v0}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
	const-string p0, "App ID must be nonempty."
	invoke-static {p1, p0}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotEmpty(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;
	sget-object p0, Lcom/google/android/gms/common/api/internal/GoogleServices;->zza:Ljava/lang/Object;
	monitor-enter p0
	:try_start_0
	sget-object v0, Lcom/google/android/gms/common/api/internal/GoogleServices;->zzb:Lcom/google/android/gms/common/api/internal/GoogleServices;
	if-eqz v0, :cond_0
	invoke-virtual {v0, p1}, Lcom/google/android/gms/common/api/internal/GoogleServices;->checkGoogleAppId(Ljava/lang/String;)Lcom/google/android/gms/common/api/Status;
	move-result-object p1
	monitor-exit p0
	return-object p1
	:cond_0
	new-instance v0, Lcom/google/android/gms/common/api/internal/GoogleServices;
	invoke-direct {v0, p1, p2}, Lcom/google/android/gms/common/api/internal/GoogleServices;-><init>(Ljava/lang/String;Z)V
	sput-object v0, Lcom/google/android/gms/common/api/internal/GoogleServices;->zzb:Lcom/google/android/gms/common/api/internal/GoogleServices;
	iget-object p1, v0, Lcom/google/android/gms/common/api/internal/GoogleServices;->zzd:Lcom/google/android/gms/common/api/Status;
	monitor-exit p0
	return-object p1
	:catchall_0
	move-exception p1
	monitor-exit p0
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	throw p1
.end method

.method public static isMeasurementEnabled()Z
	.locals 2

	const-string v0, "isMeasurementEnabled"
	invoke-static {v0}, Lcom/google/android/gms/common/api/internal/GoogleServices;->checkInitialized(Ljava/lang/String;)Lcom/google/android/gms/common/api/internal/GoogleServices;
	move-result-object v0
	iget-object v1, v0, Lcom/google/android/gms/common/api/internal/GoogleServices;->zzd:Lcom/google/android/gms/common/api/Status;
	invoke-virtual {v1}, Lcom/google/android/gms/common/api/Status;->isSuccess()Z
	move-result v1
	if-eqz v1, :cond_0
	iget-boolean v0, v0, Lcom/google/android/gms/common/api/internal/GoogleServices;->zze:Z
	if-eqz v0, :cond_0
	const/4 v0, 0x1
	return v0
	:cond_0
	const/4 v0, 0x0
	return v0
.end method

.method public static isMeasurementExplicitlyDisabled()Z
	.locals 1

	const-string v0, "isMeasurementExplicitlyDisabled"
	invoke-static {v0}, Lcom/google/android/gms/common/api/internal/GoogleServices;->checkInitialized(Ljava/lang/String;)Lcom/google/android/gms/common/api/internal/GoogleServices;
	move-result-object v0
	iget-boolean v0, v0, Lcom/google/android/gms/common/api/internal/GoogleServices;->zzf:Z
	return v0
.end method

.method  checkGoogleAppId(Ljava/lang/String;)Lcom/google/android/gms/common/api/Status;
	.locals 3

	iget-object v0, p0, Lcom/google/android/gms/common/api/internal/GoogleServices;->zzc:Ljava/lang/String;
	if-eqz v0, :cond_0
	invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
	move-result p1
	if-nez p1, :cond_0
	new-instance p1, Lcom/google/android/gms/common/api/Status;
	iget-object v0, p0, Lcom/google/android/gms/common/api/internal/GoogleServices;->zzc:Ljava/lang/String;
	new-instance v1, Ljava/lang/StringBuilder;
	invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
	const-string v2, "Initialize was called with two different Google App IDs.  Only the first app ID will be used: \'"
	invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	const-string v0, "\'."
	invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	const/16 v0, 0xa
	invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object v1
	invoke-direct {p1, v0, v1}, Lcom/google/android/gms/common/api/Status;-><init>(ILjava/lang/String;)V
	return-object p1
	:cond_0
	sget-object p1, Lcom/google/android/gms/common/api/Status;->RESULT_SUCCESS:Lcom/google/android/gms/common/api/Status;
	return-object p1
.end method