211 lines
4.5 KiB
Smali
211 lines
4.5 KiB
Smali
.class public final Lx/a/z1/c;
|
|
.super Ljava/lang/Object;
|
|
.source "HandlerDispatcher.kt"
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 5
|
|
|
|
const/4 v0, 0x0
|
|
|
|
:try_start_0
|
|
sget-object v1, Lw/i;->d:Lw/i$a;
|
|
|
|
new-instance v1, Lx/a/z1/a;
|
|
|
|
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "Looper.getMainLooper()"
|
|
|
|
invoke-static {v2, v3}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v3, 0x1
|
|
|
|
invoke-static {v2, v3}, Lx/a/z1/c;->a(Landroid/os/Looper;Z)Landroid/os/Handler;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "Main"
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lx/a/z1/a;-><init>(Landroid/os/Handler;Ljava/lang/String;Z)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-string v1, "handler"
|
|
|
|
invoke-static {v1}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw v0
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
sget-object v2, Lw/i;->d:Lw/i$a;
|
|
|
|
invoke-static {v1}, Le/k/a/c/e/p/g;->createFailure(Ljava/lang/Throwable;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
:goto_0
|
|
invoke-static {v1}, Lw/i;->isFailure-impl(Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move-object v0, v1
|
|
|
|
:goto_1
|
|
check-cast v0, Lx/a/z1/b;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final a(Landroid/os/Looper;Z)Landroid/os/Handler;
|
|
.locals 7
|
|
.annotation build Landroidx/annotation/VisibleForTesting;
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p0, :cond_3
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
sget p1, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1c
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x1
|
|
|
|
if-lt p1, v1, :cond_1
|
|
|
|
const-class p1, Landroid/os/Handler;
|
|
|
|
new-array v1, v3, [Ljava/lang/Class;
|
|
|
|
const-class v4, Landroid/os/Looper;
|
|
|
|
aput-object v4, v1, v2
|
|
|
|
const-string v4, "createAsync"
|
|
|
|
invoke-virtual {p1, v4, v1}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
move-result-object p1
|
|
|
|
new-array v1, v3, [Ljava/lang/Object;
|
|
|
|
aput-object p0, v1, v2
|
|
|
|
invoke-virtual {p1, v0, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
check-cast p0, Landroid/os/Handler;
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
new-instance p0, Lw/l;
|
|
|
|
const-string p1, "null cannot be cast to non-null type android.os.Handler"
|
|
|
|
invoke-direct {p0, p1}, Lw/l;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
|
|
:cond_1
|
|
:try_start_0
|
|
const-class p1, Landroid/os/Handler;
|
|
|
|
const/4 v1, 0x3
|
|
|
|
new-array v4, v1, [Ljava/lang/Class;
|
|
|
|
const-class v5, Landroid/os/Looper;
|
|
|
|
aput-object v5, v4, v2
|
|
|
|
const-class v5, Landroid/os/Handler$Callback;
|
|
|
|
aput-object v5, v4, v3
|
|
|
|
sget-object v5, Ljava/lang/Boolean;->TYPE:Ljava/lang/Class;
|
|
|
|
const/4 v6, 0x2
|
|
|
|
aput-object v5, v4, v6
|
|
|
|
invoke-virtual {p1, v4}, Ljava/lang/Class;->getDeclaredConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v4, "Handler::class.java.getD\u2026:class.javaPrimitiveType)"
|
|
|
|
invoke-static {p1, v4}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
:try_end_0
|
|
.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
aput-object p0, v1, v2
|
|
|
|
aput-object v0, v1, v3
|
|
|
|
invoke-static {v3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
move-result-object p0
|
|
|
|
aput-object p0, v1, v6
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/reflect/Constructor;->newInstance([Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
const-string p1, "constructor.newInstance(this, null, true)"
|
|
|
|
invoke-static {p0, p1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
check-cast p0, Landroid/os/Handler;
|
|
|
|
return-object p0
|
|
|
|
:catch_0
|
|
new-instance p1, Landroid/os/Handler;
|
|
|
|
invoke-direct {p1, p0}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V
|
|
|
|
return-object p1
|
|
|
|
:cond_2
|
|
new-instance p1, Landroid/os/Handler;
|
|
|
|
invoke-direct {p1, p0}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V
|
|
|
|
return-object p1
|
|
|
|
:cond_3
|
|
const-string p0, "$this$asHandler"
|
|
|
|
invoke-static {p0}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|