From 55dc2d1c31f598b8a23022881f556f8b33c72caa Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Mon, 13 Jan 2025 15:56:26 -0800 Subject: Moving DisplayController to dagger Separating various overrides to individual modules so that they can be reused in tests Removing ContextualEduStatsManager and directly using SysUiProxy as all the usescases are only in quickstep/ This avoids additional Module definition and delegation Bug: 361850561 Test: Presubmit Flag: EXEMPT dagger Change-Id: I096459d638553991ed01766002b874589c6b976e --- .../launcher3/dagger/LauncherAppModule.java | 22 ------------------ .../com/android/launcher3/dagger/Modules.kt | 27 ++++++++++++++++++++++ 2 files changed, 27 insertions(+), 22 deletions(-) delete mode 100644 src_no_quickstep/com/android/launcher3/dagger/LauncherAppModule.java create mode 100644 src_no_quickstep/com/android/launcher3/dagger/Modules.kt (limited to 'src_no_quickstep') diff --git a/src_no_quickstep/com/android/launcher3/dagger/LauncherAppModule.java b/src_no_quickstep/com/android/launcher3/dagger/LauncherAppModule.java deleted file mode 100644 index f7b8489f62..0000000000 --- a/src_no_quickstep/com/android/launcher3/dagger/LauncherAppModule.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (C) 2024 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.launcher3.dagger; - -import dagger.Module; - -@Module -public class LauncherAppModule { } diff --git a/src_no_quickstep/com/android/launcher3/dagger/Modules.kt b/src_no_quickstep/com/android/launcher3/dagger/Modules.kt new file mode 100644 index 0000000000..dab33a04ee --- /dev/null +++ b/src_no_quickstep/com/android/launcher3/dagger/Modules.kt @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2025 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.launcher3.dagger + +import dagger.Module + +private object Modules {} + +@Module abstract class WindowManagerProxyModule {} + +@Module abstract class ApiWrapperModule {} + +@Module abstract class PluginManagerWrapperModule {} -- cgit v1.2.3-59-g8ed1b