1 /* 2 * Copyright (C) 2022 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 package com.android.systemui.keyguard.data.repository 18 19 import com.android.systemui.bouncer.data.repository.BouncerMessageRepository 20 import com.android.systemui.bouncer.data.repository.BouncerMessageRepositoryImpl 21 import com.android.systemui.bouncer.data.repository.KeyguardBouncerRepository 22 import com.android.systemui.bouncer.data.repository.KeyguardBouncerRepositoryImpl 23 import com.android.systemui.keyguard.shared.transition.KeyguardTransitionAnimationCallback 24 import com.android.systemui.keyguard.shared.transition.KeyguardTransitionAnimationCallbackDelegator 25 import com.android.systemui.wallpapers.data.repository.WallpaperFocalAreaRepository 26 import com.android.systemui.wallpapers.data.repository.WallpaperFocalAreaRepositoryImpl 27 import dagger.Binds 28 import dagger.Module 29 30 @Module 31 interface KeyguardRepositoryModule { keyguardRepositorynull32 @Binds fun keyguardRepository(impl: KeyguardRepositoryImpl): KeyguardRepository 33 34 @Binds 35 fun keyguardSurfaceBehindRepository( 36 impl: KeyguardSurfaceBehindRepositoryImpl 37 ): KeyguardSurfaceBehindRepository 38 39 @Binds 40 fun keyguardTransitionAnimationCallback( 41 impl: KeyguardTransitionAnimationCallbackDelegator 42 ): KeyguardTransitionAnimationCallback 43 44 @Binds 45 fun keyguardTransitionRepository( 46 impl: KeyguardTransitionRepositoryImpl 47 ): KeyguardTransitionRepository 48 49 @Binds 50 fun lightRevealScrimRepository(impl: LightRevealScrimRepositoryImpl): LightRevealScrimRepository 51 52 @Binds fun devicePostureRepository(impl: DevicePostureRepositoryImpl): DevicePostureRepository 53 54 @Binds 55 fun biometricSettingsRepository( 56 impl: BiometricSettingsRepositoryImpl 57 ): BiometricSettingsRepository 58 59 @Binds 60 fun deviceEntryFingerprintAuthRepository( 61 impl: DeviceEntryFingerprintAuthRepositoryImpl 62 ): DeviceEntryFingerprintAuthRepository 63 64 @Binds 65 fun keyguardBouncerRepository(impl: KeyguardBouncerRepositoryImpl): KeyguardBouncerRepository 66 67 @Binds 68 fun bouncerMessageRepository(impl: BouncerMessageRepositoryImpl): BouncerMessageRepository 69 70 @Binds fun trustRepository(impl: TrustRepositoryImpl): TrustRepository 71 72 @Binds fun keyguardClockRepository(impl: KeyguardClockRepositoryImpl): KeyguardClockRepository 73 74 @Binds 75 fun keyguardSmartspaceRepository( 76 impl: KeyguardSmartspaceRepositoryImpl 77 ): KeyguardSmartspaceRepository 78 79 @Binds 80 fun bindWallpaperFocalAreaRepository( 81 impl: WallpaperFocalAreaRepositoryImpl 82 ): WallpaperFocalAreaRepository 83 } 84