1 /*
2  * Copyright (C) 2024 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.wallpaper.testing
18 
19 import com.android.wallpaper.effects.Effect
20 import com.android.wallpaper.effects.EffectsController
21 import com.android.wallpaper.picker.data.WallpaperModel
22 import com.android.wallpaper.picker.preview.data.repository.ImageEffectsRepository
23 import com.android.wallpaper.picker.preview.shared.model.ImageEffectsModel
24 import com.android.wallpaper.widget.floatingsheetcontent.WallpaperEffectsView2
25 import javax.inject.Inject
26 import javax.inject.Singleton
27 import kotlinx.coroutines.flow.MutableStateFlow
28 
29 @Singleton
30 class FakeImageEffectsRepository @Inject constructor() : ImageEffectsRepository {
31     override var imageEffectsModel =
32         MutableStateFlow(ImageEffectsModel(ImageEffectsRepository.EffectStatus.EFFECT_DISABLE))
33     override var wallpaperEffect: MutableStateFlow<Effect?> = MutableStateFlow(null)
34 
areEffectsAvailablenull35     override fun areEffectsAvailable(): Boolean {
36         TODO("Not yet implemented")
37     }
38 
initializeEffectnull39     override suspend fun initializeEffect(
40         staticWallpaperModel: WallpaperModel.StaticWallpaperModel,
41         onWallpaperModelUpdated: (wallpaper: WallpaperModel) -> Unit,
42     ) {
43         TODO("Not yet implemented")
44     }
45 
enableImageEffectnull46     override fun enableImageEffect(effect: EffectsController.EffectEnumInterface) {
47         TODO("Not yet implemented")
48     }
49 
disableImageEffectnull50     override fun disableImageEffect() {
51         TODO("Not yet implemented")
52     }
53 
destroynull54     override fun destroy() {
55         super.destroy()
56     }
57 
isTargetEffectnull58     override fun isTargetEffect(effect: EffectsController.EffectEnumInterface): Boolean {
59         TODO("Not yet implemented")
60     }
61 
getEffectTextResnull62     override fun getEffectTextRes(): WallpaperEffectsView2.EffectTextRes {
63         return WallpaperEffectsView2.EffectTextRes(
64             "sample title",
65             "sample failed title",
66             "sample subtitle",
67             "sample retry instructions",
68             "sample no effect instruction"
69         )
70     }
71 
startEffectsModelDownloadnull72     override fun startEffectsModelDownload(effect: Effect) {
73         TODO("Not yet implemented")
74     }
75 
interruptEffectsModelDownloadnull76     override fun interruptEffectsModelDownload(effect: Effect) {
77         TODO("Not yet implemented")
78     }
79 }
80