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

133 lines
3.4 KiB
Smali

.class public final Landroidx/window/layout/HardwareFoldingFeature$Companion;
.super Ljava/lang/Object;
.source "HardwareFoldingFeature.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/window/layout/HardwareFoldingFeature;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Companion"
.end annotation
.annotation system Ldalvik/annotation/SourceDebugExtension;
value = "SMAP\nHardwareFoldingFeature.kt\nKotlin\n*S Kotlin\n*F\n+ 1 HardwareFoldingFeature.kt\nandroidx/window/layout/HardwareFoldingFeature$Companion\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,125:1\n1#2:126\n*E\n"
.end annotation
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0008\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\u0008\u0080\u0003\u0018\u00002\u00020\u0001B\u0007\u0008\u0002\u00a2\u0006\u0002\u0010\u0002J\u0015\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006H\u0000\u00a2\u0006\u0002\u0008\u0007\u00a8\u0006\u0008"
}
d2 = {
"Landroidx/window/layout/HardwareFoldingFeature$Companion;",
"",
"()V",
"validateFeatureBounds",
"",
"bounds",
"Landroidx/window/core/Bounds;",
"validateFeatureBounds$window_release",
"window_release"
}
k = 0x1
mv = {
0x1,
0x6,
0x0
}
xi = 0x30
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
.line 92
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/layout/HardwareFoldingFeature$Companion;-><init>()V
return-void
.end method
# virtual methods
.method public final validateFeatureBounds$window_release(Landroidx/window/core/Bounds;)V
.locals 0
const-string p0, "bounds"
invoke-static {p1, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 97
invoke-virtual {p1}, Landroidx/window/core/Bounds;->getWidth()I
move-result p0
if-nez p0, :cond_1
invoke-virtual {p1}, Landroidx/window/core/Bounds;->getHeight()I
move-result p0
if-eqz p0, :cond_0
goto :goto_0
:cond_0
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string p1, "Bounds must be non zero"
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.line 98
:cond_1
:goto_0
invoke-virtual {p1}, Landroidx/window/core/Bounds;->getLeft()I
move-result p0
if-eqz p0, :cond_3
invoke-virtual {p1}, Landroidx/window/core/Bounds;->getTop()I
move-result p0
if-nez p0, :cond_2
goto :goto_1
:cond_2
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string p1, "Bounding rectangle must start at the top or left window edge for folding features"
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
:cond_3
:goto_1
return-void
.end method