granularity level: instruction

		.class public Lcom/google/android/gms/common/api/AvailabilityException;
.super Ljava/lang/Exception;
.source "com.google.android.gms:play-services-base@@18.0.1"


.field private final zaa:Landroidx/collection/ArrayMap;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/collection/ArrayMap<",
"Lcom/google/android/gms/common/api/internal/ApiKey<",
"*>;",
"Lcom/google/android/gms/common/ConnectionResult;",
">;"
}
.end annotation
.end field


.method public constructor <init>(Landroidx/collection/ArrayMap;)V
	.locals 0
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"(",
	"Landroidx/collection/ArrayMap<",
	"Lcom/google/android/gms/common/api/internal/ApiKey<",
	"*>;",
	"Lcom/google/android/gms/common/ConnectionResult;",
	">;)V"
	}
	.end annotation

	invoke-direct {p0}, Ljava/lang/Exception;-><init>()V
	iput-object p1, p0, Lcom/google/android/gms/common/api/AvailabilityException;->zaa:Landroidx/collection/ArrayMap;
	return-void
.end method

.method public getConnectionResult(Lcom/google/android/gms/common/api/GoogleApi;)Lcom/google/android/gms/common/ConnectionResult;
	.locals 4
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"(",
	"Lcom/google/android/gms/common/api/GoogleApi<",
	"+",
	"Lcom/google/android/gms/common/api/Api$ApiOptions;",
	">;)",
	"Lcom/google/android/gms/common/ConnectionResult;"
	}
	.end annotation

	invoke-virtual {p1}, Lcom/google/android/gms/common/api/GoogleApi;->getApiKey()Lcom/google/android/gms/common/api/internal/ApiKey;
	move-result-object p1
	iget-object v0, p0, Lcom/google/android/gms/common/api/AvailabilityException;->zaa:Landroidx/collection/ArrayMap;
	invoke-virtual {v0, p1}, Landroidx/collection/ArrayMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object v0
	if-eqz v0, :cond_0
	const/4 v0, 0x1
	goto :goto_0
	:cond_0
	const/4 v0, 0x0
	:goto_0
	invoke-virtual {p1}, Lcom/google/android/gms/common/api/internal/ApiKey;->zab()Ljava/lang/String;
	move-result-object v1
	invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
	move-result-object v2
	invoke-virtual {v2}, Ljava/lang/String;->length()I
	move-result v2
	new-instance v3, Ljava/lang/StringBuilder;
	add-int/lit8 v2, v2, 0x3a
	invoke-direct {v3, v2}, Ljava/lang/StringBuilder;-><init>(I)V
	const-string v2, "The given API ("
	invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	const-string v1, ") was not part of the availability request."
	invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object v1
	invoke-static {v0, v1}, Lcom/google/android/gms/common/internal/Preconditions;->checkArgument(ZLjava/lang/Object;)V
	iget-object v0, p0, Lcom/google/android/gms/common/api/AvailabilityException;->zaa:Landroidx/collection/ArrayMap;
	invoke-virtual {v0, p1}, Landroidx/collection/ArrayMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object p1
	check-cast p1, Lcom/google/android/gms/common/ConnectionResult;
	invoke-static {p1}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object p1
	check-cast p1, Lcom/google/android/gms/common/ConnectionResult;
	return-object p1
.end method

