2020-09-09 19:21:20 +00:00
|
|
|
.class public final Ll0/a/p1/c;
|
2020-07-08 16:44:49 +00:00
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "HandlerDispatcher.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public static constructor <clinit>()V
|
|
|
|
.locals 4
|
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
const/4 v0, 0x0
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:try_start_0
|
2020-09-09 19:21:20 +00:00
|
|
|
new-instance v1, Ll0/a/p1/a;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
|
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
move-result-object v2
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
const/4 v3, 0x1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
invoke-static {v2, v3}, Ll0/a/p1/c;->a(Landroid/os/Looper;Z)Landroid/os/Handler;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
move-result-object v2
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
invoke-direct {v1, v2, v0, v3}, Ll0/a/p1/a;-><init>(Landroid/os/Handler;Ljava/lang/String;Z)V
|
2020-07-08 16:44:49 +00:00
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:catchall_0
|
2020-09-09 19:21:20 +00:00
|
|
|
move-exception v1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
invoke-static {v1}, Lf/h/a/f/e/n/f;->createFailure(Ljava/lang/Throwable;)Ljava/lang/Object;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
move-result-object v1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
:goto_0
|
2020-09-09 19:21:20 +00:00
|
|
|
instance-of v2, v1, Lk0/d$a;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
if-eqz v2, :cond_0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
goto :goto_1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
:cond_0
|
2020-09-09 19:21:20 +00:00
|
|
|
move-object v0, v1
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
check-cast v0, Ll0/a/p1/b;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
|
|
|
|
sget p1, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
|
|
|
|
const/16 v0, 0x1c
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
const/4 v2, 0x0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
const/4 v3, 0x1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
if-lt p1, v0, :cond_1
|
|
|
|
|
|
|
|
const-class p1, Landroid/os/Handler;
|
|
|
|
|
|
|
|
const-string v0, "createAsync"
|
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
new-array v4, v3, [Ljava/lang/Class;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
const-class v5, Landroid/os/Looper;
|
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
aput-object v5, v4, v2
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v0, v4}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
new-array v0, v3, [Ljava/lang/Object;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
aput-object p0, v0, v2
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
invoke-virtual {p1, v1, v0}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
|
|
|
|
check-cast p0, Landroid/os/Handler;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance p0, Lkotlin/TypeCastException;
|
|
|
|
|
|
|
|
const-string p1, "null cannot be cast to non-null type android.os.Handler"
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:try_start_0
|
|
|
|
const-class p1, Landroid/os/Handler;
|
|
|
|
|
|
|
|
const/4 v0, 0x3
|
|
|
|
|
|
|
|
new-array v4, v0, [Ljava/lang/Class;
|
|
|
|
|
|
|
|
const-class v5, Landroid/os/Looper;
|
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
aput-object v5, v4, v2
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
const-class v5, Landroid/os/Handler$Callback;
|
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
aput-object v5, v4, v3
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
aput-object p0, v0, v2
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
aput-object v1, v0, v3
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
sget-object p0, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;
|
|
|
|
|
|
|
|
aput-object p0, v0, v6
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/reflect/Constructor;->newInstance([Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
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
|
|
|
|
.end method
|