granularity level: instruction
.class final Lcom/google/android/gms/cloudmessaging/zzm;
.super Ljava/lang/Object;
.source "com.google.android.gms:play-services-cloud-messaging@@17.0.0"
.implements Landroid/content/ServiceConnection;
.field zza:I
.field final zzb:Landroid/os/Messenger;
.field zzc:Lcom/google/android/gms/cloudmessaging/zzn;
.field final zzd:Ljava/util/Queue;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Queue<",
"Lcom/google/android/gms/cloudmessaging/zzp<",
"*>;>;"
}
.end annotation
.end field
.field final zze:Landroid/util/SparseArray;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/util/SparseArray<",
"Lcom/google/android/gms/cloudmessaging/zzp<",
"*>;>;"
}
.end annotation
.end field
.field final synthetic zzf:Lcom/google/android/gms/cloudmessaging/zzs;
.method synthetic constructor <init>(Lcom/google/android/gms/cloudmessaging/zzs;Lcom/google/android/gms/cloudmessaging/zzl;)V
.locals 2
iput-object p1, p0, Lcom/google/android/gms/cloudmessaging/zzm;->zzf:Lcom/google/android/gms/cloudmessaging/zzs;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 p1, 0x0
iput p1, p0, Lcom/google/android/gms/cloudmessaging/zzm;->zza:I
new-instance p1, Landroid/os/Messenger;
new-instance p2, Lcom/google/android/gms/internal/cloudmessaging/zzf;
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
move-result-object v0
new-instance v1, Lcom/google/android/gms/cloudmessaging/zzf;
invoke-direct {v1, p0}, Lcom/google/android/gms/cloudmessaging/zzf;-><init>(Lcom/google/android/gms/cloudmessaging/zzm;)V
invoke-direct {p2, v0, v1}, Lcom/google/android/gms/internal/cloudmessaging/zzf;-><init>(Landroid/os/Looper;Landroid/os/Handler$Callback;)V
invoke-direct {p1, p2}, Landroid/os/Messenger;-><init>(Landroid/os/Handler;)V
iput-object p1, p0, Lcom/google/android/gms/cloudmessaging/zzm;->zzb:Landroid/os/Messenger;
new-instance p1, Ljava/util/ArrayDeque;
invoke-direct {p1}, Ljava/util/ArrayDeque;-><init>()V
iput-object p1, p0, Lcom/google/android/gms/cloudmessaging/zzm;->zzd:Ljava/util/Queue;
new-instance p1, Landroid/util/SparseArray;
invoke-direct {p1}, Landroid/util/SparseArray;-><init>()V
iput-object p1, p0, Lcom/google/android/gms/cloudmessaging/zzm;->zze:Landroid/util/SparseArray;
return-void
.end method
.method public final onServiceConnected(Landroid/content/ComponentName;Landroid/os/IBinder;)V
.locals 1
const-string p1, "MessengerIpcClient"
const/4 v0, 0x2
invoke-static {p1, v0}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
move-result v0
iget-object p1, p0, Lcom/google/android/gms/cloudmessaging/zzm;->zzf:Lcom/google/android/gms/cloudmessaging/zzs;
invoke-static {p1}, Lcom/google/android/gms/cloudmessaging/zzs;->zze(Lcom/google/android/gms/cloudmessaging/zzs;)Ljava/util/concurrent/ScheduledExecutorService;
move-result-object p1
new-instance v0, Lcom/google/android/gms/cloudmessaging/zzj;
invoke-direct {v0, p0, p2}, Lcom/google/android/gms/cloudmessaging/zzj;-><init>(Lcom/google/android/gms/cloudmessaging/zzm;Landroid/os/IBinder;)V
invoke-interface {p1, v0}, Ljava/util/concurrent/ScheduledExecutorService;->execute(Ljava/lang/Runnable;)V
return-void
.end method
.method public final onServiceDisconnected(Landroid/content/ComponentName;)V
.locals 1
return-void
.end method
.method final declared-synchronized zza(ILjava/lang/String;)V
.locals 1
return-void
.end method
.method final declared-synchronized zzb(ILjava/lang/String;Ljava/lang/Throwable;)V
.locals 5
return-void
.end method
.method final zzc()V
.locals 2
iget-object v0, p0, Lcom/google/android/gms/cloudmessaging/zzm;->zzf:Lcom/google/android/gms/cloudmessaging/zzs;
invoke-static {v0}, Lcom/google/android/gms/cloudmessaging/zzs;->zze(Lcom/google/android/gms/cloudmessaging/zzs;)Ljava/util/concurrent/ScheduledExecutorService;
move-result-object v0
new-instance v1, Lcom/google/android/gms/cloudmessaging/zzh;
invoke-direct {v1, p0}, Lcom/google/android/gms/cloudmessaging/zzh;-><init>(Lcom/google/android/gms/cloudmessaging/zzm;)V
invoke-interface {v0, v1}, Ljava/util/concurrent/ScheduledExecutorService;->execute(Ljava/lang/Runnable;)V
return-void
.end method
.method final declared-synchronized zzd()V
.locals 2
monitor-enter p0
iget v0, p0, Lcom/google/android/gms/cloudmessaging/zzm;->zza:I
const/4 v1, 0x1
monitor-exit p0
return-void
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
.method final declared-synchronized zze(I)V
.locals 4
monitor-enter p0
:try_start_0
iget-object v0, p0, Lcom/google/android/gms/cloudmessaging/zzm;->zze:Landroid/util/SparseArray;
invoke-virtual {v0, p1}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/android/gms/cloudmessaging/zzp;
if-eqz v0, :cond_0
new-instance v1, Ljava/lang/StringBuilder;
const/16 v2, 0x1f
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(I)V
const-string v2, "Timing out request: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v2, "MessengerIpcClient"
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v2, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
iget-object v1, p0, Lcom/google/android/gms/cloudmessaging/zzm;->zze:Landroid/util/SparseArray;
invoke-virtual {v1, p1}, Landroid/util/SparseArray;->remove(I)V
new-instance p1, Lcom/google/android/gms/cloudmessaging/zzq;
const/4 v1, 0x3
const-string v2, "Timed out waiting for response"
const/4 v3, 0x0
invoke-direct {p1, v1, v2, v3}, Lcom/google/android/gms/cloudmessaging/zzq;-><init>(ILjava/lang/String;Ljava/lang/Throwable;)V
invoke-virtual {v0, p1}, Lcom/google/android/gms/cloudmessaging/zzp;->zzc(Lcom/google/android/gms/cloudmessaging/zzq;)V
invoke-virtual {p0}, Lcom/google/android/gms/cloudmessaging/zzm;->zzf()V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-void
:cond_0
monitor-exit p0
return-void
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method final declared-synchronized zzf()V
.locals 2
monitor-enter p0
:try_start_0
iget v0, p0, Lcom/google/android/gms/cloudmessaging/zzm;->zza:I
const/4 v1, 0x2
if-ne v0, v1, :cond_1
iget-object v0, p0, Lcom/google/android/gms/cloudmessaging/zzm;->zzd:Ljava/util/Queue;
invoke-interface {v0}, Ljava/util/Queue;->isEmpty()Z
move-result v0
if-eqz v0, :cond_1
iget-object v0, p0, Lcom/google/android/gms/cloudmessaging/zzm;->zze:Landroid/util/SparseArray;
invoke-virtual {v0}, Landroid/util/SparseArray;->size()I
move-result v0
if-nez v0, :cond_1
const-string v0, "MessengerIpcClient"
invoke-static {v0, v1}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
move-result v0
const/4 v0, 0x3
iput v0, p0, Lcom/google/android/gms/cloudmessaging/zzm;->zza:I
invoke-static {}, Lcom/google/android/gms/common/stats/ConnectionTracker;->getInstance()Lcom/google/android/gms/common/stats/ConnectionTracker;
move-result-object v0
iget-object v1, p0, Lcom/google/android/gms/cloudmessaging/zzm;->zzf:Lcom/google/android/gms/cloudmessaging/zzs;
invoke-static {v1}, Lcom/google/android/gms/cloudmessaging/zzs;->zza(Lcom/google/android/gms/cloudmessaging/zzs;)Landroid/content/Context;
move-result-object v1
invoke-virtual {v0, v1, p0}, Lcom/google/android/gms/common/stats/ConnectionTracker;->unbindService(Landroid/content/Context;Landroid/content/ServiceConnection;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-void
:cond_1
monitor-exit p0
return-void
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
.method final declared-synchronized zzg(Lcom/google/android/gms/cloudmessaging/zzp;)Z
.locals 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/android/gms/cloudmessaging/zzp<",
"*>;)Z"
}
.end annotation
monitor-enter p0
:try_start_0
iget v0, p0, Lcom/google/android/gms/cloudmessaging/zzm;->zza:I
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
const/4 v1, 0x2
const/4 v2, 0x0
const/4 v3, 0x1
if-eqz v0, :cond_2
monitor-exit p0
return v2
:try_start_3
:cond_2
iget-object v0, p0, Lcom/google/android/gms/cloudmessaging/zzm;->zzd:Ljava/util/Queue;
invoke-interface {v0, p1}, Ljava/util/Queue;->add(Ljava/lang/Object;)Z
iget p1, p0, Lcom/google/android/gms/cloudmessaging/zzm;->zza:I
const/4 p1, 0x1
invoke-static {p1}, Lcom/google/android/gms/common/internal/Preconditions;->checkState(Z)V
const-string p1, "MessengerIpcClient"
invoke-static {p1, v1}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
move-result p1
iput v3, p0, Lcom/google/android/gms/cloudmessaging/zzm;->zza:I
new-instance p1, Landroid/content/Intent;
const-string v0, "com.google.android.c2dm.intent.REGISTER"
invoke-direct {p1, v0}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
const-string v0, "com.google.android.gms"
invoke-virtual {p1, v0}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_0
invoke-static {}, Lcom/google/android/gms/common/stats/ConnectionTracker;->getInstance()Lcom/google/android/gms/common/stats/ConnectionTracker;
move-result-object v0
iget-object v1, p0, Lcom/google/android/gms/cloudmessaging/zzm;->zzf:Lcom/google/android/gms/cloudmessaging/zzs;
invoke-static {v1}, Lcom/google/android/gms/cloudmessaging/zzs;->zza(Lcom/google/android/gms/cloudmessaging/zzs;)Landroid/content/Context;
move-result-object v1
invoke-virtual {v0, v1, p1, p0, v3}, Lcom/google/android/gms/common/stats/ConnectionTracker;->bindService(Landroid/content/Context;Landroid/content/Intent;Landroid/content/ServiceConnection;I)Z
move-result p1
iget-object p1, p0, Lcom/google/android/gms/cloudmessaging/zzm;->zzf:Lcom/google/android/gms/cloudmessaging/zzs;
invoke-static {p1}, Lcom/google/android/gms/cloudmessaging/zzs;->zze(Lcom/google/android/gms/cloudmessaging/zzs;)Ljava/util/concurrent/ScheduledExecutorService;
move-result-object p1
new-instance v0, Lcom/google/android/gms/cloudmessaging/zzi;
invoke-direct {v0, p0}, Lcom/google/android/gms/cloudmessaging/zzi;-><init>(Lcom/google/android/gms/cloudmessaging/zzm;)V
const-wide/16 v1, 0x1e
sget-object v4, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
invoke-interface {p1, v0, v1, v2, v4}, Ljava/util/concurrent/ScheduledExecutorService;->schedule(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
monitor-exit p0
return v3
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method