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