Sergey Nikolaienkov | 5cb6e52 | 2020-02-10 17:33:00 +0100 | [diff] [blame] | 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 | |
Mady Mellor | 9adfe6a | 2020-03-30 17:23:26 -0700 | [diff] [blame] | 19 | import android.app.INotificationManager; |
Sergey Nikolaienkov | 5cb6e52 | 2020-02-10 17:33:00 +0100 | [diff] [blame] | 20 | import android.content.Context; |
Mady Mellor | 59a7b98 | 2020-05-11 15:19:59 -0700 | [diff] [blame] | 21 | import android.view.WindowManager; |
Sergey Nikolaienkov | 5cb6e52 | 2020-02-10 17:33:00 +0100 | [diff] [blame] | 22 | |
Mady Mellor | 458a626 | 2020-06-07 21:09:19 -0700 | [diff] [blame] | 23 | import com.android.internal.statusbar.IStatusBarService; |
Sergey Nikolaienkov | 5cb6e52 | 2020-02-10 17:33:00 +0100 | [diff] [blame] | 24 | import com.android.systemui.bubbles.BubbleController; |
| 25 | import com.android.systemui.bubbles.BubbleData; |
Pinyao Ting | ee191b1 | 2020-04-29 18:35:39 -0700 | [diff] [blame] | 26 | import com.android.systemui.bubbles.BubbleDataRepository; |
Ned Burns | aaeb44b | 2020-02-12 23:48:26 -0500 | [diff] [blame] | 27 | import com.android.systemui.dump.DumpManager; |
Joshua Tsuji | be60a58 | 2020-03-23 17:17:26 -0400 | [diff] [blame] | 28 | import com.android.systemui.model.SysUiState; |
Sergey Nikolaienkov | 5cb6e52 | 2020-02-10 17:33:00 +0100 | [diff] [blame] | 29 | import com.android.systemui.plugins.statusbar.StatusBarStateController; |
| 30 | import com.android.systemui.statusbar.FeatureFlags; |
| 31 | import com.android.systemui.statusbar.NotificationLockscreenUserManager; |
| 32 | import com.android.systemui.statusbar.notification.NotificationEntryManager; |
Sergey Nikolaienkov | 5cb6e52 | 2020-02-10 17:33:00 +0100 | [diff] [blame] | 33 | import com.android.systemui.statusbar.notification.collection.NotifPipeline; |
Beverly Tai | d1e175c | 2020-03-10 16:37:04 +0000 | [diff] [blame] | 34 | import com.android.systemui.statusbar.notification.interruption.NotificationInterruptStateProvider; |
Sergey Nikolaienkov | 5cb6e52 | 2020-02-10 17:33:00 +0100 | [diff] [blame] | 35 | import com.android.systemui.statusbar.phone.NotificationGroupManager; |
| 36 | import com.android.systemui.statusbar.phone.NotificationShadeWindowController; |
| 37 | import com.android.systemui.statusbar.phone.ShadeController; |
| 38 | import com.android.systemui.statusbar.policy.ConfigurationController; |
| 39 | import com.android.systemui.statusbar.policy.ZenModeController; |
Joshua Tsuji | 7155bf1 | 2020-02-13 16:14:29 -0500 | [diff] [blame] | 40 | import com.android.systemui.util.FloatingContentCoordinator; |
Sergey Nikolaienkov | 5cb6e52 | 2020-02-10 17:33:00 +0100 | [diff] [blame] | 41 | |
| 42 | import javax.inject.Singleton; |
| 43 | |
| 44 | import dagger.Module; |
| 45 | import dagger.Provides; |
| 46 | |
| 47 | /** */ |
| 48 | @Module |
| 49 | public interface BubbleModule { |
| 50 | |
| 51 | /** |
| 52 | */ |
| 53 | @Singleton |
| 54 | @Provides |
| 55 | static BubbleController newBubbleController( |
| 56 | Context context, |
| 57 | NotificationShadeWindowController notificationShadeWindowController, |
| 58 | StatusBarStateController statusBarStateController, |
| 59 | ShadeController shadeController, |
| 60 | BubbleData data, |
| 61 | ConfigurationController configurationController, |
Beverly Tai | d1e175c | 2020-03-10 16:37:04 +0000 | [diff] [blame] | 62 | NotificationInterruptStateProvider interruptionStateProvider, |
Sergey Nikolaienkov | 5cb6e52 | 2020-02-10 17:33:00 +0100 | [diff] [blame] | 63 | ZenModeController zenModeController, |
| 64 | NotificationLockscreenUserManager notifUserManager, |
| 65 | NotificationGroupManager groupManager, |
| 66 | NotificationEntryManager entryManager, |
| 67 | NotifPipeline notifPipeline, |
| 68 | FeatureFlags featureFlags, |
Ned Burns | aaeb44b | 2020-02-12 23:48:26 -0500 | [diff] [blame] | 69 | DumpManager dumpManager, |
Joshua Tsuji | be60a58 | 2020-03-23 17:17:26 -0400 | [diff] [blame] | 70 | FloatingContentCoordinator floatingContentCoordinator, |
Pinyao Ting | ee191b1 | 2020-04-29 18:35:39 -0700 | [diff] [blame] | 71 | BubbleDataRepository bubbleDataRepository, |
Mady Mellor | 9adfe6a | 2020-03-30 17:23:26 -0700 | [diff] [blame] | 72 | SysUiState sysUiState, |
Mady Mellor | 59a7b98 | 2020-05-11 15:19:59 -0700 | [diff] [blame] | 73 | INotificationManager notifManager, |
Mady Mellor | 458a626 | 2020-06-07 21:09:19 -0700 | [diff] [blame] | 74 | IStatusBarService statusBarService, |
Mady Mellor | 59a7b98 | 2020-05-11 15:19:59 -0700 | [diff] [blame] | 75 | WindowManager windowManager) { |
Sergey Nikolaienkov | 5cb6e52 | 2020-02-10 17:33:00 +0100 | [diff] [blame] | 76 | return new BubbleController( |
| 77 | context, |
| 78 | notificationShadeWindowController, |
| 79 | statusBarStateController, |
| 80 | shadeController, |
| 81 | data, |
Mady Mellor | 9adfe6a | 2020-03-30 17:23:26 -0700 | [diff] [blame] | 82 | null /* synchronizer */, |
Sergey Nikolaienkov | 5cb6e52 | 2020-02-10 17:33:00 +0100 | [diff] [blame] | 83 | configurationController, |
| 84 | interruptionStateProvider, |
| 85 | zenModeController, |
| 86 | notifUserManager, |
| 87 | groupManager, |
| 88 | entryManager, |
| 89 | notifPipeline, |
| 90 | featureFlags, |
Ned Burns | aaeb44b | 2020-02-12 23:48:26 -0500 | [diff] [blame] | 91 | dumpManager, |
Joshua Tsuji | be60a58 | 2020-03-23 17:17:26 -0400 | [diff] [blame] | 92 | floatingContentCoordinator, |
Pinyao Ting | ee191b1 | 2020-04-29 18:35:39 -0700 | [diff] [blame] | 93 | bubbleDataRepository, |
Mady Mellor | 9adfe6a | 2020-03-30 17:23:26 -0700 | [diff] [blame] | 94 | sysUiState, |
Mady Mellor | 59a7b98 | 2020-05-11 15:19:59 -0700 | [diff] [blame] | 95 | notifManager, |
Mady Mellor | 458a626 | 2020-06-07 21:09:19 -0700 | [diff] [blame] | 96 | statusBarService, |
Mady Mellor | 59a7b98 | 2020-05-11 15:19:59 -0700 | [diff] [blame] | 97 | windowManager); |
Sergey Nikolaienkov | 5cb6e52 | 2020-02-10 17:33:00 +0100 | [diff] [blame] | 98 | } |
| 99 | } |