107 lines
2.3 KiB
Smali
107 lines
2.3 KiB
Smali
.class public final Lkotlinx/coroutines/android/AndroidDispatcherFactory;
|
|
.super Ljava/lang/Object;
|
|
.source "HandlerDispatcher.kt"
|
|
|
|
# interfaces
|
|
.implements Lkotlinx/coroutines/internal/MainDispatcherFactory;
|
|
|
|
|
|
# annotations
|
|
.annotation build Landroidx/annotation/Keep;
|
|
.end annotation
|
|
|
|
|
|
# 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 bridge synthetic createDispatcher(Ljava/util/List;)Lx/a/k1;
|
|
.locals 0
|
|
|
|
invoke-virtual {p0, p1}, Lkotlinx/coroutines/android/AndroidDispatcherFactory;->createDispatcher(Ljava/util/List;)Lx/a/z1/a;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public createDispatcher(Ljava/util/List;)Lx/a/z1/a;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"+",
|
|
"Lkotlinx/coroutines/internal/MainDispatcherFactory;",
|
|
">;)",
|
|
"Lx/a/z1/a;"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
new-instance p1, Lx/a/z1/a;
|
|
|
|
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "Looper.getMainLooper()"
|
|
|
|
invoke-static {v1, v2}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v2, 0x1
|
|
|
|
invoke-static {v1, v2}, Lx/a/z1/c;->a(Landroid/os/Looper;Z)Landroid/os/Handler;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const-string v2, "Main"
|
|
|
|
invoke-direct {p1, v1, v2, v0}, Lx/a/z1/a;-><init>(Landroid/os/Handler;Ljava/lang/String;Z)V
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
const-string p1, "handler"
|
|
|
|
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_1
|
|
const-string p1, "allFactories"
|
|
|
|
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public getLoadPriority()I
|
|
.locals 1
|
|
|
|
const v0, 0x3fffffff # 1.9999999f
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public 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
|