2022-06-10 21:38:30 +09:00

106 lines
2.6 KiB
Smali

.class public Landroidx/core/app/h$a;
.super Ljava/lang/Object;
.source "AppOpsManagerCompat.java"
# annotations
.annotation build Landroidx/annotation/RequiresApi;
value = 0x1d
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/core/app/h;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "a"
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static a(Landroid/app/AppOpsManager;Ljava/lang/String;ILjava/lang/String;)I
.locals 0
.param p0 # Landroid/app/AppOpsManager;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p3 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/DoNotInline;
.end annotation
if-nez p0, :cond_0
const/4 p0, 0x1
return p0
.line 1
:cond_0
invoke-virtual {p0, p1, p2, p3}, Landroid/app/AppOpsManager;->checkOpNoThrow(Ljava/lang/String;ILjava/lang/String;)I
move-result p0
return p0
.end method
.method public static b(Landroid/content/Context;)Ljava/lang/String;
.locals 0
.param p0 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/DoNotInline;
.end annotation
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-virtual {p0}, Landroid/content/Context;->getOpPackageName()Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static c(Landroid/content/Context;)Landroid/app/AppOpsManager;
.locals 1
.param p0 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/DoNotInline;
.end annotation
.annotation build Landroidx/annotation/Nullable;
.end annotation
.line 1
const-class v0, Landroid/app/AppOpsManager;
invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/Class;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Landroid/app/AppOpsManager;
return-object p0
.end method