Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2017 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.wallpaper.module; |
| 17 | |
| 18 | import android.content.Context; |
| 19 | |
Clément Julliard | ea1638d | 2018-05-21 19:15:17 -0700 | [diff] [blame] | 20 | import android.support.v4.app.Fragment; |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 21 | import com.android.wallpaper.compat.WallpaperManagerCompat; |
| 22 | import com.android.wallpaper.model.CategoryProvider; |
Clément Julliard | ea1638d | 2018-05-21 19:15:17 -0700 | [diff] [blame] | 23 | import com.android.wallpaper.model.WallpaperInfo; |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 24 | import com.android.wallpaper.monitor.PerformanceMonitor; |
| 25 | import com.android.wallpaper.network.Requester; |
Clément Julliard | ea1638d | 2018-05-21 19:15:17 -0700 | [diff] [blame] | 26 | import com.android.wallpaper.picker.PreviewFragment.PreviewMode; |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 27 | |
| 28 | /** |
| 29 | * Interface for a provider of "injected dependencies." (NOTE: The term "injector" is somewhat of a |
| 30 | * misnomer; this is more aptly a service registry as part of a service locator design pattern.) |
| 31 | */ |
| 32 | public interface Injector { |
| 33 | AlarmManagerWrapper getAlarmManagerWrapper(Context context); |
| 34 | |
| 35 | BitmapCropper getBitmapCropper(); |
| 36 | |
| 37 | CategoryProvider getCategoryProvider(Context context); |
| 38 | |
| 39 | CurrentWallpaperInfoFactory getCurrentWallpaperFactory(Context context); |
| 40 | |
| 41 | ExploreIntentChecker getExploreIntentChecker(Context context); |
| 42 | |
| 43 | FormFactorChecker getFormFactorChecker(Context context); |
| 44 | |
| 45 | LiveWallpaperStatusChecker getLiveWallpaperStatusChecker(Context context); |
| 46 | |
| 47 | LoggingOptInStatusProvider getLoggingOptInStatusProvider(Context context); |
| 48 | |
| 49 | NetworkStatusNotifier getNetworkStatusNotifier(Context context); |
| 50 | |
| 51 | PartnerProvider getPartnerProvider(Context context); |
| 52 | |
| 53 | PerformanceMonitor getPerformanceMonitor(); |
| 54 | |
| 55 | Requester getRequester(Context context); |
| 56 | |
| 57 | RotatingWallpaperComponentChecker getRotatingWallpaperComponentChecker(); |
| 58 | |
| 59 | SystemFeatureChecker getSystemFeatureChecker(); |
| 60 | |
| 61 | UserEventLogger getUserEventLogger(Context context); |
| 62 | |
| 63 | WallpaperManagerCompat getWallpaperManagerCompat(Context context); |
| 64 | |
| 65 | WallpaperPersister getWallpaperPersister(Context context); |
| 66 | |
| 67 | WallpaperPreferences getPreferences(Context context); |
| 68 | |
| 69 | WallpaperRefresher getWallpaperRefresher(Context context); |
| 70 | |
| 71 | WallpaperRotationRefresher getWallpaperRotationRefresher(); |
Clément Julliard | ea1638d | 2018-05-21 19:15:17 -0700 | [diff] [blame] | 72 | |
| 73 | Fragment getPreviewFragment( |
| 74 | WallpaperInfo wallpaperInfo, |
| 75 | @PreviewMode int mode, |
| 76 | boolean testingModeEnabled); |
Santiago Etchebehere | 1ee76a2 | 2018-05-15 15:02:24 -0700 | [diff] [blame] | 77 | |
| 78 | PackageStatusNotifier getPackageStatusNotifier(Context context); |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 79 | } |