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

692 lines
21 KiB
Smali

.class public final Landroidx/window/layout/SidecarAdapter;
.super Ljava/lang/Object;
.source "SidecarAdapter.kt"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/window/layout/SidecarAdapter$Companion;
}
.end annotation
.annotation system Ldalvik/annotation/SourceDebugExtension;
value = "SMAP\nSidecarAdapter.kt\nKotlin\n*S Kotlin\n*F\n+ 1 SidecarAdapter.kt\nandroidx/window/layout/SidecarAdapter\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,324:1\n1601#2,9:325\n1849#2:334\n1850#2:336\n1610#2:337\n1#3:335\n*S KotlinDebug\n*F\n+ 1 SidecarAdapter.kt\nandroidx/window/layout/SidecarAdapter\n*L\n46#1:325,9\n46#1:334\n46#1:336\n46#1:337\n46#1:335\n*E\n"
.end annotation
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000B\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\u0005\u0008\u0000\u0018\u0000 \u00192\u00020\u0001:\u0001\u0019B\u000f\u0012\u0008\u0008\u0002\u0010\u0002\u001a\u00020\u0003\u00a2\u0006\u0002\u0010\u0004J\u001a\u0010\u0005\u001a\u00020\u00062\u0008\u0010\u0007\u001a\u0004\u0018\u00010\u00082\u0008\u0010\t\u001a\u0004\u0018\u00010\u0008J\u001c\u0010\n\u001a\u00020\u00062\u0008\u0010\u0007\u001a\u0004\u0018\u00010\u000b2\u0008\u0010\t\u001a\u0004\u0018\u00010\u000bH\u0002J(\u0010\u000c\u001a\u00020\u00062\u000e\u0010\u0007\u001a\n\u0012\u0004\u0012\u00020\u000b\u0018\u00010\r2\u000e\u0010\t\u001a\n\u0012\u0004\u0012\u00020\u000b\u0018\u00010\rH\u0002J\u001a\u0010\u000e\u001a\u00020\u00062\u0008\u0010\u0007\u001a\u0004\u0018\u00010\u000f2\u0008\u0010\t\u001a\u0004\u0018\u00010\u000fJ\u001f\u0010\u0010\u001a\u0004\u0018\u00010\u00112\u0006\u0010\u0012\u001a\u00020\u000b2\u0006\u0010\u0013\u001a\u00020\u0008H\u0000\u00a2\u0006\u0002\u0008\u0014J\u0018\u0010\u0010\u001a\u00020\u00152\u0008\u0010\u0016\u001a\u0004\u0018\u00010\u000f2\u0006\u0010\u0017\u001a\u00020\u0008J\"\u0010\u0010\u001a\u0008\u0012\u0004\u0012\u00020\u00110\r2\u000c\u0010\u0018\u001a\u0008\u0012\u0004\u0012\u00020\u000b0\r2\u0006\u0010\u0013\u001a\u00020\u0008R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004\u00a2\u0006\u0002\n\u0000\u00a8\u0006\u001a"
}
d2 = {
"Landroidx/window/layout/SidecarAdapter;",
"",
"verificationMode",
"Landroidx/window/core/SpecificationComputer$VerificationMode;",
"(Landroidx/window/core/SpecificationComputer$VerificationMode;)V",
"isEqualSidecarDeviceState",
"",
"first",
"Landroidx/window/sidecar/SidecarDeviceState;",
"second",
"isEqualSidecarDisplayFeature",
"Landroidx/window/sidecar/SidecarDisplayFeature;",
"isEqualSidecarDisplayFeatures",
"",
"isEqualSidecarWindowLayoutInfo",
"Landroidx/window/sidecar/SidecarWindowLayoutInfo;",
"translate",
"Landroidx/window/layout/DisplayFeature;",
"feature",
"deviceState",
"translate$window_release",
"Landroidx/window/layout/WindowLayoutInfo;",
"extensionInfo",
"state",
"sidecarDisplayFeatures",
"Companion",
"window_release"
}
k = 0x1
mv = {
0x1,
0x6,
0x0
}
xi = 0x30
.end annotation
# static fields
.field public static final Companion:Landroidx/window/layout/SidecarAdapter$Companion;
.field private static final TAG:Ljava/lang/String;
# instance fields
.field private final verificationMode:Landroidx/window/core/SpecificationComputer$VerificationMode;
# direct methods
.method static constructor <clinit>()V
.locals 2
new-instance v0, Landroidx/window/layout/SidecarAdapter$Companion;
const/4 v1, 0x0
invoke-direct {v0, v1}, Landroidx/window/layout/SidecarAdapter$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
sput-object v0, Landroidx/window/layout/SidecarAdapter;->Companion:Landroidx/window/layout/SidecarAdapter$Companion;
const-string v0, "SidecarAdapter"
sput-object v0, Landroidx/window/layout/SidecarAdapter;->TAG:Ljava/lang/String;
return-void
.end method
.method public constructor <init>()V
.locals 2
const/4 v0, 0x0
const/4 v1, 0x1
invoke-direct {p0, v0, v1, v0}, Landroidx/window/layout/SidecarAdapter;-><init>(Landroidx/window/core/SpecificationComputer$VerificationMode;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
return-void
.end method
.method public constructor <init>(Landroidx/window/core/SpecificationComputer$VerificationMode;)V
.locals 1
const-string v0, "verificationMode"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 40
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/window/layout/SidecarAdapter;->verificationMode:Landroidx/window/core/SpecificationComputer$VerificationMode;
return-void
.end method
.method public synthetic constructor <init>(Landroidx/window/core/SpecificationComputer$VerificationMode;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
.locals 0
and-int/lit8 p2, p2, 0x1
if-eqz p2, :cond_0
.line 40
sget-object p1, Landroidx/window/core/SpecificationComputer$VerificationMode;->QUIET:Landroidx/window/core/SpecificationComputer$VerificationMode;
:cond_0
invoke-direct {p0, p1}, Landroidx/window/layout/SidecarAdapter;-><init>(Landroidx/window/core/SpecificationComputer$VerificationMode;)V
return-void
.end method
.method private final isEqualSidecarDisplayFeature(Landroidx/window/sidecar/SidecarDisplayFeature;Landroidx/window/sidecar/SidecarDisplayFeature;)Z
.locals 2
.line 132
invoke-static {p1, p2}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p0
if-eqz p0, :cond_0
const/4 p0, 0x1
return p0
:cond_0
const/4 p0, 0x0
if-nez p1, :cond_1
return p0
:cond_1
if-nez p2, :cond_2
return p0
.line 141
:cond_2
invoke-virtual {p1}, Landroidx/window/sidecar/SidecarDisplayFeature;->getType()I
move-result v0
invoke-virtual {p2}, Landroidx/window/sidecar/SidecarDisplayFeature;->getType()I
move-result v1
if-eq v0, v1, :cond_3
return p0
.line 144
:cond_3
invoke-virtual {p1}, Landroidx/window/sidecar/SidecarDisplayFeature;->getRect()Landroid/graphics/Rect;
move-result-object p0
invoke-virtual {p2}, Landroidx/window/sidecar/SidecarDisplayFeature;->getRect()Landroid/graphics/Rect;
move-result-object p1
invoke-static {p0, p1}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p0
return p0
.end method
.method private final isEqualSidecarDisplayFeatures(Ljava/util/List;Ljava/util/List;)Z
.locals 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Landroidx/window/sidecar/SidecarDisplayFeature;",
">;",
"Ljava/util/List<",
"Landroidx/window/sidecar/SidecarDisplayFeature;",
">;)Z"
}
.end annotation
const/4 v0, 0x1
if-ne p1, p2, :cond_0
return v0
:cond_0
const/4 v1, 0x0
if-nez p1, :cond_1
return v1
:cond_1
if-nez p2, :cond_2
return v1
.line 115
:cond_2
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v2
invoke-interface {p2}, Ljava/util/List;->size()I
move-result v3
if-eq v2, v3, :cond_3
return v1
.line 118
:cond_3
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v2
move v3, v1
:goto_0
if-ge v3, v2, :cond_5
add-int/lit8 v4, v3, 0x1
.line 119
invoke-interface {p1, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v5
check-cast v5, Landroidx/window/sidecar/SidecarDisplayFeature;
.line 120
invoke-interface {p2, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Landroidx/window/sidecar/SidecarDisplayFeature;
.line 121
invoke-direct {p0, v5, v3}, Landroidx/window/layout/SidecarAdapter;->isEqualSidecarDisplayFeature(Landroidx/window/sidecar/SidecarDisplayFeature;Landroidx/window/sidecar/SidecarDisplayFeature;)Z
move-result v3
if-nez v3, :cond_4
return v1
:cond_4
move v3, v4
goto :goto_0
:cond_5
return v0
.end method
# virtual methods
.method public final isEqualSidecarDeviceState(Landroidx/window/sidecar/SidecarDeviceState;Landroidx/window/sidecar/SidecarDeviceState;)Z
.locals 2
.line 70
invoke-static {p1, p2}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p0
const/4 v0, 0x1
if-eqz p0, :cond_0
return v0
:cond_0
const/4 p0, 0x0
if-nez p1, :cond_1
return p0
:cond_1
if-nez p2, :cond_2
return p0
:cond_2
sget-object v1, Landroidx/window/layout/SidecarAdapter;->Companion:Landroidx/window/layout/SidecarAdapter$Companion;
.line 79
invoke-virtual {v1, p1}, Landroidx/window/layout/SidecarAdapter$Companion;->getSidecarDevicePosture$window_release(Landroidx/window/sidecar/SidecarDeviceState;)I
move-result p1
.line 80
invoke-virtual {v1, p2}, Landroidx/window/layout/SidecarAdapter$Companion;->getSidecarDevicePosture$window_release(Landroidx/window/sidecar/SidecarDeviceState;)I
move-result p2
if-ne p1, p2, :cond_3
goto :goto_0
:cond_3
move v0, p0
:goto_0
return v0
.end method
.method public final isEqualSidecarWindowLayoutInfo(Landroidx/window/sidecar/SidecarWindowLayoutInfo;Landroidx/window/sidecar/SidecarWindowLayoutInfo;)Z
.locals 1
.line 88
invoke-static {p1, p2}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
const/4 p0, 0x1
return p0
:cond_0
const/4 v0, 0x0
if-nez p1, :cond_1
return v0
:cond_1
if-nez p2, :cond_2
return v0
:cond_2
sget-object v0, Landroidx/window/layout/SidecarAdapter;->Companion:Landroidx/window/layout/SidecarAdapter$Companion;
.line 97
invoke-virtual {v0, p1}, Landroidx/window/layout/SidecarAdapter$Companion;->getSidecarDisplayFeatures(Landroidx/window/sidecar/SidecarWindowLayoutInfo;)Ljava/util/List;
move-result-object p1
.line 98
invoke-virtual {v0, p2}, Landroidx/window/layout/SidecarAdapter$Companion;->getSidecarDisplayFeatures(Landroidx/window/sidecar/SidecarWindowLayoutInfo;)Ljava/util/List;
move-result-object p2
.line 99
invoke-direct {p0, p1, p2}, Landroidx/window/layout/SidecarAdapter;->isEqualSidecarDisplayFeatures(Ljava/util/List;Ljava/util/List;)Z
move-result p0
return p0
.end method
.method public final translate(Landroidx/window/sidecar/SidecarWindowLayoutInfo;Landroidx/window/sidecar/SidecarDeviceState;)Landroidx/window/layout/WindowLayoutInfo;
.locals 2
const-string v0, "state"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
if-nez p1, :cond_0
.line 56
new-instance p0, Landroidx/window/layout/WindowLayoutInfo;
invoke-static {}, Lkotlin/collections/CollectionsKt;->emptyList()Ljava/util/List;
move-result-object p1
invoke-direct {p0, p1}, Landroidx/window/layout/WindowLayoutInfo;-><init>(Ljava/util/List;)V
return-object p0
.line 58
:cond_0
new-instance v0, Landroidx/window/sidecar/SidecarDeviceState;
invoke-direct {v0}, Landroidx/window/sidecar/SidecarDeviceState;-><init>()V
sget-object v1, Landroidx/window/layout/SidecarAdapter;->Companion:Landroidx/window/layout/SidecarAdapter$Companion;
.line 59
invoke-virtual {v1, p2}, Landroidx/window/layout/SidecarAdapter$Companion;->getSidecarDevicePosture$window_release(Landroidx/window/sidecar/SidecarDeviceState;)I
move-result p2
.line 60
invoke-virtual {v1, v0, p2}, Landroidx/window/layout/SidecarAdapter$Companion;->setSidecarDevicePosture(Landroidx/window/sidecar/SidecarDeviceState;I)V
.line 61
invoke-virtual {v1, p1}, Landroidx/window/layout/SidecarAdapter$Companion;->getSidecarDisplayFeatures(Landroidx/window/sidecar/SidecarWindowLayoutInfo;)Ljava/util/List;
move-result-object p1
.line 62
invoke-virtual {p0, p1, v0}, Landroidx/window/layout/SidecarAdapter;->translate(Ljava/util/List;Landroidx/window/sidecar/SidecarDeviceState;)Ljava/util/List;
move-result-object p0
.line 63
new-instance p1, Landroidx/window/layout/WindowLayoutInfo;
invoke-direct {p1, p0}, Landroidx/window/layout/WindowLayoutInfo;-><init>(Ljava/util/List;)V
return-object p1
.end method
.method public final translate(Ljava/util/List;Landroidx/window/sidecar/SidecarDeviceState;)Ljava/util/List;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Landroidx/window/sidecar/SidecarDisplayFeature;",
">;",
"Landroidx/window/sidecar/SidecarDeviceState;",
")",
"Ljava/util/List<",
"Landroidx/window/layout/DisplayFeature;",
">;"
}
.end annotation
const-string v0, "sidecarDisplayFeatures"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "deviceState"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 46
check-cast p1, Ljava/lang/Iterable;
.line 325
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
check-cast v0, Ljava/util/Collection;
.line 334
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object p1
:goto_0
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_1
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
.line 333
check-cast v1, Landroidx/window/sidecar/SidecarDisplayFeature;
.line 47
invoke-virtual {p0, v1, p2}, Landroidx/window/layout/SidecarAdapter;->translate$window_release(Landroidx/window/sidecar/SidecarDisplayFeature;Landroidx/window/sidecar/SidecarDeviceState;)Landroidx/window/layout/DisplayFeature;
move-result-object v1
if-nez v1, :cond_0
goto :goto_0
.line 333
:cond_0
invoke-interface {v0, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
goto :goto_0
.line 337
:cond_1
check-cast v0, Ljava/util/List;
return-object v0
.end method
.method public final translate$window_release(Landroidx/window/sidecar/SidecarDisplayFeature;Landroidx/window/sidecar/SidecarDeviceState;)Landroidx/window/layout/DisplayFeature;
.locals 8
const-string v0, "feature"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "deviceState"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 159
sget-object v1, Landroidx/window/core/SpecificationComputer;->Companion:Landroidx/window/core/SpecificationComputer$Companion;
sget-object v3, Landroidx/window/layout/SidecarAdapter;->TAG:Ljava/lang/String;
const-string v0, "TAG"
invoke-static {v3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v4, p0, Landroidx/window/layout/SidecarAdapter;->verificationMode:Landroidx/window/core/SpecificationComputer$VerificationMode;
const/4 v5, 0x0
const/4 v6, 0x4
const/4 v7, 0x0
move-object v2, p1
invoke-static/range {v1 .. v7}, Landroidx/window/core/SpecificationComputer$Companion;->startSpecification$default(Landroidx/window/core/SpecificationComputer$Companion;Ljava/lang/Object;Ljava/lang/String;Landroidx/window/core/SpecificationComputer$VerificationMode;Landroidx/window/core/Logger;ILjava/lang/Object;)Landroidx/window/core/SpecificationComputer;
move-result-object p0
.line 160
sget-object v0, Landroidx/window/layout/SidecarAdapter$translate$checkedFeature$1;->INSTANCE:Landroidx/window/layout/SidecarAdapter$translate$checkedFeature$1;
check-cast v0, Lkotlin/jvm/functions/Function1;
const-string v1, "Type must be either TYPE_FOLD or TYPE_HINGE"
invoke-virtual {p0, v1, v0}, Landroidx/window/core/SpecificationComputer;->require(Ljava/lang/String;Lkotlin/jvm/functions/Function1;)Landroidx/window/core/SpecificationComputer;
move-result-object p0
.line 163
sget-object v0, Landroidx/window/layout/SidecarAdapter$translate$checkedFeature$2;->INSTANCE:Landroidx/window/layout/SidecarAdapter$translate$checkedFeature$2;
check-cast v0, Lkotlin/jvm/functions/Function1;
const-string v1, "Feature bounds must not be 0"
invoke-virtual {p0, v1, v0}, Landroidx/window/core/SpecificationComputer;->require(Ljava/lang/String;Lkotlin/jvm/functions/Function1;)Landroidx/window/core/SpecificationComputer;
move-result-object p0
.line 164
sget-object v0, Landroidx/window/layout/SidecarAdapter$translate$checkedFeature$3;->INSTANCE:Landroidx/window/layout/SidecarAdapter$translate$checkedFeature$3;
check-cast v0, Lkotlin/jvm/functions/Function1;
const-string v1, "TYPE_FOLD must have 0 area"
invoke-virtual {p0, v1, v0}, Landroidx/window/core/SpecificationComputer;->require(Ljava/lang/String;Lkotlin/jvm/functions/Function1;)Landroidx/window/core/SpecificationComputer;
move-result-object p0
.line 171
sget-object v0, Landroidx/window/layout/SidecarAdapter$translate$checkedFeature$4;->INSTANCE:Landroidx/window/layout/SidecarAdapter$translate$checkedFeature$4;
check-cast v0, Lkotlin/jvm/functions/Function1;
const-string v1, "Feature be pinned to either left or top"
invoke-virtual {p0, v1, v0}, Landroidx/window/core/SpecificationComputer;->require(Ljava/lang/String;Lkotlin/jvm/functions/Function1;)Landroidx/window/core/SpecificationComputer;
move-result-object p0
.line 174
invoke-virtual {p0}, Landroidx/window/core/SpecificationComputer;->compute()Ljava/lang/Object;
move-result-object p0
check-cast p0, Landroidx/window/sidecar/SidecarDisplayFeature;
const/4 v0, 0x0
if-nez p0, :cond_0
return-object v0
.line 175
:cond_0
invoke-virtual {p0}, Landroidx/window/sidecar/SidecarDisplayFeature;->getType()I
move-result p0
const/4 v1, 0x2
const/4 v2, 0x1
if-eq p0, v2, :cond_2
if-eq p0, v1, :cond_1
return-object v0
.line 177
:cond_1
sget-object p0, Landroidx/window/layout/HardwareFoldingFeature$Type;->Companion:Landroidx/window/layout/HardwareFoldingFeature$Type$Companion;
invoke-virtual {p0}, Landroidx/window/layout/HardwareFoldingFeature$Type$Companion;->getHINGE()Landroidx/window/layout/HardwareFoldingFeature$Type;
move-result-object p0
goto :goto_0
.line 176
:cond_2
sget-object p0, Landroidx/window/layout/HardwareFoldingFeature$Type;->Companion:Landroidx/window/layout/HardwareFoldingFeature$Type$Companion;
invoke-virtual {p0}, Landroidx/window/layout/HardwareFoldingFeature$Type$Companion;->getFOLD()Landroidx/window/layout/HardwareFoldingFeature$Type;
move-result-object p0
:goto_0
sget-object v3, Landroidx/window/layout/SidecarAdapter;->Companion:Landroidx/window/layout/SidecarAdapter$Companion;
.line 182
invoke-virtual {v3, p2}, Landroidx/window/layout/SidecarAdapter$Companion;->getSidecarDevicePosture$window_release(Landroidx/window/sidecar/SidecarDeviceState;)I
move-result p2
if-eqz p2, :cond_5
if-eq p2, v2, :cond_5
if-eq p2, v1, :cond_4
const/4 v1, 0x3
if-eq p2, v1, :cond_3
const/4 v1, 0x4
if-eq p2, v1, :cond_5
.line 188
sget-object p2, Landroidx/window/layout/FoldingFeature$State;->FLAT:Landroidx/window/layout/FoldingFeature$State;
goto :goto_1
.line 187
:cond_3
sget-object p2, Landroidx/window/layout/FoldingFeature$State;->FLAT:Landroidx/window/layout/FoldingFeature$State;
goto :goto_1
.line 186
:cond_4
sget-object p2, Landroidx/window/layout/FoldingFeature$State;->HALF_OPENED:Landroidx/window/layout/FoldingFeature$State;
.line 190
:goto_1
new-instance v0, Landroidx/window/layout/HardwareFoldingFeature;
new-instance v1, Landroidx/window/core/Bounds;
invoke-virtual {p1}, Landroidx/window/sidecar/SidecarDisplayFeature;->getRect()Landroid/graphics/Rect;
move-result-object p1
const-string v2, "feature.rect"
invoke-static {p1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {v1, p1}, Landroidx/window/core/Bounds;-><init>(Landroid/graphics/Rect;)V
invoke-direct {v0, v1, p0, p2}, Landroidx/window/layout/HardwareFoldingFeature;-><init>(Landroidx/window/core/Bounds;Landroidx/window/layout/HardwareFoldingFeature$Type;Landroidx/window/layout/FoldingFeature$State;)V
check-cast v0, Landroidx/window/layout/DisplayFeature;
:cond_5
return-object v0
.end method