mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-27 09:32:27 -06:00
387 lines
11 KiB
Smali
387 lines
11 KiB
Smali
.class public final Landroidx/window/layout/ExtensionsWindowLayoutInfoAdapter;
|
|
.super Ljava/lang/Object;
|
|
.source "ExtensionsWindowLayoutInfoAdapter.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/SourceDebugExtension;
|
|
value = "SMAP\nExtensionsWindowLayoutInfoAdapter.kt\nKotlin\n*S Kotlin\n*F\n+ 1 ExtensionsWindowLayoutInfoAdapter.kt\nandroidx/window/layout/ExtensionsWindowLayoutInfoAdapter\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,89:1\n1601#2,9:90\n1849#2:99\n1850#2:101\n1610#2:102\n1#3:100\n*S KotlinDebug\n*F\n+ 1 ExtensionsWindowLayoutInfoAdapter.kt\nandroidx/window/layout/ExtensionsWindowLayoutInfoAdapter\n*L\n51#1:90,9\n51#1:99\n51#1:101\n51#1:102\n51#1:100\n*E\n"
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
d1 = {
|
|
"\u00006\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000\u0008\u00c0\u0002\u0018\u00002\u00020\u0001B\u0007\u0008\u0002\u00a2\u0006\u0002\u0010\u0002J\u001f\u0010\u0003\u001a\u0004\u0018\u00010\u00042\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\u0008H\u0000\u00a2\u0006\u0002\u0008\tJ\u001d\u0010\u0003\u001a\u00020\n2\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u000b\u001a\u00020\u000cH\u0000\u00a2\u0006\u0002\u0008\tJ\u0018\u0010\r\u001a\u00020\u000e2\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u000f\u001a\u00020\u0010H\u0002\u00a8\u0006\u0011"
|
|
}
|
|
d2 = {
|
|
"Landroidx/window/layout/ExtensionsWindowLayoutInfoAdapter;",
|
|
"",
|
|
"()V",
|
|
"translate",
|
|
"Landroidx/window/layout/FoldingFeature;",
|
|
"activity",
|
|
"Landroid/app/Activity;",
|
|
"oemFeature",
|
|
"Landroidx/window/extensions/layout/FoldingFeature;",
|
|
"translate$window_release",
|
|
"Landroidx/window/layout/WindowLayoutInfo;",
|
|
"info",
|
|
"Landroidx/window/extensions/layout/WindowLayoutInfo;",
|
|
"validBounds",
|
|
"",
|
|
"bounds",
|
|
"Landroidx/window/core/Bounds;",
|
|
"window_release"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x1,
|
|
0x6,
|
|
0x0
|
|
}
|
|
xi = 0x30
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final INSTANCE:Landroidx/window/layout/ExtensionsWindowLayoutInfoAdapter;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
new-instance v0, Landroidx/window/layout/ExtensionsWindowLayoutInfoAdapter;
|
|
|
|
invoke-direct {v0}, Landroidx/window/layout/ExtensionsWindowLayoutInfoAdapter;-><init>()V
|
|
|
|
sput-object v0, Landroidx/window/layout/ExtensionsWindowLayoutInfoAdapter;->INSTANCE:Landroidx/window/layout/ExtensionsWindowLayoutInfoAdapter;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 29
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final validBounds(Landroid/app/Activity;Landroidx/window/core/Bounds;)Z
|
|
.locals 2
|
|
|
|
.line 73
|
|
sget-object p0, Landroidx/window/layout/WindowMetricsCalculatorCompat;->INSTANCE:Landroidx/window/layout/WindowMetricsCalculatorCompat;
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/window/layout/WindowMetricsCalculatorCompat;->computeCurrentWindowMetrics(Landroid/app/Activity;)Landroidx/window/layout/WindowMetrics;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Landroidx/window/layout/WindowMetrics;->getBounds()Landroid/graphics/Rect;
|
|
|
|
move-result-object p0
|
|
|
|
.line 74
|
|
invoke-virtual {p2}, Landroidx/window/core/Bounds;->isZero()Z
|
|
|
|
move-result p1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
return v0
|
|
|
|
.line 77
|
|
:cond_0
|
|
invoke-virtual {p2}, Landroidx/window/core/Bounds;->getWidth()I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0}, Landroid/graphics/Rect;->width()I
|
|
|
|
move-result v1
|
|
|
|
if-eq p1, v1, :cond_1
|
|
|
|
invoke-virtual {p2}, Landroidx/window/core/Bounds;->getHeight()I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0}, Landroid/graphics/Rect;->height()I
|
|
|
|
move-result v1
|
|
|
|
if-eq p1, v1, :cond_1
|
|
|
|
return v0
|
|
|
|
.line 80
|
|
:cond_1
|
|
invoke-virtual {p2}, Landroidx/window/core/Bounds;->getWidth()I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0}, Landroid/graphics/Rect;->width()I
|
|
|
|
move-result v1
|
|
|
|
if-ge p1, v1, :cond_2
|
|
|
|
invoke-virtual {p2}, Landroidx/window/core/Bounds;->getHeight()I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0}, Landroid/graphics/Rect;->height()I
|
|
|
|
move-result v1
|
|
|
|
if-ge p1, v1, :cond_2
|
|
|
|
return v0
|
|
|
|
.line 83
|
|
:cond_2
|
|
invoke-virtual {p2}, Landroidx/window/core/Bounds;->getWidth()I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0}, Landroid/graphics/Rect;->width()I
|
|
|
|
move-result v1
|
|
|
|
if-ne p1, v1, :cond_3
|
|
|
|
invoke-virtual {p2}, Landroidx/window/core/Bounds;->getHeight()I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0}, Landroid/graphics/Rect;->height()I
|
|
|
|
move-result p0
|
|
|
|
if-ne p1, p0, :cond_3
|
|
|
|
return v0
|
|
|
|
:cond_3
|
|
const/4 p0, 0x1
|
|
|
|
return p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final translate$window_release(Landroid/app/Activity;Landroidx/window/extensions/layout/FoldingFeature;)Landroidx/window/layout/FoldingFeature;
|
|
.locals 6
|
|
|
|
const-string v0, "activity"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "oemFeature"
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 32
|
|
invoke-virtual {p2}, Landroidx/window/extensions/layout/FoldingFeature;->getType()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x2
|
|
|
|
const/4 v2, 0x1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-eq v0, v2, :cond_1
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
return-object v3
|
|
|
|
.line 34
|
|
:cond_0
|
|
sget-object v0, Landroidx/window/layout/HardwareFoldingFeature$Type;->Companion:Landroidx/window/layout/HardwareFoldingFeature$Type$Companion;
|
|
|
|
invoke-virtual {v0}, Landroidx/window/layout/HardwareFoldingFeature$Type$Companion;->getHINGE()Landroidx/window/layout/HardwareFoldingFeature$Type;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
.line 33
|
|
:cond_1
|
|
sget-object v0, Landroidx/window/layout/HardwareFoldingFeature$Type;->Companion:Landroidx/window/layout/HardwareFoldingFeature$Type$Companion;
|
|
|
|
invoke-virtual {v0}, Landroidx/window/layout/HardwareFoldingFeature$Type$Companion;->getFOLD()Landroidx/window/layout/HardwareFoldingFeature$Type;
|
|
|
|
move-result-object v0
|
|
|
|
.line 37
|
|
:goto_0
|
|
invoke-virtual {p2}, Landroidx/window/extensions/layout/FoldingFeature;->getState()I
|
|
|
|
move-result v4
|
|
|
|
if-eq v4, v2, :cond_3
|
|
|
|
if-eq v4, v1, :cond_2
|
|
|
|
return-object v3
|
|
|
|
.line 39
|
|
:cond_2
|
|
sget-object v1, Landroidx/window/layout/FoldingFeature$State;->HALF_OPENED:Landroidx/window/layout/FoldingFeature$State;
|
|
|
|
goto :goto_1
|
|
|
|
.line 38
|
|
:cond_3
|
|
sget-object v1, Landroidx/window/layout/FoldingFeature$State;->FLAT:Landroidx/window/layout/FoldingFeature$State;
|
|
|
|
.line 42
|
|
:goto_1
|
|
new-instance v2, Landroidx/window/core/Bounds;
|
|
|
|
invoke-virtual {p2}, Landroidx/window/extensions/layout/FoldingFeature;->getBounds()Landroid/graphics/Rect;
|
|
|
|
move-result-object v4
|
|
|
|
const-string v5, "oemFeature.bounds"
|
|
|
|
invoke-static {v4, v5}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-direct {v2, v4}, Landroidx/window/core/Bounds;-><init>(Landroid/graphics/Rect;)V
|
|
|
|
.line 43
|
|
invoke-direct {p0, p1, v2}, Landroidx/window/layout/ExtensionsWindowLayoutInfoAdapter;->validBounds(Landroid/app/Activity;Landroidx/window/core/Bounds;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_4
|
|
|
|
.line 44
|
|
new-instance p0, Landroidx/window/layout/HardwareFoldingFeature;
|
|
|
|
new-instance p1, Landroidx/window/core/Bounds;
|
|
|
|
invoke-virtual {p2}, Landroidx/window/extensions/layout/FoldingFeature;->getBounds()Landroid/graphics/Rect;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-static {p2, v5}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-direct {p1, p2}, Landroidx/window/core/Bounds;-><init>(Landroid/graphics/Rect;)V
|
|
|
|
invoke-direct {p0, p1, v0, v1}, Landroidx/window/layout/HardwareFoldingFeature;-><init>(Landroidx/window/core/Bounds;Landroidx/window/layout/HardwareFoldingFeature$Type;Landroidx/window/layout/FoldingFeature$State;)V
|
|
|
|
move-object v3, p0
|
|
|
|
check-cast v3, Landroidx/window/layout/FoldingFeature;
|
|
|
|
goto :goto_2
|
|
|
|
.line 46
|
|
:cond_4
|
|
move-object p0, v3
|
|
|
|
check-cast p0, Landroidx/window/layout/FoldingFeature;
|
|
|
|
:goto_2
|
|
return-object v3
|
|
.end method
|
|
|
|
.method public final translate$window_release(Landroid/app/Activity;Landroidx/window/extensions/layout/WindowLayoutInfo;)Landroidx/window/layout/WindowLayoutInfo;
|
|
.locals 3
|
|
|
|
const-string p0, "activity"
|
|
|
|
invoke-static {p1, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string p0, "info"
|
|
|
|
invoke-static {p2, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 51
|
|
invoke-virtual {p2}, Landroidx/window/extensions/layout/WindowLayoutInfo;->getDisplayFeatures()Ljava/util/List;
|
|
|
|
move-result-object p0
|
|
|
|
const-string p2, "info.displayFeatures"
|
|
|
|
invoke-static {p0, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
check-cast p0, Ljava/lang/Iterable;
|
|
|
|
.line 90
|
|
new-instance p2, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {p2}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
check-cast p2, Ljava/util/Collection;
|
|
|
|
.line 99
|
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p0
|
|
|
|
:goto_0
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
.line 98
|
|
check-cast v0, Landroidx/window/extensions/layout/DisplayFeature;
|
|
|
|
.line 53
|
|
instance-of v1, v0, Landroidx/window/extensions/layout/FoldingFeature;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
sget-object v1, Landroidx/window/layout/ExtensionsWindowLayoutInfoAdapter;->INSTANCE:Landroidx/window/layout/ExtensionsWindowLayoutInfoAdapter;
|
|
|
|
const-string v2, "feature"
|
|
|
|
invoke-static {v0, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
check-cast v0, Landroidx/window/extensions/layout/FoldingFeature;
|
|
|
|
invoke-virtual {v1, p1, v0}, Landroidx/window/layout/ExtensionsWindowLayoutInfoAdapter;->translate$window_release(Landroid/app/Activity;Landroidx/window/extensions/layout/FoldingFeature;)Landroidx/window/layout/FoldingFeature;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_1
|
|
if-nez v0, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
.line 98
|
|
:cond_1
|
|
invoke-interface {p2, v0}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_0
|
|
|
|
.line 102
|
|
:cond_2
|
|
check-cast p2, Ljava/util/List;
|
|
|
|
.line 57
|
|
new-instance p0, Landroidx/window/layout/WindowLayoutInfo;
|
|
|
|
invoke-direct {p0, p2}, Landroidx/window/layout/WindowLayoutInfo;-><init>(Ljava/util/List;)V
|
|
|
|
return-object p0
|
|
.end method
|