mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-18 20:07:19 +01:00
95 lines
5.8 KiB
Java
95 lines
5.8 KiB
Java
package androidx.compose.foundation.layout;
|
|
|
|
import androidx.compose.runtime.Stable;
|
|
import androidx.compose.ui.unit.Density;
|
|
import androidx.compose.ui.unit.LayoutDirection;
|
|
import com.amazon.alexa.ra.core.ui.markdown.parser.formatter.MarkdownConstants;
|
|
import com.amazon.alexa.redesign.view.container.CardStudioAgentSpaceMetrics;
|
|
import com.facebook.react.uimanager.ViewProps;
|
|
import kotlin.Metadata;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Stable
|
|
@Metadata(d1 = {"\u0000<\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000e\n\u0000\b\u0003\u0018\u00002\u00020\u0001B\u0015\u0012\u0006\u0010\u0002\u001a\u00020\u0001\u0012\u0006\u0010\u0003\u001a\u00020\u0004¢\u0006\u0002\u0010\u0005J\u0013\u0010\u000b\u001a\u00020\f2\b\u0010\r\u001a\u0004\u0018\u00010\u000eH\u0096\u0002J\u0010\u0010\u000f\u001a\u00020\u00102\u0006\u0010\u0011\u001a\u00020\u0012H\u0016J\u0018\u0010\u0013\u001a\u00020\u00102\u0006\u0010\u0011\u001a\u00020\u00122\u0006\u0010\u0014\u001a\u00020\u0015H\u0016J\u0018\u0010\u0016\u001a\u00020\u00102\u0006\u0010\u0011\u001a\u00020\u00122\u0006\u0010\u0014\u001a\u00020\u0015H\u0016J\u0010\u0010\u0017\u001a\u00020\u00102\u0006\u0010\u0011\u001a\u00020\u0012H\u0016J\b\u0010\u0018\u001a\u00020\u0010H\u0016J\b\u0010\u0019\u001a\u00020\u001aH\u0016R\u0011\u0010\u0002\u001a\u00020\u0001¢\u0006\b\n\u0000\u001a\u0004\b\u0006\u0010\u0007R\u0019\u0010\u0003\u001a\u00020\u0004ø\u0001\u0000ø\u0001\u0001¢\u0006\n\n\u0002\u0010\n\u001a\u0004\b\b\u0010\t\u0082\u0002\u000b\n\u0005\b¡\u001e0\u0001\n\u0002\b!¨\u0006\u001b"}, d2 = {"Landroidx/compose/foundation/layout/LimitInsets;", "Landroidx/compose/foundation/layout/WindowInsets;", "insets", "sides", "Landroidx/compose/foundation/layout/WindowInsetsSides;", "(Landroidx/compose/foundation/layout/WindowInsets;ILkotlin/jvm/internal/DefaultConstructorMarker;)V", "getInsets", "()Landroidx/compose/foundation/layout/WindowInsets;", "getSides-JoeWqyM", "()I", "I", "equals", "", CardStudioAgentSpaceMetrics.DimensionValue.SCHEME_OTHER, "", "getBottom", "", "density", "Landroidx/compose/ui/unit/Density;", "getLeft", ViewProps.LAYOUT_DIRECTION, "Landroidx/compose/ui/unit/LayoutDirection;", "getRight", "getTop", "hashCode", "toString", "", "foundation-layout_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
final class LimitInsets implements WindowInsets {
|
|
|
|
@NotNull
|
|
private final WindowInsets insets;
|
|
private final int sides;
|
|
|
|
private LimitInsets(WindowInsets windowInsets, int i) {
|
|
this.insets = windowInsets;
|
|
this.sides = i;
|
|
}
|
|
|
|
public boolean equals(@Nullable Object other) {
|
|
if (this == other) {
|
|
return true;
|
|
}
|
|
if (!(other instanceof LimitInsets)) {
|
|
return false;
|
|
}
|
|
LimitInsets limitInsets = (LimitInsets) other;
|
|
return Intrinsics.areEqual(this.insets, limitInsets.insets) && WindowInsetsSides.m945equalsimpl0(this.sides, limitInsets.sides);
|
|
}
|
|
|
|
@Override // androidx.compose.foundation.layout.WindowInsets
|
|
public int getBottom(@NotNull Density density) {
|
|
if (WindowInsetsSides.m946hasAnybkgdKaI$foundation_layout_release(this.sides, WindowInsetsSides.INSTANCE.m956getBottomJoeWqyM())) {
|
|
return this.insets.getBottom(density);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
@NotNull
|
|
public final WindowInsets getInsets() {
|
|
return this.insets;
|
|
}
|
|
|
|
@Override // androidx.compose.foundation.layout.WindowInsets
|
|
public int getLeft(@NotNull Density density, @NotNull LayoutDirection layoutDirection) {
|
|
if (WindowInsetsSides.m946hasAnybkgdKaI$foundation_layout_release(this.sides, layoutDirection == LayoutDirection.Ltr ? WindowInsetsSides.INSTANCE.m952getAllowLeftInLtrJoeWqyM$foundation_layout_release() : WindowInsetsSides.INSTANCE.m953getAllowLeftInRtlJoeWqyM$foundation_layout_release())) {
|
|
return this.insets.getLeft(density, layoutDirection);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
@Override // androidx.compose.foundation.layout.WindowInsets
|
|
public int getRight(@NotNull Density density, @NotNull LayoutDirection layoutDirection) {
|
|
if (WindowInsetsSides.m946hasAnybkgdKaI$foundation_layout_release(this.sides, layoutDirection == LayoutDirection.Ltr ? WindowInsetsSides.INSTANCE.m954getAllowRightInLtrJoeWqyM$foundation_layout_release() : WindowInsetsSides.INSTANCE.m955getAllowRightInRtlJoeWqyM$foundation_layout_release())) {
|
|
return this.insets.getRight(density, layoutDirection);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
/* renamed from: getSides-JoeWqyM, reason: not valid java name and from getter */
|
|
public final int getSides() {
|
|
return this.sides;
|
|
}
|
|
|
|
@Override // androidx.compose.foundation.layout.WindowInsets
|
|
public int getTop(@NotNull Density density) {
|
|
if (WindowInsetsSides.m946hasAnybkgdKaI$foundation_layout_release(this.sides, WindowInsetsSides.INSTANCE.m962getTopJoeWqyM())) {
|
|
return this.insets.getTop(density);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
public int hashCode() {
|
|
return WindowInsetsSides.m947hashCodeimpl(this.sides) + (this.insets.hashCode() * 31);
|
|
}
|
|
|
|
@NotNull
|
|
public String toString() {
|
|
return MarkdownConstants.LEFT_PARENTHESIS + this.insets + " only " + ((Object) WindowInsetsSides.m949toStringimpl(this.sides)) + ')';
|
|
}
|
|
|
|
public /* synthetic */ LimitInsets(WindowInsets windowInsets, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this(windowInsets, i);
|
|
}
|
|
}
|