2020-11-14 03:19:56 +00:00
|
|
|
.class public final Lu/b;
|
2020-11-12 02:11:44 +00:00
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "BoltsExecutors.java"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
2020-11-14 03:19:56 +00:00
|
|
|
Lu/b$b;
|
2020-11-12 02:11:44 +00:00
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
2020-11-14 03:19:56 +00:00
|
|
|
.field public static final c:Lu/b;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final a:Ljava/util/concurrent/ExecutorService;
|
|
|
|
|
|
|
|
.field public final b:Ljava/util/concurrent/Executor;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public static constructor <clinit>()V
|
|
|
|
.locals 1
|
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
new-instance v0, Lu/b;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
invoke-direct {v0}, Lu/b;-><init>()V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
sput-object v0, Lu/b;->c:Lu/b;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>()V
|
2020-11-14 03:19:56 +00:00
|
|
|
.locals 8
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
const-string v0, "java.runtime.name"
|
|
|
|
|
|
|
|
invoke-static {v0}, Ljava/lang/System;->getProperty(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
sget-object v1, Ljava/util/Locale;->US:Ljava/util/Locale;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v1, "android"
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
|
|
|
|
invoke-static {}, Ljava/util/concurrent/Executors;->newCachedThreadPool()Ljava/util/concurrent/ExecutorService;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
2020-11-14 03:19:56 +00:00
|
|
|
sget-object v0, Lu/a;->b:Lu/a;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
new-instance v0, Ljava/util/concurrent/ThreadPoolExecutor;
|
|
|
|
|
|
|
|
sget v2, Lu/a;->d:I
|
|
|
|
|
|
|
|
sget v3, Lu/a;->e:I
|
|
|
|
|
|
|
|
sget-object v6, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
|
|
|
|
new-instance v7, Ljava/util/concurrent/LinkedBlockingQueue;
|
|
|
|
|
|
|
|
invoke-direct {v7}, Ljava/util/concurrent/LinkedBlockingQueue;-><init>()V
|
|
|
|
|
|
|
|
const-wide/16 v4, 0x1
|
|
|
|
|
|
|
|
move-object v1, v0
|
|
|
|
|
|
|
|
invoke-direct/range {v1 .. v7}, Ljava/util/concurrent/ThreadPoolExecutor;-><init>(IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;)V
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/concurrent/ThreadPoolExecutor;->allowCoreThreadTimeOut(Z)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
:goto_1
|
2020-11-14 03:19:56 +00:00
|
|
|
iput-object v0, p0, Lu/b;->a:Ljava/util/concurrent/ExecutorService;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
invoke-static {}, Ljava/util/concurrent/Executors;->newSingleThreadScheduledExecutor()Ljava/util/concurrent/ScheduledExecutorService;
|
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
new-instance v0, Lu/b$b;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
invoke-direct {v0, v1}, Lu/b$b;-><init>(Lu/b$a;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
iput-object v0, p0, Lu/b;->b:Ljava/util/concurrent/Executor;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|