Rabbit-R1/original r1/smali/smali_classes2/androidx/window/embedding/EmbeddingCompat$Companion.smali
2024-05-21 17:08:36 -04:00

208 lines
5.6 KiB
Smali

.class public final Landroidx/window/embedding/EmbeddingCompat$Companion;
.super Ljava/lang/Object;
.source "EmbeddingCompat.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/window/embedding/EmbeddingCompat;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Companion"
.end annotation
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000&\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0008\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0008\n\u0002\u0008\u0003\u0008\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\u0008\u0002\u00a2\u0006\u0002\u0010\u0002J\u0006\u0010\u0007\u001a\u00020\u0008J\r\u0010\t\u001a\u0004\u0018\u00010\n\u00a2\u0006\u0002\u0010\u000bJ\u0006\u0010\u000c\u001a\u00020\u0004R\u000e\u0010\u0003\u001a\u00020\u0004X\u0086T\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0006X\u0082T\u00a2\u0006\u0002\n\u0000\u00a8\u0006\r"
}
d2 = {
"Landroidx/window/embedding/EmbeddingCompat$Companion;",
"",
"()V",
"DEBUG",
"",
"TAG",
"",
"embeddingComponent",
"Landroidx/window/extensions/embedding/ActivityEmbeddingComponent;",
"getExtensionApiLevel",
"",
"()Ljava/lang/Integer;",
"isEmbeddingAvailable",
"window_release"
}
k = 0x1
mv = {
0x1,
0x6,
0x0
}
xi = 0x30
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
.line 51
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
.locals 0
invoke-direct {p0}, Landroidx/window/embedding/EmbeddingCompat$Companion;-><init>()V
return-void
.end method
# virtual methods
.method public final embeddingComponent()Landroidx/window/extensions/embedding/ActivityEmbeddingComponent;
.locals 0
.line 88
invoke-virtual {p0}, Landroidx/window/embedding/EmbeddingCompat$Companion;->isEmbeddingAvailable()Z
move-result p0
if-eqz p0, :cond_0
.line 89
invoke-static {}, Landroidx/window/extensions/WindowExtensionsProvider;->getWindowExtensions()Landroidx/window/extensions/WindowExtensions;
move-result-object p0
invoke-interface {p0}, Landroidx/window/extensions/WindowExtensions;->getActivityEmbeddingComponent()Landroidx/window/extensions/embedding/ActivityEmbeddingComponent;
move-result-object p0
if-nez p0, :cond_1
.line 90
new-instance p0, Landroidx/window/embedding/EmptyEmbeddingComponent;
invoke-direct {p0}, Landroidx/window/embedding/EmptyEmbeddingComponent;-><init>()V
check-cast p0, Landroidx/window/extensions/embedding/ActivityEmbeddingComponent;
goto :goto_0
.line 92
:cond_0
new-instance p0, Landroidx/window/embedding/EmptyEmbeddingComponent;
invoke-direct {p0}, Landroidx/window/embedding/EmptyEmbeddingComponent;-><init>()V
check-cast p0, Landroidx/window/extensions/embedding/ActivityEmbeddingComponent;
:cond_1
:goto_0
return-object p0
.end method
.method public final getExtensionApiLevel()Ljava/lang/Integer;
.locals 2
const-string p0, "EmbeddingCompat"
const/4 v0, 0x0
.line 57
:try_start_0
invoke-static {}, Landroidx/window/extensions/WindowExtensionsProvider;->getWindowExtensions()Landroidx/window/extensions/WindowExtensions;
move-result-object v1
invoke-interface {v1}, Landroidx/window/extensions/WindowExtensions;->getVendorApiLevel()I
move-result v1
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
:try_end_0
.catch Ljava/lang/NoClassDefFoundError; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/lang/UnsupportedOperationException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
const-string v1, "Stub Extension"
.line 65
invoke-static {p0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 67
move-object p0, v0
check-cast p0, Ljava/lang/Integer;
goto :goto_0
:catch_1
const-string v1, "Embedding extension version not found"
.line 60
invoke-static {p0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 62
move-object p0, v0
check-cast p0, Ljava/lang/Integer;
:goto_0
return-object v0
.end method
.method public final isEmbeddingAvailable()Z
.locals 2
const-string p0, "EmbeddingCompat"
const/4 v0, 0x0
.line 73
:try_start_0
invoke-static {}, Landroidx/window/extensions/WindowExtensionsProvider;->getWindowExtensions()Landroidx/window/extensions/WindowExtensions;
move-result-object v1
invoke-interface {v1}, Landroidx/window/extensions/WindowExtensions;->getActivityEmbeddingComponent()Landroidx/window/extensions/embedding/ActivityEmbeddingComponent;
move-result-object p0
:try_end_0
.catch Ljava/lang/NoClassDefFoundError; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/lang/UnsupportedOperationException; {:try_start_0 .. :try_end_0} :catch_0
if-eqz p0, :cond_0
const/4 p0, 0x1
move v0, p0
goto :goto_0
:catch_0
const-string v1, "Stub Extension"
.line 81
invoke-static {p0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
goto :goto_0
:catch_1
const-string v1, "Embedding extension version not found"
.line 76
invoke-static {p0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
:cond_0
:goto_0
return v0
.end method