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, |
| 137 | KeyguardBouncer.BouncerExpansionCallback expansionCallback) { |
Jorim Jaggi | 241ae10 | 2016-11-02 21:57:33 -0700 | [diff] [blame] | 138 | return new KeyguardBouncer(context, callback, lockPatternUtils, container, |
Dave Mankoff | dde5ee6 | 2019-05-02 17:36:11 -0400 | [diff] [blame] | 139 | dismissCallbackRegistry, FalsingManagerFactory.getInstance(context), |
Lucas Dupin | 7825b94 | 2019-06-03 20:22:39 -0700 | [diff] [blame] | 140 | expansionCallback, UnlockMethodCache.getInstance(context), |
| 141 | KeyguardUpdateMonitor.getInstance(context), new Handler(Looper.getMainLooper())); |
Xiyuan Xia | 1b30f79 | 2016-01-06 08:50:30 -0800 | [diff] [blame] | 142 | } |
Xiaohui Chen | 5da7135 | 2016-02-22 10:04:41 -0800 | [diff] [blame] | 143 | |
shawnlin | 317db37 | 2018-04-09 19:49:48 +0800 | [diff] [blame] | 144 | public ScrimController createScrimController(ScrimView scrimBehind, ScrimView scrimInFront, |
Yohei Yukawa | 795f010 | 2018-04-13 14:55:30 -0700 | [diff] [blame] | 145 | LockscreenWallpaper lockscreenWallpaper, |
| 146 | TriConsumer<ScrimState, Float, GradientColors> scrimStateListener, |
Selim Cinek | 99e9adf | 2018-03-15 09:17:47 -0700 | [diff] [blame] | 147 | Consumer<Integer> scrimVisibleListener, DozeParameters dozeParameters, |
Selim Cinek | 72cd9a7 | 2019-08-09 17:19:57 -0700 | [diff] [blame] | 148 | AlarmManager alarmManager, KeyguardMonitor keyguardMonitor) { |
Yohei Yukawa | 795f010 | 2018-04-13 14:55:30 -0700 | [diff] [blame] | 149 | return new ScrimController(scrimBehind, scrimInFront, scrimStateListener, |
Selim Cinek | 72cd9a7 | 2019-08-09 17:19:57 -0700 | [diff] [blame] | 150 | scrimVisibleListener, dozeParameters, alarmManager, keyguardMonitor); |
Xiaohui Chen | 5da7135 | 2016-02-22 10:04:41 -0800 | [diff] [blame] | 151 | } |
Muyuan Li | 94ce94e | 2016-02-24 16:20:54 -0800 | [diff] [blame] | 152 | |
Xiaohui Chen | eb04a99 | 2016-03-22 14:58:03 -0700 | [diff] [blame] | 153 | public NotificationIconAreaController createNotificationIconAreaController(Context context, |
Selim Cinek | 820ba2d | 2019-06-18 18:59:09 -0700 | [diff] [blame] | 154 | StatusBar statusBar, |
| 155 | NotificationWakeUpCoordinator wakeUpCoordinator, |
| 156 | KeyguardBypassController keyguardBypassController, |
Selim Cinek | 5dc581a | 2019-06-19 17:24:59 -0700 | [diff] [blame] | 157 | StatusBarStateController statusBarStateController) { |
Julia Reynolds | 12ad7ca | 2019-01-28 09:29:16 -0500 | [diff] [blame] | 158 | return new NotificationIconAreaController(context, statusBar, statusBarStateController, |
Selim Cinek | 5dc581a | 2019-06-19 17:24:59 -0700 | [diff] [blame] | 159 | wakeUpCoordinator, keyguardBypassController, |
Selim Cinek | 820ba2d | 2019-06-18 18:59:09 -0700 | [diff] [blame] | 160 | Dependency.get(NotificationMediaManager.class)); |
Xiaohui Chen | eb04a99 | 2016-03-22 14:58:03 -0700 | [diff] [blame] | 161 | } |
| 162 | |
Zachary Iqbal | f50284c | 2017-01-22 18:54:46 -0800 | [diff] [blame] | 163 | public KeyguardIndicationController createKeyguardIndicationController(Context context, |
| 164 | ViewGroup indicationArea, LockIcon lockIcon) { |
| 165 | return new KeyguardIndicationController(context, indicationArea, lockIcon); |
| 166 | } |
| 167 | |
Brad Stenning | 8d1a51c | 2018-11-20 17:34:16 -0800 | [diff] [blame] | 168 | public VolumeDialogComponent createVolumeDialogComponent(SystemUI systemUi, Context context) { |
| 169 | return new VolumeDialogComponent(systemUi, context); |
| 170 | } |
| 171 | |
Jason Monk | 27d01a62 | 2018-12-10 15:57:09 -0500 | [diff] [blame] | 172 | @Singleton |
| 173 | @Provides |
| 174 | public NotificationData.KeyguardEnvironment provideKeyguardEnvironment(Context context) { |
| 175 | return new KeyguardEnvironmentImpl(); |
| 176 | } |
| 177 | |
| 178 | @Singleton |
| 179 | @Provides |
| 180 | public NotificationLockscreenUserManager provideNotificationLockscreenUserManager( |
Eliot Courtney | 0932228 | 2017-11-09 15:31:19 +0900 | [diff] [blame] | 181 | Context context) { |
Jason Monk | 27d01a62 | 2018-12-10 15:57:09 -0500 | [diff] [blame] | 182 | return new NotificationLockscreenUserManagerImpl(context); |
| 183 | } |
| 184 | |
| 185 | @Singleton |
| 186 | @Provides |
| 187 | public AssistManager provideAssistManager(DeviceProvisionedController controller, |
| 188 | Context context) { |
| 189 | return new AssistManager(controller, context); |
| 190 | } |
| 191 | |
| 192 | @Singleton |
| 193 | @Provides |
Lucas Dupin | d722135 | 2019-04-29 19:43:11 -0700 | [diff] [blame] | 194 | @Nullable |
| 195 | public DockManager provideDockManager(Context context) { |
| 196 | return null; |
| 197 | } |
| 198 | |
| 199 | @Singleton |
| 200 | @Provides |
Jason Monk | 27d01a62 | 2018-12-10 15:57:09 -0500 | [diff] [blame] | 201 | public NotificationEntryManager provideNotificationEntryManager(Context context) { |
| 202 | return new NotificationEntryManager(context); |
| 203 | } |
| 204 | |
| 205 | @Singleton |
| 206 | @Provides |
| 207 | public EnhancedEstimates provideEnhancedEstimates(Context context) { |
| 208 | return new EnhancedEstimatesImpl(); |
| 209 | } |
| 210 | |
| 211 | @Singleton |
| 212 | @Provides |
| 213 | @Named(LEAK_REPORT_EMAIL_NAME) |
| 214 | @Nullable |
| 215 | public String provideLeakReportEmail() { |
| 216 | return null; |
| 217 | } |
| 218 | |
| 219 | @Singleton |
| 220 | @Provides |
Lucas Dupin | c9c2c8f | 2019-06-26 16:32:56 -0700 | [diff] [blame] | 221 | @Nullable |
| 222 | public KeyguardLiftController provideKeyguardLiftController(Context context, |
| 223 | StatusBarStateController statusBarStateController, |
| 224 | AsyncSensorManager asyncSensorManager) { |
| 225 | if (!context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_FACE)) { |
| 226 | return null; |
| 227 | } |
| 228 | return new KeyguardLiftController(context, statusBarStateController, asyncSensorManager); |
| 229 | } |
| 230 | |
| 231 | @Singleton |
| 232 | @Provides |
Jason Monk | 27d01a62 | 2018-12-10 15:57:09 -0500 | [diff] [blame] | 233 | public NotificationListener provideNotificationListener(Context context) { |
| 234 | return new NotificationListener(context); |
| 235 | } |
| 236 | |
Gus Prevas | ec9e1f0 | 2018-12-18 15:28:12 -0500 | [diff] [blame] | 237 | @Singleton |
| 238 | @Provides |
| 239 | public NotificationInterruptionStateProvider provideNotificationInterruptionStateProvider( |
| 240 | Context context) { |
| 241 | return new NotificationInterruptionStateProvider(context); |
| 242 | } |
| 243 | |
Gus Prevas | 59ec2ff | 2018-12-28 16:20:28 -0500 | [diff] [blame] | 244 | @Singleton |
| 245 | @Provides |
| 246 | @Named(ALLOW_NOTIFICATION_LONG_PRESS_NAME) |
| 247 | public boolean provideAllowNotificationLongPress() { |
| 248 | return true; |
| 249 | } |
| 250 | |
Ben Lin | 90cd611 | 2019-01-03 18:16:21 -0800 | [diff] [blame] | 251 | @Singleton |
| 252 | @Provides |
| 253 | public ShadeController provideShadeController(Context context) { |
| 254 | return SysUiServiceProvider.getComponent(context, StatusBar.class); |
| 255 | } |
| 256 | |
Jason Monk | 27d01a62 | 2018-12-10 15:57:09 -0500 | [diff] [blame] | 257 | @Module |
| 258 | protected static class ContextHolder { |
| 259 | private Context mContext; |
| 260 | |
| 261 | public ContextHolder(Context context) { |
| 262 | mContext = context; |
| 263 | } |
| 264 | |
| 265 | @Provides |
| 266 | public Context provideContext() { |
| 267 | return mContext; |
| 268 | } |
| 269 | } |
| 270 | |
| 271 | @Singleton |
Jason Monk | 196d639 | 2018-12-20 13:25:34 -0500 | [diff] [blame] | 272 | @Component(modules = {SystemUIFactory.class, DependencyProvider.class, DependencyBinder.class, |
| 273 | ContextHolder.class}) |
Jason Monk | 27d01a62 | 2018-12-10 15:57:09 -0500 | [diff] [blame] | 274 | public interface SystemUIRootComponent { |
| 275 | @Singleton |
| 276 | Dependency.DependencyInjector createDependency(); |
Jason Monk | 9424af7 | 2018-12-19 14:17:26 -0500 | [diff] [blame] | 277 | |
Selim Cinek | 9d20bed | 2018-12-26 16:02:34 -0800 | [diff] [blame] | 278 | @Singleton |
| 279 | StatusBar.StatusBarInjector getStatusBarInjector(); |
| 280 | |
Jason Monk | 9424af7 | 2018-12-19 14:17:26 -0500 | [diff] [blame] | 281 | /** |
| 282 | * FragmentCreator generates all Fragments that need injection. |
| 283 | */ |
| 284 | @Singleton |
| 285 | FragmentService.FragmentCreator createFragmentCreator(); |
Jason Monk | ea54e8a | 2018-12-20 10:01:48 -0500 | [diff] [blame] | 286 | |
| 287 | /** |
| 288 | * ViewCreator generates all Views that need injection. |
| 289 | */ |
| 290 | InjectionInflationController.ViewCreator createViewCreator(); |
Jason Monk | 00413ce | 2018-12-21 11:22:30 -0500 | [diff] [blame] | 291 | |
| 292 | @Singleton |
| 293 | GarbageMonitor createGarbageMonitor(); |
Eliot Courtney | 0932228 | 2017-11-09 15:31:19 +0900 | [diff] [blame] | 294 | } |
Xiyuan Xia | 1b30f79 | 2016-01-06 08:50:30 -0800 | [diff] [blame] | 295 | } |