134 lines
3.0 KiB
Smali
134 lines
3.0 KiB
Smali
.class Lcom/ea/nimble/tracking/NimbleTrackingThreadManager$1;
|
|
.super Ljava/util/concurrent/ScheduledThreadPoolExecutor;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/ea/nimble/tracking/NimbleTrackingThreadManager;-><init>()V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x1
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic this$0:Lcom/ea/nimble/tracking/NimbleTrackingThreadManager;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/ea/nimble/tracking/NimbleTrackingThreadManager;I)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/ea/nimble/tracking/NimbleTrackingThreadManager$1;->this$0:Lcom/ea/nimble/tracking/NimbleTrackingThreadManager;
|
|
|
|
.line 88
|
|
invoke-direct {p0, p2}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;-><init>(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public afterExecute(Ljava/lang/Runnable;Ljava/lang/Throwable;)V
|
|
.locals 2
|
|
|
|
.line 92
|
|
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGFUNC(Ljava/lang/Object;)V
|
|
|
|
.line 93
|
|
invoke-super {p0, p1, p2}, Ljava/util/concurrent/ThreadPoolExecutor;->afterExecute(Ljava/lang/Runnable;Ljava/lang/Throwable;)V
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
.line 94
|
|
instance-of v0, p1, Ljava/util/concurrent/Future;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 96
|
|
check-cast p1, Ljava/util/concurrent/Future;
|
|
|
|
.line 97
|
|
invoke-interface {p1}, Ljava/util/concurrent/Future;->isCancelled()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 101
|
|
:try_start_0
|
|
invoke-interface {p1}, Ljava/util/concurrent/Future;->get()Ljava/lang/Object;
|
|
:try_end_0
|
|
.catch Ljava/util/concurrent/ExecutionException; {:try_start_0 .. :try_end_0} :catch_1
|
|
.catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 109
|
|
:catch_0
|
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Thread;->interrupt()V
|
|
|
|
goto :goto_0
|
|
|
|
:catch_1
|
|
move-exception p1
|
|
|
|
.line 105
|
|
invoke-virtual {p1}, Ljava/lang/Throwable;->getCause()Ljava/lang/Throwable;
|
|
|
|
move-result-object p2
|
|
|
|
:cond_0
|
|
:goto_0
|
|
if-eqz p2, :cond_3
|
|
|
|
.line 115
|
|
instance-of p1, p2, Ljava/lang/Error;
|
|
|
|
if-nez p1, :cond_2
|
|
|
|
.line 119
|
|
instance-of p1, p2, Ljava/lang/RuntimeException;
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
const/4 p1, 0x0
|
|
|
|
new-array p1, p1, [Ljava/lang/Object;
|
|
|
|
const-string v0, "TrackingThreadManager"
|
|
|
|
const-string v1, "Checked exception thrown from Tracking thread:"
|
|
|
|
.line 124
|
|
invoke-static {v0, v1, p1}, Lcom/ea/nimble/Log$Helper;->LOGES(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
.line 125
|
|
invoke-virtual {p2}, Ljava/lang/Throwable;->printStackTrace()V
|
|
|
|
goto :goto_1
|
|
|
|
.line 121
|
|
:cond_1
|
|
check-cast p2, Ljava/lang/RuntimeException;
|
|
|
|
throw p2
|
|
|
|
.line 117
|
|
:cond_2
|
|
check-cast p2, Ljava/lang/Error;
|
|
|
|
throw p2
|
|
|
|
:cond_3
|
|
:goto_1
|
|
return-void
|
|
.end method
|