225 lines
5.9 KiB
Smali
225 lines
5.9 KiB
Smali
.class public final Lio/fabric/sdk/android/a/c/k;
|
|
.super Ljava/util/concurrent/ThreadPoolExecutor;
|
|
.source "PriorityThreadPoolExecutor.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lio/fabric/sdk/android/a/c/k$a;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final CORE_POOL_SIZE:I
|
|
|
|
.field private static final MAXIMUM_POOL_SIZE:I
|
|
|
|
.field private static final be:I
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
invoke-static {}, Ljava/lang/Runtime;->getRuntime()Ljava/lang/Runtime;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Runtime;->availableProcessors()I
|
|
|
|
move-result v0
|
|
|
|
sput v0, Lio/fabric/sdk/android/a/c/k;->be:I
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
sput v0, Lio/fabric/sdk/android/a/c/k;->CORE_POOL_SIZE:I
|
|
|
|
sget v0, Lio/fabric/sdk/android/a/c/k;->be:I
|
|
|
|
mul-int/lit8 v0, v0, 0x2
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
sput v0, Lio/fabric/sdk/android/a/c/k;->MAXIMUM_POOL_SIZE:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>(IILjava/util/concurrent/TimeUnit;Lio/fabric/sdk/android/a/c/c;Ljava/util/concurrent/ThreadFactory;)V
|
|
.locals 8
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T::",
|
|
"Ljava/lang/Runnable;",
|
|
":",
|
|
"Lio/fabric/sdk/android/a/c/b;",
|
|
":",
|
|
"Lio/fabric/sdk/android/a/c/l;",
|
|
":",
|
|
"Lio/fabric/sdk/android/a/c/i;",
|
|
">(II",
|
|
"Ljava/util/concurrent/TimeUnit;",
|
|
"Lio/fabric/sdk/android/a/c/c<",
|
|
"TT;>;",
|
|
"Ljava/util/concurrent/ThreadFactory;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
const-wide/16 v3, 0x1
|
|
|
|
move-object v0, p0
|
|
|
|
move v1, p1
|
|
|
|
move v2, p2
|
|
|
|
move-object v5, p3
|
|
|
|
move-object v6, p4
|
|
|
|
move-object v7, p5
|
|
|
|
invoke-direct/range {v0 .. v7}, Ljava/util/concurrent/ThreadPoolExecutor;-><init>(IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;Ljava/util/concurrent/ThreadFactory;)V
|
|
|
|
invoke-virtual {p0}, Lio/fabric/sdk/android/a/c/k;->prestartAllCoreThreads()I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static Dy()Lio/fabric/sdk/android/a/c/k;
|
|
.locals 7
|
|
|
|
sget v1, Lio/fabric/sdk/android/a/c/k;->CORE_POOL_SIZE:I
|
|
|
|
sget v2, Lio/fabric/sdk/android/a/c/k;->MAXIMUM_POOL_SIZE:I
|
|
|
|
new-instance v6, Lio/fabric/sdk/android/a/c/k;
|
|
|
|
sget-object v3, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
new-instance v4, Lio/fabric/sdk/android/a/c/c;
|
|
|
|
invoke-direct {v4}, Lio/fabric/sdk/android/a/c/c;-><init>()V
|
|
|
|
new-instance v5, Lio/fabric/sdk/android/a/c/k$a;
|
|
|
|
invoke-direct {v5}, Lio/fabric/sdk/android/a/c/k$a;-><init>()V
|
|
|
|
move-object v0, v6
|
|
|
|
invoke-direct/range {v0 .. v5}, Lio/fabric/sdk/android/a/c/k;-><init>(IILjava/util/concurrent/TimeUnit;Lio/fabric/sdk/android/a/c/c;Ljava/util/concurrent/ThreadFactory;)V
|
|
|
|
return-object v6
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method protected final afterExecute(Ljava/lang/Runnable;Ljava/lang/Throwable;)V
|
|
.locals 2
|
|
|
|
move-object v0, p1
|
|
|
|
check-cast v0, Lio/fabric/sdk/android/a/c/l;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-interface {v0, v1}, Lio/fabric/sdk/android/a/c/l;->W(Z)V
|
|
|
|
invoke-interface {v0, p2}, Lio/fabric/sdk/android/a/c/l;->n(Ljava/lang/Throwable;)V
|
|
|
|
invoke-super {p0}, Ljava/util/concurrent/ThreadPoolExecutor;->getQueue()Ljava/util/concurrent/BlockingQueue;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lio/fabric/sdk/android/a/c/c;
|
|
|
|
invoke-virtual {v0}, Lio/fabric/sdk/android/a/c/c;->Dw()V
|
|
|
|
invoke-super {p0, p1, p2}, Ljava/util/concurrent/ThreadPoolExecutor;->afterExecute(Ljava/lang/Runnable;Ljava/lang/Throwable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final execute(Ljava/lang/Runnable;)V
|
|
.locals 1
|
|
|
|
invoke-static {p1}, Lio/fabric/sdk/android/a/c/j;->aU(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-super {p0, p1}, Ljava/util/concurrent/ThreadPoolExecutor;->execute(Ljava/lang/Runnable;)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
invoke-virtual {p0, p1, v0}, Lio/fabric/sdk/android/a/c/k;->newTaskFor(Ljava/lang/Runnable;Ljava/lang/Object;)Ljava/util/concurrent/RunnableFuture;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-super {p0, p1}, Ljava/util/concurrent/ThreadPoolExecutor;->execute(Ljava/lang/Runnable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final bridge synthetic getQueue()Ljava/util/concurrent/BlockingQueue;
|
|
.locals 1
|
|
|
|
invoke-super {p0}, Ljava/util/concurrent/ThreadPoolExecutor;->getQueue()Ljava/util/concurrent/BlockingQueue;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lio/fabric/sdk/android/a/c/c;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method protected final newTaskFor(Ljava/lang/Runnable;Ljava/lang/Object;)Ljava/util/concurrent/RunnableFuture;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Ljava/lang/Runnable;",
|
|
"TT;)",
|
|
"Ljava/util/concurrent/RunnableFuture<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
new-instance v0, Lio/fabric/sdk/android/a/c/h;
|
|
|
|
invoke-direct {v0, p1, p2}, Lio/fabric/sdk/android/a/c/h;-><init>(Ljava/lang/Runnable;Ljava/lang/Object;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method protected final newTaskFor(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/RunnableFuture;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Ljava/util/concurrent/Callable<",
|
|
"TT;>;)",
|
|
"Ljava/util/concurrent/RunnableFuture<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
new-instance v0, Lio/fabric/sdk/android/a/c/h;
|
|
|
|
invoke-direct {v0, p1}, Lio/fabric/sdk/android/a/c/h;-><init>(Ljava/util/concurrent/Callable;)V
|
|
|
|
return-object v0
|
|
.end method
|