95 lines
2 KiB
Smali
95 lines
2 KiB
Smali
.class public final Lp/b;
|
|
.super Ljava/lang/Object;
|
|
.source "BoltsExecutors.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lp/b$b;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final c:Lp/b;
|
|
|
|
|
|
# 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
|
|
|
|
new-instance v0, Lp/b;
|
|
|
|
invoke-direct {v0}, Lp/b;-><init>()V
|
|
|
|
sput-object v0, Lp/b;->c:Lp/b;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 2
|
|
|
|
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
|
|
invoke-static {}, Lp/a;->a()Ljava/util/concurrent/ExecutorService;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_1
|
|
iput-object v0, p0, Lp/b;->a:Ljava/util/concurrent/ExecutorService;
|
|
|
|
invoke-static {}, Ljava/util/concurrent/Executors;->newSingleThreadScheduledExecutor()Ljava/util/concurrent/ScheduledExecutorService;
|
|
|
|
new-instance v0, Lp/b$b;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Lp/b$b;-><init>(Lp/b$a;)V
|
|
|
|
iput-object v0, p0, Lp/b;->b:Ljava/util/concurrent/Executor;
|
|
|
|
return-void
|
|
.end method
|