Home
last modified time | relevance | path

Searched refs:WallpaperModel (Results 1 – 25 of 45) sorted by relevance

12

/packages/apps/WallpaperPicker2/tests/common/src/com/android/wallpaper/testing/
DFakeDefaultWallpaperModelFactory.kt23 import com.android.wallpaper.picker.data.WallpaperModel
31 private var staticWallpaperModel: WallpaperModel? = null
32 private var liveWallpaperModel: WallpaperModel? = null
34 override fun getWallpaperModel(context: Context, wallpaperInfo: WallpaperInfo): WallpaperModel { in getWallpaperModel()
57 fun getStaticWallpaperModel(): WallpaperModel? { in getStaticWallpaperModel()
61 fun setStaticWallpaperModel(model: WallpaperModel) { in setStaticWallpaperModel()
65 fun getLiveWallpaperModel(): WallpaperModel? { in getLiveWallpaperModel()
69 fun setLiveWallpaperModel(model: WallpaperModel) { in setLiveWallpaperModel()
DFakeWallpaperClient.kt28 import com.android.wallpaper.picker.customization.shared.model.WallpaperModel in <lambda>()
29 import com.android.wallpaper.picker.data.WallpaperModel.LiveWallpaperModel in <lambda>()
30 import com.android.wallpaper.picker.data.WallpaperModel.StaticWallpaperModel in <lambda>()
44 mutableListOf<com.android.wallpaper.picker.data.WallpaperModel>(), in <lambda>()
61 recentWallpapersByDestination: Map<WallpaperDestination, List<WallpaperModel>>, in <lambda>()
79 ): Flow<List<WallpaperModel>> { in <lambda>()
93 ): WallpaperModel { in <lambda>()
119 wallpaperModel: com.android.wallpaper.picker.data.WallpaperModel, in <lambda>()
181 WallpaperModel(wallpaperId = "zero", placeholderColor = 0, title = "title1"), in <lambda>()
182 WallpaperModel(wallpaperId = "one", placeholderColor = 1, title = "title2"), in <lambda>()
[all …]
DWallpaperModelUtils.kt36 import com.android.wallpaper.picker.data.WallpaperModel
65 ): WallpaperModel.StaticWallpaperModel { in getStaticWallpaperModel()
66 return WallpaperModel.StaticWallpaperModel( in getStaticWallpaperModel()
114 ): WallpaperModel.LiveWallpaperModel { in getLiveWallpaperModel()
115 return WallpaperModel.LiveWallpaperModel( in getLiveWallpaperModel()
DFakeImageEffectsRepository.kt21 import com.android.wallpaper.picker.data.WallpaperModel
40 staticWallpaperModel: WallpaperModel.StaticWallpaperModel, in initializeEffect()
41 onWallpaperModelUpdated: (wallpaper: WallpaperModel) -> Unit, in initializeEffect()
DFakeDefaultCategoryFactory.kt26 import com.android.wallpaper.picker.data.WallpaperModel
39 private val wallpaperModels = mutableListOf<WallpaperModel>()
43 fun setWallpaperModels(wallpaperModels: List<WallpaperModel>) { in setWallpaperModels()
DFakeLiveWallpaperDownloader.kt22 import com.android.wallpaper.picker.data.WallpaperModel
37 wallpaperData: WallpaperModel.StaticWallpaperModel, in setWallpaperDownloadResult()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DWallpaperModelLoader.java34 public class WallpaperModelLoader implements ModelLoader<WallpaperModel, Drawable> {
37 public boolean handles(WallpaperModel wallpaperModel) { in handles()
43 public LoadData<Drawable> buildLoadData(WallpaperModel wallpaperModel, int width, int height, in buildLoadData()
53 implements ModelLoaderFactory<WallpaperModel, Drawable> {
58 public ModelLoader<WallpaperModel, Drawable> build(MultiModelLoaderFactory multiFactory) { in build()
73 private WallpaperModel mWallpaperModel;
77 public WallpaperFetcher(WallpaperModel wallpaperModel, int width, int height) { in WallpaperFetcher()
DBuiltInWallpaperAsset.java59 private WallpaperModel mBuiltInWallpaperModel;
157 … new WallpaperModel(context.getApplicationContext(), WallpaperModel.SOURCE_BUILT_IN); in loadDrawable()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/
DWallpaperPreviewActivity.kt36 import com.android.wallpaper.picker.data.WallpaperModel in <lambda>()
92 (wallpaper as? WallpaperModel.LiveWallpaperModel) in <lambda>()
113 if (wallpaper is WallpaperModel.StaticWallpaperModel) { in <lambda>()
119 (wallpaper as? WallpaperModel.StaticWallpaperModel)?.downloadableWallpaperData != null in <lambda>()
129 (wallpaper as? WallpaperModel.LiveWallpaperModel) in <lambda>()
137 (wallpaper as? WallpaperModel.StaticWallpaperModel)?.imageWallpaperData != null && in <lambda>()
177 (wallpaperPreviewViewModel.wallpaper.value as? WallpaperModel.LiveWallpaperModel)?.let { in <lambda>()
201 private fun WallpaperInfo.convertToWallpaperModel(): WallpaperModel { in <lambda>()
265 private fun WallpaperModel.LiveWallpaperModel.getNewCreativeWallpaperArgs() = in <lambda>() method
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/converter/
DDefaultWallpaperModelFactory.kt25 import com.android.wallpaper.picker.data.WallpaperModel
36 override fun getWallpaperModel(context: Context, wallpaperInfo: WallpaperInfo): WallpaperModel { in getWallpaperModel()
38 WallpaperModel.LiveWallpaperModel( in getWallpaperModel()
46 WallpaperModel.StaticWallpaperModel( in getWallpaperModel()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/customization/data/content/
DWallpaperClient.kt28 import com.android.wallpaper.picker.customization.shared.model.WallpaperModel
29 import com.android.wallpaper.picker.data.WallpaperModel.LiveWallpaperModel
30 import com.android.wallpaper.picker.data.WallpaperModel.StaticWallpaperModel
41 ): Flow<List<WallpaperModel>>
DWallpaperClientImpl.kt57 import com.android.wallpaper.picker.customization.shared.model.WallpaperModel in <lambda>()
58 import com.android.wallpaper.picker.data.WallpaperModel.LiveWallpaperModel in <lambda>()
59 import com.android.wallpaper.picker.data.WallpaperModel.StaticWallpaperModel in <lambda>()
87 private val cachedRecents: MutableMap<WallpaperDestination, List<WallpaperModel>> = in <lambda>()
107 ): Flow<List<WallpaperModel>> { in <lambda>()
452 ): List<WallpaperModel> { in <lambda>()
467 ): List<WallpaperModel> { in <lambda>()
493 WallpaperModel( in <lambda>()
507 ): WallpaperModel { in <lambda>()
517 return WallpaperModel( in <lambda>()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/data/
DWallpaperModel.kt24 sealed class WallpaperModel { class
37 ) : WallpaperModel()
45 ) : WallpaperModel()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/data/repository/
DWallpaperPreviewRepository.kt20 import com.android.wallpaper.picker.data.WallpaperModel
43 private val _wallpaperModel = MutableStateFlow<WallpaperModel?>(null)
44 val wallpaperModel: StateFlow<WallpaperModel?> = _wallpaperModel.asStateFlow()
46 fun setWallpaperModel(wallpaperModel: WallpaperModel) { in setWallpaperModel()
DImageEffectsRepository.kt21 import com.android.wallpaper.picker.data.WallpaperModel
44 staticWallpaperModel: WallpaperModel.StaticWallpaperModel, in areEffectsAvailable()
45 onWallpaperModelUpdated: (wallpaper: WallpaperModel) -> Unit in areEffectsAvailable()
/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/picker/customization/ui/viewmodel/
DWallpaperQuickSwitchViewModelTest.kt24 import com.android.wallpaper.picker.customization.shared.model.WallpaperModel in <lambda>()
102 WallpaperModel( in <lambda>()
107 WallpaperModel( in <lambda>()
112 WallpaperModel( in <lambda>()
136 WallpaperModel( in <lambda>()
187 models: List<WallpaperModel> = FakeWallpaperClient.INITIAL_RECENT_WALLPAPERS, in <lambda>()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/domain/interactor/
DWallpaperPreviewInteractor.kt27 import com.android.wallpaper.picker.data.WallpaperModel
28 import com.android.wallpaper.picker.data.WallpaperModel.StaticWallpaperModel
42 val wallpaperModel: StateFlow<WallpaperModel?> = wallpaperPreviewRepository.wallpaperModel
75 wallpaperModel: WallpaperModel.LiveWallpaperModel, in setLiveWallpaper()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/customization/data/repository/
DWallpaperRepository.kt30 import com.android.wallpaper.picker.customization.shared.model.WallpaperModel in <lambda>()
31 import com.android.wallpaper.picker.data.WallpaperModel.LiveWallpaperModel in <lambda>()
32 import com.android.wallpaper.picker.data.WallpaperModel.StaticWallpaperModel in <lambda>()
74 previews: List<WallpaperModel>?, in <lambda>()
100 ): Flow<List<WallpaperModel>> { in <lambda>()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/customization/domain/interactor/
DWallpaperInteractor.kt25 import com.android.wallpaper.picker.customization.shared.model.WallpaperModel in <lambda>()
41 fun wallpaperUpdateEvents(screen: Screen): Flow<WallpaperModel?> { in wallpaperUpdateEvents()
86 ): Flow<List<WallpaperModel>> { in previews()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/shared/model/
DLiveWallpaperDownloadResultModel.kt19 import com.android.wallpaper.picker.data.WallpaperModel
23 val wallpaperModel: WallpaperModel.LiveWallpaperModel?
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/data/category/
DCollectionCategoryData.kt20 import com.android.wallpaper.picker.data.WallpaperModel
24 val wallpaperModels: MutableList<WallpaperModel>,
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/viewmodel/
DFullWallpaperPreviewViewModel.kt19 import com.android.wallpaper.picker.data.WallpaperModel
25 val wallpaper: WallpaperModel,
DWallpaperPreviewViewModel.kt29 import com.android.wallpaper.picker.data.WallpaperModel in <lambda>()
30 import com.android.wallpaper.picker.data.WallpaperModel.LiveWallpaperModel in <lambda>()
31 import com.android.wallpaper.picker.data.WallpaperModel.StaticWallpaperModel in <lambda>()
91 val wallpaper: StateFlow<WallpaperModel?> = interactor.wallpaperModel in <lambda>()
212 val smallWallpaper: Flow<Pair<WallpaperModel, WhichPreview>> = in <lambda>()
458 private fun WallpaperModel.isDownloadableWallpaper(): Boolean { in <lambda>() method
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/data/util/
DLiveWallpaperDownloader.kt22 import com.android.wallpaper.picker.data.WallpaperModel
37 wallpaperData: WallpaperModel.StaticWallpaperModel,
DDefaultLiveWallpaperDownloader.kt22 import com.android.wallpaper.picker.data.WallpaperModel
32 wallpaperData: WallpaperModel.StaticWallpaperModel, in initiateDownloadableService()

12