granularity level: instruction
.class public final Lcom/google/android/gms/common/api/internal/zal;
.super Ljava/lang/Object;
.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
.field private final zab:Landroidx/collection/ArrayMap;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/collection/ArrayMap<",
"Lcom/google/android/gms/common/api/internal/ApiKey<",
"*>;",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field private final zac:Lcom/google/android/gms/tasks/TaskCompletionSource;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/android/gms/tasks/TaskCompletionSource<",
"Ljava/util/Map<",
"Lcom/google/android/gms/common/api/internal/ApiKey<",
"*>;",
"Ljava/lang/String;",
">;>;"
}
.end annotation
.end field
.field private zad:I
.field private zae:Z
.method public constructor <init>(Ljava/lang/Iterable;)V
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Iterable<",
"+",
"Lcom/google/android/gms/common/api/HasApiKey<",
"*>;>;)V"
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v0, Landroidx/collection/ArrayMap;
invoke-direct {v0}, Landroidx/collection/ArrayMap;-><init>()V
iput-object v0, p0, Lcom/google/android/gms/common/api/internal/zal;->zab:Landroidx/collection/ArrayMap;
new-instance v0, Lcom/google/android/gms/tasks/TaskCompletionSource;
invoke-direct {v0}, Lcom/google/android/gms/tasks/TaskCompletionSource;-><init>()V
iput-object v0, p0, Lcom/google/android/gms/common/api/internal/zal;->zac:Lcom/google/android/gms/tasks/TaskCompletionSource;
const/4 v0, 0x0
iput-boolean v0, p0, Lcom/google/android/gms/common/api/internal/zal;->zae:Z
new-instance v0, Landroidx/collection/ArrayMap;
invoke-direct {v0}, Landroidx/collection/ArrayMap;-><init>()V
iput-object v0, p0, Lcom/google/android/gms/common/api/internal/zal;->zaa:Landroidx/collection/ArrayMap;
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object p1
:goto_0
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_0
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/android/gms/common/api/HasApiKey;
iget-object v1, p0, Lcom/google/android/gms/common/api/internal/zal;->zaa:Landroidx/collection/ArrayMap;
invoke-interface {v0}, Lcom/google/android/gms/common/api/HasApiKey;->getApiKey()Lcom/google/android/gms/common/api/internal/ApiKey;
move-result-object v0
const/4 v2, 0x0
invoke-virtual {v1, v0, v2}, Landroidx/collection/ArrayMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_0
:cond_0
iget-object p1, p0, Lcom/google/android/gms/common/api/internal/zal;->zaa:Landroidx/collection/ArrayMap;
invoke-virtual {p1}, Landroidx/collection/ArrayMap;->keySet()Ljava/util/Set;
move-result-object p1
invoke-interface {p1}, Ljava/util/Set;->size()I
move-result p1
iput p1, p0, Lcom/google/android/gms/common/api/internal/zal;->zad:I
return-void
.end method
.method public final zaa()Lcom/google/android/gms/tasks/Task;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/android/gms/tasks/Task<",
"Ljava/util/Map<",
"Lcom/google/android/gms/common/api/internal/ApiKey<",
"*>;",
"Ljava/lang/String;",
">;>;"
}
.end annotation
iget-object v0, p0, Lcom/google/android/gms/common/api/internal/zal;->zac:Lcom/google/android/gms/tasks/TaskCompletionSource;
invoke-virtual {v0}, Lcom/google/android/gms/tasks/TaskCompletionSource;->getTask()Lcom/google/android/gms/tasks/Task;
move-result-object v0
return-object v0
.end method
.method public final zab()Ljava/util/Set;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Set<",
"Lcom/google/android/gms/common/api/internal/ApiKey<",
"*>;>;"
}
.end annotation
iget-object v0, p0, Lcom/google/android/gms/common/api/internal/zal;->zaa:Landroidx/collection/ArrayMap;
invoke-virtual {v0}, Landroidx/collection/ArrayMap;->keySet()Ljava/util/Set;
move-result-object v0
return-object v0
.end method
.method public final zac(Lcom/google/android/gms/common/api/internal/ApiKey;Lcom/google/android/gms/common/ConnectionResult;Ljava/lang/String;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/android/gms/common/api/internal/ApiKey<",
"*>;",
"Lcom/google/android/gms/common/ConnectionResult;",
"Ljava/lang/String;",
")V"
}
.end annotation
iget-object v0, p0, Lcom/google/android/gms/common/api/internal/zal;->zaa:Landroidx/collection/ArrayMap;
invoke-virtual {v0, p1, p2}, Landroidx/collection/ArrayMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
iget-object v0, p0, Lcom/google/android/gms/common/api/internal/zal;->zab:Landroidx/collection/ArrayMap;
invoke-virtual {v0, p1, p3}, Landroidx/collection/ArrayMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
iget p1, p0, Lcom/google/android/gms/common/api/internal/zal;->zad:I
add-int/lit8 p1, p1, -0x1
iput p1, p0, Lcom/google/android/gms/common/api/internal/zal;->zad:I
invoke-virtual {p2}, Lcom/google/android/gms/common/ConnectionResult;->isSuccess()Z
move-result p1
if-nez p1, :cond_0
const/4 p1, 0x1
iput-boolean p1, p0, Lcom/google/android/gms/common/api/internal/zal;->zae:Z
:cond_0
iget p1, p0, Lcom/google/android/gms/common/api/internal/zal;->zad:I
if-nez p1, :cond_2
iget-boolean p1, p0, Lcom/google/android/gms/common/api/internal/zal;->zae:Z
if-eqz p1, :cond_1
new-instance p1, Lcom/google/android/gms/common/api/AvailabilityException;
iget-object p2, p0, Lcom/google/android/gms/common/api/internal/zal;->zaa:Landroidx/collection/ArrayMap;
invoke-direct {p1, p2}, Lcom/google/android/gms/common/api/AvailabilityException;-><init>(Landroidx/collection/ArrayMap;)V
iget-object p2, p0, Lcom/google/android/gms/common/api/internal/zal;->zac:Lcom/google/android/gms/tasks/TaskCompletionSource;
invoke-virtual {p2, p1}, Lcom/google/android/gms/tasks/TaskCompletionSource;->setException(Ljava/lang/Exception;)V
return-void
:cond_1
iget-object p1, p0, Lcom/google/android/gms/common/api/internal/zal;->zac:Lcom/google/android/gms/tasks/TaskCompletionSource;
iget-object p2, p0, Lcom/google/android/gms/common/api/internal/zal;->zab:Landroidx/collection/ArrayMap;
invoke-virtual {p1, p2}, Lcom/google/android/gms/tasks/TaskCompletionSource;->setResult(Ljava/lang/Object;)V
:cond_2
return-void
.end method