granularity level: instruction
.class public Lcom/google/android/gms/common/internal/PendingResultUtil;
.super Ljava/lang/Object;
.source "com.google.android.gms:play-services-base@@18.0.1"
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/android/gms/common/internal/PendingResultUtil$ResultConverter;
}
.end annotation
.field private static final zaa:Lcom/google/android/gms/common/internal/zas;
.method static constructor <clinit>()V
.locals 1
new-instance v0, Lcom/google/android/gms/common/internal/zao;
invoke-direct {v0}, Lcom/google/android/gms/common/internal/zao;-><init>()V
sput-object v0, Lcom/google/android/gms/common/internal/PendingResultUtil;->zaa:Lcom/google/android/gms/common/internal/zas;
return-void
.end method
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static toResponseTask(Lcom/google/android/gms/common/api/PendingResult;Lcom/google/android/gms/common/api/Response;)Lcom/google/android/gms/tasks/Task;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<R::",
"Lcom/google/android/gms/common/api/Result;",
"T:",
"Lcom/google/android/gms/common/api/Response<",
"TR;>;>(",
"Lcom/google/android/gms/common/api/PendingResult<",
"TR;>;TT;)",
"Lcom/google/android/gms/tasks/Task<",
"TT;>;"
}
.end annotation
new-instance v0, Lcom/google/android/gms/common/internal/zaq;
invoke-direct {v0, p1}, Lcom/google/android/gms/common/internal/zaq;-><init>(Lcom/google/android/gms/common/api/Response;)V
invoke-static {p0, v0}, Lcom/google/android/gms/common/internal/PendingResultUtil;->toTask(Lcom/google/android/gms/common/api/PendingResult;Lcom/google/android/gms/common/internal/PendingResultUtil$ResultConverter;)Lcom/google/android/gms/tasks/Task;
move-result-object p0
return-object p0
.end method
.method public static toTask(Lcom/google/android/gms/common/api/PendingResult;Lcom/google/android/gms/common/internal/PendingResultUtil$ResultConverter;)Lcom/google/android/gms/tasks/Task;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"<R::",
"Lcom/google/android/gms/common/api/Result;",
"T:",
"Ljava/lang/Object;",
">(",
"Lcom/google/android/gms/common/api/PendingResult<",
"TR;>;",
"Lcom/google/android/gms/common/internal/PendingResultUtil$ResultConverter<",
"TR;TT;>;)",
"Lcom/google/android/gms/tasks/Task<",
"TT;>;"
}
.end annotation
sget-object v0, Lcom/google/android/gms/common/internal/PendingResultUtil;->zaa:Lcom/google/android/gms/common/internal/zas;
new-instance v1, Lcom/google/android/gms/tasks/TaskCompletionSource;
invoke-direct {v1}, Lcom/google/android/gms/tasks/TaskCompletionSource;-><init>()V
new-instance v2, Lcom/google/android/gms/common/internal/zap;
invoke-direct {v2, p0, v1, p1, v0}, Lcom/google/android/gms/common/internal/zap;-><init>(Lcom/google/android/gms/common/api/PendingResult;Lcom/google/android/gms/tasks/TaskCompletionSource;Lcom/google/android/gms/common/internal/PendingResultUtil$ResultConverter;Lcom/google/android/gms/common/internal/zas;)V
invoke-virtual {p0, v2}, Lcom/google/android/gms/common/api/PendingResult;->addStatusListener(Lcom/google/android/gms/common/api/PendingResult$StatusListener;)V
invoke-virtual {v1}, Lcom/google/android/gms/tasks/TaskCompletionSource;->getTask()Lcom/google/android/gms/tasks/Task;
move-result-object p0
return-object p0
.end method
.method public static toVoidTask(Lcom/google/android/gms/common/api/PendingResult;)Lcom/google/android/gms/tasks/Task;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<R::",
"Lcom/google/android/gms/common/api/Result;",
">(",
"Lcom/google/android/gms/common/api/PendingResult<",
"TR;>;)",
"Lcom/google/android/gms/tasks/Task<",
"Ljava/lang/Void;",
">;"
}
.end annotation
new-instance v0, Lcom/google/android/gms/common/internal/zar;
invoke-direct {v0}, Lcom/google/android/gms/common/internal/zar;-><init>()V
invoke-static {p0, v0}, Lcom/google/android/gms/common/internal/PendingResultUtil;->toTask(Lcom/google/android/gms/common/api/PendingResult;Lcom/google/android/gms/common/internal/PendingResultUtil$ResultConverter;)Lcom/google/android/gms/tasks/Task;
move-result-object p0
return-object p0
.end method