diff options
| author | 2024-10-29 13:02:47 +0000 | |
|---|---|---|
| committer | 2024-10-29 13:02:47 +0000 | |
| commit | a724469f78cc5302151bf46c9fd84dfd04a63a4c (patch) | |
| tree | 35600f5bedca02aea7ddaa2753d53ddd7b8f7409 | |
| parent | 7f408e782e113893761b7f4d37177a02a2ddeb45 (diff) | |
| parent | b179796f004d6a181178da92424153ad7bbf1906 (diff) | |
Merge "[CS] Remove SystemUIBinder, have modules be directly included." into main
5 files changed, 7 insertions, 39 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/complication/dagger/RegisteredComplicationsModule.java b/packages/SystemUI/src/com/android/systemui/complication/dagger/RegisteredComplicationsModule.java index 6f1b09829671..9970c5d9c187 100644 --- a/packages/SystemUI/src/com/android/systemui/complication/dagger/RegisteredComplicationsModule.java +++ b/packages/SystemUI/src/com/android/systemui/complication/dagger/RegisteredComplicationsModule.java @@ -20,7 +20,6 @@ import android.content.res.Resources; import android.view.ViewGroup; import com.android.systemui.complication.ComplicationLayoutParams; -import com.android.systemui.dagger.SystemUIBinder; import com.android.systemui.dagger.qualifiers.Main; import com.android.systemui.flags.FeatureFlags; import com.android.systemui.flags.Flags; @@ -32,8 +31,7 @@ import dagger.Provides; import javax.inject.Named; /** - * Module for all components with corresponding dream layer complications registered in - * {@link SystemUIBinder}. + * Module for all components with corresponding dream layer complications. */ @Module( subcomponents = { diff --git a/packages/SystemUI/src/com/android/systemui/dagger/ReferenceSysUIComponent.java b/packages/SystemUI/src/com/android/systemui/dagger/ReferenceSysUIComponent.java index b71af69b13cb..b34a2409eac4 100644 --- a/packages/SystemUI/src/com/android/systemui/dagger/ReferenceSysUIComponent.java +++ b/packages/SystemUI/src/com/android/systemui/dagger/ReferenceSysUIComponent.java @@ -32,7 +32,6 @@ import dagger.Subcomponent; DependencyProvider.class, NotificationInsetsModule.class, QsFrameTranslateModule.class, - SystemUIBinder.class, SystemUIModule.class, SystemUICoreStartableModule.class, SysUIUnfoldModule.class, diff --git a/packages/SystemUI/src/com/android/systemui/dagger/ReferenceSystemUIModule.java b/packages/SystemUI/src/com/android/systemui/dagger/ReferenceSystemUIModule.java index b966ad47053d..bf93469f6c70 100644 --- a/packages/SystemUI/src/com/android/systemui/dagger/ReferenceSystemUIModule.java +++ b/packages/SystemUI/src/com/android/systemui/dagger/ReferenceSystemUIModule.java @@ -38,6 +38,7 @@ import com.android.systemui.education.dagger.ContextualEducationModule; import com.android.systemui.emergency.EmergencyGestureModule; import com.android.systemui.inputdevice.tutorial.KeyboardTouchpadTutorialModule; import com.android.systemui.keyboard.shortcut.ShortcutHelperModule; +import com.android.systemui.keyguard.dagger.KeyguardModule; import com.android.systemui.keyguard.ui.composable.blueprint.DefaultBlueprintModule; import com.android.systemui.keyguard.ui.view.layout.blueprints.KeyguardBlueprintModule; import com.android.systemui.keyguard.ui.view.layout.sections.KeyguardSectionsModule; @@ -53,6 +54,7 @@ import com.android.systemui.qs.tileimpl.QSFactoryImpl; import com.android.systemui.reardisplay.RearDisplayModule; import com.android.systemui.recents.Recents; import com.android.systemui.recents.RecentsImplementation; +import com.android.systemui.recents.RecentsModule; import com.android.systemui.rotationlock.RotationLockModule; import com.android.systemui.rotationlock.RotationLockNewModule; import com.android.systemui.scene.SceneContainerFrameworkModule; @@ -68,6 +70,7 @@ import com.android.systemui.statusbar.NotificationLockscreenUserManager; import com.android.systemui.statusbar.NotificationLockscreenUserManagerImpl; import com.android.systemui.statusbar.NotificationShadeWindowController; import com.android.systemui.statusbar.SysuiStatusBarStateController; +import com.android.systemui.statusbar.dagger.CentralSurfacesModule; import com.android.systemui.statusbar.dagger.StartCentralSurfacesModule; import com.android.systemui.statusbar.phone.CentralSurfaces; import com.android.systemui.statusbar.phone.DozeServiceHost; @@ -120,6 +123,7 @@ import javax.inject.Named; AccessibilityRepositoryModule.class, AospPolicyModule.class, BatterySaverModule.class, + CentralSurfacesModule.class, ClipboardOverlaySuppressionModule.class, CollapsedStatusBarFragmentStartableModule.class, ConnectingDisplayViewModel.StartableModule.class, @@ -127,6 +131,7 @@ import javax.inject.Named; EmergencyGestureModule.class, GestureModule.class, HeadsUpModule.class, + KeyguardModule.class, KeyboardShortcutsModule.class, KeyguardBlueprintModule.class, KeyguardSectionsModule.class, @@ -139,6 +144,7 @@ import javax.inject.Named; PowerModule.class, QSModule.class, RearDisplayModule.class, + RecentsModule.class, ReferenceScreenshotModule.class, RotationLockModule.class, RotationLockNewModule.class, diff --git a/packages/SystemUI/src/com/android/systemui/dagger/SysUIComponent.java b/packages/SystemUI/src/com/android/systemui/dagger/SysUIComponent.java index 17f1961e662c..580896cb534e 100644 --- a/packages/SystemUI/src/com/android/systemui/dagger/SysUIComponent.java +++ b/packages/SystemUI/src/com/android/systemui/dagger/SysUIComponent.java @@ -65,7 +65,6 @@ import javax.inject.Provider; DependencyProvider.class, NotificationInsetsModule.class, QsFrameTranslateModule.class, - SystemUIBinder.class, SystemUIModule.class, SystemUICoreStartableModule.class, ReferenceSystemUIModule.class}) diff --git a/packages/SystemUI/src/com/android/systemui/dagger/SystemUIBinder.java b/packages/SystemUI/src/com/android/systemui/dagger/SystemUIBinder.java deleted file mode 100644 index 2f041acb649d..000000000000 --- a/packages/SystemUI/src/com/android/systemui/dagger/SystemUIBinder.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (C) 2019 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.android.systemui.dagger; - -import com.android.systemui.keyguard.dagger.KeyguardModule; -import com.android.systemui.recents.RecentsModule; -import com.android.systemui.statusbar.dagger.CentralSurfacesModule; - -import dagger.Module; - -/** - * SystemUI objects that are injectable should go here. - */ -@Module(includes = { - RecentsModule.class, - CentralSurfacesModule.class, - KeyguardModule.class, -}) -public abstract class SystemUIBinder { -} |