granularity level: instruction
.class public Lcom/google/android/gms/common/util/WorkSourceUtil;
.super Ljava/lang/Object;
.source "com.google.android.gms:play-services-basement@@18.1.0"
.field private static final zza:I
.field private static final zzb:Ljava/lang/reflect/Method;
.field private static final zzc:Ljava/lang/reflect/Method;
.field private static final zzd:Ljava/lang/reflect/Method;
.field private static final zze:Ljava/lang/reflect/Method;
.field private static final zzf:Ljava/lang/reflect/Method;
.field private static final zzg:Ljava/lang/reflect/Method;
.field private static final zzh:Ljava/lang/reflect/Method;
.field private static final zzi:Ljava/lang/reflect/Method;
.method static constructor <clinit>()V
.locals 8
const-string v0, "add"
invoke-static {}, Landroid/os/Process;->myUid()I
move-result v1
sput v1, Lcom/google/android/gms/common/util/WorkSourceUtil;->zza:I
const/4 v1, 0x1
const/4 v2, 0x0
const/4 v3, 0x0
:try_start_0
new-array v4, v1, [Ljava/lang/Class;
sget-object v5, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
aput-object v5, v4, v2
const-class v5, Landroid/os/WorkSource;
invoke-virtual {v5, v0, v4}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v4
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
nop
move-object v4, v3
:goto_0
sput-object v4, Lcom/google/android/gms/common/util/WorkSourceUtil;->zzb:Ljava/lang/reflect/Method;
invoke-static {}, Lcom/google/android/gms/common/util/PlatformVersion;->isAtLeastJellyBeanMR2()Z
move-result v4
const/4 v5, 0x2
if-eqz v4, :cond_0
:try_start_1
new-array v4, v5, [Ljava/lang/Class;
sget-object v6, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
aput-object v6, v4, v2
const-class v6, Ljava/lang/String;
aput-object v6, v4, v1
const-class v6, Landroid/os/WorkSource;
invoke-virtual {v6, v0, v4}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v0
:try_end_1
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1
goto :goto_1
:catch_1
:cond_0
move-object v0, v3
:goto_1
sput-object v0, Lcom/google/android/gms/common/util/WorkSourceUtil;->zzc:Ljava/lang/reflect/Method;
:try_start_2
const-class v0, Landroid/os/WorkSource;
const-string v4, "size"
new-array v6, v2, [Ljava/lang/Class;
invoke-virtual {v0, v4, v6}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v0
:try_end_2
.catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_2
goto :goto_2
:catch_2
move-object v0, v3
:goto_2
sput-object v0, Lcom/google/android/gms/common/util/WorkSourceUtil;->zzd:Ljava/lang/reflect/Method;
:try_start_3
new-array v0, v1, [Ljava/lang/Class;
sget-object v4, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
aput-object v4, v0, v2
const-class v4, Landroid/os/WorkSource;
const-string v6, "get"
invoke-virtual {v4, v6, v0}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v0
:try_end_3
.catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_3
goto :goto_3
:catch_3
nop
move-object v0, v3
:goto_3
sput-object v0, Lcom/google/android/gms/common/util/WorkSourceUtil;->zze:Ljava/lang/reflect/Method;
invoke-static {}, Lcom/google/android/gms/common/util/PlatformVersion;->isAtLeastJellyBeanMR2()Z
move-result v0
if-eqz v0, :cond_1
:try_start_4
new-array v0, v1, [Ljava/lang/Class;
sget-object v4, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
aput-object v4, v0, v2
const-class v4, Landroid/os/WorkSource;
const-string v6, "getName"
invoke-virtual {v4, v6, v0}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v0
:try_end_4
.catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_4
goto :goto_4
:catch_4
nop
:cond_1
move-object v0, v3
:goto_4
sput-object v0, Lcom/google/android/gms/common/util/WorkSourceUtil;->zzf:Ljava/lang/reflect/Method;
invoke-static {}, Lcom/google/android/gms/common/util/PlatformVersion;->isAtLeastP()Z
move-result v0
const-string v4, "WorkSourceUtil"
if-eqz v0, :cond_2
:try_start_5
const-class v0, Landroid/os/WorkSource;
const-string v6, "createWorkChain"
new-array v7, v2, [Ljava/lang/Class;
invoke-virtual {v0, v6, v7}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v0
:try_end_5
.catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_5
goto :goto_5
:catch_5
move-exception v0
const-string v6, "Missing WorkChain API createWorkChain"
invoke-static {v4, v6, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
:cond_2
move-object v0, v3
:goto_5
sput-object v0, Lcom/google/android/gms/common/util/WorkSourceUtil;->zzg:Ljava/lang/reflect/Method;
invoke-static {}, Lcom/google/android/gms/common/util/PlatformVersion;->isAtLeastP()Z
move-result v0
if-eqz v0, :cond_3
:try_start_6
const-string v0, "android.os.WorkSource$WorkChain"
invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
move-result-object v0
new-array v5, v5, [Ljava/lang/Class;
sget-object v6, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
aput-object v6, v5, v2
const-class v6, Ljava/lang/String;
aput-object v6, v5, v1
const-string v6, "addNode"
invoke-virtual {v0, v6, v5}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v0
:try_end_6
.catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_6
goto :goto_6
:catch_6
move-exception v0
const-string v5, "Missing WorkChain class"
invoke-static {v4, v5, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
:cond_3
move-object v0, v3
:goto_6
sput-object v0, Lcom/google/android/gms/common/util/WorkSourceUtil;->zzh:Ljava/lang/reflect/Method;
invoke-static {}, Lcom/google/android/gms/common/util/PlatformVersion;->isAtLeastP()Z
move-result v0
if-eqz v0, :cond_4
:try_start_7
const-class v0, Landroid/os/WorkSource;
const-string v4, "isEmpty"
new-array v2, v2, [Ljava/lang/Class;
invoke-virtual {v0, v4, v2}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v3
invoke-virtual {v3, v1}, Ljava/lang/reflect/Method;->setAccessible(Z)V
:try_end_7
.catch Ljava/lang/Exception; {:try_start_7 .. :try_end_7} :catch_7
:catch_7
:cond_4
sput-object v3, Lcom/google/android/gms/common/util/WorkSourceUtil;->zzi:Ljava/lang/reflect/Method;
return-void
.end method
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static add(Landroid/os/WorkSource;ILjava/lang/String;)V
.locals 6
sget-object v0, Lcom/google/android/gms/common/util/WorkSourceUtil;->zzc:Ljava/lang/reflect/Method;
const-string v1, "Unable to assign blame through WorkSource"
const-string v2, "WorkSourceUtil"
const/4 v3, 0x0
const/4 v4, 0x1
if-eqz v0, :cond_1
if-nez p2, :cond_0
const-string p2, ""
:cond_0
const/4 v5, 0x2
:try_start_0
new-array v5, v5, [Ljava/lang/Object;
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
aput-object p1, v5, v3
aput-object p2, v5, v4
invoke-virtual {v0, p0, v5}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
return-void
:catch_0
move-exception p0
invoke-static {v2, v1, p0}, Landroid/util/Log;->wtf(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
return-void
:cond_1
sget-object p2, Lcom/google/android/gms/common/util/WorkSourceUtil;->zzb:Ljava/lang/reflect/Method;
if-eqz p2, :cond_2
:try_start_1
new-array v0, v4, [Ljava/lang/Object;
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
aput-object p1, v0, v3
invoke-virtual {p2, p0, v0}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
:try_end_1
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1
return-void
:catch_1
move-exception p0
invoke-static {v2, v1, p0}, Landroid/util/Log;->wtf(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
:cond_2
return-void
.end method
.method public static fromPackage(Landroid/content/Context;Ljava/lang/String;)Landroid/os/WorkSource;
.locals 3
const-string v0, "WorkSourceUtil"
const/4 v1, 0x0
if-eqz p0, :cond_1
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v2
if-eqz v2, :cond_1
if-eqz p1, :cond_1
:try_start_0
invoke-static {p0}, Lcom/google/android/gms/common/wrappers/Wrappers;->packageManager(Landroid/content/Context;)Lcom/google/android/gms/common/wrappers/PackageManagerWrapper;
move-result-object p0
const/4 v2, 0x0
invoke-virtual {p0, p1, v2}, Lcom/google/android/gms/common/wrappers/PackageManagerWrapper;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;
move-result-object p0
:try_end_0
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
if-nez p0, :cond_0
const-string p0, "Could not get applicationInfo from package: "
invoke-virtual {p0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
invoke-static {v0, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
return-object v1
:cond_0
iget p0, p0, Landroid/content/pm/ApplicationInfo;->uid:I
new-instance v0, Landroid/os/WorkSource;
invoke-direct {v0}, Landroid/os/WorkSource;-><init>()V
invoke-static {v0, p0, p1}, Lcom/google/android/gms/common/util/WorkSourceUtil;->add(Landroid/os/WorkSource;ILjava/lang/String;)V
return-object v0
:catch_0
const-string p0, "Could not find package: "
invoke-virtual {p0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
invoke-static {v0, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
:cond_1
return-object v1
.end method
.method public static fromPackageAndModuleExperimentalPi(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Landroid/os/WorkSource;
.locals 9
const/4 v0, 0x0
const-string v1, "WorkSourceUtil"
if-eqz p0, :cond_6
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v2
if-eqz v2, :cond_6
if-eqz p2, :cond_6
if-nez p1, :cond_0
goto :goto_3
:cond_0
const/4 v2, -0x1
const/4 v3, 0x0
:try_start_0
invoke-static {p0}, Lcom/google/android/gms/common/wrappers/Wrappers;->packageManager(Landroid/content/Context;)Lcom/google/android/gms/common/wrappers/PackageManagerWrapper;
move-result-object p0
invoke-virtual {p0, p1, v3}, Lcom/google/android/gms/common/wrappers/PackageManagerWrapper;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;
move-result-object p0
:try_end_0
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
if-nez p0, :cond_1
const-string p0, "Could not get applicationInfo from package: "
invoke-virtual {p0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
invoke-static {v1, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
goto :goto_0
:cond_1
iget v2, p0, Landroid/content/pm/ApplicationInfo;->uid:I
goto :goto_0
:catch_0
const-string p0, "Could not find package: "
invoke-virtual {p0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
invoke-static {v1, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
:goto_0
if-gez v2, :cond_2
return-object v0
:cond_2
new-instance p0, Landroid/os/WorkSource;
invoke-direct {p0}, Landroid/os/WorkSource;-><init>()V
sget-object v0, Lcom/google/android/gms/common/util/WorkSourceUtil;->zzg:Ljava/lang/reflect/Method;
if-eqz v0, :cond_5
sget-object v4, Lcom/google/android/gms/common/util/WorkSourceUtil;->zzh:Ljava/lang/reflect/Method;
if-nez v4, :cond_3
goto :goto_1
:try_start_1
:cond_3
new-array v5, v3, [Ljava/lang/Object;
invoke-virtual {v0, p0, v5}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
sget v5, Lcom/google/android/gms/common/util/WorkSourceUtil;->zza:I
const/4 v6, 0x1
const/4 v7, 0x2
if-eq v2, v5, :cond_4
new-array v8, v7, [Ljava/lang/Object;
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
aput-object v2, v8, v3
aput-object p1, v8, v6
invoke-virtual {v4, v0, v8}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
:cond_4
new-array p1, v7, [Ljava/lang/Object;
invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
aput-object v2, p1, v3
aput-object p2, p1, v6
invoke-virtual {v4, v0, p1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
:try_end_1
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1
goto :goto_2
:catch_1
move-exception p1
const-string p2, "Unable to assign chained blame through WorkSource"
invoke-static {v1, p2, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
goto :goto_2
:goto_1
:cond_5
invoke-static {p0, v2, p1}, Lcom/google/android/gms/common/util/WorkSourceUtil;->add(Landroid/os/WorkSource;ILjava/lang/String;)V
:goto_2
return-object p0
:goto_3
:cond_6
const-string p0, "Unexpected null arguments"
invoke-static {v1, p0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
return-object v0
.end method
.method public static get(Landroid/os/WorkSource;I)I
.locals 3
sget-object v0, Lcom/google/android/gms/common/util/WorkSourceUtil;->zze:Ljava/lang/reflect/Method;
const/4 v1, 0x0
if-eqz v0, :cond_0
const/4 v2, 0x1
:try_start_0
new-array v2, v2, [Ljava/lang/Object;
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
aput-object p1, v2, v1
invoke-virtual {v0, p0, v2}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
invoke-static {p0}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
check-cast p0, Ljava/lang/Integer;
invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I
move-result p0
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
return p0
:catch_0
move-exception p0
const-string p1, "WorkSourceUtil"
const-string v0, "Unable to assign blame through WorkSource"
invoke-static {p1, v0, p0}, Landroid/util/Log;->wtf(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
:cond_0
return v1
.end method
.method public static getName(Landroid/os/WorkSource;I)Ljava/lang/String;
.locals 3
sget-object v0, Lcom/google/android/gms/common/util/WorkSourceUtil;->zzf:Ljava/lang/reflect/Method;
if-eqz v0, :cond_0
const/4 v1, 0x1
:try_start_0
new-array v1, v1, [Ljava/lang/Object;
const/4 v2, 0x0
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
aput-object p1, v1, v2
invoke-virtual {v0, p0, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Ljava/lang/String;
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
return-object p0
:catch_0
move-exception p0
const-string p1, "WorkSourceUtil"
const-string v0, "Unable to assign blame through WorkSource"
invoke-static {p1, v0, p0}, Landroid/util/Log;->wtf(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
:cond_0
const/4 p0, 0x0
return-object p0
.end method
.method public static getNames(Landroid/os/WorkSource;)Ljava/util/List;
.locals 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/os/WorkSource;",
")",
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
const/4 v1, 0x0
if-nez p0, :cond_0
const/4 v2, 0x0
goto :goto_0
:cond_0
invoke-static {p0}, Lcom/google/android/gms/common/util/WorkSourceUtil;->size(Landroid/os/WorkSource;)I
move-result v2
:goto_0
if-eqz v2, :cond_2
:goto_1
if-ge v1, v2, :cond_2
invoke-static {p0, v1}, Lcom/google/android/gms/common/util/WorkSourceUtil;->getName(Landroid/os/WorkSource;I)Ljava/lang/String;
move-result-object v3
invoke-static {v3}, Lcom/google/android/gms/common/util/Strings;->isEmptyOrWhitespace(Ljava/lang/String;)Z
move-result v4
if-nez v4, :cond_1
invoke-static {v3}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:cond_1
add-int/lit8 v1, v1, 0x1
goto :goto_1
:cond_2
return-object v0
.end method
.method public static hasWorkSourcePermission(Landroid/content/Context;)Z
.locals 3
const/4 v0, 0x0
if-nez p0, :cond_0
return v0
:cond_0
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v1
if-nez v1, :cond_1
return v0
:cond_1
invoke-static {p0}, Lcom/google/android/gms/common/wrappers/Wrappers;->packageManager(Landroid/content/Context;)Lcom/google/android/gms/common/wrappers/PackageManagerWrapper;
move-result-object v1
invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object p0
const-string v2, "android.permission.UPDATE_DEVICE_STATS"
invoke-virtual {v1, v2, p0}, Lcom/google/android/gms/common/wrappers/PackageManagerWrapper;->checkPermission(Ljava/lang/String;Ljava/lang/String;)I
move-result p0
if-nez p0, :cond_2
const/4 p0, 0x1
return p0
:cond_2
return v0
.end method
.method public static isEmpty(Landroid/os/WorkSource;)Z
.locals 4
sget-object v0, Lcom/google/android/gms/common/util/WorkSourceUtil;->zzi:Ljava/lang/reflect/Method;
const/4 v1, 0x0
if-eqz v0, :cond_0
:try_start_0
new-array v2, v1, [Ljava/lang/Object;
invoke-virtual {v0, p0, v2}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
invoke-static {v0}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
check-cast v0, Ljava/lang/Boolean;
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
move-result p0
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
return p0
:catch_0
move-exception v0
const-string v2, "WorkSourceUtil"
const-string v3, "Unable to check WorkSource emptiness"
invoke-static {v2, v3, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
:cond_0
invoke-static {p0}, Lcom/google/android/gms/common/util/WorkSourceUtil;->size(Landroid/os/WorkSource;)I
move-result p0
if-nez p0, :cond_1
const/4 p0, 0x1
return p0
:cond_1
return v1
.end method
.method public static size(Landroid/os/WorkSource;)I
.locals 3
sget-object v0, Lcom/google/android/gms/common/util/WorkSourceUtil;->zzd:Ljava/lang/reflect/Method;
const/4 v1, 0x0
if-eqz v0, :cond_0
:try_start_0
new-array v2, v1, [Ljava/lang/Object;
invoke-virtual {v0, p0, v2}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
invoke-static {p0}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
check-cast p0, Ljava/lang/Integer;
invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I
move-result p0
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
return p0
:catch_0
move-exception p0
const-string v0, "WorkSourceUtil"
const-string v2, "Unable to assign blame through WorkSource"
invoke-static {v0, v2, p0}, Landroid/util/Log;->wtf(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
:cond_0
return v1
.end method