1 /* 2 * Copyright (C) 2020 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.bubbles.dagger; 18 19 import android.app.INotificationManager; 20 import android.content.Context; 21 import android.content.pm.LauncherApps; 22 import android.view.WindowManager; 23 24 import com.android.internal.statusbar.IStatusBarService; 25 import com.android.systemui.bubbles.BubbleController; 26 import com.android.systemui.bubbles.BubbleData; 27 import com.android.systemui.bubbles.BubbleDataRepository; 28 import com.android.systemui.dump.DumpManager; 29 import com.android.systemui.model.SysUiState; 30 import com.android.systemui.plugins.statusbar.StatusBarStateController; 31 import com.android.systemui.statusbar.FeatureFlags; 32 import com.android.systemui.statusbar.NotificationLockscreenUserManager; 33 import com.android.systemui.statusbar.notification.NotificationEntryManager; 34 import com.android.systemui.statusbar.notification.collection.NotifPipeline; 35 import com.android.systemui.statusbar.notification.interruption.NotificationInterruptStateProvider; 36 import com.android.systemui.statusbar.phone.NotificationGroupManager; 37 import com.android.systemui.statusbar.phone.NotificationShadeWindowController; 38 import com.android.systemui.statusbar.phone.ShadeController; 39 import com.android.systemui.statusbar.policy.ConfigurationController; 40 import com.android.systemui.statusbar.policy.ZenModeController; 41 import com.android.systemui.util.FloatingContentCoordinator; 42 43 import javax.inject.Singleton; 44 45 import dagger.Module; 46 import dagger.Provides; 47 48 /** */ 49 @Module 50 public interface BubbleModule { 51 52 /** 53 */ 54 @Singleton 55 @Provides newBubbleController( Context context, NotificationShadeWindowController notificationShadeWindowController, StatusBarStateController statusBarStateController, ShadeController shadeController, BubbleData data, ConfigurationController configurationController, NotificationInterruptStateProvider interruptionStateProvider, ZenModeController zenModeController, NotificationLockscreenUserManager notifUserManager, NotificationGroupManager groupManager, NotificationEntryManager entryManager, NotifPipeline notifPipeline, FeatureFlags featureFlags, DumpManager dumpManager, FloatingContentCoordinator floatingContentCoordinator, BubbleDataRepository bubbleDataRepository, SysUiState sysUiState, INotificationManager notifManager, IStatusBarService statusBarService, WindowManager windowManager, LauncherApps launcherApps)56 static BubbleController newBubbleController( 57 Context context, 58 NotificationShadeWindowController notificationShadeWindowController, 59 StatusBarStateController statusBarStateController, 60 ShadeController shadeController, 61 BubbleData data, 62 ConfigurationController configurationController, 63 NotificationInterruptStateProvider interruptionStateProvider, 64 ZenModeController zenModeController, 65 NotificationLockscreenUserManager notifUserManager, 66 NotificationGroupManager groupManager, 67 NotificationEntryManager entryManager, 68 NotifPipeline notifPipeline, 69 FeatureFlags featureFlags, 70 DumpManager dumpManager, 71 FloatingContentCoordinator floatingContentCoordinator, 72 BubbleDataRepository bubbleDataRepository, 73 SysUiState sysUiState, 74 INotificationManager notifManager, 75 IStatusBarService statusBarService, 76 WindowManager windowManager, 77 LauncherApps launcherApps) { 78 return new BubbleController( 79 context, 80 notificationShadeWindowController, 81 statusBarStateController, 82 shadeController, 83 data, 84 null /* synchronizer */, 85 configurationController, 86 interruptionStateProvider, 87 zenModeController, 88 notifUserManager, 89 groupManager, 90 entryManager, 91 notifPipeline, 92 featureFlags, 93 dumpManager, 94 floatingContentCoordinator, 95 bubbleDataRepository, 96 sysUiState, 97 notifManager, 98 statusBarService, 99 windowManager, 100 launcherApps); 101 } 102 } 103