121 lines
2.6 KiB
Smali
121 lines
2.6 KiB
Smali
.class final La/b;
|
|
.super Ljava/lang/Object;
|
|
.source "BoltsExecutors.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
La/b$a;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final bh:La/b;
|
|
|
|
|
|
# instance fields
|
|
.field private final bi:Ljava/util/concurrent/ExecutorService;
|
|
|
|
.field private final bj:Ljava/util/concurrent/ScheduledExecutorService;
|
|
|
|
.field private final bk:Ljava/util/concurrent/Executor;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
new-instance v0, La/b;
|
|
|
|
invoke-direct {v0}, La/b;-><init>()V
|
|
|
|
sput-object v0, La/b;->bh:La/b;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>()V
|
|
.locals 3
|
|
|
|
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
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
sget-object v2, Ljava/util/Locale;->US:Ljava/util/Locale;
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v2, "android"
|
|
|
|
invoke-virtual {v0, v2}, 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
|
|
invoke-static {}, La/a;->newCachedThreadPool()Ljava/util/concurrent/ExecutorService;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_1
|
|
iput-object v0, p0, La/b;->bi:Ljava/util/concurrent/ExecutorService;
|
|
|
|
invoke-static {}, Ljava/util/concurrent/Executors;->newSingleThreadScheduledExecutor()Ljava/util/concurrent/ScheduledExecutorService;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, La/b;->bj:Ljava/util/concurrent/ScheduledExecutorService;
|
|
|
|
new-instance v0, La/b$a;
|
|
|
|
invoke-direct {v0, v1}, La/b$a;-><init>(B)V
|
|
|
|
iput-object v0, p0, La/b;->bk:Ljava/util/concurrent/Executor;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static q()Ljava/util/concurrent/ExecutorService;
|
|
.locals 1
|
|
|
|
sget-object v0, La/b;->bh:La/b;
|
|
|
|
iget-object v0, v0, La/b;->bi:Ljava/util/concurrent/ExecutorService;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method static r()Ljava/util/concurrent/Executor;
|
|
.locals 1
|
|
|
|
sget-object v0, La/b;->bh:La/b;
|
|
|
|
iget-object v0, v0, La/b;->bk:Ljava/util/concurrent/Executor;
|
|
|
|
return-object v0
|
|
.end method
|