.method public getConnectionResult(Lcom/google/android/gms/common/api/HasApiKey;)Lcom/google/android/gms/common/ConnectionResult;
	.locals 4
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"(",
	"Lcom/google/android/gms/common/api/HasApiKey<",
	"+",
	"Lcom/google/android/gms/common/api/Api$ApiOptions;",
	">;)",
	"Lcom/google/android/gms/common/ConnectionResult;"
	}
	.end annotation

	invoke-interface {p1}, Lcom/google/android/gms/common/api/HasApiKey;->getApiKey()Lcom/google/android/gms/common/api/internal/ApiKey;
	move-result-object p1
	iget-object v0, p0, Lcom/google/android/gms/common/api/AvailabilityException;->zaa:Landroidx/collection/ArrayMap;
	invoke-virtual {v0, p1}, Landroidx/collection/ArrayMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object v0
	if-eqz v0, :cond_0
	const/4 v0, 0x1
	goto :goto_0
	:cond_0
	const/4 v0, 0x0
	:goto_0
	invoke-virtual {p1}, Lcom/google/android/gms/common/api/internal/ApiKey;->zab()Ljava/lang/String;
	move-result-object v1
	invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
	move-result-object v2
	invoke-virtual {v2}, Ljava/lang/String;->length()I
	move-result v2
	new-instance v3, Ljava/lang/StringBuilder;
	add-int/lit8 v2, v2, 0x3a
	invoke-direct {v3, v2}, Ljava/lang/StringBuilder;-><init>(I)V
	const-string v2, "The given API ("
	invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	const-string v1, ") was not part of the availability request."
	invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object v1
	invoke-static {v0, v1}, Lcom/google/android/gms/common/internal/Preconditions;->checkArgument(ZLjava/lang/Object;)V
	iget-object v0, p0, Lcom/google/android/gms/common/api/AvailabilityException;->zaa:Landroidx/collection/ArrayMap;
	invoke-virtual {v0, p1}, Landroidx/collection/ArrayMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object p1
	check-cast p1, Lcom/google/android/gms/common/ConnectionResult;
	invoke-static {p1}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object p1
	check-cast p1, Lcom/google/android/gms/common/ConnectionResult;
	return-object p1
.end method

.method public getMessage()Ljava/lang/String;
	.locals 9

	new-instance v0, Ljava/util/ArrayList;
	invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
	iget-object v1, p0, Lcom/google/android/gms/common/api/AvailabilityException;->zaa:Landroidx/collection/ArrayMap;
	invoke-virtual {v1}, Landroidx/collection/ArrayMap;->keySet()Ljava/util/Set;
	move-result-object v1
	invoke-interface {v1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
	move-result-object v1
	const/4 v2, 0x1
	const/4 v3, 0x1
	:goto_0
	invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
	move-result v4
	if-eqz v4, :cond_0
	invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
	move-result-object v4
	check-cast v4, Lcom/google/android/gms/common/api/internal/ApiKey;
	iget-object v5, p0, Lcom/google/android/gms/common/api/AvailabilityException;->zaa:Landroidx/collection/ArrayMap;
	invoke-virtual {v5, v4}, Landroidx/collection/ArrayMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object v5
	check-cast v5, Lcom/google/android/gms/common/ConnectionResult;
	invoke-static {v5}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object v5
	check-cast v5, Lcom/google/android/gms/common/ConnectionResult;
	invoke-virtual {v5}, Lcom/google/android/gms/common/ConnectionResult;->isSuccess()Z
	move-result v6
	xor-int/2addr v6, v2
	and-int/2addr v3, v6
	invoke-virtual {v4}, Lcom/google/android/gms/common/api/internal/ApiKey;->zab()Ljava/lang/String;
	move-result-object v4
	invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
	move-result-object v5
	invoke-static {v4}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
	move-result-object v6
	invoke-virtual {v6}, Ljava/lang/String;->length()I
	move-result v6
	invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
	move-result-object v7
	invoke-virtual {v7}, Ljava/lang/String;->length()I
	move-result v7
	new-instance v8, Ljava/lang/StringBuilder;
	add-int/lit8 v6, v6, 0x2
	add-int/2addr v6, v7
	invoke-direct {v8, v6}, Ljava/lang/StringBuilder;-><init>(I)V
	invoke-virtual {v8, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	const-string v4, ": "
	invoke-virtual {v8, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v8, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object v4
	invoke-interface {v0, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z
	goto :goto_0
	:cond_0
	new-instance v1, Ljava/lang/StringBuilder;
	invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
	if-eqz v3, :cond_1
	const-string v2, "None of the queried APIs are available. "
	invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	goto :goto_1
	:cond_1
	const-string v2, "Some of the queried APIs are unavailable. "
	invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	:goto_1
	const-string v2, "; "
	invoke-static {v2, v0}, Landroid/text/TextUtils;->join(Ljava/lang/CharSequence;Ljava/lang/Iterable;)Ljava/lang/String;
	move-result-object v0
	invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object v0
	return-object v0
.end method