1 /* 2 * Copyright (C) 2022 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.go; 18 19 import com.android.systemui.dagger.DefaultActivityBinder; 20 import com.android.systemui.dagger.DefaultBroadcastReceiverBinder; 21 import com.android.systemui.dagger.DefaultServiceBinder; 22 import com.android.systemui.dagger.DependencyProvider; 23 import com.android.systemui.dagger.SysUIComponent; 24 import com.android.systemui.dagger.SysUISingleton; 25 import com.android.systemui.dagger.SystemUIModule; 26 import com.android.systemui.keyguard.dagger.KeyguardModule; 27 import com.android.systemui.keyguard.CustomizationProvider; 28 import com.android.systemui.recents.RecentsModule; 29 import com.android.systemui.scene.SceneContainerFrameworkModule; 30 import com.android.systemui.statusbar.dagger.CentralSurfacesModule; 31 import com.android.systemui.statusbar.NotificationInsetsModule; 32 import com.android.systemui.statusbar.QsFrameTranslateModule; 33 34 import dagger.Subcomponent; 35 36 /** 37 * Dagger Subcomponent for Core System UI on Android Go. 38 */ 39 @SysUISingleton 40 @Subcomponent(modules = { 41 DependencyProvider.class, 42 SystemUIModule.class, 43 DefaultActivityBinder.class, 44 DefaultBroadcastReceiverBinder.class, 45 DefaultServiceBinder.class, 46 SystemUIGoCoreStartableModule.class, 47 KeyguardModule.class, 48 RecentsModule.class, 49 SceneContainerFrameworkModule.class, 50 CentralSurfacesModule.class, 51 NotificationInsetsModule.class, 52 QsFrameTranslateModule.class, 53 SystemUIGoModule.class}) 54 public interface SystemUIGoComponent extends SysUIComponent { 55 56 /** 57 * Builder for a SysUIComponent. 58 */ 59 @Subcomponent.Builder 60 interface Builder extends SysUIComponent.Builder { build()61 SystemUIGoComponent build(); 62 } 63 64 /** 65 * Member injection into the supplied argument. 66 */ inject(CustomizationProvider customizationProvider)67 void inject(CustomizationProvider customizationProvider); 68 } 69