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

1091 lines
34 KiB
Smali

.class public final Landroidx/window/embedding/EmbeddingAdapter;
.super Ljava/lang/Object;
.source "EmbeddingAdapter.kt"
# annotations
.annotation system Ldalvik/annotation/SourceDebugExtension;
value = "SMAP\nEmbeddingAdapter.kt\nKotlin\n*S Kotlin\n*F\n+ 1 EmbeddingAdapter.kt\nandroidx/window/embedding/EmbeddingAdapter\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,164:1\n1547#2:165\n1618#2,3:166\n1547#2:169\n1618#2,3:170\n1741#2,3:173\n1741#2,3:176\n1741#2,3:179\n1741#2,3:182\n*S KotlinDebug\n*F\n+ 1 EmbeddingAdapter.kt\nandroidx/window/embedding/EmbeddingAdapter\n*L\n39#1:165\n39#1:166,3\n120#1:169\n120#1:170,3\n73#1:173,3\n83#1:176,3\n103#1:179,3\n113#1:182,3\n*E\n"
.end annotation
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000\\\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010 \n\u0000\n\u0002\u0010\"\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0006\u0008\u0001\u0018\u00002\u00020\u0001B\u0005\u00a2\u0006\u0002\u0010\u0002J\u0010\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006H\u0002J\u001a\u0010\u0003\u001a\u0008\u0012\u0004\u0012\u00020\u00040\u00072\u000c\u0010\u0008\u001a\u0008\u0012\u0004\u0012\u00020\u00060\u0007J\u001a\u0010\u0003\u001a\u0008\u0012\u0004\u0012\u00020\n0\t2\u000c\u0010\u000b\u001a\u0008\u0012\u0004\u0012\u00020\u000c0\tJ(\u0010\r\u001a\u0014\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u00020\u0010\u0012\u0004\u0012\u00020\u00110\u000f0\u000e2\u000c\u0010\u0012\u001a\u0008\u0012\u0004\u0012\u00020\u00130\tH\u0007J(\u0010\u0014\u001a\u0014\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u00020\u0010\u0012\u0004\u0012\u00020\u00100\u000f0\u000e2\u000c\u0010\u0012\u001a\u0008\u0012\u0004\u0012\u00020\u00130\tH\u0007J\u001c\u0010\u0015\u001a\u0008\u0012\u0004\u0012\u00020\u00100\u000e2\u000c\u0010\u0016\u001a\u0008\u0012\u0004\u0012\u00020\u00170\tH\u0007J\u001c\u0010\u0018\u001a\u0008\u0012\u0004\u0012\u00020\u00110\u000e2\u000c\u0010\u0016\u001a\u0008\u0012\u0004\u0012\u00020\u00170\tH\u0007J\u0016\u0010\u0019\u001a\u0008\u0012\u0004\u0012\u00020\u001a0\u000e2\u0006\u0010\u001b\u001a\u00020\u001cH\u0007J*\u0010\u001d\u001a\u0002H\u001e\"\u0004\u0008\u0000\u0010\u001e\"\u0004\u0008\u0001\u0010\u001f*\u000e\u0012\u0004\u0012\u0002H\u001e\u0012\u0004\u0012\u0002H\u001f0\u000fH\u0082\u0002\u00a2\u0006\u0002\u0010 J*\u0010!\u001a\u0002H\u001f\"\u0004\u0008\u0000\u0010\u001e\"\u0004\u0008\u0001\u0010\u001f*\u000e\u0012\u0004\u0012\u0002H\u001e\u0012\u0004\u0012\u0002H\u001f0\u000fH\u0082\u0002\u00a2\u0006\u0002\u0010 \u00a8\u0006\""
}
d2 = {
"Landroidx/window/embedding/EmbeddingAdapter;",
"",
"()V",
"translate",
"Landroidx/window/embedding/SplitInfo;",
"splitInfo",
"Landroidx/window/extensions/embedding/SplitInfo;",
"",
"splitInfoList",
"",
"Landroidx/window/extensions/embedding/EmbeddingRule;",
"rules",
"Landroidx/window/embedding/EmbeddingRule;",
"translateActivityIntentPredicates",
"Ljava/util/function/Predicate;",
"Landroid/util/Pair;",
"Landroid/app/Activity;",
"Landroid/content/Intent;",
"splitPairFilters",
"Landroidx/window/embedding/SplitPairFilter;",
"translateActivityPairPredicates",
"translateActivityPredicates",
"activityFilters",
"Landroidx/window/embedding/ActivityFilter;",
"translateIntentPredicates",
"translateParentMetricsPredicate",
"Landroid/view/WindowMetrics;",
"splitRule",
"Landroidx/window/embedding/SplitRule;",
"component1",
"F",
"S",
"(Landroid/util/Pair;)Ljava/lang/Object;",
"component2",
"window_release"
}
k = 0x1
mv = {
0x1,
0x6,
0x0
}
xi = 0x30
.end annotation
# direct methods
.method public static synthetic $r8$lambda$-QlFe7fckaSVTLCegr9_8uxVaa4(Ljava/util/Set;Landroid/app/Activity;)Z
.locals 0
invoke-static {p0, p1}, Landroidx/window/embedding/EmbeddingAdapter;->translateActivityPredicates$lambda-6(Ljava/util/Set;Landroid/app/Activity;)Z
move-result p0
return p0
.end method
.method public static synthetic $r8$lambda$nSea4sfI4EFFkXqov0va87aZ_68(Landroidx/window/embedding/SplitRule;Landroid/view/WindowMetrics;)Z
.locals 0
invoke-static {p0, p1}, Landroidx/window/embedding/EmbeddingAdapter;->translateParentMetricsPredicate$lambda-4(Landroidx/window/embedding/SplitRule;Landroid/view/WindowMetrics;)Z
move-result p0
return p0
.end method
.method public static synthetic $r8$lambda$x8eGFLpnqP7STokqkg3obw9dl5Q(Landroidx/window/embedding/EmbeddingAdapter;Ljava/util/Set;Landroid/util/Pair;)Z
.locals 0
invoke-static {p0, p1, p2}, Landroidx/window/embedding/EmbeddingAdapter;->translateActivityIntentPredicates$lambda-3(Landroidx/window/embedding/EmbeddingAdapter;Ljava/util/Set;Landroid/util/Pair;)Z
move-result p0
return p0
.end method
.method public static synthetic $r8$lambda$xf-Lop7h3ngH6EmzyuDyOYtb8Lk(Landroidx/window/embedding/EmbeddingAdapter;Ljava/util/Set;Landroid/util/Pair;)Z
.locals 0
invoke-static {p0, p1, p2}, Landroidx/window/embedding/EmbeddingAdapter;->translateActivityPairPredicates$lambda-1(Landroidx/window/embedding/EmbeddingAdapter;Ljava/util/Set;Landroid/util/Pair;)Z
move-result p0
return p0
.end method
.method public static synthetic $r8$lambda$yScxR8XDNmwEhhX_T4Oe1hesc-c(Ljava/util/Set;Landroid/content/Intent;)Z
.locals 0
invoke-static {p0, p1}, Landroidx/window/embedding/EmbeddingAdapter;->translateIntentPredicates$lambda-8(Ljava/util/Set;Landroid/content/Intent;)Z
move-result p0
return p0
.end method
.method public constructor <init>()V
.locals 0
.line 34
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method private final component1(Landroid/util/Pair;)Ljava/lang/Object;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"<F:",
"Ljava/lang/Object;",
"S:",
"Ljava/lang/Object;",
">(",
"Landroid/util/Pair<",
"TF;TS;>;)TF;"
}
.end annotation
const-string p0, "<this>"
invoke-static {p1, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 158
iget-object p0, p1, Landroid/util/Pair;->first:Ljava/lang/Object;
return-object p0
.end method
.method private final component2(Landroid/util/Pair;)Ljava/lang/Object;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"<F:",
"Ljava/lang/Object;",
"S:",
"Ljava/lang/Object;",
">(",
"Landroid/util/Pair<",
"TF;TS;>;)TS;"
}
.end annotation
const-string p0, "<this>"
invoke-static {p1, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 162
iget-object p0, p1, Landroid/util/Pair;->second:Ljava/lang/Object;
return-object p0
.end method
.method private final translate(Landroidx/window/extensions/embedding/SplitInfo;)Landroidx/window/embedding/SplitInfo;
.locals 4
.line 43
invoke-virtual {p1}, Landroidx/window/extensions/embedding/SplitInfo;->getPrimaryActivityStack()Landroidx/window/extensions/embedding/ActivityStack;
move-result-object p0
const-string v0, "splitInfo.primaryActivityStack"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x0
.line 45
:try_start_0
invoke-virtual {p0}, Landroidx/window/extensions/embedding/ActivityStack;->isEmpty()Z
move-result v1
:try_end_0
.catch Ljava/lang/NoSuchMethodError; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move v1, v0
.line 51
:goto_0
new-instance v2, Landroidx/window/embedding/ActivityStack;
invoke-virtual {p0}, Landroidx/window/extensions/embedding/ActivityStack;->getActivities()Ljava/util/List;
move-result-object p0
const-string v3, "primaryActivityStack.activities"
invoke-static {p0, v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {v2, p0, v1}, Landroidx/window/embedding/ActivityStack;-><init>(Ljava/util/List;Z)V
.line 53
invoke-virtual {p1}, Landroidx/window/extensions/embedding/SplitInfo;->getSecondaryActivityStack()Landroidx/window/extensions/embedding/ActivityStack;
move-result-object p0
const-string v1, "splitInfo.secondaryActivityStack"
invoke-static {p0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
.line 55
:try_start_1
invoke-virtual {p0}, Landroidx/window/extensions/embedding/ActivityStack;->isEmpty()Z
move-result v0
:try_end_1
.catch Ljava/lang/NoSuchMethodError; {:try_start_1 .. :try_end_1} :catch_1
.line 61
:catch_1
new-instance v1, Landroidx/window/embedding/ActivityStack;
.line 62
invoke-virtual {p0}, Landroidx/window/extensions/embedding/ActivityStack;->getActivities()Ljava/util/List;
move-result-object p0
const-string v3, "secondaryActivityStack.activities"
invoke-static {p0, v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
.line 61
invoke-direct {v1, p0, v0}, Landroidx/window/embedding/ActivityStack;-><init>(Ljava/util/List;Z)V
.line 64
new-instance p0, Landroidx/window/embedding/SplitInfo;
invoke-virtual {p1}, Landroidx/window/extensions/embedding/SplitInfo;->getSplitRatio()F
move-result p1
invoke-direct {p0, v2, v1, p1}, Landroidx/window/embedding/SplitInfo;-><init>(Landroidx/window/embedding/ActivityStack;Landroidx/window/embedding/ActivityStack;F)V
return-object p0
.end method
.method private static final translateActivityIntentPredicates$lambda-3(Landroidx/window/embedding/EmbeddingAdapter;Ljava/util/Set;Landroid/util/Pair;)Z
.locals 2
const-string v0, "this$0"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "$splitPairFilters"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "(first, second)"
.line 82
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0, p2}, Landroidx/window/embedding/EmbeddingAdapter;->component1(Landroid/util/Pair;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/app/Activity;
invoke-direct {p0, p2}, Landroidx/window/embedding/EmbeddingAdapter;->component2(Landroid/util/Pair;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Landroid/content/Intent;
.line 83
check-cast p1, Ljava/lang/Iterable;
.line 176
instance-of p2, p1, Ljava/util/Collection;
const/4 v1, 0x0
if-eqz p2, :cond_0
move-object p2, p1
check-cast p2, Ljava/util/Collection;
invoke-interface {p2}, Ljava/util/Collection;->isEmpty()Z
move-result p2
if-eqz p2, :cond_0
goto :goto_0
.line 177
:cond_0
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object p1
:cond_1
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result p2
if-eqz p2, :cond_2
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object p2
check-cast p2, Landroidx/window/embedding/SplitPairFilter;
.line 83
invoke-virtual {p2, v0, p0}, Landroidx/window/embedding/SplitPairFilter;->matchesActivityIntentPair(Landroid/app/Activity;Landroid/content/Intent;)Z
move-result p2
if-eqz p2, :cond_1
const/4 v1, 0x1
:cond_2
:goto_0
return v1
.end method
.method private static final translateActivityPairPredicates$lambda-1(Landroidx/window/embedding/EmbeddingAdapter;Ljava/util/Set;Landroid/util/Pair;)Z
.locals 2
const-string v0, "this$0"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "$splitPairFilters"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "(first, second)"
.line 72
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0, p2}, Landroidx/window/embedding/EmbeddingAdapter;->component1(Landroid/util/Pair;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/app/Activity;
invoke-direct {p0, p2}, Landroidx/window/embedding/EmbeddingAdapter;->component2(Landroid/util/Pair;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Landroid/app/Activity;
.line 73
check-cast p1, Ljava/lang/Iterable;
.line 173
instance-of p2, p1, Ljava/util/Collection;
const/4 v1, 0x0
if-eqz p2, :cond_0
move-object p2, p1
check-cast p2, Ljava/util/Collection;
invoke-interface {p2}, Ljava/util/Collection;->isEmpty()Z
move-result p2
if-eqz p2, :cond_0
goto :goto_0
.line 174
:cond_0
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object p1
:cond_1
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result p2
if-eqz p2, :cond_2
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object p2
check-cast p2, Landroidx/window/embedding/SplitPairFilter;
.line 73
invoke-virtual {p2, v0, p0}, Landroidx/window/embedding/SplitPairFilter;->matchesActivityPair(Landroid/app/Activity;Landroid/app/Activity;)Z
move-result p2
if-eqz p2, :cond_1
const/4 v1, 0x1
:cond_2
:goto_0
return v1
.end method
.method private static final translateActivityPredicates$lambda-6(Ljava/util/Set;Landroid/app/Activity;)Z
.locals 3
const-string v0, "$activityFilters"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 103
check-cast p0, Ljava/lang/Iterable;
.line 179
instance-of v0, p0, Ljava/util/Collection;
const/4 v1, 0x0
if-eqz v0, :cond_0
move-object v0, p0
check-cast v0, Ljava/util/Collection;
invoke-interface {v0}, Ljava/util/Collection;->isEmpty()Z
move-result v0
if-eqz v0, :cond_0
goto :goto_0
.line 180
:cond_0
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object p0
:cond_1
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
check-cast v0, Landroidx/window/embedding/ActivityFilter;
const-string v2, "activity"
.line 103
invoke-static {p1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0, p1}, Landroidx/window/embedding/ActivityFilter;->matchesActivity(Landroid/app/Activity;)Z
move-result v0
if-eqz v0, :cond_1
const/4 v1, 0x1
:cond_2
:goto_0
return v1
.end method
.method private static final translateIntentPredicates$lambda-8(Ljava/util/Set;Landroid/content/Intent;)Z
.locals 3
const-string v0, "$activityFilters"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 113
check-cast p0, Ljava/lang/Iterable;
.line 182
instance-of v0, p0, Ljava/util/Collection;
const/4 v1, 0x0
if-eqz v0, :cond_0
move-object v0, p0
check-cast v0, Ljava/util/Collection;
invoke-interface {v0}, Ljava/util/Collection;->isEmpty()Z
move-result v0
if-eqz v0, :cond_0
goto :goto_0
.line 183
:cond_0
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object p0
:cond_1
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
check-cast v0, Landroidx/window/embedding/ActivityFilter;
const-string v2, "intent"
.line 113
invoke-static {p1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0, p1}, Landroidx/window/embedding/ActivityFilter;->matchesIntent(Landroid/content/Intent;)Z
move-result v0
if-eqz v0, :cond_1
const/4 v1, 0x1
:cond_2
:goto_0
return v1
.end method
.method private static final translateParentMetricsPredicate$lambda-4(Landroidx/window/embedding/SplitRule;Landroid/view/WindowMetrics;)Z
.locals 1
const-string v0, "$splitRule"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "windowMetrics"
.line 93
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p0, p1}, Landroidx/window/embedding/SplitRule;->checkParentMetrics(Landroid/view/WindowMetrics;)Z
move-result p0
return p0
.end method
# virtual methods
.method public final translate(Ljava/util/List;)Ljava/util/List;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"+",
"Landroidx/window/extensions/embedding/SplitInfo;",
">;)",
"Ljava/util/List<",
"Landroidx/window/embedding/SplitInfo;",
">;"
}
.end annotation
const-string v0, "splitInfoList"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 39
check-cast p1, Ljava/lang/Iterable;
.line 165
new-instance v0, Ljava/util/ArrayList;
const/16 v1, 0xa
invoke-static {p1, v1}, Lkotlin/collections/CollectionsKt;->collectionSizeOrDefault(Ljava/lang/Iterable;I)I
move-result v1
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V
check-cast v0, Ljava/util/Collection;
.line 166
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_0
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
.line 167
check-cast v1, Landroidx/window/extensions/embedding/SplitInfo;
.line 39
invoke-direct {p0, v1}, Landroidx/window/embedding/EmbeddingAdapter;->translate(Landroidx/window/extensions/embedding/SplitInfo;)Landroidx/window/embedding/SplitInfo;
move-result-object v1
invoke-interface {v0, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
goto :goto_0
.line 168
:cond_0
check-cast v0, Ljava/util/List;
return-object v0
.end method
.method public final translate(Ljava/util/Set;)Ljava/util/Set;
.locals 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Set<",
"+",
"Landroidx/window/embedding/EmbeddingRule;",
">;)",
"Ljava/util/Set<",
"Landroidx/window/extensions/embedding/EmbeddingRule;",
">;"
}
.end annotation
const-string v0, "rules"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 120
check-cast p1, Ljava/lang/Iterable;
.line 169
new-instance v0, Ljava/util/ArrayList;
const/16 v1, 0xa
invoke-static {p1, v1}, Lkotlin/collections/CollectionsKt;->collectionSizeOrDefault(Ljava/lang/Iterable;I)I
move-result v1
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V
check-cast v0, Ljava/util/Collection;
.line 170
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_3
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
.line 171
check-cast v1, Landroidx/window/embedding/EmbeddingRule;
.line 123
instance-of v2, v1, Landroidx/window/embedding/SplitPairRule;
if-eqz v2, :cond_0
.line 124
new-instance v2, Landroidx/window/extensions/embedding/SplitPairRule$Builder;
.line 125
move-object v3, v1
check-cast v3, Landroidx/window/embedding/SplitPairRule;
invoke-virtual {v3}, Landroidx/window/embedding/SplitPairRule;->getFilters()Ljava/util/Set;
move-result-object v4
invoke-virtual {p0, v4}, Landroidx/window/embedding/EmbeddingAdapter;->translateActivityPairPredicates(Ljava/util/Set;)Ljava/util/function/Predicate;
move-result-object v4
.line 126
invoke-virtual {v3}, Landroidx/window/embedding/SplitPairRule;->getFilters()Ljava/util/Set;
move-result-object v5
invoke-virtual {p0, v5}, Landroidx/window/embedding/EmbeddingAdapter;->translateActivityIntentPredicates(Ljava/util/Set;)Ljava/util/function/Predicate;
move-result-object v5
.line 127
check-cast v1, Landroidx/window/embedding/SplitRule;
invoke-virtual {p0, v1}, Landroidx/window/embedding/EmbeddingAdapter;->translateParentMetricsPredicate(Landroidx/window/embedding/SplitRule;)Ljava/util/function/Predicate;
move-result-object v1
.line 124
invoke-direct {v2, v4, v5, v1}, Landroidx/window/extensions/embedding/SplitPairRule$Builder;-><init>(Ljava/util/function/Predicate;Ljava/util/function/Predicate;Ljava/util/function/Predicate;)V
.line 129
invoke-virtual {v3}, Landroidx/window/embedding/SplitPairRule;->getSplitRatio()F
move-result v1
invoke-virtual {v2, v1}, Landroidx/window/extensions/embedding/SplitPairRule$Builder;->setSplitRatio(F)Landroidx/window/extensions/embedding/SplitPairRule$Builder;
move-result-object v1
.line 130
invoke-virtual {v3}, Landroidx/window/embedding/SplitPairRule;->getLayoutDirection()I
move-result v2
invoke-virtual {v1, v2}, Landroidx/window/extensions/embedding/SplitPairRule$Builder;->setLayoutDirection(I)Landroidx/window/extensions/embedding/SplitPairRule$Builder;
move-result-object v1
.line 131
invoke-virtual {v3}, Landroidx/window/embedding/SplitPairRule;->getFinishPrimaryWithSecondary()Z
move-result v2
invoke-virtual {v1, v2}, Landroidx/window/extensions/embedding/SplitPairRule$Builder;->setShouldFinishPrimaryWithSecondary(Z)Landroidx/window/extensions/embedding/SplitPairRule$Builder;
move-result-object v1
.line 132
invoke-virtual {v3}, Landroidx/window/embedding/SplitPairRule;->getFinishSecondaryWithPrimary()Z
move-result v2
invoke-virtual {v1, v2}, Landroidx/window/extensions/embedding/SplitPairRule$Builder;->setShouldFinishSecondaryWithPrimary(Z)Landroidx/window/extensions/embedding/SplitPairRule$Builder;
move-result-object v1
.line 133
invoke-virtual {v3}, Landroidx/window/embedding/SplitPairRule;->getClearTop()Z
move-result v2
invoke-virtual {v1, v2}, Landroidx/window/extensions/embedding/SplitPairRule$Builder;->setShouldClearTop(Z)Landroidx/window/extensions/embedding/SplitPairRule$Builder;
move-result-object v1
.line 134
invoke-virtual {v1}, Landroidx/window/extensions/embedding/SplitPairRule$Builder;->build()Landroidx/window/extensions/embedding/SplitPairRule;
move-result-object v1
const-string v2, "SplitPairRuleBuilder(\n \u2026 .build()"
.line 133
invoke-static {v1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
check-cast v1, Landroidx/window/extensions/embedding/EmbeddingRule;
goto :goto_1
.line 135
:cond_0
instance-of v2, v1, Landroidx/window/embedding/SplitPlaceholderRule;
if-eqz v2, :cond_1
.line 136
new-instance v2, Landroidx/window/extensions/embedding/SplitPlaceholderRule$Builder;
.line 137
move-object v3, v1
check-cast v3, Landroidx/window/embedding/SplitPlaceholderRule;
invoke-virtual {v3}, Landroidx/window/embedding/SplitPlaceholderRule;->getPlaceholderIntent()Landroid/content/Intent;
move-result-object v4
.line 138
invoke-virtual {v3}, Landroidx/window/embedding/SplitPlaceholderRule;->getFilters()Ljava/util/Set;
move-result-object v5
invoke-virtual {p0, v5}, Landroidx/window/embedding/EmbeddingAdapter;->translateActivityPredicates(Ljava/util/Set;)Ljava/util/function/Predicate;
move-result-object v5
.line 139
invoke-virtual {v3}, Landroidx/window/embedding/SplitPlaceholderRule;->getFilters()Ljava/util/Set;
move-result-object v6
invoke-virtual {p0, v6}, Landroidx/window/embedding/EmbeddingAdapter;->translateIntentPredicates(Ljava/util/Set;)Ljava/util/function/Predicate;
move-result-object v6
.line 140
check-cast v1, Landroidx/window/embedding/SplitRule;
invoke-virtual {p0, v1}, Landroidx/window/embedding/EmbeddingAdapter;->translateParentMetricsPredicate(Landroidx/window/embedding/SplitRule;)Ljava/util/function/Predicate;
move-result-object v1
.line 136
invoke-direct {v2, v4, v5, v6, v1}, Landroidx/window/extensions/embedding/SplitPlaceholderRule$Builder;-><init>(Landroid/content/Intent;Ljava/util/function/Predicate;Ljava/util/function/Predicate;Ljava/util/function/Predicate;)V
.line 142
invoke-virtual {v3}, Landroidx/window/embedding/SplitPlaceholderRule;->getSplitRatio()F
move-result v1
invoke-virtual {v2, v1}, Landroidx/window/extensions/embedding/SplitPlaceholderRule$Builder;->setSplitRatio(F)Landroidx/window/extensions/embedding/SplitPlaceholderRule$Builder;
move-result-object v1
.line 143
invoke-virtual {v3}, Landroidx/window/embedding/SplitPlaceholderRule;->getLayoutDirection()I
move-result v2
invoke-virtual {v1, v2}, Landroidx/window/extensions/embedding/SplitPlaceholderRule$Builder;->setLayoutDirection(I)Landroidx/window/extensions/embedding/SplitPlaceholderRule$Builder;
move-result-object v1
.line 144
invoke-virtual {v1}, Landroidx/window/extensions/embedding/SplitPlaceholderRule$Builder;->build()Landroidx/window/extensions/embedding/SplitPlaceholderRule;
move-result-object v1
const-string v2, "SplitPlaceholderRuleBuil\u2026 .build()"
.line 143
invoke-static {v1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
check-cast v1, Landroidx/window/extensions/embedding/EmbeddingRule;
goto :goto_1
.line 145
:cond_1
instance-of v2, v1, Landroidx/window/embedding/ActivityRule;
if-eqz v2, :cond_2
.line 146
new-instance v2, Landroidx/window/extensions/embedding/ActivityRule$Builder;
.line 147
check-cast v1, Landroidx/window/embedding/ActivityRule;
invoke-virtual {v1}, Landroidx/window/embedding/ActivityRule;->getFilters()Ljava/util/Set;
move-result-object v3
invoke-virtual {p0, v3}, Landroidx/window/embedding/EmbeddingAdapter;->translateActivityPredicates(Ljava/util/Set;)Ljava/util/function/Predicate;
move-result-object v3
.line 148
invoke-virtual {v1}, Landroidx/window/embedding/ActivityRule;->getFilters()Ljava/util/Set;
move-result-object v4
invoke-virtual {p0, v4}, Landroidx/window/embedding/EmbeddingAdapter;->translateIntentPredicates(Ljava/util/Set;)Ljava/util/function/Predicate;
move-result-object v4
.line 146
invoke-direct {v2, v3, v4}, Landroidx/window/extensions/embedding/ActivityRule$Builder;-><init>(Ljava/util/function/Predicate;Ljava/util/function/Predicate;)V
.line 150
invoke-virtual {v1}, Landroidx/window/embedding/ActivityRule;->getAlwaysExpand()Z
move-result v1
invoke-virtual {v2, v1}, Landroidx/window/extensions/embedding/ActivityRule$Builder;->setShouldAlwaysExpand(Z)Landroidx/window/extensions/embedding/ActivityRule$Builder;
move-result-object v1
.line 151
invoke-virtual {v1}, Landroidx/window/extensions/embedding/ActivityRule$Builder;->build()Landroidx/window/extensions/embedding/ActivityRule;
move-result-object v1
const-string v2, "ActivityRuleBuilder(\n \u2026 .build()"
.line 150
invoke-static {v1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
check-cast v1, Landroidx/window/extensions/embedding/EmbeddingRule;
.line 122
:goto_1
invoke-interface {v0, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
goto/16 :goto_0
.line 152
:cond_2
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string p1, "Unsupported rule type"
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.line 172
:cond_3
check-cast v0, Ljava/util/List;
.line 169
check-cast v0, Ljava/lang/Iterable;
.line 154
invoke-static {v0}, Lkotlin/collections/CollectionsKt;->toSet(Ljava/lang/Iterable;)Ljava/util/Set;
move-result-object p0
return-object p0
.end method
.method public final translateActivityIntentPredicates(Ljava/util/Set;)Ljava/util/function/Predicate;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Set<",
"Landroidx/window/embedding/SplitPairFilter;",
">;)",
"Ljava/util/function/Predicate<",
"Landroid/util/Pair<",
"Landroid/app/Activity;",
"Landroid/content/Intent;",
">;>;"
}
.end annotation
const-string v0, "splitPairFilters"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 81
new-instance v0, Landroidx/window/embedding/EmbeddingAdapter$$ExternalSyntheticLambda0;
invoke-direct {v0, p0, p1}, Landroidx/window/embedding/EmbeddingAdapter$$ExternalSyntheticLambda0;-><init>(Landroidx/window/embedding/EmbeddingAdapter;Ljava/util/Set;)V
return-object v0
.end method
.method public final translateActivityPairPredicates(Ljava/util/Set;)Ljava/util/function/Predicate;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Set<",
"Landroidx/window/embedding/SplitPairFilter;",
">;)",
"Ljava/util/function/Predicate<",
"Landroid/util/Pair<",
"Landroid/app/Activity;",
"Landroid/app/Activity;",
">;>;"
}
.end annotation
const-string v0, "splitPairFilters"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 71
new-instance v0, Landroidx/window/embedding/EmbeddingAdapter$$ExternalSyntheticLambda4;
invoke-direct {v0, p0, p1}, Landroidx/window/embedding/EmbeddingAdapter$$ExternalSyntheticLambda4;-><init>(Landroidx/window/embedding/EmbeddingAdapter;Ljava/util/Set;)V
return-object v0
.end method
.method public final translateActivityPredicates(Ljava/util/Set;)Ljava/util/function/Predicate;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Set<",
"Landroidx/window/embedding/ActivityFilter;",
">;)",
"Ljava/util/function/Predicate<",
"Landroid/app/Activity;",
">;"
}
.end annotation
const-string p0, "activityFilters"
invoke-static {p1, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 101
new-instance p0, Landroidx/window/embedding/EmbeddingAdapter$$ExternalSyntheticLambda1;
invoke-direct {p0, p1}, Landroidx/window/embedding/EmbeddingAdapter$$ExternalSyntheticLambda1;-><init>(Ljava/util/Set;)V
return-object p0
.end method
.method public final translateIntentPredicates(Ljava/util/Set;)Ljava/util/function/Predicate;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Set<",
"Landroidx/window/embedding/ActivityFilter;",
">;)",
"Ljava/util/function/Predicate<",
"Landroid/content/Intent;",
">;"
}
.end annotation
const-string p0, "activityFilters"
invoke-static {p1, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 111
new-instance p0, Landroidx/window/embedding/EmbeddingAdapter$$ExternalSyntheticLambda3;
invoke-direct {p0, p1}, Landroidx/window/embedding/EmbeddingAdapter$$ExternalSyntheticLambda3;-><init>(Ljava/util/Set;)V
return-object p0
.end method
.method public final translateParentMetricsPredicate(Landroidx/window/embedding/SplitRule;)Ljava/util/function/Predicate;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/window/embedding/SplitRule;",
")",
"Ljava/util/function/Predicate<",
"Landroid/view/WindowMetrics;",
">;"
}
.end annotation
const-string p0, "splitRule"
invoke-static {p1, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 91
new-instance p0, Landroidx/window/embedding/EmbeddingAdapter$$ExternalSyntheticLambda2;
invoke-direct {p0, p1}, Landroidx/window/embedding/EmbeddingAdapter$$ExternalSyntheticLambda2;-><init>(Landroidx/window/embedding/SplitRule;)V
return-object p0
.end method