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

242 lines
8.4 KiB
Smali

.class public final Landroidx/window/layout/WindowInfoTracker$Companion;
.super Ljava/lang/Object;
.source "WindowInfoTracker.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/window/layout/WindowInfoTracker;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Companion"
.end annotation
.annotation system Ldalvik/annotation/SourceDebugExtension;
value = "SMAP\nWindowInfoTracker.kt\nKotlin\n*S Kotlin\n*F\n+ 1 WindowInfoTracker.kt\nandroidx/window/layout/WindowInfoTracker$Companion\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,116:1\n1#2:117\n*E\n"
.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\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\u0002\u0008\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\u0008\u0002\u00a2\u0006\u0002\u0010\u0002J\u0010\u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00020\u000cH\u0007J\u0010\u0010\r\u001a\u00020\u000e2\u0006\u0010\u000f\u001a\u00020\u0008H\u0007J\u0008\u0010\u0010\u001a\u00020\u000eH\u0007J\u0015\u0010\u0011\u001a\u00020\u00122\u0006\u0010\u000b\u001a\u00020\u000cH\u0000\u00a2\u0006\u0002\u0008\u0013R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082D\u00a2\u0006\u0002\n\u0000R\u0010\u0010\u0005\u001a\u0004\u0018\u00010\u0006X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0007\u001a\u00020\u0008X\u0082\u000e\u00a2\u0006\u0002\n\u0000\u00a8\u0006\u0014"
}
d2 = {
"Landroidx/window/layout/WindowInfoTracker$Companion;",
"",
"()V",
"DEBUG",
"",
"TAG",
"",
"decorator",
"Landroidx/window/layout/WindowInfoTrackerDecorator;",
"getOrCreate",
"Landroidx/window/layout/WindowInfoTracker;",
"context",
"Landroid/content/Context;",
"overrideDecorator",
"",
"overridingDecorator",
"reset",
"windowBackend",
"Landroidx/window/layout/WindowBackend;",
"windowBackend$window_release",
"window_release"
}
k = 0x1
mv = {
0x1,
0x6,
0x0
}
xi = 0x30
.end annotation
# static fields
.field static final synthetic $$INSTANCE:Landroidx/window/layout/WindowInfoTracker$Companion;
.field private static final DEBUG:Z
.field private static final TAG:Ljava/lang/String;
.field private static decorator:Landroidx/window/layout/WindowInfoTrackerDecorator;
# direct methods
.method static constructor <clinit>()V
.locals 1
new-instance v0, Landroidx/window/layout/WindowInfoTracker$Companion;
invoke-direct {v0}, Landroidx/window/layout/WindowInfoTracker$Companion;-><init>()V
sput-object v0, Landroidx/window/layout/WindowInfoTracker$Companion;->$$INSTANCE:Landroidx/window/layout/WindowInfoTracker$Companion;
.line 53
const-class v0, Landroidx/window/layout/WindowInfoTracker;
invoke-static {v0}, Lkotlin/jvm/internal/Reflection;->getOrCreateKotlinClass(Ljava/lang/Class;)Lkotlin/reflect/KClass;
move-result-object v0
invoke-interface {v0}, Lkotlin/reflect/KClass;->getSimpleName()Ljava/lang/String;
move-result-object v0
sput-object v0, Landroidx/window/layout/WindowInfoTracker$Companion;->TAG:Ljava/lang/String;
.line 55
sget-object v0, Landroidx/window/layout/EmptyDecorator;->INSTANCE:Landroidx/window/layout/EmptyDecorator;
check-cast v0, Landroidx/window/layout/WindowInfoTrackerDecorator;
sput-object v0, Landroidx/window/layout/WindowInfoTracker$Companion;->decorator:Landroidx/window/layout/WindowInfoTrackerDecorator;
return-void
.end method
.method private constructor <init>()V
.locals 0
.line 50
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final getOrCreate(Landroid/content/Context;)Landroidx/window/layout/WindowInfoTracker;
.locals 2
.annotation runtime Lkotlin/jvm/JvmStatic;
.end annotation
const-string v0, "context"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 67
new-instance v0, Landroidx/window/layout/WindowInfoTrackerImpl;
.line 68
sget-object v1, Landroidx/window/layout/WindowMetricsCalculatorCompat;->INSTANCE:Landroidx/window/layout/WindowMetricsCalculatorCompat;
check-cast v1, Landroidx/window/layout/WindowMetricsCalculator;
.line 69
invoke-virtual {p0, p1}, Landroidx/window/layout/WindowInfoTracker$Companion;->windowBackend$window_release(Landroid/content/Context;)Landroidx/window/layout/WindowBackend;
move-result-object p0
.line 67
invoke-direct {v0, v1, p0}, Landroidx/window/layout/WindowInfoTrackerImpl;-><init>(Landroidx/window/layout/WindowMetricsCalculator;Landroidx/window/layout/WindowBackend;)V
sget-object p0, Landroidx/window/layout/WindowInfoTracker$Companion;->decorator:Landroidx/window/layout/WindowInfoTrackerDecorator;
.line 71
check-cast v0, Landroidx/window/layout/WindowInfoTracker;
invoke-interface {p0, v0}, Landroidx/window/layout/WindowInfoTrackerDecorator;->decorate(Landroidx/window/layout/WindowInfoTracker;)Landroidx/window/layout/WindowInfoTracker;
move-result-object p0
return-object p0
.end method
.method public final overrideDecorator(Landroidx/window/layout/WindowInfoTrackerDecorator;)V
.locals 0
.annotation runtime Lkotlin/jvm/JvmStatic;
.end annotation
const-string p0, "overridingDecorator"
invoke-static {p1, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
sput-object p1, Landroidx/window/layout/WindowInfoTracker$Companion;->decorator:Landroidx/window/layout/WindowInfoTrackerDecorator;
return-void
.end method
.method public final reset()V
.locals 0
.annotation runtime Lkotlin/jvm/JvmStatic;
.end annotation
.line 97
sget-object p0, Landroidx/window/layout/EmptyDecorator;->INSTANCE:Landroidx/window/layout/EmptyDecorator;
check-cast p0, Landroidx/window/layout/WindowInfoTrackerDecorator;
sput-object p0, Landroidx/window/layout/WindowInfoTracker$Companion;->decorator:Landroidx/window/layout/WindowInfoTrackerDecorator;
return-void
.end method
.method public final windowBackend$window_release(Landroid/content/Context;)Landroidx/window/layout/WindowBackend;
.locals 2
const-string p0, "context"
invoke-static {p1, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const/4 p0, 0x0
.line 77
:try_start_0
sget-object v0, Landroidx/window/layout/SafeWindowLayoutComponentProvider;->INSTANCE:Landroidx/window/layout/SafeWindowLayoutComponentProvider;
invoke-virtual {v0}, Landroidx/window/layout/SafeWindowLayoutComponentProvider;->getWindowLayoutComponent()Landroidx/window/extensions/layout/WindowLayoutComponent;
move-result-object v0
if-nez v0, :cond_0
goto :goto_0
.line 78
:cond_0
new-instance v1, Landroidx/window/layout/ExtensionWindowLayoutInfoBackend;
invoke-direct {v1, v0}, Landroidx/window/layout/ExtensionWindowLayoutInfoBackend;-><init>(Landroidx/window/extensions/layout/WindowLayoutComponent;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
move-object p0, v1
goto :goto_0
:catchall_0
sget-boolean v0, Landroidx/window/layout/WindowInfoTracker$Companion;->DEBUG:Z
if-eqz v0, :cond_1
sget-object v0, Landroidx/window/layout/WindowInfoTracker$Companion;->TAG:Ljava/lang/String;
const-string v1, "Failed to load WindowExtensions"
.line 81
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 83
:cond_1
move-object v0, p0
check-cast v0, Landroidx/window/layout/ExtensionWindowLayoutInfoBackend;
:goto_0
if-nez p0, :cond_2
.line 85
sget-object p0, Landroidx/window/layout/SidecarWindowBackend;->Companion:Landroidx/window/layout/SidecarWindowBackend$Companion;
invoke-virtual {p0, p1}, Landroidx/window/layout/SidecarWindowBackend$Companion;->getInstance(Landroid/content/Context;)Landroidx/window/layout/SidecarWindowBackend;
move-result-object p0
:cond_2
check-cast p0, Landroidx/window/layout/WindowBackend;
return-object p0
.end method