granularity level: instruction

		.class final Lcom/google/firebase/installations/AwaitListener;
.super Ljava/lang/Object;
.source "AwaitListener.java"
.implements Lcom/google/android/gms/tasks/OnCompleteListener;

.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lcom/google/android/gms/tasks/OnCompleteListener<",
"Ljava/lang/Void;",
">;"
}
.end annotation

.field private final latch:Ljava/util/concurrent/CountDownLatch;


.method constructor <init>()V
	.locals 2

	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	new-instance v0, Ljava/util/concurrent/CountDownLatch;
	const/4 v1, 0x1
	invoke-direct {v0, v1}, Ljava/util/concurrent/CountDownLatch;-><init>(I)V
	iput-object v0, p0, Lcom/google/firebase/installations/AwaitListener;->latch:Ljava/util/concurrent/CountDownLatch;
	return-void
.end method

.method public await(JLjava/util/concurrent/TimeUnit;)Z
	.locals 1
	.annotation system Ldalvik/annotation/Throws;
	value = {
	Ljava/lang/InterruptedException;
	}
	.end annotation

	iget-object v0, p0, Lcom/google/firebase/installations/AwaitListener;->latch:Ljava/util/concurrent/CountDownLatch;
	invoke-virtual {v0, p1, p2, p3}, Ljava/util/concurrent/CountDownLatch;->await(JLjava/util/concurrent/TimeUnit;)Z
	move-result p1
	return p1
.end method

.method public onComplete(Lcom/google/android/gms/tasks/Task;)V
	.locals 0
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"(",
	"Lcom/google/android/gms/tasks/Task<",
	"Ljava/lang/Void;",
	">;)V"
	}
	.end annotation

	iget-object p1, p0, Lcom/google/firebase/installations/AwaitListener;->latch:Ljava/util/concurrent/CountDownLatch;
	invoke-virtual {p1}, Ljava/util/concurrent/CountDownLatch;->countDown()V
	return-void
.end method

.method public onSuccess()V
	.locals 1

	iget-object v0, p0, Lcom/google/firebase/installations/AwaitListener;->latch:Ljava/util/concurrent/CountDownLatch;
	invoke-virtual {v0}, Ljava/util/concurrent/CountDownLatch;->countDown()V
	return-void
.end method