Xiyuan Xia | 1b30f79 | 2016-01-06 08:50:30 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2016 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; |
| 18 | |
Gus Prevas | 59ec2ff | 2018-12-28 16:20:28 -0500 | [diff] [blame] | 19 | import static com.android.systemui.Dependency.ALLOW_NOTIFICATION_LONG_PRESS_NAME; |
Jason Monk | 27d01a62 | 2018-12-10 15:57:09 -0500 | [diff] [blame] | 20 | import static com.android.systemui.Dependency.LEAK_REPORT_EMAIL_NAME; |
| 21 | |
| 22 | import android.annotation.Nullable; |
Lucas Dupin | 82aa163 | 2017-12-13 00:13:57 -0800 | [diff] [blame] | 23 | import android.app.AlarmManager; |
Xiyuan Xia | 1b30f79 | 2016-01-06 08:50:30 -0800 | [diff] [blame] | 24 | import android.content.Context; |
Lucas Dupin | c9c2c8f | 2019-06-26 16:32:56 -0700 | [diff] [blame] | 25 | import android.content.pm.PackageManager; |
Lucas Dupin | 787f9a0 | 2019-04-24 14:56:52 -0700 | [diff] [blame] | 26 | import android.os.Handler; |
| 27 | import android.os.Looper; |
Xiyuan Xia | 1b30f79 | 2016-01-06 08:50:30 -0800 | [diff] [blame] | 28 | import android.util.Log; |
| 29 | import android.view.ViewGroup; |
| 30 | |
Gus Prevas | ab33679 | 2018-11-14 13:52:20 -0500 | [diff] [blame] | 31 | import com.android.internal.colorextraction.ColorExtractor.GradientColors; |
Yohei Yukawa | 795f010 | 2018-04-13 14:55:30 -0700 | [diff] [blame] | 32 | import com.android.internal.util.function.TriConsumer; |
Xiyuan Xia | 1b30f79 | 2016-01-06 08:50:30 -0800 | [diff] [blame] | 33 | import com.android.internal.widget.LockPatternUtils; |
Lucas Dupin | 787f9a0 | 2019-04-24 14:56:52 -0700 | [diff] [blame] | 34 | import com.android.keyguard.KeyguardUpdateMonitor; |
Xiyuan Xia | 1b30f79 | 2016-01-06 08:50:30 -0800 | [diff] [blame] | 35 | import com.android.keyguard.ViewMediatorCallback; |
Jason Monk | 27d01a62 | 2018-12-10 15:57:09 -0500 | [diff] [blame] | 36 | import com.android.systemui.assist.AssistManager; |
Dave Mankoff | dde5ee6 | 2019-05-02 17:36:11 -0400 | [diff] [blame] | 37 | import com.android.systemui.classifier.FalsingManagerFactory; |
Lucas Dupin | d722135 | 2019-04-29 19:43:11 -0700 | [diff] [blame] | 38 | import com.android.systemui.dock.DockManager; |
Jason Monk | 9424af7 | 2018-12-19 14:17:26 -0500 | [diff] [blame] | 39 | import com.android.systemui.fragments.FragmentService; |
Jorim Jaggi | 241ae10 | 2016-11-02 21:57:33 -0700 | [diff] [blame] | 40 | import com.android.systemui.keyguard.DismissCallbackRegistry; |
Beverly | 8fdb533 | 2019-02-04 14:29:49 -0500 | [diff] [blame] | 41 | import com.android.systemui.plugins.statusbar.StatusBarStateController; |
Jason Monk | 27d01a62 | 2018-12-10 15:57:09 -0500 | [diff] [blame] | 42 | import com.android.systemui.power.EnhancedEstimates; |
| 43 | import com.android.systemui.power.EnhancedEstimatesImpl; |
Zachary Iqbal | f50284c | 2017-01-22 18:54:46 -0800 | [diff] [blame] | 44 | import com.android.systemui.statusbar.KeyguardIndicationController; |
Eliot Courtney | 3985ad5 | 2017-11-17 16:51:52 +0900 | [diff] [blame] | 45 | import com.android.systemui.statusbar.NotificationListener; |
Eliot Courtney | 2b4c3a0 | 2017-11-27 13:27:46 +0900 | [diff] [blame] | 46 | import com.android.systemui.statusbar.NotificationLockscreenUserManager; |
Gus Prevas | ab33679 | 2018-11-14 13:52:20 -0500 | [diff] [blame] | 47 | import com.android.systemui.statusbar.NotificationLockscreenUserManagerImpl; |
Lucas Dupin | 2040337 | 2019-02-14 19:59:18 -0800 | [diff] [blame] | 48 | import com.android.systemui.statusbar.NotificationMediaManager; |
Xiaohui Chen | 5da7135 | 2016-02-22 10:04:41 -0800 | [diff] [blame] | 49 | import com.android.systemui.statusbar.ScrimView; |
Gus Prevas | ab33679 | 2018-11-14 13:52:20 -0500 | [diff] [blame] | 50 | import com.android.systemui.statusbar.notification.NotificationEntryManager; |
Gus Prevas | ec9e1f0 | 2018-12-18 15:28:12 -0500 | [diff] [blame] | 51 | import com.android.systemui.statusbar.notification.NotificationInterruptionStateProvider; |
Selim Cinek | 820ba2d | 2019-06-18 18:59:09 -0700 | [diff] [blame] | 52 | import com.android.systemui.statusbar.notification.NotificationWakeUpCoordinator; |
Ned Burns | f81c4c4 | 2019-01-07 14:10:43 -0500 | [diff] [blame] | 53 | import com.android.systemui.statusbar.notification.collection.NotificationData; |
Lucas Dupin | 9e3fa10 | 2017-11-08 17:16:55 -0800 | [diff] [blame] | 54 | import com.android.systemui.statusbar.phone.DozeParameters; |
Xiyuan Xia | 1b30f79 | 2016-01-06 08:50:30 -0800 | [diff] [blame] | 55 | import com.android.systemui.statusbar.phone.KeyguardBouncer; |
Selim Cinek | 820ba2d | 2019-06-18 18:59:09 -0700 | [diff] [blame] | 56 | import com.android.systemui.statusbar.phone.KeyguardBypassController; |
Jason Monk | 27d01a62 | 2018-12-10 15:57:09 -0500 | [diff] [blame] | 57 | import com.android.systemui.statusbar.phone.KeyguardEnvironmentImpl; |
Lucas Dupin | c9c2c8f | 2019-06-26 16:32:56 -0700 | [diff] [blame] | 58 | import com.android.systemui.statusbar.phone.KeyguardLiftController; |
Zachary Iqbal | f50284c | 2017-01-22 18:54:46 -0800 | [diff] [blame] | 59 | import com.android.systemui.statusbar.phone.LockIcon; |
Jorim Jaggi | e31f6b8 | 2016-07-01 16:15:09 -0700 | [diff] [blame] | 60 | import com.android.systemui.statusbar.phone.LockscreenWallpaper; |
Xiaohui Chen | eb04a99 | 2016-03-22 14:58:03 -0700 | [diff] [blame] | 61 | import com.android.systemui.statusbar.phone.NotificationIconAreaController; |
Xiaohui Chen | 5da7135 | 2016-02-22 10:04:41 -0800 | [diff] [blame] | 62 | import com.android.systemui.statusbar.phone.ScrimController; |
Yohei Yukawa | 795f010 | 2018-04-13 14:55:30 -0700 | [diff] [blame] | 63 | import com.android.systemui.statusbar.phone.ScrimState; |
Ben Lin | 90cd611 | 2019-01-03 18:16:21 -0800 | [diff] [blame] | 64 | import com.android.systemui.statusbar.phone.ShadeController; |
Eliot Courtney | e77edea | 2017-11-15 14:25:21 +0900 | [diff] [blame] | 65 | import com.android.systemui.statusbar.phone.StatusBar; |
Xiyuan Xia | 1b30f79 | 2016-01-06 08:50:30 -0800 | [diff] [blame] | 66 | import com.android.systemui.statusbar.phone.StatusBarKeyguardViewManager; |
Lucas Dupin | 7825b94 | 2019-06-03 20:22:39 -0700 | [diff] [blame] | 67 | import com.android.systemui.statusbar.phone.UnlockMethodCache; |
Jason Monk | 27d01a62 | 2018-12-10 15:57:09 -0500 | [diff] [blame] | 68 | import com.android.systemui.statusbar.policy.DeviceProvisionedController; |
Selim Cinek | 72cd9a7 | 2019-08-09 17:19:57 -0700 | [diff] [blame] | 69 | import com.android.systemui.statusbar.policy.KeyguardMonitor; |
Lucas Dupin | c9c2c8f | 2019-06-26 16:32:56 -0700 | [diff] [blame] | 70 | import com.android.systemui.util.AsyncSensorManager; |
Jason Monk | ea54e8a | 2018-12-20 10:01:48 -0500 | [diff] [blame] | 71 | import com.android.systemui.util.InjectionInflationController; |
Jason Monk | 00413ce | 2018-12-21 11:22:30 -0500 | [diff] [blame] | 72 | import com.android.systemui.util.leak.GarbageMonitor; |
Brad Stenning | 8d1a51c | 2018-11-20 17:34:16 -0800 | [diff] [blame] | 73 | import com.android.systemui.volume.VolumeDialogComponent; |
Xiyuan Xia | 1b30f79 | 2016-01-06 08:50:30 -0800 | [diff] [blame] | 74 | |
Adrian Roos | a5c6322 | 2017-07-27 16:33:39 +0200 | [diff] [blame] | 75 | import java.util.function.Consumer; |
| 76 | |
Jason Monk | 27d01a62 | 2018-12-10 15:57:09 -0500 | [diff] [blame] | 77 | import javax.inject.Named; |
| 78 | import javax.inject.Singleton; |
| 79 | |
| 80 | import dagger.Component; |
| 81 | import dagger.Module; |
| 82 | import dagger.Provides; |
| 83 | |
Xiyuan Xia | 1b30f79 | 2016-01-06 08:50:30 -0800 | [diff] [blame] | 84 | /** |
| 85 | * Class factory to provide customizable SystemUI components. |
| 86 | */ |
Jason Monk | 27d01a62 | 2018-12-10 15:57:09 -0500 | [diff] [blame] | 87 | @Module |
Xiyuan Xia | 1b30f79 | 2016-01-06 08:50:30 -0800 | [diff] [blame] | 88 | public class SystemUIFactory { |
| 89 | private static final String TAG = "SystemUIFactory"; |
| 90 | |
| 91 | static SystemUIFactory mFactory; |
Jason Monk | 27d01a62 | 2018-12-10 15:57:09 -0500 | [diff] [blame] | 92 | private SystemUIRootComponent mRootComponent; |
Xiyuan Xia | 1b30f79 | 2016-01-06 08:50:30 -0800 | [diff] [blame] | 93 | |
Jason Monk | 27d01a62 | 2018-12-10 15:57:09 -0500 | [diff] [blame] | 94 | public static <T extends SystemUIFactory> T getInstance() { |
| 95 | return (T) mFactory; |
Xiyuan Xia | 1b30f79 | 2016-01-06 08:50:30 -0800 | [diff] [blame] | 96 | } |
| 97 | |
| 98 | public static void createFromConfig(Context context) { |
| 99 | final String clsName = context.getString(R.string.config_systemUIFactoryComponent); |
| 100 | if (clsName == null || clsName.length() == 0) { |
| 101 | throw new RuntimeException("No SystemUIFactory component configured"); |
| 102 | } |
| 103 | |
| 104 | try { |
| 105 | Class<?> cls = null; |
| 106 | cls = context.getClassLoader().loadClass(clsName); |
| 107 | mFactory = (SystemUIFactory) cls.newInstance(); |
Jason Monk | 27d01a62 | 2018-12-10 15:57:09 -0500 | [diff] [blame] | 108 | mFactory.init(context); |
Xiyuan Xia | 1b30f79 | 2016-01-06 08:50:30 -0800 | [diff] [blame] | 109 | } catch (Throwable t) { |
| 110 | Log.w(TAG, "Error creating SystemUIFactory component: " + clsName, t); |
| 111 | throw new RuntimeException(t); |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | public SystemUIFactory() {} |
| 116 | |
Jason Monk | 27d01a62 | 2018-12-10 15:57:09 -0500 | [diff] [blame] | 117 | protected void init(Context context) { |
| 118 | mRootComponent = DaggerSystemUIFactory_SystemUIRootComponent.builder() |
| 119 | .systemUIFactory(this) |
| 120 | .dependencyProvider(new com.android.systemui.DependencyProvider()) |
| 121 | .contextHolder(new ContextHolder(context)) |
| 122 | .build(); |
| 123 | } |
| 124 | |
| 125 | public SystemUIRootComponent getRootComponent() { |
| 126 | return mRootComponent; |
| 127 | } |
| 128 | |
Xiyuan Xia | 1b30f79 | 2016-01-06 08:50:30 -0800 | [diff] [blame] | 129 | public StatusBarKeyguardViewManager createStatusBarKeyguardViewManager(Context context, |
| 130 | ViewMediatorCallback viewMediatorCallback, LockPatternUtils lockPatternUtils) { |
| 131 | return new StatusBarKeyguardViewManager(context, viewMediatorCallback, lockPatternUtils); |
| 132 | } |
| 133 | |
| 134 | public KeyguardBouncer createKeyguardBouncer(Context context, ViewMediatorCallback callback, |
Lucas Dupin | 15a6b6c | 2018-04-16 14:50:20 +0800 | [diff] [blame] | 135 | LockPatternUtils lockPatternUtils, ViewGroup container, |
| 136 | DismissCallbackRegistry dismissCallbackRegistry, |
Lucas Dupin | 04ec6df | 2019-08-15 11:41:52 -0700 | [diff] [blame] | 137 | KeyguardBouncer.BouncerExpansionCallback expansionCallback, |
| 138 | KeyguardBypassController bypassController) { |
Jorim Jaggi | 241ae10 | 2016-11-02 21:57:33 -0700 | [diff] [blame] | 139 | return new KeyguardBouncer(context, callback, lockPatternUtils, container, |
Dave Mankoff | dde5ee6 | 2019-05-02 17:36:11 -0400 | [diff] [blame] | 140 | dismissCallbackRegistry, FalsingManagerFactory.getInstance(context), |
Lucas Dupin | 7825b94 | 2019-06-03 20:22:39 -0700 | [diff] [blame] | 141 | expansionCallback, UnlockMethodCache.getInstance(context), |
Lucas Dupin | 04ec6df | 2019-08-15 11:41:52 -0700 | [diff] [blame] | 142 | KeyguardUpdateMonitor.getInstance(context), bypassController, |
| 143 | new Handler(Looper.getMainLooper())); |
Xiyuan Xia | 1b30f79 | 2016-01-06 08:50:30 -0800 | [diff] [blame] | 144 | } |
Xiaohui Chen | 5da7135 | 2016-02-22 10:04:41 -0800 | [diff] [blame] | 145 | |
shawnlin | 317db37 | 2018-04-09 19:49:48 +0800 | [diff] [blame] | 146 | public ScrimController createScrimController(ScrimView scrimBehind, ScrimView scrimInFront, |
Yohei Yukawa | 795f010 | 2018-04-13 14:55:30 -0700 | [diff] [blame] | 147 | LockscreenWallpaper lockscreenWallpaper, |
| 148 | TriConsumer<ScrimState, Float, GradientColors> scrimStateListener, |
Selim Cinek | 99e9adf | 2018-03-15 09:17:47 -0700 | [diff] [blame] | 149 | Consumer<Integer> scrimVisibleListener, DozeParameters dozeParameters, |
Selim Cinek | 72cd9a7 | 2019-08-09 17:19:57 -0700 | [diff] [blame] | 150 | AlarmManager alarmManager, KeyguardMonitor keyguardMonitor) { |
Yohei Yukawa | 795f010 | 2018-04-13 14:55:30 -0700 | [diff] [blame] | 151 | return new ScrimController(scrimBehind, scrimInFront, scrimStateListener, |
Selim Cinek | 72cd9a7 | 2019-08-09 17:19:57 -0700 | [diff] [blame] | 152 | scrimVisibleListener, dozeParameters, alarmManager, keyguardMonitor); |
Xiaohui Chen | 5da7135 | 2016-02-22 10:04:41 -0800 | [diff] [blame] | 153 | } |
Muyuan Li | 94ce94e | 2016-02-24 16:20:54 -0800 | [diff] [blame] | 154 | |
Xiaohui Chen | eb04a99 | 2016-03-22 14:58:03 -0700 | [diff] [blame] | 155 | public NotificationIconAreaController createNotificationIconAreaController(Context context, |
Selim Cinek | 820ba2d | 2019-06-18 18:59:09 -0700 | [diff] [blame] | 156 | StatusBar statusBar, |
| 157 | NotificationWakeUpCoordinator wakeUpCoordinator, |
| 158 | KeyguardBypassController keyguardBypassController, |
Selim Cinek | 5dc581a | 2019-06-19 17:24:59 -0700 | [diff] [blame] | 159 | StatusBarStateController statusBarStateController) { |
Julia Reynolds | 12ad7ca | 2019-01-28 09:29:16 -0500 | [diff] [blame] | 160 | return new NotificationIconAreaController(context, statusBar, statusBarStateController, |
Selim Cinek | 5dc581a | 2019-06-19 17:24:59 -0700 | [diff] [blame] | 161 | wakeUpCoordinator, keyguardBypassController, |
Selim Cinek | 820ba2d | 2019-06-18 18:59:09 -0700 | [diff] [blame] | 162 | Dependency.get(NotificationMediaManager.class)); |
Xiaohui Chen | eb04a99 | 2016-03-22 14:58:03 -0700 | [diff] [blame] | 163 | } |
| 164 | |
Zachary Iqbal | f50284c | 2017-01-22 18:54:46 -0800 | [diff] [blame] | 165 | public KeyguardIndicationController createKeyguardIndicationController(Context context, |
| 166 | ViewGroup indicationArea, LockIcon lockIcon) { |
| 167 | return new KeyguardIndicationController(context, indicationArea, lockIcon); |
| 168 | } |
| 169 | |
Brad Stenning | 8d1a51c | 2018-11-20 17:34:16 -0800 | [diff] [blame] | 170 | public VolumeDialogComponent createVolumeDialogComponent(SystemUI systemUi, Context context) { |
| 171 | return new VolumeDialogComponent(systemUi, context); |
| 172 | } |
| 173 | |
Jason Monk | 27d01a62 | 2018-12-10 15:57:09 -0500 | [diff] [blame] | 174 | @Singleton |
| 175 | @Provides |
| 176 | public NotificationData.KeyguardEnvironment provideKeyguardEnvironment(Context context) { |
| 177 | return new KeyguardEnvironmentImpl(); |
| 178 | } |
| 179 | |
| 180 | @Singleton |
| 181 | @Provides |
| 182 | public NotificationLockscreenUserManager provideNotificationLockscreenUserManager( |
Eliot Courtney | 0932228 | 2017-11-09 15:31:19 +0900 | [diff] [blame] | 183 | Context context) { |
Jason Monk | 27d01a62 | 2018-12-10 15:57:09 -0500 | [diff] [blame] | 184 | return new NotificationLockscreenUserManagerImpl(context); |
| 185 | } |
| 186 | |
| 187 | @Singleton |
| 188 | @Provides |
| 189 | public AssistManager provideAssistManager(DeviceProvisionedController controller, |
| 190 | Context context) { |
| 191 | return new AssistManager(controller, context); |
| 192 | } |
| 193 | |
| 194 | @Singleton |
| 195 | @Provides |
Lucas Dupin | d722135 | 2019-04-29 19:43:11 -0700 | [diff] [blame] | 196 | @Nullable |
| 197 | public DockManager provideDockManager(Context context) { |
| 198 | return null; |
| 199 | } |
| 200 | |
| 201 | @Singleton |
| 202 | @Provides |
Jason Monk | 27d01a62 | 2018-12-10 15:57:09 -0500 | [diff] [blame] | 203 | public NotificationEntryManager provideNotificationEntryManager(Context context) { |
| 204 | return new NotificationEntryManager(context); |
| 205 | } |
| 206 | |
| 207 | @Singleton |
| 208 | @Provides |
| 209 | public EnhancedEstimates provideEnhancedEstimates(Context context) { |
| 210 | return new EnhancedEstimatesImpl(); |
| 211 | } |
| 212 | |
| 213 | @Singleton |
| 214 | @Provides |
| 215 | @Named(LEAK_REPORT_EMAIL_NAME) |
| 216 | @Nullable |
| 217 | public String provideLeakReportEmail() { |
| 218 | return null; |
| 219 | } |
| 220 | |
| 221 | @Singleton |
| 222 | @Provides |
Lucas Dupin | c9c2c8f | 2019-06-26 16:32:56 -0700 | [diff] [blame] | 223 | @Nullable |
| 224 | public KeyguardLiftController provideKeyguardLiftController(Context context, |
| 225 | StatusBarStateController statusBarStateController, |
| 226 | AsyncSensorManager asyncSensorManager) { |
| 227 | if (!context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_FACE)) { |
| 228 | return null; |
| 229 | } |
| 230 | return new KeyguardLiftController(context, statusBarStateController, asyncSensorManager); |
| 231 | } |
| 232 | |
| 233 | @Singleton |
| 234 | @Provides |
Jason Monk | 27d01a62 | 2018-12-10 15:57:09 -0500 | [diff] [blame] | 235 | public NotificationListener provideNotificationListener(Context context) { |
| 236 | return new NotificationListener(context); |
| 237 | } |
| 238 | |
Gus Prevas | ec9e1f0 | 2018-12-18 15:28:12 -0500 | [diff] [blame] | 239 | @Singleton |
| 240 | @Provides |
| 241 | public NotificationInterruptionStateProvider provideNotificationInterruptionStateProvider( |
| 242 | Context context) { |
| 243 | return new NotificationInterruptionStateProvider(context); |
| 244 | } |
| 245 | |
Gus Prevas | 59ec2ff | 2018-12-28 16:20:28 -0500 | [diff] [blame] | 246 | @Singleton |
| 247 | @Provides |
| 248 | @Named(ALLOW_NOTIFICATION_LONG_PRESS_NAME) |
| 249 | public boolean provideAllowNotificationLongPress() { |
| 250 | return true; |
| 251 | } |
| 252 | |
Ben Lin | 90cd611 | 2019-01-03 18:16:21 -0800 | [diff] [blame] | 253 | @Singleton |
| 254 | @Provides |
| 255 | public ShadeController provideShadeController(Context context) { |
| 256 | return SysUiServiceProvider.getComponent(context, StatusBar.class); |
| 257 | } |
| 258 | |
Jason Monk | 27d01a62 | 2018-12-10 15:57:09 -0500 | [diff] [blame] | 259 | @Module |
| 260 | protected static class ContextHolder { |
| 261 | private Context mContext; |
| 262 | |
| 263 | public ContextHolder(Context context) { |
| 264 | mContext = context; |
| 265 | } |
| 266 | |
| 267 | @Provides |
| 268 | public Context provideContext() { |
| 269 | return mContext; |
| 270 | } |
| 271 | } |
| 272 | |
| 273 | @Singleton |
Jason Monk | 196d639 | 2018-12-20 13:25:34 -0500 | [diff] [blame] | 274 | @Component(modules = {SystemUIFactory.class, DependencyProvider.class, DependencyBinder.class, |
| 275 | ContextHolder.class}) |
Jason Monk | 27d01a62 | 2018-12-10 15:57:09 -0500 | [diff] [blame] | 276 | public interface SystemUIRootComponent { |
| 277 | @Singleton |
| 278 | Dependency.DependencyInjector createDependency(); |
Jason Monk | 9424af7 | 2018-12-19 14:17:26 -0500 | [diff] [blame] | 279 | |
Selim Cinek | 9d20bed | 2018-12-26 16:02:34 -0800 | [diff] [blame] | 280 | @Singleton |
| 281 | StatusBar.StatusBarInjector getStatusBarInjector(); |
| 282 | |
Jason Monk | 9424af7 | 2018-12-19 14:17:26 -0500 | [diff] [blame] | 283 | /** |
| 284 | * FragmentCreator generates all Fragments that need injection. |
| 285 | */ |
| 286 | @Singleton |
| 287 | FragmentService.FragmentCreator createFragmentCreator(); |
Jason Monk | ea54e8a | 2018-12-20 10:01:48 -0500 | [diff] [blame] | 288 | |
| 289 | /** |
| 290 | * ViewCreator generates all Views that need injection. |
| 291 | */ |
| 292 | InjectionInflationController.ViewCreator createViewCreator(); |
Jason Monk | 00413ce | 2018-12-21 11:22:30 -0500 | [diff] [blame] | 293 | |
| 294 | @Singleton |
| 295 | GarbageMonitor createGarbageMonitor(); |
Eliot Courtney | 0932228 | 2017-11-09 15:31:19 +0900 | [diff] [blame] | 296 | } |
Xiyuan Xia | 1b30f79 | 2016-01-06 08:50:30 -0800 | [diff] [blame] | 297 | } |