BoltsExecutors.smali
.class public final Lcom/facebook/bolts/BoltsExecutors;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/facebook/bolts/BoltsExecutors$ImmediateExecutor;,
Lcom/facebook/bolts/BoltsExecutors$Companion;
}
.end annotation
# static fields
.field public static final Companion:Lcom/facebook/bolts/BoltsExecutors$Companion;
.field private static final INSTANCE:Lcom/facebook/bolts/BoltsExecutors;
# instance fields
.field private final background:Ljava/util/concurrent/ExecutorService;
.field private final immediate:Ljava/util/concurrent/Executor;
.field private final scheduled:Ljava/util/concurrent/ScheduledExecutorService;
# direct methods
.method public static constructor <clinit>()V
.registers 2
new-instance v0, Lcom/facebook/bolts/BoltsExecutors$Companion;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lcom/facebook/bolts/BoltsExecutors$Companion;-><init>(Lkotlin/jvm/internal/e;)V
sput-object v0, Lcom/facebook/bolts/BoltsExecutors;->Companion:Lcom/facebook/bolts/BoltsExecutors$Companion;
new-instance v0, Lcom/facebook/bolts/BoltsExecutors;
invoke-direct {v0}, Lcom/facebook/bolts/BoltsExecutors;-><init>()V
sput-object v0, Lcom/facebook/bolts/BoltsExecutors;->INSTANCE:Lcom/facebook/bolts/BoltsExecutors;
return-void
.end method
.method private constructor <init>()V
.registers 3
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
sget-object v0, Lcom/facebook/bolts/BoltsExecutors;->Companion:Lcom/facebook/bolts/BoltsExecutors$Companion;
# invokes: Lcom/facebook/bolts/BoltsExecutors$Companion;->isAndroidRuntime()Z
invoke-static {v0}, Lcom/facebook/bolts/BoltsExecutors$Companion;->access$isAndroidRuntime(Lcom/facebook/bolts/BoltsExecutors$Companion;)Z
move-result v0
if-nez v0, :cond_17
const-string v0, "com/facebook/bolts/BoltsExecutors"
invoke-static {v0}, Lcom/facebook/bolts/BoltsExecutors;->INVOKESTATIC_com_facebook_bolts_BoltsExecutors_com_shopee_app_asm_fix_threadpool_ExecutorFix_newCachedThreadPool(Ljava/lang/String;)Ljava/util/concurrent/ExecutorService;
move-result-object v0
const-string v1, "newCachedThreadPool()"
invoke-static {v0, v1}, Lcom/shopee/sz/loadtask/datasource/a;->x(Ljava/lang/Object;Ljava/lang/String;)V
goto :goto_1d
.line 3
:cond_17
sget-object v0, Lcom/facebook/bolts/AndroidExecutors;->Companion:Lcom/facebook/bolts/AndroidExecutors$Companion;
invoke-virtual {v0}, Lcom/facebook/bolts/AndroidExecutors$Companion;->newCachedThreadPool()Ljava/util/concurrent/ExecutorService;
move-result-object v0
.line 4
:goto_1d
iput-object v0, p0, Lcom/facebook/bolts/BoltsExecutors;->background:Ljava/util/concurrent/ExecutorService;
.line 5
invoke-static {}, Ljava/util/concurrent/Executors;->newSingleThreadScheduledExecutor()Ljava/util/concurrent/ScheduledExecutorService;
move-result-object v0
const-string v1, "newSingleThreadScheduledExecutor()"
invoke-static {v0, v1}, Lcom/shopee/sz/loadtask/datasource/a;->x(Ljava/lang/Object;Ljava/lang/String;)V
iput-object v0, p0, Lcom/facebook/bolts/BoltsExecutors;->scheduled:Ljava/util/concurrent/ScheduledExecutorService;
.line 6
new-instance v0, Lcom/facebook/bolts/BoltsExecutors$ImmediateExecutor;
invoke-direct {v0}, Lcom/facebook/bolts/BoltsExecutors$ImmediateExecutor;-><init>()V
iput-object v0, p0, Lcom/facebook/bolts/BoltsExecutors;->immediate:Ljava/util/concurrent/Executor;
return-void
.end method
.method public static INVOKESTATIC_com_facebook_bolts_BoltsExecutors_com_shopee_app_asm_fix_threadpool_ExecutorFix_newCachedThreadPool(Ljava/lang/String;)Ljava/util/concurrent/ExecutorService;
.registers 2
.line 1
sget-object v0, Lcom/shopee/app/asm/fix/threadpool/config/a;->a:Lcom/shopee/app/asm/fix/threadpool/config/a;
invoke-virtual {v0}, Lcom/shopee/app/asm/fix/threadpool/config/a;->b()Z
move-result v0
if-eqz v0, :cond_f
.line 2
sget-object p0, Lcom/shopee/app/asm/fix/threadpool/pool/d;->a:Lcom/shopee/app/asm/fix/threadpool/pool/d;
invoke-virtual {p0}, Lcom/shopee/app/asm/fix/threadpool/pool/d;->a()Ljava/util/concurrent/ExecutorService;
move-result-object p0
return-object p0
.line 3
:cond_f
invoke-static {}, Lcom/garena/android/appkit/logging/a;->C()Z
move-result v0
if-eqz v0, :cond_1f
const/4 v0, 0x0
.line 4
invoke-static {v0, p0}, Lcom/garena/android/appkit/logging/a;->t0(Ljava/util/concurrent/ThreadFactory;Ljava/lang/String;)Ljava/util/concurrent/ThreadFactory;
move-result-object p0
invoke-static {p0}, Ljava/util/concurrent/Executors;->newCachedThreadPool(Ljava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ExecutorService;
move-result-object p0
return-object p0
.line 5
:cond_1f
# invokes: Ljava/util/concurrent/Executors;->newCachedThreadPool()Ljava/util/concurrent/ExecutorService;
invoke-static {}, Lcom/facebook/bolts/BoltsExecutors;->access$000()Ljava/util/concurrent/ExecutorService;
move-result-object p0
return-object p0
.end method
.method public static synthetic access$000()Ljava/util/concurrent/ExecutorService;
.registers 1
invoke-static {}, Ljava/util/concurrent/Executors;->newCachedThreadPool()Ljava/util/concurrent/ExecutorService;
move-result-object v0
return-object v0
.end method
.method public static final synthetic access$getBackground$p(Lcom/facebook/bolts/BoltsExecutors;)Ljava/util/concurrent/ExecutorService;
.registers 1
iget-object p0, p0, Lcom/facebook/bolts/BoltsExecutors;->background:Ljava/util/concurrent/ExecutorService;
return-object p0
.end method
.method public static final synthetic access$getINSTANCE$cp()Lcom/facebook/bolts/BoltsExecutors;
.registers 1
sget-object v0, Lcom/facebook/bolts/BoltsExecutors;->INSTANCE:Lcom/facebook/bolts/BoltsExecutors;
return-object v0
.end method
.method public static final synthetic access$getImmediate$p(Lcom/facebook/bolts/BoltsExecutors;)Ljava/util/concurrent/Executor;
.registers 1
iget-object p0, p0, Lcom/facebook/bolts/BoltsExecutors;->immediate:Ljava/util/concurrent/Executor;
return-object p0
.end method
.method public static final synthetic access$getScheduled$p(Lcom/facebook/bolts/BoltsExecutors;)Ljava/util/concurrent/ScheduledExecutorService;
.registers 1
iget-object p0, p0, Lcom/facebook/bolts/BoltsExecutors;->scheduled:Ljava/util/concurrent/ScheduledExecutorService;
return-object p0
.end method
.method public static final background()Ljava/util/concurrent/ExecutorService;
.registers 1
sget-object v0, Lcom/facebook/bolts/BoltsExecutors;->Companion:Lcom/facebook/bolts/BoltsExecutors$Companion;
invoke-virtual {v0}, Lcom/facebook/bolts/BoltsExecutors$Companion;->background()Ljava/util/concurrent/ExecutorService;
move-result-object v0
return-object v0
.end method
.method public static final immediate$facebook_bolts_release()Ljava/util/concurrent/Executor;
.registers 1
sget-object v0, Lcom/facebook/bolts/BoltsExecutors;->Companion:Lcom/facebook/bolts/BoltsExecutors$Companion;
invoke-virtual {v0}, Lcom/facebook/bolts/BoltsExecutors$Companion;->immediate$facebook_bolts_release()Ljava/util/concurrent/Executor;
move-result-object v0
return-object v0
.end method
.method public static final scheduled$facebook_bolts_release()Ljava/util/concurrent/ScheduledExecutorService;
.registers 1
sget-object v0, Lcom/facebook/bolts/BoltsExecutors;->Companion:Lcom/facebook/bolts/BoltsExecutors$Companion;
invoke-virtual {v0}, Lcom/facebook/bolts/BoltsExecutors$Companion;->scheduled$facebook_bolts_release()Ljava/util/concurrent/ScheduledExecutorService;
move-result-object v0
return-object v0
.end method