Dave Mankoff | e951335 | 2019-11-04 11:46:36 -0500 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2019 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.statusbar; |
| 18 | |
| 19 | import android.content.Context; |
| 20 | |
Kevin Han | 0f98a6d | 2019-12-13 16:28:54 -0800 | [diff] [blame] | 21 | import com.android.systemui.statusbar.notification.row.NotificationRowModule; |
| 22 | |
Dave Mankoff | 882cfee | 2019-11-05 19:04:59 -0500 | [diff] [blame] | 23 | import javax.inject.Singleton; |
| 24 | |
Dave Mankoff | e951335 | 2019-11-04 11:46:36 -0500 | [diff] [blame] | 25 | import dagger.Module; |
| 26 | import dagger.Provides; |
| 27 | |
| 28 | /** |
| 29 | * Dagger Module providing common dependencies of StatusBar. |
| 30 | */ |
Kevin Han | 0f98a6d | 2019-12-13 16:28:54 -0800 | [diff] [blame] | 31 | @Module(includes = {NotificationRowModule.class}) |
Dave Mankoff | e951335 | 2019-11-04 11:46:36 -0500 | [diff] [blame] | 32 | public class StatusBarDependenciesModule { |
| 33 | /** |
| 34 | * Provides our instance of CommandQueue which is considered optional. |
| 35 | */ |
| 36 | @Provides |
Dave Mankoff | 882cfee | 2019-11-05 19:04:59 -0500 | [diff] [blame] | 37 | @Singleton |
Dave Mankoff | e951335 | 2019-11-04 11:46:36 -0500 | [diff] [blame] | 38 | public CommandQueue provideCommandQueue(Context context) { |
| 39 | return new CommandQueue(context); |
| 40 | } |
| 41 | |
| 42 | } |