b.smali
.class final Lbolts/b;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lbolts/b$a;
}
.end annotation
# static fields
.field private static final a:Lbolts/b;
# instance fields
.field private final b:Ljava/util/concurrent/ExecutorService;
.field private final c:Ljava/util/concurrent/ScheduledExecutorService;
.field private final d:Ljava/util/concurrent/Executor;
# direct methods
.method static constructor <clinit>()V
.registers 1
.line 14
new-instance v0, Lbolts/b;
invoke-direct {v0}, Lbolts/b;-><init>()V
sput-object v0, Lbolts/b;->a:Lbolts/b;
return-void
.end method
.method private constructor <init>()V
.registers 4
.line 28
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const-string v0, "java.runtime.name"
.line 1017
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_e
const/4 v0, 0x0
goto :goto_1a
.line 1021
:cond_e
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_1a
if-nez v0, :cond_21
.line 29
invoke-static {}, Ljava/util/concurrent/Executors;->newCachedThreadPool()Ljava/util/concurrent/ExecutorService;
move-result-object v0
goto :goto_25
:cond_21
invoke-static {}, Lbolts/a;->a()Ljava/util/concurrent/ExecutorService;
move-result-object v0
:goto_25
iput-object v0, p0, Lbolts/b;->b:Ljava/util/concurrent/ExecutorService;
.line 32
invoke-static {}, Ljava/util/concurrent/Executors;->newSingleThreadScheduledExecutor()Ljava/util/concurrent/ScheduledExecutorService;
move-result-object v0
iput-object v0, p0, Lbolts/b;->c:Ljava/util/concurrent/ScheduledExecutorService;
.line 33
new-instance v0, Lbolts/b$a;
invoke-direct {v0, v1}, Lbolts/b$a;-><init>(B)V
iput-object v0, p0, Lbolts/b;->d:Ljava/util/concurrent/Executor;
return-void
.end method
.method public static a()Ljava/util/concurrent/ExecutorService;
.registers 1
.line 40
sget-object v0, Lbolts/b;->a:Lbolts/b;
iget-object v0, v0, Lbolts/b;->b:Ljava/util/concurrent/ExecutorService;
return-object v0
.end method
.method static b()Ljava/util/concurrent/ScheduledExecutorService;
.registers 1
.line 44
sget-object v0, Lbolts/b;->a:Lbolts/b;
iget-object v0, v0, Lbolts/b;->c:Ljava/util/concurrent/ScheduledExecutorService;
return-object v0
.end method
.method static c()Ljava/util/concurrent/Executor;
.registers 1
.line 53
sget-object v0, Lbolts/b;->a:Lbolts/b;
iget-object v0, v0, Lbolts/b;->d:Ljava/util/concurrent/Executor;
return-object v0
.end method