606 lines
14 KiB
Smali
606 lines
14 KiB
Smali
.class public Landroidx/core/app/a;
|
|
.super Landroidx/core/content/d;
|
|
.source "ActivityCompat.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/core/app/a$d;,
|
|
Landroidx/core/app/a$c;,
|
|
Landroidx/core/app/a$h;,
|
|
Landroidx/core/app/a$g;,
|
|
Landroidx/core/app/a$f;,
|
|
Landroidx/core/app/a$e;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static e:Landroidx/core/app/a$f;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Landroidx/core/content/d;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static A(Landroid/app/Activity;)Z
|
|
.locals 4
|
|
.param p0 # Landroid/app/Activity;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-static {}, Landroidx/core/os/BuildCompat;->i()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
invoke-static {p0}, Landroidx/core/app/a$d;->a(Landroid/app/Activity;)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
.line 3
|
|
:cond_0
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1e
|
|
|
|
const/4 v2, 0x1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-ne v0, v1, :cond_2
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Landroid/app/Activity;->getDisplay()Landroid/view/Display;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 5
|
|
invoke-virtual {p0}, Landroid/app/Activity;->getDisplay()Landroid/view/Display;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Landroid/view/Display;->getDisplayId()I
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
move v2, v3
|
|
|
|
:goto_0
|
|
return v2
|
|
|
|
:cond_2
|
|
const/16 v1, 0x1d
|
|
|
|
if-ne v0, v1, :cond_4
|
|
|
|
.line 6
|
|
invoke-virtual {p0}, Landroid/app/Activity;->getWindowManager()Landroid/view/WindowManager;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {v0}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 7
|
|
invoke-virtual {p0}, Landroid/app/Activity;->getWindowManager()Landroid/view/WindowManager;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-interface {p0}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Landroid/view/Display;->getDisplayId()I
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
move v2, v3
|
|
|
|
:goto_1
|
|
return v2
|
|
|
|
:cond_4
|
|
return v3
|
|
.end method
|
|
|
|
.method public static B(Landroid/app/Activity;)V
|
|
.locals 0
|
|
.param p0 # Landroid/app/Activity;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/app/Activity;->postponeEnterTransition()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static C(Landroid/app/Activity;)V
|
|
.locals 2
|
|
.param p0 # Landroid/app/Activity;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1c
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Landroid/app/Activity;->recreate()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 3
|
|
:cond_0
|
|
invoke-static {p0}, Landroidx/core/app/d;->i(Landroid/app/Activity;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Landroid/app/Activity;->recreate()V
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public static D(Landroid/app/Activity;Landroid/view/DragEvent;)Ls1/e;
|
|
.locals 0
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-static {p0, p1}, Ls1/e;->b(Landroid/app/Activity;Landroid/view/DragEvent;)Ls1/e;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static E(Landroid/app/Activity;[Ljava/lang/String;I)V
|
|
.locals 3
|
|
.param p0 # Landroid/app/Activity;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # [Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # I
|
|
.annotation build Landroidx/annotation/IntRange;
|
|
from = 0x0L
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
sget-object v0, Landroidx/core/app/a;->e:Landroidx/core/app/a$f;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
invoke-interface {v0, p0, p1, p2}, Landroidx/core/app/a$f;->b(Landroid/app/Activity;[Ljava/lang/String;I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 3
|
|
:cond_0
|
|
array-length v0, p1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-ge v1, v0, :cond_2
|
|
|
|
aget-object v2, p1, v1
|
|
|
|
.line 4
|
|
invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 5
|
|
:cond_1
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string p2, "Permission request for permissions "
|
|
|
|
invoke-static {p2}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p2
|
|
|
|
.line 6
|
|
invoke-static {p1}, Ljava/util/Arrays;->toString([Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, " must not contain null or empty values"
|
|
|
|
invoke-static {p2, p1, v0}, Landroidx/camera/camera2/internal/b;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
|
|
.line 7
|
|
:cond_2
|
|
instance-of v0, p0, Landroidx/core/app/a$g;
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 8
|
|
move-object v0, p0
|
|
|
|
check-cast v0, Landroidx/core/app/a$g;
|
|
|
|
.line 9
|
|
invoke-interface {v0, p2}, Landroidx/core/app/a$g;->validateRequestPermissionsRequestCode(I)V
|
|
|
|
.line 10
|
|
:cond_3
|
|
invoke-virtual {p0, p1, p2}, Landroid/app/Activity;->requestPermissions([Ljava/lang/String;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static F(Landroid/app/Activity;I)Landroid/view/View;
|
|
.locals 2
|
|
.param p0 # Landroid/app/Activity;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/IdRes;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Landroid/view/View;",
|
|
">(",
|
|
"Landroid/app/Activity;",
|
|
"I)TT;"
|
|
}
|
|
.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-virtual {p0, p1}, Landroid/app/Activity;->requireViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 3
|
|
:cond_0
|
|
invoke-virtual {p0, p1}, Landroid/app/Activity;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p0
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
return-object p0
|
|
|
|
.line 4
|
|
:cond_1
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string p1, "ID does not reference a View inside this Activity"
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static G(Landroid/app/Activity;Landroidx/core/app/u;)V
|
|
.locals 1
|
|
.param p0 # Landroid/app/Activity;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Landroidx/core/app/u;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 1
|
|
new-instance v0, Landroidx/core/app/a$h;
|
|
|
|
invoke-direct {v0, p1}, Landroidx/core/app/a$h;-><init>(Landroidx/core/app/u;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
:goto_0
|
|
invoke-virtual {p0, v0}, Landroid/app/Activity;->setEnterSharedElementCallback(Landroid/app/SharedElementCallback;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static H(Landroid/app/Activity;Landroidx/core/app/u;)V
|
|
.locals 1
|
|
.param p0 # Landroid/app/Activity;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Landroidx/core/app/u;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 1
|
|
new-instance v0, Landroidx/core/app/a$h;
|
|
|
|
invoke-direct {v0, p1}, Landroidx/core/app/a$h;-><init>(Landroidx/core/app/u;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
:goto_0
|
|
invoke-virtual {p0, v0}, Landroid/app/Activity;->setExitSharedElementCallback(Landroid/app/SharedElementCallback;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static I(Landroid/app/Activity;Landroidx/core/content/g;Landroid/os/Bundle;)V
|
|
.locals 2
|
|
.param p0 # Landroid/app/Activity;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Landroidx/core/content/g;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroid/os/Bundle;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.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, p1, p2}, Landroidx/core/app/a$c;->a(Landroid/app/Activity;Landroidx/core/content/g;Landroid/os/Bundle;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public static J(Landroidx/core/app/a$f;)V
|
|
.locals 0
|
|
.param p0 # Landroidx/core/app/a$f;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
sput-object p0, Landroidx/core/app/a;->e:Landroidx/core/app/a$f;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static K(Landroid/app/Activity;Ljava/lang/String;)Z
|
|
.locals 0
|
|
.param p0 # Landroid/app/Activity;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Landroid/app/Activity;->shouldShowRequestPermissionRationale(Ljava/lang/String;)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static L(Landroid/app/Activity;Landroid/content/Intent;ILandroid/os/Bundle;)V
|
|
.locals 0
|
|
.param p0 # Landroid/app/Activity;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Landroid/content/Intent;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p3 # Landroid/os/Bundle;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1, p2, p3}, Landroid/app/Activity;->startActivityForResult(Landroid/content/Intent;ILandroid/os/Bundle;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static M(Landroid/app/Activity;Landroid/content/IntentSender;ILandroid/content/Intent;IIILandroid/os/Bundle;)V
|
|
.locals 0
|
|
.param p0 # Landroid/app/Activity;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Landroid/content/IntentSender;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p3 # Landroid/content/Intent;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p7 # Landroid/os/Bundle;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Landroid/content/IntentSender$SendIntentException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual/range {p0 .. p7}, Landroid/app/Activity;->startIntentSenderForResult(Landroid/content/IntentSender;ILandroid/content/Intent;IIILandroid/os/Bundle;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static N(Landroid/app/Activity;)V
|
|
.locals 0
|
|
.param p0 # Landroid/app/Activity;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/app/Activity;->startPostponedEnterTransition()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static v(Landroid/app/Activity;)V
|
|
.locals 0
|
|
.param p0 # Landroid/app/Activity;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/app/Activity;->finishAffinity()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static w(Landroid/app/Activity;)V
|
|
.locals 0
|
|
.param p0 # Landroid/app/Activity;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/app/Activity;->finishAfterTransition()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static x()Landroidx/core/app/a$f;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
sget-object v0, Landroidx/core/app/a;->e:Landroidx/core/app/a$f;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static y(Landroid/app/Activity;)Landroid/net/Uri;
|
|
.locals 0
|
|
.param p0 # Landroid/app/Activity;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/app/Activity;->getReferrer()Landroid/net/Uri;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static z(Landroid/app/Activity;)Z
|
|
.locals 0
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/app/Activity;->invalidateOptionsMenu()V
|
|
|
|
const/4 p0, 0x1
|
|
|
|
return p0
|
|
.end method
|