granularity level: instruction

		.class public final Landroidx/core/os/HandlerCompat;
.super Ljava/lang/Object;
.source "HandlerCompat.java"


.field private static final TAG:Ljava/lang/String; = "HandlerCompat"


.method private constructor <init>()V
	.locals 0

	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	return-void
.end method

.method public static createAsync(Landroid/os/Looper;)Landroid/os/Handler;
	.locals 7

	sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
	const/16 v1, 0x1c
	if-lt v0, v1, :cond_0
	invoke-static {p0}, Landroid/os/Handler;->createAsync(Landroid/os/Looper;)Landroid/os/Handler;
	move-result-object p0
	return-object p0
	:cond_0
	sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
	const/16 v1, 0x10
	if-lt v0, v1, :cond_3
	:try_start_0
	const-class v0, Landroid/os/Handler;
	const/4 v1, 0x3
	new-array v2, v1, [Ljava/lang/Class;
	const-class v3, Landroid/os/Looper;
	const/4 v4, 0x0
	aput-object v3, v2, v4
	const-class v3, Landroid/os/Handler$Callback;
	const/4 v5, 0x1
	aput-object v3, v2, v5
	sget-object v3, Ljava/lang/Boolean;->TYPE:Ljava/lang/Class;
	const/4 v6, 0x2
	aput-object v3, v2, v6
	invoke-virtual {v0, v2}, Ljava/lang/Class;->getDeclaredConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
	move-result-object v0
	new-array v1, v1, [Ljava/lang/Object;
	aput-object p0, v1, v4
	const/4 v2, 0x0
	aput-object v2, v1, v5
	invoke-static {v5}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
	move-result-object v2
	aput-object v2, v1, v6
	invoke-virtual {v0, v1}, Ljava/lang/reflect/Constructor;->newInstance([Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object v0
	check-cast v0, Landroid/os/Handler;
	:try_end_0
	.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_1
	.catch Ljava/lang/InstantiationException; {:try_start_0 .. :try_end_0} :catch_1
	.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_1
	.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_0
	return-object v0
	:catch_0
	move-exception p0
	invoke-virtual {p0}, Ljava/lang/reflect/InvocationTargetException;->getCause()Ljava/lang/Throwable;
	move-result-object p0
	instance-of v0, p0, Ljava/lang/RuntimeException;
	if-nez v0, :cond_2
	instance-of v0, p0, Ljava/lang/Error;
	if-eqz v0, :cond_1
	check-cast p0, Ljava/lang/Error;
	throw p0
	:cond_1
	new-instance v0, Ljava/lang/RuntimeException;
	invoke-direct {v0, p0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
	throw v0
	:cond_2
	check-cast p0, Ljava/lang/RuntimeException;
	throw p0
	:catch_1
	const-string v0, "HandlerCompat"
	const-string v1, "Unable to invoke Handler(Looper, Callback, boolean) constructor"
	invoke-static {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
	:cond_3
	new-instance v0, Landroid/os/Handler;
	invoke-direct {v0, p0}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V
	return-object v0
.end method

.method public static createAsync(Landroid/os/Looper;Landroid/os/Handler$Callback;)Landroid/os/Handler;
	.locals 7

	sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
	const/16 v1, 0x1c
	if-lt v0, v1, :cond_0
	invoke-static {p0, p1}, Landroid/os/Handler;->createAsync(Landroid/os/Looper;Landroid/os/Handler$Callback;)Landroid/os/Handler;
	move-result-object p0
	return-object p0
	:cond_0
	sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
	const/16 v1, 0x10
	if-lt v0, v1, :cond_3
	:try_start_0
	const-class v0, Landroid/os/Handler;
	const/4 v1, 0x3
	new-array v2, v1, [Ljava/lang/Class;
	const-class v3, Landroid/os/Looper;
	const/4 v4, 0x0
	aput-object v3, v2, v4
	const-class v3, Landroid/os/Handler$Callback;
	const/4 v5, 0x1
	aput-object v3, v2, v5
	sget-object v3, Ljava/lang/Boolean;->TYPE:Ljava/lang/Class;
	const/4 v6, 0x2
	aput-object v3, v2, v6
	invoke-virtual {v0, v2}, Ljava/lang/Class;->getDeclaredConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
	move-result-object v0
	new-array v1, v1, [Ljava/lang/Object;
	aput-object p0, v1, v4
	aput-object p1, v1, v5
	invoke-static {v5}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
	move-result-object v2
	aput-object v2, v1, v6
	invoke-virtual {v0, v1}, Ljava/lang/reflect/Constructor;->newInstance([Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object v0
	check-cast v0, Landroid/os/Handler;
	:try_end_0
	.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_1
	.catch Ljava/lang/InstantiationException; {:try_start_0 .. :try_end_0} :catch_1
	.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_1
	.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_0
	return-object v0
	:catch_0
	move-exception p0
	invoke-virtual {p0}, Ljava/lang/reflect/InvocationTargetException;->getCause()Ljava/lang/Throwable;
	move-result-object p0
	instance-of p1, p0, Ljava/lang/RuntimeException;
	if-nez p1, :cond_2
	instance-of p1, p0, Ljava/lang/Error;
	if-eqz p1, :cond_1
	check-cast p0, Ljava/lang/Error;
	throw p0
	:cond_1
	new-instance p1, Ljava/lang/RuntimeException;
	invoke-direct {p1, p0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
	throw p1
	:cond_2
	check-cast p0, Ljava/lang/RuntimeException;
	throw p0
	:catch_1
	const-string v0, "HandlerCompat"
	const-string v1, "Unable to invoke Handler(Looper, Callback, boolean) constructor"
	invoke-static {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
	:cond_3
	new-instance v0, Landroid/os/Handler;
	invoke-direct {v0, p0, p1}, Landroid/os/Handler;-><init>(Landroid/os/Looper;Landroid/os/Handler$Callback;)V
	return-object v0
.end method

.method public static postDelayed(Landroid/os/Handler;Ljava/lang/Runnable;Ljava/lang/Object;J)Z
	.locals 2

	sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
	const/16 v1, 0x1c
	if-lt v0, v1, :cond_0
	invoke-virtual {p0, p1, p2, p3, p4}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;Ljava/lang/Object;J)Z
	move-result p0
	return p0
	:cond_0
	invoke-static {p0, p1}, Landroid/os/Message;->obtain(Landroid/os/Handler;Ljava/lang/Runnable;)Landroid/os/Message;
	move-result-object p1
	iput-object p2, p1, Landroid/os/Message;->obj:Ljava/lang/Object;
	invoke-virtual {p0, p1, p3, p4}, Landroid/os/Handler;->sendMessageDelayed(Landroid/os/Message;J)Z
	move-result p0
	return p0
.end method