1 /* 2 * Copyright (C) 2023 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 * 16 */ 17 18 package com.android.systemui.keyguard.ui.view.layout.blueprints 19 20 import com.android.systemui.CoreStartable 21 import com.android.systemui.keyguard.domain.interactor.KeyguardBlueprintInteractor 22 import com.android.systemui.keyguard.shared.model.KeyguardBlueprint 23 import com.android.systemui.keyguard.ui.view.layout.KeyguardBlueprintCommandListener 24 import dagger.Binds 25 import dagger.Module 26 import dagger.multibindings.ClassKey 27 import dagger.multibindings.IntoMap 28 import dagger.multibindings.IntoSet 29 30 @Module 31 abstract class KeyguardBlueprintModule { 32 @Binds 33 @IntoSet bindDefaultBlueprintnull34 abstract fun bindDefaultBlueprint( 35 defaultLockscreenBlueprint: DefaultKeyguardBlueprint 36 ): KeyguardBlueprint 37 38 @Binds 39 @IntoSet 40 abstract fun bindSplitShadeBlueprint( 41 splitShadeBlueprint: SplitShadeKeyguardBlueprint 42 ): KeyguardBlueprint 43 44 @Binds 45 @IntoMap 46 @ClassKey(KeyguardBlueprintInteractor::class) 47 abstract fun bindsKeyguardBlueprintInteractor( 48 keyguardBlueprintInteractor: KeyguardBlueprintInteractor 49 ): CoreStartable 50 51 @Binds 52 @IntoMap 53 @ClassKey(KeyguardBlueprintCommandListener::class) 54 abstract fun bindsKeyguardBlueprintCommandListener( 55 keyguardBlueprintCommandListener: KeyguardBlueprintCommandListener 56 ): CoreStartable 57 } 58