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; 18 19 import com.android.systemui.dagger.DependencyProvider; 20 import com.android.systemui.dagger.SysUIComponent; 21 import com.android.systemui.dagger.SysUISingleton; 22 import com.android.systemui.dagger.SystemUIModule; 23 import com.android.systemui.scene.ShadelessSceneContainerFrameworkModule; 24 import com.android.systemui.wm.MDSystemBarsController; 25 import com.android.wm.shell.RootTaskDisplayAreaOrganizer; 26 27 import dagger.BindsInstance; 28 import dagger.Subcomponent; 29 30 import java.util.Optional; 31 32 /** 33 * Dagger Subcomponent for Core SysUI. 34 */ 35 @SysUISingleton 36 @Subcomponent(modules = { 37 CarComponentBinder.class, 38 DependencyProvider.class, 39 SystemUIModule.class, 40 CarSystemUICoreStartableModule.class, 41 CarSystemUIModule.class, 42 CarSystemUIBinder.class, 43 ShadelessSceneContainerFrameworkModule.class}) 44 public interface CarSysUIComponent extends SysUIComponent { 45 46 /** 47 * Builder for a CarSysUIComponent. 48 */ 49 @Subcomponent.Builder 50 interface Builder extends SysUIComponent.Builder { 51 @BindsInstance setRootTaskDisplayAreaOrganizer(Optional<RootTaskDisplayAreaOrganizer> r)52 Builder setRootTaskDisplayAreaOrganizer(Optional<RootTaskDisplayAreaOrganizer> r); 53 54 @BindsInstance setMDSystemBarsController(Optional<MDSystemBarsController> m)55 Builder setMDSystemBarsController(Optional<MDSystemBarsController> m); 56 build()57 CarSysUIComponent build(); 58 } 59 } 60