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.dagger; 18 19 import com.android.systemui.ActivityStarterDelegate; 20 import com.android.systemui.classifier.FalsingManagerProxy; 21 import com.android.systemui.globalactions.GlobalActionsComponent; 22 import com.android.systemui.globalactions.GlobalActionsImpl; 23 import com.android.systemui.plugins.ActivityStarter; 24 import com.android.systemui.plugins.DarkIconDispatcher; 25 import com.android.systemui.plugins.FalsingManager; 26 import com.android.systemui.plugins.GlobalActions; 27 import com.android.systemui.plugins.VolumeDialogController; 28 import com.android.systemui.plugins.statusbar.StatusBarStateController; 29 import com.android.systemui.statusbar.StatusBarStateControllerImpl; 30 import com.android.systemui.statusbar.phone.DarkIconDispatcherImpl; 31 import com.android.systemui.volume.VolumeDialogControllerImpl; 32 33 import dagger.Binds; 34 import dagger.Module; 35 36 /** 37 * Module for binding Plugin implementations. 38 * 39 * TODO(b/166258224): Many of these should be moved closer to their implementations. 40 */ 41 @Module 42 public interface PluginModule { 43 44 /** */ 45 @Binds provideActivityStarter(ActivityStarterDelegate delegate)46 ActivityStarter provideActivityStarter(ActivityStarterDelegate delegate); 47 48 /** */ 49 @Binds provideDarkIconDispatcher(DarkIconDispatcherImpl controllerImpl)50 DarkIconDispatcher provideDarkIconDispatcher(DarkIconDispatcherImpl controllerImpl); 51 52 /** */ 53 @Binds provideFalsingManager(FalsingManagerProxy falsingManagerImpl)54 FalsingManager provideFalsingManager(FalsingManagerProxy falsingManagerImpl); 55 56 /** */ 57 @Binds provideGlobalActions(GlobalActionsImpl controllerImpl)58 GlobalActions provideGlobalActions(GlobalActionsImpl controllerImpl); 59 60 /** */ 61 @Binds provideGlobalActionsManager( GlobalActionsComponent controllerImpl)62 GlobalActions.GlobalActionsManager provideGlobalActionsManager( 63 GlobalActionsComponent controllerImpl); 64 65 /** */ 66 @Binds provideStatusBarStateController( StatusBarStateControllerImpl controllerImpl)67 StatusBarStateController provideStatusBarStateController( 68 StatusBarStateControllerImpl controllerImpl); 69 70 /** */ 71 @Binds provideVolumeDialogController(VolumeDialogControllerImpl controllerImpl)72 VolumeDialogController provideVolumeDialogController(VolumeDialogControllerImpl controllerImpl); 73 74 } 75