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.
80 lines
1.9 KiB
80 lines
1.9 KiB
.class final Lcom/facebook/FacebookSdk$1; |
|
.super Ljava/lang/Object; |
|
.source "FacebookSdk.java" |
|
|
|
# interfaces |
|
.implements Ljava/util/concurrent/ThreadFactory; |
|
|
|
|
|
# annotations |
|
.annotation system Ldalvik/annotation/EnclosingClass; |
|
value = Lcom/facebook/FacebookSdk; |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/InnerClass; |
|
accessFlags = 0x8 |
|
name = null |
|
.end annotation |
|
|
|
|
|
# instance fields |
|
.field private final counter:Ljava/util/concurrent/atomic/AtomicInteger; |
|
|
|
|
|
# direct methods |
|
.method constructor <init>()V |
|
.locals 2 |
|
|
|
.prologue |
|
.line 98 |
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V |
|
|
|
.line 99 |
|
new-instance v0, Ljava/util/concurrent/atomic/AtomicInteger; |
|
|
|
const/4 v1, 0x0 |
|
|
|
invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>(I)V |
|
|
|
iput-object v0, p0, Lcom/facebook/FacebookSdk$1;->counter:Ljava/util/concurrent/atomic/AtomicInteger; |
|
|
|
return-void |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public newThread(Ljava/lang/Runnable;)Ljava/lang/Thread; |
|
.locals 3 |
|
|
|
.prologue |
|
.line 102 |
|
new-instance v0, Ljava/lang/Thread; |
|
|
|
new-instance v1, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v2, "FacebookSdk #" |
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v1 |
|
|
|
iget-object v2, p0, Lcom/facebook/FacebookSdk$1;->counter:Ljava/util/concurrent/atomic/AtomicInteger; |
|
|
|
invoke-virtual {v2}, Ljava/util/concurrent/atomic/AtomicInteger;->incrementAndGet()I |
|
|
|
move-result v2 |
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
invoke-direct {v0, p1, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;Ljava/lang/String;)V |
|
|
|
return-object v0 |
|
.end method
|
|
|