You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
140 lines
3.6 KiB
140 lines
3.6 KiB
.class final Lcom/facebook/internal/AttributionIdentifiers$GoogleAdServiceConnection; |
|
.super Ljava/lang/Object; |
|
.source "AttributionIdentifiers.java" |
|
|
|
# interfaces |
|
.implements Landroid/content/ServiceConnection; |
|
|
|
|
|
# annotations |
|
.annotation system Ldalvik/annotation/EnclosingClass; |
|
value = Lcom/facebook/internal/AttributionIdentifiers; |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/InnerClass; |
|
accessFlags = 0x1a |
|
name = "GoogleAdServiceConnection" |
|
.end annotation |
|
|
|
|
|
# instance fields |
|
.field private consumed:Ljava/util/concurrent/atomic/AtomicBoolean; |
|
|
|
.field private final queue:Ljava/util/concurrent/BlockingQueue; |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"Ljava/util/concurrent/BlockingQueue", |
|
"<", |
|
"Landroid/os/IBinder;", |
|
">;" |
|
} |
|
.end annotation |
|
.end field |
|
|
|
|
|
# direct methods |
|
.method private constructor <init>()V |
|
.locals 2 |
|
|
|
.prologue |
|
.line 261 |
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V |
|
|
|
.line 262 |
|
new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean; |
|
|
|
const/4 v1, 0x0 |
|
|
|
invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>(Z)V |
|
|
|
iput-object v0, p0, Lcom/facebook/internal/AttributionIdentifiers$GoogleAdServiceConnection;->consumed:Ljava/util/concurrent/atomic/AtomicBoolean; |
|
|
|
.line 263 |
|
new-instance v0, Ljava/util/concurrent/LinkedBlockingDeque; |
|
|
|
invoke-direct {v0}, Ljava/util/concurrent/LinkedBlockingDeque;-><init>()V |
|
|
|
iput-object v0, p0, Lcom/facebook/internal/AttributionIdentifiers$GoogleAdServiceConnection;->queue:Ljava/util/concurrent/BlockingQueue; |
|
|
|
return-void |
|
.end method |
|
|
|
.method synthetic constructor <init>(Lcom/facebook/internal/AttributionIdentifiers$1;)V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 261 |
|
invoke-direct {p0}, Lcom/facebook/internal/AttributionIdentifiers$GoogleAdServiceConnection;-><init>()V |
|
|
|
return-void |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public getBinder()Landroid/os/IBinder; |
|
.locals 2 |
|
|
|
.prologue |
|
const/4 v1, 0x1 |
|
|
|
.line 278 |
|
iget-object v0, p0, Lcom/facebook/internal/AttributionIdentifiers$GoogleAdServiceConnection;->consumed:Ljava/util/concurrent/atomic/AtomicBoolean; |
|
|
|
invoke-virtual {v0, v1, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z |
|
|
|
move-result v0 |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
.line 279 |
|
new-instance v0, Ljava/lang/IllegalStateException; |
|
|
|
const-string v1, "Binder already consumed" |
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V |
|
|
|
throw v0 |
|
|
|
.line 281 |
|
:cond_0 |
|
iget-object v0, p0, Lcom/facebook/internal/AttributionIdentifiers$GoogleAdServiceConnection;->queue:Ljava/util/concurrent/BlockingQueue; |
|
|
|
invoke-interface {v0}, Ljava/util/concurrent/BlockingQueue;->take()Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/os/IBinder; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public onServiceConnected(Landroid/content/ComponentName;Landroid/os/IBinder;)V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 268 |
|
:try_start_0 |
|
iget-object v0, p0, Lcom/facebook/internal/AttributionIdentifiers$GoogleAdServiceConnection;->queue:Ljava/util/concurrent/BlockingQueue; |
|
|
|
invoke-interface {v0, p2}, Ljava/util/concurrent/BlockingQueue;->put(Ljava/lang/Object;)V |
|
:try_end_0 |
|
.catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0 |
|
|
|
.line 271 |
|
:goto_0 |
|
return-void |
|
|
|
.line 269 |
|
:catch_0 |
|
move-exception v0 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method public onServiceDisconnected(Landroid/content/ComponentName;)V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 275 |
|
return-void |
|
.end method
|
|
|