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