.class public final Landroidx/window/embedding/SplitController; .super Ljava/lang/Object; .source "SplitController.kt" # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Landroidx/window/embedding/SplitController$Companion; } .end annotation .annotation runtime Lkotlin/Metadata; d1 = { "\u0000F\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\"\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0010\u000b\n\u0002\u0008\u0008\u0008\u0007\u0018\u0000 \u001c2\u00020\u0001:\u0001\u001cB\u0007\u0008\u0002\u00a2\u0006\u0002\u0010\u0002J*\u0010\u0008\u001a\u00020\t2\u0006\u0010\n\u001a\u00020\u000b2\u0006\u0010\u000c\u001a\u00020\r2\u0012\u0010\u000e\u001a\u000e\u0012\n\u0012\u0008\u0012\u0004\u0012\u00020\u00110\u00100\u000fJ\u0006\u0010\u0012\u001a\u00020\tJ\u000c\u0010\u0013\u001a\u0008\u0012\u0004\u0012\u00020\u00070\u0006J\u0006\u0010\u0014\u001a\u00020\u0015J\u000e\u0010\u0016\u001a\u00020\t2\u0006\u0010\u0017\u001a\u00020\u0007J\u001a\u0010\u0018\u001a\u00020\t2\u0012\u0010\u000e\u001a\u000e\u0012\n\u0012\u0008\u0012\u0004\u0012\u00020\u00110\u00100\u000fJ\u0016\u0010\u0019\u001a\u00020\t2\u000c\u0010\u001a\u001a\u0008\u0012\u0004\u0012\u00020\u00070\u0006H\u0002J\u000e\u0010\u001b\u001a\u00020\t2\u0006\u0010\u0017\u001a\u00020\u0007R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0014\u0010\u0005\u001a\u0008\u0012\u0004\u0012\u00020\u00070\u0006X\u0082\u000e\u00a2\u0006\u0002\n\u0000\u00a8\u0006\u001d" } d2 = { "Landroidx/window/embedding/SplitController;", "", "()V", "embeddingBackend", "Landroidx/window/embedding/EmbeddingBackend;", "staticSplitRules", "", "Landroidx/window/embedding/EmbeddingRule;", "addSplitListener", "", "activity", "Landroid/app/Activity;", "executor", "Ljava/util/concurrent/Executor;", "consumer", "Landroidx/core/util/Consumer;", "", "Landroidx/window/embedding/SplitInfo;", "clearRegisteredRules", "getSplitRules", "isSplitSupported", "", "registerRule", "rule", "removeSplitListener", "setStaticSplitRules", "staticRules", "unregisterRule", "Companion", "window_release" } k = 0x1 mv = { 0x1, 0x6, 0x0 } xi = 0x30 .end annotation # static fields .field public static final Companion:Landroidx/window/embedding/SplitController$Companion; .field private static volatile globalInstance:Landroidx/window/embedding/SplitController; = null .field private static final globalLock:Ljava/util/concurrent/locks/ReentrantLock; .field public static final sDebug:Z = false # instance fields .field private final embeddingBackend:Landroidx/window/embedding/EmbeddingBackend; .field private staticSplitRules:Ljava/util/Set; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/Set<", "+", "Landroidx/window/embedding/EmbeddingRule;", ">;" } .end annotation .end field # direct methods .method static constructor ()V .locals 2 new-instance v0, Landroidx/window/embedding/SplitController$Companion; const/4 v1, 0x0 invoke-direct {v0, v1}, Landroidx/window/embedding/SplitController$Companion;->(Lkotlin/jvm/internal/DefaultConstructorMarker;)V sput-object v0, Landroidx/window/embedding/SplitController;->Companion:Landroidx/window/embedding/SplitController$Companion; .line 122 new-instance v0, Ljava/util/concurrent/locks/ReentrantLock; invoke-direct {v0}, Ljava/util/concurrent/locks/ReentrantLock;->()V sput-object v0, Landroidx/window/embedding/SplitController;->globalLock:Ljava/util/concurrent/locks/ReentrantLock; return-void .end method .method private constructor ()V .locals 1 .line 39 invoke-direct {p0}, Ljava/lang/Object;->()V .line 41 sget-object v0, Landroidx/window/embedding/ExtensionEmbeddingBackend;->Companion:Landroidx/window/embedding/ExtensionEmbeddingBackend$Companion; invoke-virtual {v0}, Landroidx/window/embedding/ExtensionEmbeddingBackend$Companion;->getInstance()Landroidx/window/embedding/ExtensionEmbeddingBackend; move-result-object v0 check-cast v0, Landroidx/window/embedding/EmbeddingBackend; iput-object v0, p0, Landroidx/window/embedding/SplitController;->embeddingBackend:Landroidx/window/embedding/EmbeddingBackend; .line 42 invoke-static {}, Lkotlin/collections/SetsKt;->emptySet()Ljava/util/Set; move-result-object v0 iput-object v0, p0, Landroidx/window/embedding/SplitController;->staticSplitRules:Ljava/util/Set; return-void .end method .method public synthetic constructor (Lkotlin/jvm/internal/DefaultConstructorMarker;)V .locals 0 invoke-direct {p0}, Landroidx/window/embedding/SplitController;->()V return-void .end method .method public static final synthetic access$getGlobalInstance$cp()Landroidx/window/embedding/SplitController; .locals 1 sget-object v0, Landroidx/window/embedding/SplitController;->globalInstance:Landroidx/window/embedding/SplitController; return-object v0 .end method .method public static final synthetic access$getGlobalLock$cp()Ljava/util/concurrent/locks/ReentrantLock; .locals 1 sget-object v0, Landroidx/window/embedding/SplitController;->globalLock:Ljava/util/concurrent/locks/ReentrantLock; return-object v0 .end method .method public static final synthetic access$setGlobalInstance$cp(Landroidx/window/embedding/SplitController;)V .locals 0 sput-object p0, Landroidx/window/embedding/SplitController;->globalInstance:Landroidx/window/embedding/SplitController; return-void .end method .method public static final synthetic access$setStaticSplitRules(Landroidx/window/embedding/SplitController;Ljava/util/Set;)V .locals 0 .line 39 invoke-direct {p0, p1}, Landroidx/window/embedding/SplitController;->setStaticSplitRules(Ljava/util/Set;)V return-void .end method .method public static final getInstance()Landroidx/window/embedding/SplitController; .locals 1 .annotation runtime Lkotlin/jvm/JvmStatic; .end annotation sget-object v0, Landroidx/window/embedding/SplitController;->Companion:Landroidx/window/embedding/SplitController$Companion; invoke-virtual {v0}, Landroidx/window/embedding/SplitController$Companion;->getInstance()Landroidx/window/embedding/SplitController; move-result-object v0 return-object v0 .end method .method public static final initialize(Landroid/content/Context;I)V .locals 1 .annotation runtime Lkotlin/jvm/JvmStatic; .end annotation sget-object v0, Landroidx/window/embedding/SplitController;->Companion:Landroidx/window/embedding/SplitController$Companion; invoke-virtual {v0, p0, p1}, Landroidx/window/embedding/SplitController$Companion;->initialize(Landroid/content/Context;I)V return-void .end method .method private final setStaticSplitRules(Ljava/util/Set;)V .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/Set<", "+", "Landroidx/window/embedding/EmbeddingRule;", ">;)V" } .end annotation iput-object p1, p0, Landroidx/window/embedding/SplitController;->staticSplitRules:Ljava/util/Set; iget-object p0, p0, Landroidx/window/embedding/SplitController;->embeddingBackend:Landroidx/window/embedding/EmbeddingBackend; .line 116 invoke-interface {p0, p1}, Landroidx/window/embedding/EmbeddingBackend;->setSplitRules(Ljava/util/Set;)V return-void .end method # virtual methods .method public final addSplitListener(Landroid/app/Activity;Ljava/util/concurrent/Executor;Landroidx/core/util/Consumer;)V .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroid/app/Activity;", "Ljava/util/concurrent/Executor;", "Landroidx/core/util/Consumer<", "Ljava/util/List<", "Landroidx/window/embedding/SplitInfo;", ">;>;)V" } .end annotation const-string v0, "activity" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "executor" invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "consumer" invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-object p0, p0, Landroidx/window/embedding/SplitController;->embeddingBackend:Landroidx/window/embedding/EmbeddingBackend; .line 88 invoke-interface {p0, p1, p2, p3}, Landroidx/window/embedding/EmbeddingBackend;->registerSplitListenerForActivity(Landroid/app/Activity;Ljava/util/concurrent/Executor;Landroidx/core/util/Consumer;)V return-void .end method .method public final clearRegisteredRules()V .locals 1 iget-object v0, p0, Landroidx/window/embedding/SplitController;->embeddingBackend:Landroidx/window/embedding/EmbeddingBackend; iget-object p0, p0, Landroidx/window/embedding/SplitController;->staticSplitRules:Ljava/util/Set; .line 69 invoke-interface {v0, p0}, Landroidx/window/embedding/EmbeddingBackend;->setSplitRules(Ljava/util/Set;)V return-void .end method .method public final getSplitRules()Ljava/util/Set; .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "()", "Ljava/util/Set<", "Landroidx/window/embedding/EmbeddingRule;", ">;" } .end annotation iget-object p0, p0, Landroidx/window/embedding/SplitController;->embeddingBackend:Landroidx/window/embedding/EmbeddingBackend; .line 48 invoke-interface {p0}, Landroidx/window/embedding/EmbeddingBackend;->getSplitRules()Ljava/util/Set; move-result-object p0 check-cast p0, Ljava/lang/Iterable; invoke-static {p0}, Lkotlin/collections/CollectionsKt;->toSet(Ljava/lang/Iterable;)Ljava/util/Set; move-result-object p0 return-object p0 .end method .method public final isSplitSupported()Z .locals 0 iget-object p0, p0, Landroidx/window/embedding/SplitController;->embeddingBackend:Landroidx/window/embedding/EmbeddingBackend; .line 111 invoke-interface {p0}, Landroidx/window/embedding/EmbeddingBackend;->isSplitSupported()Z move-result p0 return p0 .end method .method public final registerRule(Landroidx/window/embedding/EmbeddingRule;)V .locals 1 const-string v0, "rule" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-object p0, p0, Landroidx/window/embedding/SplitController;->embeddingBackend:Landroidx/window/embedding/EmbeddingBackend; .line 55 invoke-interface {p0, p1}, Landroidx/window/embedding/EmbeddingBackend;->registerRule(Landroidx/window/embedding/EmbeddingRule;)V return-void .end method .method public final removeSplitListener(Landroidx/core/util/Consumer;)V .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroidx/core/util/Consumer<", "Ljava/util/List<", "Landroidx/window/embedding/SplitInfo;", ">;>;)V" } .end annotation const-string v0, "consumer" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-object p0, p0, Landroidx/window/embedding/SplitController;->embeddingBackend:Landroidx/window/embedding/EmbeddingBackend; .line 97 invoke-interface {p0, p1}, Landroidx/window/embedding/EmbeddingBackend;->unregisterSplitListenerForActivity(Landroidx/core/util/Consumer;)V return-void .end method .method public final unregisterRule(Landroidx/window/embedding/EmbeddingRule;)V .locals 1 const-string v0, "rule" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-object p0, p0, Landroidx/window/embedding/SplitController;->embeddingBackend:Landroidx/window/embedding/EmbeddingBackend; .line 62 invoke-interface {p0, p1}, Landroidx/window/embedding/EmbeddingBackend;->unregisterRule(Landroidx/window/embedding/EmbeddingRule;)V return-void .end method