granularity level: instruction
.class public abstract La0/n;
.super Ljava/lang/Object;
.source "SourceFile"
.field public static final a:Lb/i;
.field public static b:Ljava/util/Locale;
.method public static constructor <clinit>()V
.locals 1
new-instance v0, Lb/i;
invoke-direct {v0}, Lb/i;-><init>()V
sput-object v0, La0/n;->a:Lb/i;
return-void
.end method
.method public static a(Landroid/content/Context;)Ljava/lang/String;
.locals 2
invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v0
:try_start_0
invoke-static {p0}, Lf0/b;->a(Landroid/content/Context;)Lj1/c;
move-result-object v1
invoke-virtual {v1, v0}, Lj1/c;->b(Ljava/lang/String;)Ljava/lang/CharSequence;
move-result-object v1
invoke-interface {v1}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;
move-result-object p0
:try_end_0
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
.catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_0
return-object p0
:catch_0
nop
invoke-virtual {p0}, Landroid/content/Context;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;
move-result-object p0
iget-object p0, p0, Landroid/content/pm/ApplicationInfo;->name:Ljava/lang/String;
invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-eqz v1, :cond_0
return-object v0
:cond_0
return-object p0
.end method
.method public static b(Landroid/content/Context;I)Ljava/lang/String;
.locals 5
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v0
invoke-static {p0}, La0/n;->a(Landroid/content/Context;)Ljava/lang/String;
move-result-object v1
const/4 v2, 0x0
const/4 v3, 0x1
if-eq p1, v3, :cond_7
const/4 v4, 0x2
if-eq p1, v4, :cond_5
const/4 v4, 0x3
if-eq p1, v4, :cond_4
const/4 v4, 0x5
if-eq p1, v4, :cond_3
const/4 v4, 0x7
if-eq p1, v4, :cond_2
const/16 v4, 0x9
if-eq p1, v4, :cond_1
const/16 v4, 0x14
if-eq p1, v4, :cond_0
packed-switch p1, :pswitch_data_0
const p0, 0x7f090008
new-array p1, v3, [Ljava/lang/Object;
aput-object v1, p1, v2
invoke-virtual {v0, p0, p1}, Landroid/content/res/Resources;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p0
return-object p0
:pswitch_0
const p0, 0x7f09000d
new-array p1, v3, [Ljava/lang/Object;
aput-object v1, p1, v2
invoke-virtual {v0, p0, p1}, Landroid/content/res/Resources;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p0
return-object p0
:pswitch_1
const-string p1, "common_google_play_services_sign_in_failed_text"
invoke-static {p0, p1, v1}, La0/n;->d(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
return-object p0
:pswitch_2
const-string p1, "common_google_play_services_api_unavailable_text"
invoke-static {p0, p1, v1}, La0/n;->d(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
return-object p0
:cond_0
const-string p1, "common_google_play_services_restricted_profile_text"
invoke-static {p0, p1, v1}, La0/n;->d(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
return-object p0
:cond_1
const p0, 0x7f090009
new-array p1, v3, [Ljava/lang/Object;
aput-object v1, p1, v2
invoke-virtual {v0, p0, p1}, Landroid/content/res/Resources;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p0
return-object p0
:cond_2
const-string p1, "common_google_play_services_network_error_text"
invoke-static {p0, p1, v1}, La0/n;->d(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
return-object p0
:cond_3
const-string p1, "common_google_play_services_invalid_account_text"
invoke-static {p0, p1, v1}, La0/n;->d(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
return-object p0
:cond_4
const p0, 0x7f090001
new-array p1, v3, [Ljava/lang/Object;
aput-object v1, p1, v2
invoke-virtual {v0, p0, p1}, Landroid/content/res/Resources;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p0
return-object p0
:cond_5
invoke-static {p0}, Lp0/a;->w(Landroid/content/Context;)Z
move-result p0
if-eqz p0, :cond_6
const p0, 0x7f09000e
invoke-virtual {v0, p0}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
move-result-object p0
return-object p0
:cond_6
const p0, 0x7f09000b
new-array p1, v3, [Ljava/lang/Object;
aput-object v1, p1, v2
invoke-virtual {v0, p0, p1}, Landroid/content/res/Resources;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p0
return-object p0
:cond_7
const p0, 0x7f090004
new-array p1, v3, [Ljava/lang/Object;
aput-object v1, p1, v2
invoke-virtual {v0, p0, p1}, Landroid/content/res/Resources;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p0
return-object p0
:pswitch_data_0
.packed-switch 0x10
:pswitch_2
:pswitch_1
:pswitch_0
.end packed-switch
.end method
.method public static c(Landroid/content/Context;I)Ljava/lang/String;
.locals 3
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v0
const/4 v1, 0x0
const-string v2, "GoogleApiAvailability"
packed-switch p1, :pswitch_data_0
:pswitch_0
new-instance p0, Ljava/lang/StringBuilder;
const/16 v0, 0x21
invoke-direct {p0, v0}, Ljava/lang/StringBuilder;-><init>(I)V
const-string v0, "Unexpected error code "
invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
:goto_0
invoke-static {v2, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
return-object v1
:pswitch_1
const-string p1, "The current user profile is restricted and could not use authenticated features."
invoke-static {v2, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
const-string p1, "common_google_play_services_restricted_profile_title"
invoke-static {p0, p1}, La0/n;->e(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
return-object p0
:pswitch_2
const-string p1, "The specified account could not be signed in."
invoke-static {v2, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
const-string p1, "common_google_play_services_sign_in_failed_title"
invoke-static {p0, p1}, La0/n;->e(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
return-object p0
:pswitch_3
const-string p0, "One of the API components you attempted to connect to is not available."
goto :goto_0
:pswitch_4
const-string p0, "The application is not licensed to the user."
goto :goto_0
:pswitch_5
const-string p0, "Developer error occurred. Please see logs for detailed information"
goto :goto_0
:pswitch_6
const-string p0, "Google Play services is invalid. Cannot recover."
goto :goto_0
:pswitch_7
const-string p0, "Internal error occurred. Please see logs for detailed information"
goto :goto_0
:pswitch_8
const-string p1, "Network error occurred. Please retry request later."
invoke-static {v2, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
const-string p1, "common_google_play_services_network_error_title"
invoke-static {p0, p1}, La0/n;->e(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
return-object p0
:pswitch_9
const-string p1, "An invalid account was specified when connecting. Please provide a valid account."
invoke-static {v2, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
const-string p1, "common_google_play_services_invalid_account_title"
invoke-static {p0, p1}, La0/n;->e(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
return-object p0
:pswitch_a
return-object v1
:pswitch_b
const p0, 0x7f090002
invoke-virtual {v0, p0}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
move-result-object p0
return-object p0
:pswitch_c
const p0, 0x7f09000c
invoke-virtual {v0, p0}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
move-result-object p0
return-object p0
:pswitch_d
const p0, 0x7f090005
invoke-virtual {v0, p0}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
move-result-object p0
return-object p0
nop
:pswitch_data_0
.packed-switch 0x1
:pswitch_d
:pswitch_c
:pswitch_b
:pswitch_a
:pswitch_9
:pswitch_a
:pswitch_8
:pswitch_7
:pswitch_6
:pswitch_5
:pswitch_4
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_3
:pswitch_2
:pswitch_a
:pswitch_0
:pswitch_1
.end packed-switch
.end method
.method public static d(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
.locals 2
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v0
invoke-static {p0, p1}, La0/n;->e(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
if-nez p0, :cond_0
const p0, 0x7f090008
invoke-virtual {v0, p0}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
move-result-object p0
:cond_0
invoke-virtual {v0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
move-result-object p1
iget-object p1, p1, Landroid/content/res/Configuration;->locale:Ljava/util/Locale;
const/4 v0, 0x1
new-array v0, v0, [Ljava/lang/Object;
const/4 v1, 0x0
aput-object p2, v0, v1
invoke-static {p1, p0, v0}, Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static e(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
.locals 5
sget-object v0, La0/n;->a:Lb/i;
monitor-enter v0
:try_start_0
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v1
invoke-virtual {v1}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
move-result-object v1
sget v2, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v3, 0x18
const/4 v4, 0x0
if-lt v2, v3, :cond_0
invoke-static {v1}, Ld/a;->b(Landroid/content/res/Configuration;)Landroid/os/LocaleList;
move-result-object v1
new-instance v2, Lf/a;
new-instance v3, Lf/d;
invoke-direct {v3, v1}, Lf/d;-><init>(Landroid/os/LocaleList;)V
invoke-direct {v2, v3}, Lf/a;-><init>(Lf/c;)V
goto :goto_0
:catchall_0
move-exception p0
goto/16 :goto_4
:cond_0
const/4 v2, 0x1
new-array v2, v2, [Ljava/util/Locale;
iget-object v1, v1, Landroid/content/res/Configuration;->locale:Ljava/util/Locale;
aput-object v1, v2, v4
invoke-static {v2}, Lf/a;->a([Ljava/util/Locale;)Lf/a;
move-result-object v2
:goto_0
iget-object v1, v2, Lf/a;->a:Lf/c;
invoke-interface {v1}, Lf/c;->get()Ljava/util/Locale;
move-result-object v1
sget-object v2, La0/n;->b:Ljava/util/Locale;
invoke-virtual {v1, v2}, Ljava/util/Locale;->equals(Ljava/lang/Object;)Z
move-result v2
if-nez v2, :cond_1
invoke-virtual {v0}, Lb/i;->clear()V
sput-object v1, La0/n;->b:Ljava/util/Locale;
:cond_1
invoke-virtual {v0, p1}, Lb/i;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/String;
if-eqz v1, :cond_2
monitor-exit v0
return-object v1
:cond_2
sget v1, Lx/f;->c:I
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
const/4 v1, 0x0
:try_start_1
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object p0
const-string v2, "com.google.android.gms"
invoke-virtual {p0, v2}, Landroid/content/pm/PackageManager;->getResourcesForApplication(Ljava/lang/String;)Landroid/content/res/Resources;
move-result-object p0
:try_end_1
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_1 .. :try_end_1} :catch_0
.catchall {:try_start_1 .. :try_end_1} :catchall_0
goto :goto_1
:catch_0
nop
move-object p0, v1
:goto_1
if-nez p0, :cond_3
:try_start_2
monitor-exit v0
return-object v1
:cond_3
const-string v2, "string"
const-string v3, "com.google.android.gms"
invoke-virtual {p0, p1, v2, v3}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I
move-result v2
if-nez v2, :cond_5
const-string p0, "GoogleApiAvailability"
const-string v2, "Missing resource: "
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v3
if-eqz v3, :cond_4
invoke-virtual {v2, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
goto :goto_2
:cond_4
new-instance p1, Ljava/lang/String;
invoke-direct {p1, v2}, Ljava/lang/String;-><init>(Ljava/lang/String;)V
:goto_2
invoke-static {p0, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
monitor-exit v0
return-object v1
:cond_5
invoke-virtual {p0, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
move-result-object p0
invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v2
if-eqz v2, :cond_7
const-string p0, "GoogleApiAvailability"
const-string v2, "Got empty resource: "
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v3
if-eqz v3, :cond_6
invoke-virtual {v2, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
goto :goto_3
:cond_6
new-instance p1, Ljava/lang/String;
invoke-direct {p1, v2}, Ljava/lang/String;-><init>(Ljava/lang/String;)V
:goto_3
invoke-static {p0, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
monitor-exit v0
return-object v1
:cond_7
sget-object v1, La0/n;->a:Lb/i;
invoke-virtual {v1, p1, p0}, Lb/i;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
monitor-exit v0
return-object p0
:goto_4
monitor-exit v0
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
throw p0
.end method