Loading packages/SystemUI/Android.bp +13 −0 Original line number Diff line number Diff line Loading @@ -132,6 +132,17 @@ android_library { manifest: "AndroidManifest-res.xml", } aconfig_declarations { name: "systemui_aconfig_flags", package: "com.android.systemui.aconfig", srcs: ["src/com/android/systemui/aconfig/systemui.aconfig"], } java_aconfig_library { name: "systemui_aconfig_flags_lib", aconfig_declarations: "systemui_aconfig_flags", } android_library { name: "SystemUI-core", defaults: [ Loading Loading @@ -166,6 +177,7 @@ android_library { "SystemUISharedLib", "SystemUI-statsd", "SettingsLib", "systemui_aconfig_flags_lib", "androidx.core_core-ktx", "androidx.viewpager2_viewpager2", "androidx.legacy_legacy-support-v4", Loading Loading @@ -343,6 +355,7 @@ android_library { "SystemUICustomizationLib", "SystemUI-statsd", "SettingsLib", "systemui_aconfig_flags_lib", "androidx.viewpager2_viewpager2", "androidx.legacy_legacy-support-v4", "androidx.recyclerview_recyclerview", Loading packages/SystemUI/src/com/android/systemui/aconfig/AConfigModule.kt 0 → 100644 +33 −0 Original line number Diff line number Diff line /* * Copyright (C) 2023 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.aconfig import com.android.systemui.dagger.SysUISingleton import dagger.Module import dagger.Provides @Module abstract class AConfigModule { @Module companion object { @Provides @SysUISingleton fun providesImpl(): FeatureFlags { return FeatureFlagsImpl() } } } packages/SystemUI/src/com/android/systemui/aconfig/systemui.aconfig 0 → 100644 +8 −0 Original line number Diff line number Diff line package: "com.android.systemui.aconfig" flag { name: "example_flag" namespace: "systemui" description: "An Example Flag" bug: "292511372" } packages/SystemUI/src/com/android/systemui/dagger/SystemUIModule.java +2 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,7 @@ import com.android.systemui.BootCompleteCache; import com.android.systemui.BootCompleteCacheImpl; import com.android.systemui.accessibility.AccessibilityModule; import com.android.systemui.accessibility.data.repository.AccessibilityRepositoryModule; import com.android.systemui.aconfig.AConfigModule; import com.android.systemui.appops.dagger.AppOpsModule; import com.android.systemui.assist.AssistModule; import com.android.systemui.authentication.AuthenticationModule; Loading Loading @@ -156,6 +157,7 @@ import javax.inject.Named; @Module(includes = { AccessibilityModule.class, AccessibilityRepositoryModule.class, AConfigModule.class, AppOpsModule.class, AssistModule.class, AuthenticationModule.class, Loading packages/SystemUI/src/com/android/systemui/flags/FeatureFlagsDebug.java +0 −1 Original line number Diff line number Diff line Loading @@ -32,7 +32,6 @@ import android.content.IntentFilter; import android.content.res.Resources; import android.os.Bundle; import android.os.UserHandle; import android.provider.DeviceConfig; import android.util.Log; import androidx.annotation.NonNull; Loading Loading
packages/SystemUI/Android.bp +13 −0 Original line number Diff line number Diff line Loading @@ -132,6 +132,17 @@ android_library { manifest: "AndroidManifest-res.xml", } aconfig_declarations { name: "systemui_aconfig_flags", package: "com.android.systemui.aconfig", srcs: ["src/com/android/systemui/aconfig/systemui.aconfig"], } java_aconfig_library { name: "systemui_aconfig_flags_lib", aconfig_declarations: "systemui_aconfig_flags", } android_library { name: "SystemUI-core", defaults: [ Loading Loading @@ -166,6 +177,7 @@ android_library { "SystemUISharedLib", "SystemUI-statsd", "SettingsLib", "systemui_aconfig_flags_lib", "androidx.core_core-ktx", "androidx.viewpager2_viewpager2", "androidx.legacy_legacy-support-v4", Loading Loading @@ -343,6 +355,7 @@ android_library { "SystemUICustomizationLib", "SystemUI-statsd", "SettingsLib", "systemui_aconfig_flags_lib", "androidx.viewpager2_viewpager2", "androidx.legacy_legacy-support-v4", "androidx.recyclerview_recyclerview", Loading
packages/SystemUI/src/com/android/systemui/aconfig/AConfigModule.kt 0 → 100644 +33 −0 Original line number Diff line number Diff line /* * Copyright (C) 2023 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.aconfig import com.android.systemui.dagger.SysUISingleton import dagger.Module import dagger.Provides @Module abstract class AConfigModule { @Module companion object { @Provides @SysUISingleton fun providesImpl(): FeatureFlags { return FeatureFlagsImpl() } } }
packages/SystemUI/src/com/android/systemui/aconfig/systemui.aconfig 0 → 100644 +8 −0 Original line number Diff line number Diff line package: "com.android.systemui.aconfig" flag { name: "example_flag" namespace: "systemui" description: "An Example Flag" bug: "292511372" }
packages/SystemUI/src/com/android/systemui/dagger/SystemUIModule.java +2 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,7 @@ import com.android.systemui.BootCompleteCache; import com.android.systemui.BootCompleteCacheImpl; import com.android.systemui.accessibility.AccessibilityModule; import com.android.systemui.accessibility.data.repository.AccessibilityRepositoryModule; import com.android.systemui.aconfig.AConfigModule; import com.android.systemui.appops.dagger.AppOpsModule; import com.android.systemui.assist.AssistModule; import com.android.systemui.authentication.AuthenticationModule; Loading Loading @@ -156,6 +157,7 @@ import javax.inject.Named; @Module(includes = { AccessibilityModule.class, AccessibilityRepositoryModule.class, AConfigModule.class, AppOpsModule.class, AssistModule.class, AuthenticationModule.class, Loading
packages/SystemUI/src/com/android/systemui/flags/FeatureFlagsDebug.java +0 −1 Original line number Diff line number Diff line Loading @@ -32,7 +32,6 @@ import android.content.IntentFilter; import android.content.res.Resources; import android.os.Bundle; import android.os.UserHandle; import android.provider.DeviceConfig; import android.util.Log; import androidx.annotation.NonNull; Loading