276 lines
6.8 KiB
Smali
276 lines
6.8 KiB
Smali
.class public abstract Lkotlinx/coroutines/ba;
|
|
.super Lkotlinx/coroutines/az;
|
|
.source "Executors.kt"
|
|
|
|
# interfaces
|
|
.implements Lkotlinx/coroutines/an;
|
|
|
|
|
|
# instance fields
|
|
.field private bkI:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Lkotlinx/coroutines/az;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final a(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/Runnable;",
|
|
"J",
|
|
"Ljava/util/concurrent/TimeUnit;",
|
|
")",
|
|
"Ljava/util/concurrent/ScheduledFuture<",
|
|
"*>;"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
:try_start_0
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/ba;->getExecutor()Ljava/util/concurrent/Executor;
|
|
|
|
move-result-object v1
|
|
|
|
instance-of v2, v1, Ljava/util/concurrent/ScheduledExecutorService;
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
move-object v1, v0
|
|
|
|
:cond_0
|
|
check-cast v1, Ljava/util/concurrent/ScheduledExecutorService;
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-interface {v1, p1, p2, p3, p4}, Ljava/util/concurrent/ScheduledExecutorService;->schedule(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
|
|
|
|
move-result-object p1
|
|
:try_end_0
|
|
.catch Ljava/util/concurrent/RejectedExecutionException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
move-object v0, p1
|
|
|
|
:catch_0
|
|
:cond_1
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final DY()V
|
|
.locals 1
|
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/ba;->getExecutor()Ljava/util/concurrent/Executor;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Lkotlinx/coroutines/internal/e;->a(Ljava/util/concurrent/Executor;)Z
|
|
|
|
move-result v0
|
|
|
|
iput-boolean v0, p0, Lkotlinx/coroutines/ba;->bkI:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final a(JLkotlinx/coroutines/k;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(J",
|
|
"Lkotlinx/coroutines/k<",
|
|
"-",
|
|
"Lkotlin/Unit;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "continuation"
|
|
|
|
invoke-static {p3, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iget-boolean v0, p0, Lkotlinx/coroutines/ba;->bkI:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
new-instance v0, Lkotlinx/coroutines/bx;
|
|
|
|
move-object v1, p0
|
|
|
|
check-cast v1, Lkotlinx/coroutines/ab;
|
|
|
|
invoke-direct {v0, v1, p3}, Lkotlinx/coroutines/bx;-><init>(Lkotlinx/coroutines/ab;Lkotlinx/coroutines/k;)V
|
|
|
|
check-cast v0, Ljava/lang/Runnable;
|
|
|
|
sget-object v1, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
invoke-direct {p0, v0, p1, p2, v1}, Lkotlinx/coroutines/ba;->a(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v0, :cond_1
|
|
|
|
check-cast v0, Ljava/util/concurrent/Future;
|
|
|
|
const-string p1, "$this$cancelFutureOnCancellation"
|
|
|
|
invoke-static {p3, p1}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string p1, "future"
|
|
|
|
invoke-static {v0, p1}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance p1, Lkotlinx/coroutines/h;
|
|
|
|
invoke-direct {p1, v0}, Lkotlinx/coroutines/h;-><init>(Ljava/util/concurrent/Future;)V
|
|
|
|
check-cast p1, Lkotlin/jvm/functions/Function1;
|
|
|
|
invoke-interface {p3, p1}, Lkotlinx/coroutines/k;->i(Lkotlin/jvm/functions/Function1;)V
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
sget-object v0, Lkotlinx/coroutines/ak;->bki:Lkotlinx/coroutines/ak;
|
|
|
|
invoke-virtual {v0, p1, p2, p3}, Lkotlinx/coroutines/ak;->a(JLkotlinx/coroutines/k;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final a(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Runnable;)V
|
|
.locals 1
|
|
|
|
const-string v0, "context"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string p1, "block"
|
|
|
|
invoke-static {p2, p1}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
:try_start_0
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/ba;->getExecutor()Ljava/util/concurrent/Executor;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {}, Lkotlinx/coroutines/cd;->Ep()Lkotlinx/coroutines/cc;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {v0, p2}, Lkotlinx/coroutines/cc;->i(Ljava/lang/Runnable;)Ljava/lang/Runnable;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {p1, v0}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
|
|
:try_end_0
|
|
.catch Ljava/util/concurrent/RejectedExecutionException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-void
|
|
|
|
:catch_0
|
|
invoke-static {}, Lkotlinx/coroutines/cd;->Ep()Lkotlinx/coroutines/cc;
|
|
|
|
sget-object p1, Lkotlinx/coroutines/ak;->bki:Lkotlinx/coroutines/ak;
|
|
|
|
invoke-virtual {p1, p2}, Lkotlinx/coroutines/ak;->j(Ljava/lang/Runnable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public close()V
|
|
.locals 2
|
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/ba;->getExecutor()Ljava/util/concurrent/Executor;
|
|
|
|
move-result-object v0
|
|
|
|
instance-of v1, v0, Ljava/util/concurrent/ExecutorService;
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
:cond_0
|
|
check-cast v0, Ljava/util/concurrent/ExecutorService;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-interface {v0}, Ljava/util/concurrent/ExecutorService;->shutdown()V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public equals(Ljava/lang/Object;)Z
|
|
.locals 1
|
|
|
|
instance-of v0, p1, Lkotlinx/coroutines/ba;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
check-cast p1, Lkotlinx/coroutines/ba;
|
|
|
|
invoke-virtual {p1}, Lkotlinx/coroutines/ba;->getExecutor()Ljava/util/concurrent/Executor;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/ba;->getExecutor()Ljava/util/concurrent/Executor;
|
|
|
|
move-result-object v0
|
|
|
|
if-ne p1, v0, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public hashCode()I
|
|
.locals 1
|
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/ba;->getExecutor()Ljava/util/concurrent/Executor;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Ljava/lang/System;->identityHashCode(Ljava/lang/Object;)I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/ba;->getExecutor()Ljava/util/concurrent/Executor;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|