granularity level: instruction
.class public final Lw/j;
.super Ljava/lang/Object;
.source "SourceFile"
.implements Landroid/content/ServiceConnection;
.field public a:I
.field public final b:Landroid/os/Messenger;
.field public c:Lk/j;
.field public final d:Ljava/util/ArrayDeque;
.field public final e:Landroid/util/SparseArray;
.field public final synthetic f:Lw/m;
.method public synthetic constructor <init>(Lw/m;)V
.locals 3
iput-object p1, p0, Lw/j;->f:Lw/m;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 p1, 0x0
iput p1, p0, Lw/j;->a:I
new-instance p1, Landroid/os/Messenger;
new-instance v0, Lh0/d;
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
move-result-object v1
new-instance v2, Lw/g;
invoke-direct {v2, p0}, Lw/g;-><init>(Lw/j;)V
invoke-direct {v0, v1, v2}, Lh0/d;-><init>(Landroid/os/Looper;Landroid/os/Handler$Callback;)V
invoke-direct {p1, v0}, Landroid/os/Messenger;-><init>(Landroid/os/Handler;)V
iput-object p1, p0, Lw/j;->b:Landroid/os/Messenger;
new-instance p1, Ljava/util/ArrayDeque;
invoke-direct {p1}, Ljava/util/ArrayDeque;-><init>()V
iput-object p1, p0, Lw/j;->d:Ljava/util/ArrayDeque;
new-instance p1, Landroid/util/SparseArray;
invoke-direct {p1}, Landroid/util/SparseArray;-><init>()V
iput-object p1, p0, Lw/j;->e:Landroid/util/SparseArray;
return-void
.end method
.method public final declared-synchronized a(ILjava/lang/String;)V
.locals 1
return-void
.end method
.method public final declared-synchronized b(ILjava/lang/String;Ljava/lang/SecurityException;)V
.locals 4
return-void
.end method
.method public final declared-synchronized c()V
.locals 2
monitor-enter p0
:try_start_0
iget v0, p0, Lw/j;->a:I
const/4 v1, 0x2
if-ne v0, v1, :cond_1
iget-object v0, p0, Lw/j;->d:Ljava/util/ArrayDeque;
invoke-virtual {v0}, Ljava/util/ArrayDeque;->isEmpty()Z
move-result v0
if-eqz v0, :cond_1
iget-object v0, p0, Lw/j;->e: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, Lw/j;->a:I
invoke-static {}, Ld0/a;->a()Ld0/a;
move-result-object v0
iget-object v1, p0, Lw/j;->f:Lw/m;
iget-object v1, v1, Lw/m;->a:Landroid/content/Context;
invoke-virtual {v0, v1, p0}, Ld0/a;->b(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 public final declared-synchronized d(Lw/k;)Z
.locals 10
monitor-enter p0
:try_start_0
iget v0, p0, Lw/j;->a: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, Lw/j;->d:Ljava/util/ArrayDeque;
invoke-virtual {v0, p1}, Ljava/util/ArrayDeque;->add(Ljava/lang/Object;)Z
iget p1, p0, Lw/j;->a:I
const/4 p1, 0x1
const-string p1, "MessengerIpcClient"
invoke-static {p1, v1}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
move-result p1
iput v3, p0, Lw/j;->a:I
new-instance v7, Landroid/content/Intent;
const-string p1, "com.google.android.c2dm.intent.REGISTER"
invoke-direct {v7, p1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
const-string p1, "com.google.android.gms"
invoke-virtual {v7, p1}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_0
invoke-static {}, Ld0/a;->a()Ld0/a;
move-result-object v4
iget-object p1, p0, Lw/j;->f:Lw/m;
iget-object v5, p1, Lw/m;->a:Landroid/content/Context;
invoke-virtual {v5}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object p1
invoke-virtual {p1}, Ljava/lang/Class;->getName()Ljava/lang/String;
move-result-object v6
const/4 v9, 0x1
move-object v8, p0
invoke-virtual/range {v4 .. v9}, Ld0/a;->c(Landroid/content/Context;Ljava/lang/String;Landroid/content/Intent;Landroid/content/ServiceConnection;I)Z
move-result p1
iget-object p1, p0, Lw/j;->f:Lw/m;
iget-object p1, p1, Lw/m;->b:Ljava/util/concurrent/ScheduledExecutorService;
new-instance v0, Lw/h;
invoke-direct {v0, p0, v1}, Lw/h;-><init>(Lw/j;I)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
.method public final onServiceConnected(Landroid/content/ComponentName;Landroid/os/IBinder;)V
.locals 2
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, Lw/j;->f:Lw/m;
iget-object p1, p1, Lw/m;->b:Ljava/util/concurrent/ScheduledExecutorService;
new-instance v0, Lw/i;
const/4 v1, 0x0
invoke-direct {v0, p0, p2, v1}, Lw/i;-><init>(Ljava/lang/Object;Ljava/lang/Object;I)V
invoke-interface {p1, v0}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
return-void
.end method
.method public final onServiceDisconnected(Landroid/content/ComponentName;)V
.locals 2
return-void
.end method