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 package com.android.systemui.biometrics.domain
17 
18 import com.android.systemui.biometrics.domain.interactor.BiometricStatusInteractor
19 import com.android.systemui.biometrics.domain.interactor.BiometricStatusInteractorImpl
20 import com.android.systemui.biometrics.domain.interactor.CredentialInteractor
21 import com.android.systemui.biometrics.domain.interactor.CredentialInteractorImpl
22 import com.android.systemui.biometrics.domain.interactor.DisplayStateInteractor
23 import com.android.systemui.biometrics.domain.interactor.DisplayStateInteractorImpl
24 import com.android.systemui.biometrics.domain.interactor.LogContextInteractor
25 import com.android.systemui.biometrics.domain.interactor.LogContextInteractorImpl
26 import com.android.systemui.biometrics.domain.interactor.PromptSelectorInteractor
27 import com.android.systemui.biometrics.domain.interactor.PromptSelectorInteractorImpl
28 import com.android.systemui.dagger.SysUISingleton
29 import dagger.Binds
30 import dagger.Module
31 
32 @Module
33 interface BiometricsDomainLayerModule {
34 
35     @Binds
36     @SysUISingleton
providesPromptSelectorInteractornull37     fun providesPromptSelectorInteractor(
38         impl: PromptSelectorInteractorImpl
39     ): PromptSelectorInteractor
40 
41     @Binds
42     @SysUISingleton
43     fun providesBiometricStatusInteractor(
44         impl: BiometricStatusInteractorImpl
45     ): BiometricStatusInteractor
46 
47     @Binds
48     @SysUISingleton
49     fun providesCredentialInteractor(impl: CredentialInteractorImpl): CredentialInteractor
50 
51     @Binds
52     @SysUISingleton
53     fun providesDisplayStateInteractor(impl: DisplayStateInteractorImpl): DisplayStateInteractor
54 
55     @Binds
56     @SysUISingleton
57     fun bindsLogContextInteractor(impl: LogContextInteractorImpl): LogContextInteractor
58 }
59