129 lines
3.6 KiB
Smali
129 lines
3.6 KiB
Smali
.class public final Lkotlinx/coroutines/k3;
|
|
.super Lkotlinx/coroutines/CoroutineDispatcher;
|
|
.source "Unconfined.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation runtime Lkotlin/Metadata;
|
|
bv = {}
|
|
d1 = {
|
|
"\u0000,\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\u0008\u0004\u0008\u00c0\u0002\u0018\u00002\u00020\u0001B\t\u0008\u0002\u00a2\u0006\u0004\u0008\r\u0010\u000eJ\u0010\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0016J\u001c\u0010\n\u001a\u00020\t2\u0006\u0010\u0003\u001a\u00020\u00022\n\u0010\u0008\u001a\u00060\u0006j\u0002`\u0007H\u0016J\u0008\u0010\u000c\u001a\u00020\u000bH\u0016\u00a8\u0006\u000f"
|
|
}
|
|
d2 = {
|
|
"Lkotlinx/coroutines/k3;",
|
|
"Lkotlinx/coroutines/CoroutineDispatcher;",
|
|
"Lkotlin/coroutines/CoroutineContext;",
|
|
"context",
|
|
"",
|
|
"isDispatchNeeded",
|
|
"Ljava/lang/Runnable;",
|
|
"Lkotlinx/coroutines/Runnable;",
|
|
"block",
|
|
"Lkotlin/d1;",
|
|
"dispatch",
|
|
"",
|
|
"toString",
|
|
"<init>",
|
|
"()V",
|
|
"kotlinx-coroutines-core"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x1,
|
|
0x4,
|
|
0x0
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final a:Lkotlinx/coroutines/k3;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lkotlinx/coroutines/k3;
|
|
|
|
invoke-direct {v0}, Lkotlinx/coroutines/k3;-><init>()V
|
|
|
|
sput-object v0, Lkotlinx/coroutines/k3;->a:Lkotlinx/coroutines/k3;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Lkotlinx/coroutines/CoroutineDispatcher;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public dispatch(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Runnable;)V
|
|
.locals 0
|
|
.param p1 # Lkotlin/coroutines/CoroutineContext;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Ljava/lang/Runnable;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
sget-object p2, Lkotlinx/coroutines/m3;->b:Lkotlinx/coroutines/m3$a;
|
|
|
|
invoke-interface {p1, p2}, Lkotlin/coroutines/CoroutineContext;->get(Lkotlin/coroutines/CoroutineContext$b;)Lkotlin/coroutines/CoroutineContext$a;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lkotlinx/coroutines/m3;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 p2, 0x1
|
|
|
|
.line 2
|
|
iput-boolean p2, p1, Lkotlinx/coroutines/m3;->a:Z
|
|
|
|
return-void
|
|
|
|
.line 3
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
const-string p2, "Dispatchers.Unconfined.dispatch function can only be used by the yield function. If you wrap Unconfined dispatcher in your code, make sure you properly delegate isDispatchNeeded and dispatch calls."
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public isDispatchNeeded(Lkotlin/coroutines/CoroutineContext;)Z
|
|
.locals 0
|
|
.param p1 # Lkotlin/coroutines/CoroutineContext;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 1
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
const-string v0, "Dispatchers.Unconfined"
|
|
|
|
return-object v0
|
|
.end method
|