355 lines
9.5 KiB
Smali
355 lines
9.5 KiB
Smali
.class public Lcom/facebook/common/b/e;
|
|
.super Ljava/util/concurrent/AbstractExecutorService;
|
|
.source "HandlerExecutorServiceImpl.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/facebook/common/b/d;
|
|
|
|
|
|
# instance fields
|
|
.field final mHandler:Landroid/os/Handler;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/os/Handler;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/util/concurrent/AbstractExecutorService;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/facebook/common/b/e;->mHandler:Landroid/os/Handler;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private a(Ljava/lang/Runnable;Ljava/lang/Object;)Lcom/facebook/common/b/f;
|
|
.locals 2
|
|
.param p2 # Ljava/lang/Object;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Ljava/lang/Runnable;",
|
|
"TT;)",
|
|
"Lcom/facebook/common/b/f<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
new-instance v0, Lcom/facebook/common/b/f;
|
|
|
|
iget-object v1, p0, Lcom/facebook/common/b/e;->mHandler:Landroid/os/Handler;
|
|
|
|
invoke-direct {v0, v1, p1, p2}, Lcom/facebook/common/b/f;-><init>(Landroid/os/Handler;Ljava/lang/Runnable;Ljava/lang/Object;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private b(Ljava/util/concurrent/Callable;)Lcom/facebook/common/b/f;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Ljava/util/concurrent/Callable<",
|
|
"TT;>;)",
|
|
"Lcom/facebook/common/b/f<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
new-instance v0, Lcom/facebook/common/b/f;
|
|
|
|
iget-object v1, p0, Lcom/facebook/common/b/e;->mHandler:Landroid/os/Handler;
|
|
|
|
invoke-direct {v0, v1, p1}, Lcom/facebook/common/b/f;-><init>(Landroid/os/Handler;Ljava/util/concurrent/Callable;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private b(Ljava/lang/Runnable;Ljava/lang/Object;)Ljava/util/concurrent/ScheduledFuture;
|
|
.locals 0
|
|
.param p2 # Ljava/lang/Object;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Ljava/lang/Runnable;",
|
|
"TT;)",
|
|
"Ljava/util/concurrent/ScheduledFuture<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-direct {p0, p1, p2}, Lcom/facebook/common/b/e;->a(Ljava/lang/Runnable;Ljava/lang/Object;)Lcom/facebook/common/b/f;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Lcom/facebook/common/b/e;->execute(Ljava/lang/Runnable;)V
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/NullPointerException;
|
|
|
|
invoke-direct {p1}, Ljava/lang/NullPointerException;-><init>()V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public awaitTermination(JLjava/util/concurrent/TimeUnit;)Z
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/lang/InterruptedException;
|
|
}
|
|
.end annotation
|
|
|
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public execute(Ljava/lang/Runnable;)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/facebook/common/b/e;->mHandler:Landroid/os/Handler;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public isShutdown()Z
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public isTerminated()Z
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method protected synthetic newTaskFor(Ljava/lang/Runnable;Ljava/lang/Object;)Ljava/util/concurrent/RunnableFuture;
|
|
.locals 0
|
|
.param p2 # Ljava/lang/Object;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-direct {p0, p1, p2}, Lcom/facebook/common/b/e;->a(Ljava/lang/Runnable;Ljava/lang/Object;)Lcom/facebook/common/b/f;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method protected synthetic newTaskFor(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/RunnableFuture;
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1}, Lcom/facebook/common/b/e;->b(Ljava/util/concurrent/Callable;)Lcom/facebook/common/b/f;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public schedule(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/Runnable;",
|
|
"J",
|
|
"Ljava/util/concurrent/TimeUnit;",
|
|
")",
|
|
"Ljava/util/concurrent/ScheduledFuture<",
|
|
"*>;"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-direct {p0, p1, v0}, Lcom/facebook/common/b/e;->a(Ljava/lang/Runnable;Ljava/lang/Object;)Lcom/facebook/common/b/f;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object v0, p0, Lcom/facebook/common/b/e;->mHandler:Landroid/os/Handler;
|
|
|
|
invoke-virtual {p4, p2, p3}, Ljava/util/concurrent/TimeUnit;->toMillis(J)J
|
|
|
|
move-result-wide p2
|
|
|
|
invoke-virtual {v0, p1, p2, p3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public schedule(Ljava/util/concurrent/Callable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<V:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Ljava/util/concurrent/Callable<",
|
|
"TV;>;J",
|
|
"Ljava/util/concurrent/TimeUnit;",
|
|
")",
|
|
"Ljava/util/concurrent/ScheduledFuture<",
|
|
"TV;>;"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0, p1}, Lcom/facebook/common/b/e;->b(Ljava/util/concurrent/Callable;)Lcom/facebook/common/b/f;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object v0, p0, Lcom/facebook/common/b/e;->mHandler:Landroid/os/Handler;
|
|
|
|
invoke-virtual {p4, p2, p3}, Ljava/util/concurrent/TimeUnit;->toMillis(J)J
|
|
|
|
move-result-wide p2
|
|
|
|
invoke-virtual {v0, p1, p2, p3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public scheduleAtFixedRate(Ljava/lang/Runnable;JJLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/Runnable;",
|
|
"JJ",
|
|
"Ljava/util/concurrent/TimeUnit;",
|
|
")",
|
|
"Ljava/util/concurrent/ScheduledFuture<",
|
|
"*>;"
|
|
}
|
|
.end annotation
|
|
|
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public scheduleWithFixedDelay(Ljava/lang/Runnable;JJLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/Runnable;",
|
|
"JJ",
|
|
"Ljava/util/concurrent/TimeUnit;",
|
|
")",
|
|
"Ljava/util/concurrent/ScheduledFuture<",
|
|
"*>;"
|
|
}
|
|
.end annotation
|
|
|
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public shutdown()V
|
|
.locals 1
|
|
|
|
new-instance v0, Ljava/lang/UnsupportedOperationException;
|
|
|
|
invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public shutdownNow()Ljava/util/List;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/Runnable;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
new-instance v0, Ljava/lang/UnsupportedOperationException;
|
|
|
|
invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public synthetic submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-direct {p0, p1, v0}, Lcom/facebook/common/b/e;->b(Ljava/lang/Runnable;Ljava/lang/Object;)Ljava/util/concurrent/ScheduledFuture;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public synthetic submit(Ljava/lang/Runnable;Ljava/lang/Object;)Ljava/util/concurrent/Future;
|
|
.locals 0
|
|
.param p2 # Ljava/lang/Object;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-direct {p0, p1, p2}, Lcom/facebook/common/b/e;->b(Ljava/lang/Runnable;Ljava/lang/Object;)Ljava/util/concurrent/ScheduledFuture;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public synthetic submit(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future;
|
|
.locals 0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-direct {p0, p1}, Lcom/facebook/common/b/e;->b(Ljava/util/concurrent/Callable;)Lcom/facebook/common/b/f;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Lcom/facebook/common/b/e;->execute(Ljava/lang/Runnable;)V
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/NullPointerException;
|
|
|
|
invoke-direct {p1}, Ljava/lang/NullPointerException;-><init>()V
|
|
|
|
throw p1
|
|
.end method
|