granularity level: instruction
.class public abstract Le0/b;
.super Ljava/lang/Object;
.source "SourceFile"
.field public static final a:Ljava/lang/reflect/Method;
.field public static final b:Ljava/lang/reflect/Method;
.method public static constructor <clinit>()V
.locals 9
const-class v0, Ljava/lang/String;
const-string v1, "add"
invoke-static {}, Landroid/os/Process;->myUid()I
const/4 v2, 0x0
const/4 v3, 0x1
const/4 v4, 0x0
:try_start_0
new-array v5, v3, [Ljava/lang/Class;
sget-object v6, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
aput-object v6, v5, v2
const-class v6, Landroid/os/WorkSource;
invoke-virtual {v6, v1, v5}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v5
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-object v5, v4
:goto_0
sput-object v5, Le0/b;->a:Ljava/lang/reflect/Method;
const/4 v5, 0x2
:try_start_1
new-array v6, v5, [Ljava/lang/Class;
sget-object v7, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
aput-object v7, v6, v2
aput-object v0, v6, v3
const-class v7, Landroid/os/WorkSource;
invoke-virtual {v7, v1, v6}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v4
:try_end_1
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1
:catch_1
sput-object v4, Le0/b;->b:Ljava/lang/reflect/Method;
:try_start_2
const-class v1, Landroid/os/WorkSource;
const-string v4, "size"
new-array v6, v2, [Ljava/lang/Class;
invoke-virtual {v1, v4, v6}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
:try_end_2
.catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_2
:try_start_3
:catch_2
new-array v1, v3, [Ljava/lang/Class;
sget-object v4, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
aput-object v4, v1, v2
const-class v4, Landroid/os/WorkSource;
const-string v6, "get"
invoke-virtual {v4, v6, v1}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
:try_end_3
.catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_3
:try_start_4
:catch_3
new-array v1, v3, [Ljava/lang/Class;
sget-object v4, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
aput-object v4, v1, v2
const-class v4, Landroid/os/WorkSource;
const-string v6, "getName"
invoke-virtual {v4, v6, v1}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
:try_end_4
.catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_4
:catch_4
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v4, 0x1c
if-lt v1, v4, :cond_0
const/4 v1, 0x1
goto :goto_1
:cond_0
const/4 v1, 0x0
:goto_1
const-string v6, "WorkSourceUtil"
if-eqz v1, :cond_1
:try_start_5
const-class v1, Landroid/os/WorkSource;
const-string v7, "createWorkChain"
new-array v8, v2, [Ljava/lang/Class;
invoke-virtual {v1, v7, v8}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
:try_end_5
.catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_5
goto :goto_2
:catch_5
move-exception v1
const-string v7, "Missing WorkChain API createWorkChain"
invoke-static {v6, v7, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
:goto_2
:cond_1
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
if-lt v1, v4, :cond_2
const/4 v1, 0x1
goto :goto_3
:cond_2
const/4 v1, 0x0
:goto_3
if-eqz v1, :cond_3
:try_start_6
const-string v1, "android.os.WorkSource$WorkChain"
invoke-static {v1}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
move-result-object v1
new-array v5, v5, [Ljava/lang/Class;
sget-object v7, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
aput-object v7, v5, v2
aput-object v0, v5, v3
const-string v0, "addNode"
invoke-virtual {v1, v0, v5}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
:try_end_6
.catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_6
goto :goto_4
:catch_6
move-exception v0
const-string v1, "Missing WorkChain class"
invoke-static {v6, v1, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
:goto_4
:cond_3
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
if-lt v0, v4, :cond_4
const/4 v0, 0x1
goto :goto_5
:cond_4
const/4 v0, 0x0
:goto_5
if-eqz v0, :cond_5
:try_start_7
const-class v0, Landroid/os/WorkSource;
const-string v1, "isEmpty"
new-array v2, v2, [Ljava/lang/Class;
invoke-virtual {v0, v1, v2}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v0
invoke-virtual {v0, v3}, Ljava/lang/reflect/AccessibleObject;->setAccessible(Z)V
:try_end_7
.catch Ljava/lang/Exception; {:try_start_7 .. :try_end_7} :catch_7
:catch_7
:cond_5
return-void
.end method