blob: ec8dbead7de258b4afdfa4f3847601fc737bf232 [file] [log] [blame]
Dave Mankoffe9513352019-11-04 11:46:36 -05001/*
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
17package com.android.systemui.statusbar;
18
19import android.content.Context;
20
Kevin Han0f98a6d2019-12-13 16:28:54 -080021import com.android.systemui.statusbar.notification.row.NotificationRowModule;
22
Dave Mankoff882cfee2019-11-05 19:04:59 -050023import javax.inject.Singleton;
24
Dave Mankoffe9513352019-11-04 11:46:36 -050025import dagger.Module;
26import dagger.Provides;
27
28/**
29 * Dagger Module providing common dependencies of StatusBar.
30 */
Kevin Han0f98a6d2019-12-13 16:28:54 -080031@Module(includes = {NotificationRowModule.class})
Dave Mankoffe9513352019-11-04 11:46:36 -050032public class StatusBarDependenciesModule {
33 /**
34 * Provides our instance of CommandQueue which is considered optional.
35 */
36 @Provides
Dave Mankoff882cfee2019-11-05 19:04:59 -050037 @Singleton
Dave Mankoffe9513352019-11-04 11:46:36 -050038 public CommandQueue provideCommandQueue(Context context) {
39 return new CommandQueue(context);
40 }
41
42}