.class public Landroidx/core/content/d; .super Ljava/lang/Object; .source "ContextCompat.java" # annotations .annotation build Landroid/annotation/SuppressLint; value = { "PrivateConstructorForUtilityClass" } .end annotation .annotation system Ldalvik/annotation/MemberClasses; value = { Landroidx/core/content/d$h;, Landroidx/core/content/d$g;, Landroidx/core/content/d$f;, Landroidx/core/content/d$e;, Landroidx/core/content/d$d;, Landroidx/core/content/d$c;, Landroidx/core/content/d$b;, Landroidx/core/content/d$a;, Landroidx/core/content/d$i; } .end annotation # static fields .field public static final a:Ljava/lang/String; = "ContextCompat" .field public static final b:Ljava/lang/Object; .field public static final c:Ljava/lang/Object; .field public static d:Landroid/util/TypedValue; # direct methods .method public static constructor ()V .locals 1 .line 1 new-instance v0, Ljava/lang/Object; invoke-direct {v0}, Ljava/lang/Object;->()V sput-object v0, Landroidx/core/content/d;->b:Ljava/lang/Object; .line 2 new-instance v0, Ljava/lang/Object; invoke-direct {v0}, Ljava/lang/Object;->()V sput-object v0, Landroidx/core/content/d;->c:Ljava/lang/Object; return-void .end method .method public constructor ()V .locals 0 .line 1 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method public static a(Landroid/content/Context;Ljava/lang/String;)I .locals 2 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p1 # Ljava/lang/String; .annotation build Landroidx/annotation/NonNull; .end annotation .end param const-string v0, "permission must be non-null" .line 1 invoke-static {p1, v0}, Lr1/h;->e(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; .line 2 invoke-static {}, Landroid/os/Process;->myPid()I move-result v0 invoke-static {}, Landroid/os/Process;->myUid()I move-result v1 invoke-virtual {p0, p1, v0, v1}, Landroid/content/Context;->checkPermission(Ljava/lang/String;II)I move-result p0 return p0 .end method .method public static b(Landroid/content/Context;)Landroid/content/Context; .locals 0 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/Nullable; .end annotation .line 1 invoke-static {p0}, Landroidx/core/content/d$e;->a(Landroid/content/Context;)Landroid/content/Context; move-result-object p0 return-object p0 .end method .method public static c(Ljava/io/File;)Ljava/io/File; .locals 4 .line 1 sget-object v0, Landroidx/core/content/d;->c:Ljava/lang/Object; monitor-enter v0 .line 2 :try_start_0 invoke-virtual {p0}, Ljava/io/File;->exists()Z move-result v1 if-nez v1, :cond_1 .line 3 invoke-virtual {p0}, Ljava/io/File;->mkdirs()Z move-result v1 if-eqz v1, :cond_0 .line 4 monitor-exit v0 return-object p0 :cond_0 const-string v1, "ContextCompat" .line 5 new-instance v2, Ljava/lang/StringBuilder; invoke-direct {v2}, Ljava/lang/StringBuilder;->()V const-string v3, "Unable to create files subdir " invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {p0}, Ljava/io/File;->getPath()Ljava/lang/String; move-result-object v3 invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v2 invoke-static {v1, v2}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I .line 6 :cond_1 monitor-exit v0 return-object p0 :catchall_0 move-exception p0 .line 7 monitor-exit v0 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 throw p0 .end method .method public static d(Landroid/content/Context;)Ljava/lang/String; .locals 2 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/Nullable; .end annotation .line 1 sget v0, Landroid/os/Build$VERSION;->SDK_INT:I const/16 v1, 0x1e if-lt v0, v1, :cond_0 .line 2 invoke-static {p0}, Landroidx/core/content/d$h;->a(Landroid/content/Context;)Ljava/lang/String; move-result-object p0 return-object p0 :cond_0 const/4 p0, 0x0 return-object p0 .end method .method public static e(Landroid/content/Context;)Ljava/io/File; .locals 0 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/NonNull; .end annotation .line 1 invoke-static {p0}, Landroidx/core/content/d$c;->a(Landroid/content/Context;)Ljava/io/File; move-result-object p0 return-object p0 .end method .method public static f(Landroid/content/Context;I)I .locals 0 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p1 # I .annotation build Landroidx/annotation/ColorRes; .end annotation .end param .annotation build Landroidx/annotation/ColorInt; .end annotation .line 1 invoke-static {p0, p1}, Landroidx/core/content/d$d;->a(Landroid/content/Context;I)I move-result p0 return p0 .end method .method public static g(Landroid/content/Context;I)Landroid/content/res/ColorStateList; .locals 1 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p1 # I .annotation build Landroidx/annotation/ColorRes; .end annotation .end param .annotation build Landroidx/annotation/Nullable; .end annotation .line 1 invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources; move-result-object v0 invoke-virtual {p0}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme; move-result-object p0 invoke-static {v0, p1, p0}, Landroidx/core/content/res/a;->e(Landroid/content/res/Resources;ILandroid/content/res/Resources$Theme;)Landroid/content/res/ColorStateList; move-result-object p0 return-object p0 .end method .method public static h(Landroid/content/Context;)Ljava/io/File; .locals 0 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/Nullable; .end annotation .line 1 invoke-static {p0}, Landroidx/core/content/d$e;->b(Landroid/content/Context;)Ljava/io/File; move-result-object p0 return-object p0 .end method .method public static i(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable; .locals 0 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p1 # I .annotation build Landroidx/annotation/DrawableRes; .end annotation .end param .annotation build Landroidx/annotation/Nullable; .end annotation .line 1 invoke-static {p0, p1}, Landroidx/core/content/d$c;->b(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable; move-result-object p0 return-object p0 .end method .method public static j(Landroid/content/Context;)[Ljava/io/File; .locals 0 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/NonNull; .end annotation .line 1 invoke-static {p0}, Landroidx/core/content/d$b;->a(Landroid/content/Context;)[Ljava/io/File; move-result-object p0 return-object p0 .end method .method public static k(Landroid/content/Context;Ljava/lang/String;)[Ljava/io/File; .locals 0 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p1 # Ljava/lang/String; .annotation build Landroidx/annotation/Nullable; .end annotation .end param .annotation build Landroidx/annotation/NonNull; .end annotation .line 1 invoke-static {p0, p1}, Landroidx/core/content/d$b;->b(Landroid/content/Context;Ljava/lang/String;)[Ljava/io/File; move-result-object p0 return-object p0 .end method .method public static l(Landroid/content/Context;)Ljava/util/concurrent/Executor; .locals 2 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/NonNull; .end annotation .line 1 sget v0, Landroid/os/Build$VERSION;->SDK_INT:I const/16 v1, 0x1c if-lt v0, v1, :cond_0 .line 2 invoke-static {p0}, Landroidx/core/content/d$g;->a(Landroid/content/Context;)Ljava/util/concurrent/Executor; move-result-object p0 return-object p0 .line 3 :cond_0 new-instance v0, Landroid/os/Handler; invoke-virtual {p0}, Landroid/content/Context;->getMainLooper()Landroid/os/Looper; move-result-object p0 invoke-direct {v0, p0}, Landroid/os/Handler;->(Landroid/os/Looper;)V invoke-static {v0}, Ll1/e;->a(Landroid/os/Handler;)Ljava/util/concurrent/Executor; move-result-object p0 return-object p0 .end method .method public static m(Landroid/content/Context;)Ljava/io/File; .locals 0 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/Nullable; .end annotation .line 1 invoke-static {p0}, Landroidx/core/content/d$c;->c(Landroid/content/Context;)Ljava/io/File; move-result-object p0 return-object p0 .end method .method public static n(Landroid/content/Context;)[Ljava/io/File; .locals 0 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/NonNull; .end annotation .line 1 invoke-static {p0}, Landroidx/core/content/d$b;->c(Landroid/content/Context;)[Ljava/io/File; move-result-object p0 return-object p0 .end method .method public static o(Landroid/content/Context;Ljava/lang/Class;)Ljava/lang/Object; .locals 0 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p1 # Ljava/lang/Class; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/Nullable; .end annotation .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroid/content/Context;", "Ljava/lang/Class<", "TT;>;)TT;" } .end annotation .line 1 invoke-static {p0, p1}, Landroidx/core/content/d$d;->b(Landroid/content/Context;Ljava/lang/Class;)Ljava/lang/Object; move-result-object p0 return-object p0 .end method .method public static p(Landroid/content/Context;Ljava/lang/Class;)Ljava/lang/String; .locals 0 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p1 # Ljava/lang/Class; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/Nullable; .end annotation .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroid/content/Context;", "Ljava/lang/Class<", "*>;)", "Ljava/lang/String;" } .end annotation .line 1 invoke-static {p0, p1}, Landroidx/core/content/d$d;->c(Landroid/content/Context;Ljava/lang/Class;)Ljava/lang/String; move-result-object p0 return-object p0 .end method .method public static q(Landroid/content/Context;)Z .locals 0 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .line 1 invoke-static {p0}, Landroidx/core/content/d$e;->c(Landroid/content/Context;)Z move-result p0 return p0 .end method .method public static r(Landroid/content/Context;[Landroid/content/Intent;)Z .locals 1 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p1 # [Landroid/content/Intent; .annotation build Landroidx/annotation/NonNull; .end annotation .end param const/4 v0, 0x0 .line 1 invoke-static {p0, p1, v0}, Landroidx/core/content/d;->s(Landroid/content/Context;[Landroid/content/Intent;Landroid/os/Bundle;)Z move-result p0 return p0 .end method .method public static s(Landroid/content/Context;[Landroid/content/Intent;Landroid/os/Bundle;)Z .locals 0 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p1 # [Landroid/content/Intent; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p2 # Landroid/os/Bundle; .annotation build Landroidx/annotation/Nullable; .end annotation .end param .line 1 invoke-static {p0, p1, p2}, Landroidx/core/content/d$a;->a(Landroid/content/Context;[Landroid/content/Intent;Landroid/os/Bundle;)V const/4 p0, 0x1 return p0 .end method .method public static t(Landroid/content/Context;Landroid/content/Intent;Landroid/os/Bundle;)V .locals 0 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p1 # Landroid/content/Intent; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p2 # Landroid/os/Bundle; .annotation build Landroidx/annotation/Nullable; .end annotation .end param .line 1 invoke-static {p0, p1, p2}, Landroidx/core/content/d$a;->b(Landroid/content/Context;Landroid/content/Intent;Landroid/os/Bundle;)V return-void .end method .method public static u(Landroid/content/Context;Landroid/content/Intent;)V .locals 2 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p1 # Landroid/content/Intent; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .line 1 sget v0, Landroid/os/Build$VERSION;->SDK_INT:I const/16 v1, 0x1a if-lt v0, v1, :cond_0 .line 2 invoke-static {p0, p1}, Landroidx/core/content/d$f;->a(Landroid/content/Context;Landroid/content/Intent;)Landroid/content/ComponentName; goto :goto_0 .line 3 :cond_0 invoke-virtual {p0, p1}, Landroid/content/Context;->startService(Landroid/content/Intent;)Landroid/content/ComponentName; :goto_0 return-void .end method