apkfuckery/com.discord/smali/f/c/a/r0.smali
2020-11-14 02:19:59 +00:00

106 lines
2.5 KiB
Smali

.class public final Lf/c/a/r0;
.super Ljava/lang/Object;
.source "GooglePlayServicesClient.java"
# interfaces
.implements Landroid/content/ServiceConnection;
# instance fields
.field public d:J
.field public e:Z
.field public final f:Ljava/util/concurrent/LinkedBlockingQueue;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/concurrent/LinkedBlockingQueue<",
"Landroid/os/IBinder;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(J)V
.locals 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput-boolean v0, p0, Lf/c/a/r0;->e:Z
new-instance v0, Ljava/util/concurrent/LinkedBlockingQueue;
const/4 v1, 0x1
invoke-direct {v0, v1}, Ljava/util/concurrent/LinkedBlockingQueue;-><init>(I)V
iput-object v0, p0, Lf/c/a/r0;->f:Ljava/util/concurrent/LinkedBlockingQueue;
iput-wide p1, p0, Lf/c/a/r0;->d:J
return-void
.end method
# virtual methods
.method public a()Landroid/os/IBinder;
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/InterruptedException;
}
.end annotation
iget-boolean v0, p0, Lf/c/a/r0;->e:Z
if-nez v0, :cond_0
const/4 v0, 0x1
iput-boolean v0, p0, Lf/c/a/r0;->e:Z
iget-object v0, p0, Lf/c/a/r0;->f:Ljava/util/concurrent/LinkedBlockingQueue;
iget-wide v1, p0, Lf/c/a/r0;->d:J
sget-object v3, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invoke-virtual {v0, v1, v2, v3}, Ljava/util/concurrent/LinkedBlockingQueue;->poll(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/os/IBinder;
return-object v0
:cond_0
new-instance v0, Ljava/lang/IllegalStateException;
invoke-direct {v0}, Ljava/lang/IllegalStateException;-><init>()V
throw v0
.end method
.method public onServiceConnected(Landroid/content/ComponentName;Landroid/os/IBinder;)V
.locals 0
:try_start_0
iget-object p1, p0, Lf/c/a/r0;->f:Ljava/util/concurrent/LinkedBlockingQueue;
invoke-virtual {p1, p2}, Ljava/util/concurrent/LinkedBlockingQueue;->put(Ljava/lang/Object;)V
:try_end_0
.catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0
:catch_0
return-void
.end method
.method public onServiceDisconnected(Landroid/content/ComponentName;)V
.locals 0
return-void
.end method