Loading packages/SystemUI/src/com/android/systemui/screencapture/cast/ScreenCaptureCastComponent.kt→packages/SystemUI/src/com/android/systemui/screencapture/cast/ScreenCaptureCastUiComponent.kt +6 −6 Original line number Diff line number Diff line Loading @@ -17,16 +17,16 @@ package com.android.systemui.screencapture.cast import com.android.systemui.screencapture.common.CommonModule import com.android.systemui.screencapture.common.ScreenCaptureComponent import com.android.systemui.screencapture.common.ScreenCaptureScope import com.android.systemui.screencapture.common.ScreenCaptureUiComponent import com.android.systemui.screencapture.common.ScreenCaptureUiScope import dagger.Subcomponent /** Dagger subcomponent for Casting. */ @ScreenCaptureScope @ScreenCaptureUiScope @Subcomponent(modules = [CastModule::class, CommonModule::class]) interface ScreenCaptureCastComponent : ScreenCaptureComponent { interface ScreenCaptureCastUiComponent : ScreenCaptureUiComponent { @Subcomponent.Builder interface Builder : ScreenCaptureComponent.Builder { override fun build(): ScreenCaptureCastComponent interface Builder : ScreenCaptureUiComponent.Builder { override fun build(): ScreenCaptureCastUiComponent } } packages/SystemUI/src/com/android/systemui/screencapture/common/CommonModule.kt +2 −2 Original line number Diff line number Diff line Loading @@ -37,7 +37,7 @@ import dagger.Module import dagger.Provides /** * Dagger Module for bindings common to all [ScreenCaptureComponent]s. * Dagger Module for bindings common to all [ScreenCaptureUiComponent]s. * * This module must be included in the Subcomponent or replaced with equivalent bindings. */ Loading Loading @@ -74,7 +74,7 @@ interface CommonModule { companion object { @Provides @ScreenCapture @ScreenCaptureUi fun provideIconFactory(context: Context): IconFactory = IconFactory.obtain(context) } } packages/SystemUI/src/com/android/systemui/screencapture/common/FallbackModule.kt +1 −1 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ import dagger.Module import dagger.Provides /** * Dagger Module for default bindings expected to be provided by [ScreenCaptureComponent] * Dagger Module for default bindings expected to be provided by [ScreenCaptureUiComponent] * implementation. */ @Module Loading packages/SystemUI/src/com/android/systemui/screencapture/common/Qualifiers.kt +4 −1 Original line number Diff line number Diff line Loading @@ -19,4 +19,7 @@ package com.android.systemui.screencapture.common import javax.inject.Qualifier /** Used to qualify an item as the one used by Screen Capture. */ @Qualifier @MustBeDocumented @Retention(AnnotationRetention.RUNTIME) annotation class ScreenCapture @Qualifier @MustBeDocumented @Retention(AnnotationRetention.RUNTIME) annotation class ScreenCaptureUi packages/SystemUI/src/com/android/systemui/screencapture/common/Scopes.kt +2 −2 Original line number Diff line number Diff line Loading @@ -18,8 +18,8 @@ package com.android.systemui.screencapture.common import javax.inject.Scope /** Scope annotation for Screen Capture scoped items within the [ScreenCaptureComponent]. */ /** Scope annotation for Screen Capture scoped items within the [ScreenCaptureUiComponent]. */ @Scope @MustBeDocumented @Retention(AnnotationRetention.RUNTIME) annotation class ScreenCaptureScope annotation class ScreenCaptureUiScope Loading
packages/SystemUI/src/com/android/systemui/screencapture/cast/ScreenCaptureCastComponent.kt→packages/SystemUI/src/com/android/systemui/screencapture/cast/ScreenCaptureCastUiComponent.kt +6 −6 Original line number Diff line number Diff line Loading @@ -17,16 +17,16 @@ package com.android.systemui.screencapture.cast import com.android.systemui.screencapture.common.CommonModule import com.android.systemui.screencapture.common.ScreenCaptureComponent import com.android.systemui.screencapture.common.ScreenCaptureScope import com.android.systemui.screencapture.common.ScreenCaptureUiComponent import com.android.systemui.screencapture.common.ScreenCaptureUiScope import dagger.Subcomponent /** Dagger subcomponent for Casting. */ @ScreenCaptureScope @ScreenCaptureUiScope @Subcomponent(modules = [CastModule::class, CommonModule::class]) interface ScreenCaptureCastComponent : ScreenCaptureComponent { interface ScreenCaptureCastUiComponent : ScreenCaptureUiComponent { @Subcomponent.Builder interface Builder : ScreenCaptureComponent.Builder { override fun build(): ScreenCaptureCastComponent interface Builder : ScreenCaptureUiComponent.Builder { override fun build(): ScreenCaptureCastUiComponent } }
packages/SystemUI/src/com/android/systemui/screencapture/common/CommonModule.kt +2 −2 Original line number Diff line number Diff line Loading @@ -37,7 +37,7 @@ import dagger.Module import dagger.Provides /** * Dagger Module for bindings common to all [ScreenCaptureComponent]s. * Dagger Module for bindings common to all [ScreenCaptureUiComponent]s. * * This module must be included in the Subcomponent or replaced with equivalent bindings. */ Loading Loading @@ -74,7 +74,7 @@ interface CommonModule { companion object { @Provides @ScreenCapture @ScreenCaptureUi fun provideIconFactory(context: Context): IconFactory = IconFactory.obtain(context) } }
packages/SystemUI/src/com/android/systemui/screencapture/common/FallbackModule.kt +1 −1 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ import dagger.Module import dagger.Provides /** * Dagger Module for default bindings expected to be provided by [ScreenCaptureComponent] * Dagger Module for default bindings expected to be provided by [ScreenCaptureUiComponent] * implementation. */ @Module Loading
packages/SystemUI/src/com/android/systemui/screencapture/common/Qualifiers.kt +4 −1 Original line number Diff line number Diff line Loading @@ -19,4 +19,7 @@ package com.android.systemui.screencapture.common import javax.inject.Qualifier /** Used to qualify an item as the one used by Screen Capture. */ @Qualifier @MustBeDocumented @Retention(AnnotationRetention.RUNTIME) annotation class ScreenCapture @Qualifier @MustBeDocumented @Retention(AnnotationRetention.RUNTIME) annotation class ScreenCaptureUi
packages/SystemUI/src/com/android/systemui/screencapture/common/Scopes.kt +2 −2 Original line number Diff line number Diff line Loading @@ -18,8 +18,8 @@ package com.android.systemui.screencapture.common import javax.inject.Scope /** Scope annotation for Screen Capture scoped items within the [ScreenCaptureComponent]. */ /** Scope annotation for Screen Capture scoped items within the [ScreenCaptureUiComponent]. */ @Scope @MustBeDocumented @Retention(AnnotationRetention.RUNTIME) annotation class ScreenCaptureScope annotation class ScreenCaptureUiScope