84 lines
2.2 KiB
Smali
84 lines
2.2 KiB
Smali
.class public final Lkotlinx/coroutines/android/AndroidDispatcherFactory;
|
|
.super Ljava/lang/Object;
|
|
.source "HandlerDispatcher.kt"
|
|
|
|
# interfaces
|
|
.implements Lkotlinx/coroutines/internal/MainDispatcherFactory;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final createDispatcher(Ljava/util/List;)Lkotlinx/coroutines/android/a;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"+",
|
|
"Lkotlinx/coroutines/internal/MainDispatcherFactory;",
|
|
">;)",
|
|
"Lkotlinx/coroutines/android/a;"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "allFactories"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance p1, Lkotlinx/coroutines/android/a;
|
|
|
|
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "Looper.getMainLooper()"
|
|
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-static {v0}, Lkotlinx/coroutines/android/c;->a(Landroid/os/Looper;)Landroid/os/Handler;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "Main"
|
|
|
|
invoke-direct {p1, v0, v1}, Lkotlinx/coroutines/android/a;-><init>(Landroid/os/Handler;Ljava/lang/String;)V
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final bridge synthetic createDispatcher(Ljava/util/List;)Lkotlinx/coroutines/bm;
|
|
.locals 0
|
|
|
|
invoke-virtual {p0, p1}, Lkotlinx/coroutines/android/AndroidDispatcherFactory;->createDispatcher(Ljava/util/List;)Lkotlinx/coroutines/android/a;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lkotlinx/coroutines/bm;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final getLoadPriority()I
|
|
.locals 1
|
|
|
|
const v0, 0x3fffffff # 1.9999999f
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final hintOnError()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
const-string v0, "For tests Dispatchers.setMain from kotlinx-coroutines-test module can be used"
|
|
|
|
return-object v0
|
|
.end method
|