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.dagger; 18 19 import com.android.systemui.globalactions.ShutdownUiModule; 20 import com.android.systemui.keyguard.CustomizationProvider; 21 import com.android.systemui.shade.ShadeModule; 22 import com.android.systemui.statusbar.NotificationInsetsModule; 23 import com.android.systemui.statusbar.QsFrameTranslateModule; 24 25 import dagger.Subcomponent; 26 27 /** 28 * Dagger Subcomponent for Core SysUI used in AOSP. 29 */ 30 @SysUISingleton 31 @Subcomponent(modules = { 32 DefaultComponentBinder.class, 33 DependencyProvider.class, 34 NotificationInsetsModule.class, 35 QsFrameTranslateModule.class, 36 ShadeModule.class, 37 ShutdownUiModule.class, 38 SystemUIBinder.class, 39 SystemUIModule.class, 40 SystemUICoreStartableModule.class, 41 ReferenceSystemUIModule.class}) 42 public interface ReferenceSysUIComponent extends SysUIComponent { 43 44 /** 45 * Builder for a ReferenceSysUIComponent. 46 */ 47 @SysUISingleton 48 @Subcomponent.Builder 49 interface Builder extends SysUIComponent.Builder { build()50 ReferenceSysUIComponent build(); 51 } 52 53 /** 54 * Member injection into the supplied argument. 55 */ inject(CustomizationProvider customizationProvider)56 void inject(CustomizationProvider customizationProvider); 57 } 58