Rabbit-R1/android (non root)/java/sources/androidx/window/embedding/SplitPlaceholderRule.java
2024-05-21 17:08:36 -04:00

63 lines
4.2 KiB
Java

package androidx.window.embedding;
import android.content.Intent;
import java.util.LinkedHashSet;
import java.util.Set;
import kotlin.Metadata;
import kotlin.collections.CollectionsKt;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
/* compiled from: SplitPlaceholderRule.kt */
@Metadata(d1 = {"\u00008\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\"\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\u0007\n\u0002\b\u0007\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0005\b\u0007\u0018\u00002\u00020\u0001BC\u0012\f\u0010\u0002\u001a\b\u0012\u0004\u0012\u00020\u00040\u0003\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u0012\b\b\u0002\u0010\u0007\u001a\u00020\b\u0012\b\b\u0002\u0010\t\u001a\u00020\b\u0012\b\b\u0002\u0010\n\u001a\u00020\u000b\u0012\b\b\u0002\u0010\f\u001a\u00020\\u0006\u0002\u0010\rJ\u0013\u0010\u0012\u001a\u00020\u00132\b\u0010\u0014\u001a\u0004\u0018\u00010\u0015H\u0096\u0002J\b\u0010\u0016\u001a\u00020\bH\u0016J\u0016\u0010\u0017\u001a\u00020\u00002\u0006\u0010\u0018\u001a\u00020\u0004H\u0080\u0002¢\u0006\u0002\b\u0019R\u0017\u0010\u0002\u001a\b\u0012\u0004\u0012\u00020\u00040\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u000e\u0010\u000fR\u0011\u0010\u0005\u001a\u00020\u0006¢\u0006\b\n\u0000\u001a\u0004\b\u0010\u0010\u0011¨\u0006\u001a"}, d2 = {"Landroidx/window/embedding/SplitPlaceholderRule;", "Landroidx/window/embedding/SplitRule;", "filters", "", "Landroidx/window/embedding/ActivityFilter;", "placeholderIntent", "Landroid/content/Intent;", "minWidth", "", "minSmallestWidth", "splitRatio", "", "layoutDirection", "(Ljava/util/Set;Landroid/content/Intent;IIFI)V", "getFilters", "()Ljava/util/Set;", "getPlaceholderIntent", "()Landroid/content/Intent;", "equals", "", "other", "", "hashCode", "plus", "filter", "plus$window_release", "window_release"}, k = 1, mv = {1, 6, 0}, xi = 48)
/* loaded from: classes2.dex */
public final class SplitPlaceholderRule extends SplitRule {
private final Set<ActivityFilter> filters;
private final Intent placeholderIntent;
public final Set<ActivityFilter> getFilters() {
return this.filters;
}
public final Intent getPlaceholderIntent() {
return this.placeholderIntent;
}
public /* synthetic */ SplitPlaceholderRule(Set set, Intent intent, int i, int i2, float f, int i3, int i4, DefaultConstructorMarker defaultConstructorMarker) {
this(set, intent, (i4 & 4) != 0 ? 0 : i, (i4 & 8) != 0 ? 0 : i2, (i4 & 16) != 0 ? 0.5f : f, (i4 & 32) != 0 ? 3 : i3);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public SplitPlaceholderRule(Set<ActivityFilter> filters, Intent placeholderIntent, int i, int i2, float f, int i3) {
super(i, i2, f, i3);
Intrinsics.checkNotNullParameter(filters, "filters");
Intrinsics.checkNotNullParameter(placeholderIntent, "placeholderIntent");
this.placeholderIntent = placeholderIntent;
this.filters = CollectionsKt.toSet(filters);
}
public final SplitPlaceholderRule plus$window_release(ActivityFilter filter) {
Intrinsics.checkNotNullParameter(filter, "filter");
LinkedHashSet linkedHashSet = new LinkedHashSet();
linkedHashSet.addAll(this.filters);
linkedHashSet.add(filter);
return new SplitPlaceholderRule(CollectionsKt.toSet(linkedHashSet), this.placeholderIntent, getMinWidth(), getMinSmallestWidth(), getSplitRatio(), getLayoutDirection());
}
@Override // androidx.window.embedding.SplitRule
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof SplitPlaceholderRule) || !super.equals(other) || !super.equals(other)) {
return false;
}
SplitPlaceholderRule splitPlaceholderRule = (SplitPlaceholderRule) other;
return Intrinsics.areEqual(this.filters, splitPlaceholderRule.filters) && Intrinsics.areEqual(this.placeholderIntent, splitPlaceholderRule.placeholderIntent);
}
@Override // androidx.window.embedding.SplitRule
public int hashCode() {
return (((super.hashCode() * 31) + this.filters.hashCode()) * 31) + this.placeholderIntent.hashCode();
}
}