317 lines
5.5 KiB
Smali
317 lines
5.5 KiB
Smali
.class public abstract Lkotlinx/coroutines/aw;
|
|
.super Lkotlinx/coroutines/ab;
|
|
.source "EventLoop.common.kt"
|
|
|
|
|
|
# instance fields
|
|
.field private biY:J
|
|
|
|
.field private biZ:Z
|
|
|
|
.field private bja:Lkotlinx/coroutines/internal/b;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lkotlinx/coroutines/internal/b<",
|
|
"Lkotlinx/coroutines/ar<",
|
|
"*>;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Lkotlinx/coroutines/ab;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static R(Z)J
|
|
.locals 2
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const-wide v0, 0x100000000L
|
|
|
|
return-wide v0
|
|
|
|
:cond_0
|
|
const-wide/16 v0, 0x1
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public static synthetic a(Lkotlinx/coroutines/aw;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-virtual {p0, v0}, Lkotlinx/coroutines/aw;->S(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic b(Lkotlinx/coroutines/aw;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-virtual {p0, v0}, Lkotlinx/coroutines/aw;->T(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public CL()J
|
|
.locals 2
|
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/aw;->CN()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const-wide v0, 0x7fffffffffffffffL
|
|
|
|
return-wide v0
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/aw;->CM()J
|
|
|
|
move-result-wide v0
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method protected CM()J
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lkotlinx/coroutines/aw;->bja:Lkotlinx/coroutines/internal/b;
|
|
|
|
const-wide v1, 0x7fffffffffffffffL
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-wide v1
|
|
|
|
:cond_0
|
|
invoke-virtual {v0}, Lkotlinx/coroutines/internal/b;->isEmpty()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
return-wide v1
|
|
|
|
:cond_1
|
|
const-wide/16 v0, 0x0
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public final CN()Z
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lkotlinx/coroutines/aw;->bja:Lkotlinx/coroutines/internal/b;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return v1
|
|
|
|
:cond_0
|
|
invoke-virtual {v0}, Lkotlinx/coroutines/internal/b;->Dk()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lkotlinx/coroutines/ar;
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
return v1
|
|
|
|
:cond_1
|
|
invoke-virtual {v0}, Lkotlinx/coroutines/ar;->run()V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final CO()Z
|
|
.locals 6
|
|
|
|
iget-wide v0, p0, Lkotlinx/coroutines/aw;->biY:J
|
|
|
|
const/4 v2, 0x1
|
|
|
|
invoke-static {v2}, Lkotlinx/coroutines/aw;->R(Z)J
|
|
|
|
move-result-wide v3
|
|
|
|
cmp-long v5, v0, v3
|
|
|
|
if-ltz v5, :cond_0
|
|
|
|
return v2
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final CP()Z
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lkotlinx/coroutines/aw;->bja:Lkotlinx/coroutines/internal/b;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Lkotlinx/coroutines/internal/b;->isEmpty()Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final S(Z)V
|
|
.locals 4
|
|
|
|
iget-wide v0, p0, Lkotlinx/coroutines/aw;->biY:J
|
|
|
|
invoke-static {p1}, Lkotlinx/coroutines/aw;->R(Z)J
|
|
|
|
move-result-wide v2
|
|
|
|
add-long/2addr v0, v2
|
|
|
|
iput-wide v0, p0, Lkotlinx/coroutines/aw;->biY:J
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
iput-boolean p1, p0, Lkotlinx/coroutines/aw;->biZ:Z
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final T(Z)V
|
|
.locals 4
|
|
|
|
iget-wide v0, p0, Lkotlinx/coroutines/aw;->biY:J
|
|
|
|
invoke-static {p1}, Lkotlinx/coroutines/aw;->R(Z)J
|
|
|
|
move-result-wide v2
|
|
|
|
sub-long/2addr v0, v2
|
|
|
|
iput-wide v0, p0, Lkotlinx/coroutines/aw;->biY:J
|
|
|
|
iget-wide v0, p0, Lkotlinx/coroutines/aw;->biY:J
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
cmp-long p1, v0, v2
|
|
|
|
if-lez p1, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
cmp-long p1, v0, v2
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
const/4 p1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 p1, 0x0
|
|
|
|
:goto_0
|
|
if-eqz p1, :cond_3
|
|
|
|
iget-boolean p1, p0, Lkotlinx/coroutines/aw;->biZ:Z
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/aw;->shutdown()V
|
|
|
|
:cond_2
|
|
return-void
|
|
|
|
:cond_3
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v0, "Extra decrementUseCount"
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final a(Lkotlinx/coroutines/ar;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lkotlinx/coroutines/ar<",
|
|
"*>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "task"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iget-object v0, p0, Lkotlinx/coroutines/aw;->bja:Lkotlinx/coroutines/internal/b;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
new-instance v0, Lkotlinx/coroutines/internal/b;
|
|
|
|
invoke-direct {v0}, Lkotlinx/coroutines/internal/b;-><init>()V
|
|
|
|
iput-object v0, p0, Lkotlinx/coroutines/aw;->bja:Lkotlinx/coroutines/internal/b;
|
|
|
|
:cond_0
|
|
invoke-virtual {v0, p1}, Lkotlinx/coroutines/internal/b;->addLast(Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected isEmpty()Z
|
|
.locals 1
|
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/aw;->CP()Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method protected shutdown()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|