Loading packages/SystemUI/src/com/android/systemui/display/data/repository/FakePerDisplayRepository.kt +0 −3 Original line number Diff line number Diff line Loading @@ -32,9 +32,6 @@ class FakePerDisplayRepository<T> : PerDisplayRepository<T> { return instances[displayId] } override val displayIds: Set<Int> get() = instances.keys override val debugName: String get() = "FakePerDisplayRepository" } packages/SystemUI/src/com/android/systemui/display/data/repository/PerDisplayRepository.kt +0 −10 Original line number Diff line number Diff line Loading @@ -86,9 +86,6 @@ interface PerDisplayRepository<T> { /** Gets the cached instance or create a new one for a given display. */ operator fun get(displayId: Int): T? /** List of display ids for which this repository has an instance. */ val displayIds: Set<Int> /** Debug name for this repository, mainly for tracing and logging. */ val debugName: String } Loading Loading @@ -122,9 +119,6 @@ constructor( backgroundApplicationScope.launch("$debugName#start") { start() } } override val displayIds: Set<Int> get() = perDisplayInstances.keys private suspend fun start() { dumpManager.registerNormalDumpable("PerDisplayRepository-${debugName}", this) displayRepository.displayIds.collectLatest { displayIds -> Loading Loading @@ -199,8 +193,6 @@ class DefaultDisplayOnlyInstanceRepositoryImpl<T>( private val lazyDefaultDisplayInstance by lazy { instanceProvider.createInstance(Display.DEFAULT_DISPLAY) } override val displayIds: Set<Int> = setOf(Display.DEFAULT_DISPLAY) override fun get(displayId: Int): T? = lazyDefaultDisplayInstance } Loading @@ -214,7 +206,5 @@ class DefaultDisplayOnlyInstanceRepositoryImpl<T>( */ class SingleInstanceRepositoryImpl<T>(override val debugName: String, private val instance: T) : PerDisplayRepository<T> { override val displayIds: Set<Int> = setOf(Display.DEFAULT_DISPLAY) override fun get(displayId: Int): T? = instance } Loading
packages/SystemUI/src/com/android/systemui/display/data/repository/FakePerDisplayRepository.kt +0 −3 Original line number Diff line number Diff line Loading @@ -32,9 +32,6 @@ class FakePerDisplayRepository<T> : PerDisplayRepository<T> { return instances[displayId] } override val displayIds: Set<Int> get() = instances.keys override val debugName: String get() = "FakePerDisplayRepository" }
packages/SystemUI/src/com/android/systemui/display/data/repository/PerDisplayRepository.kt +0 −10 Original line number Diff line number Diff line Loading @@ -86,9 +86,6 @@ interface PerDisplayRepository<T> { /** Gets the cached instance or create a new one for a given display. */ operator fun get(displayId: Int): T? /** List of display ids for which this repository has an instance. */ val displayIds: Set<Int> /** Debug name for this repository, mainly for tracing and logging. */ val debugName: String } Loading Loading @@ -122,9 +119,6 @@ constructor( backgroundApplicationScope.launch("$debugName#start") { start() } } override val displayIds: Set<Int> get() = perDisplayInstances.keys private suspend fun start() { dumpManager.registerNormalDumpable("PerDisplayRepository-${debugName}", this) displayRepository.displayIds.collectLatest { displayIds -> Loading Loading @@ -199,8 +193,6 @@ class DefaultDisplayOnlyInstanceRepositoryImpl<T>( private val lazyDefaultDisplayInstance by lazy { instanceProvider.createInstance(Display.DEFAULT_DISPLAY) } override val displayIds: Set<Int> = setOf(Display.DEFAULT_DISPLAY) override fun get(displayId: Int): T? = lazyDefaultDisplayInstance } Loading @@ -214,7 +206,5 @@ class DefaultDisplayOnlyInstanceRepositoryImpl<T>( */ class SingleInstanceRepositoryImpl<T>(override val debugName: String, private val instance: T) : PerDisplayRepository<T> { override val displayIds: Set<Int> = setOf(Display.DEFAULT_DISPLAY) override fun get(displayId: Int): T? = instance }