• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
20 import com.android.wallpaper.compat.WallpaperManagerCompat;
21 import com.android.wallpaper.model.CategoryProvider;
22 import com.android.wallpaper.model.WallpaperInfo;
23 import com.android.wallpaper.monitor.PerformanceMonitor;
24 import com.android.wallpaper.network.Requester;
25 import com.android.wallpaper.picker.PreviewFragment.PreviewMode;
26 import com.android.wallpaper.picker.individual.IndividualPickerFragment;
27 
28 import androidx.fragment.app.Fragment;
29 
30 /**
31  * Interface for a provider of "injected dependencies." (NOTE: The term "injector" is somewhat of a
32  * misnomer; this is more aptly a service registry as part of a service locator design pattern.)
33  */
34 public interface Injector {
getAlarmManagerWrapper(Context context)35     AlarmManagerWrapper getAlarmManagerWrapper(Context context);
36 
getBitmapCropper()37     BitmapCropper getBitmapCropper();
38 
getCategoryProvider(Context context)39     CategoryProvider getCategoryProvider(Context context);
40 
getCurrentWallpaperFactory(Context context)41     CurrentWallpaperInfoFactory getCurrentWallpaperFactory(Context context);
42 
getExploreIntentChecker(Context context)43     ExploreIntentChecker getExploreIntentChecker(Context context);
44 
getFormFactorChecker(Context context)45     FormFactorChecker getFormFactorChecker(Context context);
46 
getLiveWallpaperStatusChecker(Context context)47     LiveWallpaperStatusChecker getLiveWallpaperStatusChecker(Context context);
48 
getLoggingOptInStatusProvider(Context context)49     LoggingOptInStatusProvider getLoggingOptInStatusProvider(Context context);
50 
getNetworkStatusNotifier(Context context)51     NetworkStatusNotifier getNetworkStatusNotifier(Context context);
52 
getPartnerProvider(Context context)53     PartnerProvider getPartnerProvider(Context context);
54 
getPerformanceMonitor()55     PerformanceMonitor getPerformanceMonitor();
56 
getRequester(Context context)57     Requester getRequester(Context context);
58 
getRotatingWallpaperComponentChecker()59     RotatingWallpaperComponentChecker getRotatingWallpaperComponentChecker();
60 
getSystemFeatureChecker()61     SystemFeatureChecker getSystemFeatureChecker();
62 
getUserEventLogger(Context context)63     UserEventLogger getUserEventLogger(Context context);
64 
getWallpaperManagerCompat(Context context)65     WallpaperManagerCompat getWallpaperManagerCompat(Context context);
66 
getWallpaperPersister(Context context)67     WallpaperPersister getWallpaperPersister(Context context);
68 
getPreferences(Context context)69     WallpaperPreferences getPreferences(Context context);
70 
getWallpaperRefresher(Context context)71     WallpaperRefresher getWallpaperRefresher(Context context);
72 
getWallpaperRotationRefresher()73     WallpaperRotationRefresher getWallpaperRotationRefresher();
74 
getPreviewFragment( Context context, WallpaperInfo wallpaperInfo, @PreviewMode int mode, boolean testingModeEnabled)75     Fragment getPreviewFragment(
76         Context context,
77         WallpaperInfo wallpaperInfo,
78         @PreviewMode int mode,
79         boolean testingModeEnabled);
80 
getPackageStatusNotifier(Context context)81     PackageStatusNotifier getPackageStatusNotifier(Context context);
82 
getIndividualPickerFragment(String collectionId)83     IndividualPickerFragment getIndividualPickerFragment(String collectionId);
84 
getLiveWallpaperInfoFactory(Context context)85     LiveWallpaperInfoFactory getLiveWallpaperInfoFactory(Context context);
86 }
87