blob: ed62c5f012bc837b4c0e6417ea3326f2e83f5bff [file] [log] [blame]
Jason Monka2f2d822018-08-13 11:10:48 -04001//
2// Copyright (C) 2018 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
Bob Badour8a6a2bc2021-02-12 17:07:05 -080017package {
18 default_applicable_licenses: ["frameworks_base_packages_SystemUI_license"],
19}
20
21// Added automatically by a large-scale-change
22// See: http://go/android-license-faq
23license {
24 name: "frameworks_base_packages_SystemUI_license",
25 visibility: [":__subpackages__"],
26 license_kinds: [
27 "SPDX-license-identifier-Apache-2.0",
28 ],
29 license_text: [
30 "NOTICE",
31 ],
32}
33
Jordan Demeulenaere68e91822022-12-16 10:55:47 +010034// Opt-in configuration for code depending on Jetpack Compose.
35soong_config_module_type {
36 name: "systemui_compose_java_defaults",
37 module_type: "java_defaults",
38 config_namespace: "ANDROID",
39 bool_variables: ["SYSTEMUI_USE_COMPOSE"],
40 properties: [
41 "srcs",
42 "static_libs",
43 ],
44}
45
46systemui_compose_java_defaults {
47 name: "SystemUI_compose_defaults",
48 soong_config_variables: {
49 SYSTEMUI_USE_COMPOSE: {
50 // Because files in compose/features/ depend on SystemUI
51 // code, we compile those files when compiling SystemUI-core.
52 // We also compile the ComposeFacade in
53 // compose/facade/enabled/.
54 srcs: [
55 "compose/features/src/**/*.kt",
56 "compose/facade/enabled/src/**/*.kt",
57 ],
58
59 // The dependencies needed by SystemUIComposeFeatures,
60 // except for SystemUI-core.
61 // Copied from compose/features/Android.bp.
62 static_libs: [
Jordan Demeulenaere8a1747d2022-12-28 11:11:42 +010063 "PlatformComposeCore",
Jordan Demeulenaere68e91822022-12-16 10:55:47 +010064
65 "androidx.compose.runtime_runtime",
66 "androidx.compose.material3_material3",
Jordan Demeulenaerebf43b1d2022-12-16 13:00:23 +010067 "androidx.activity_activity-compose",
Jordan Demeulenaere68e91822022-12-16 10:55:47 +010068 ],
69
70 // By default, Compose is disabled and we compile the ComposeFacade
71 // in compose/facade/disabled/.
72 conditions_default: {
73 srcs: ["compose/facade/disabled/src/**/*.kt"],
74 static_libs: [],
75 },
76 },
77 },
78}
79
Jason Monka2f2d822018-08-13 11:10:48 -040080java_library {
81 name: "SystemUI-proto",
82
83 srcs: ["src/**/*.proto"],
84
85 proto: {
86 type: "nano",
87 },
Winson Chungeb1aa3d2020-08-25 19:02:29 -070088
89 libs: [
90 "WindowManager-Shell-proto",
91 ],
Jason Monka2f2d822018-08-13 11:10:48 -040092}
93
94java_library {
95 name: "SystemUI-tags",
96 srcs: ["src/com/android/systemui/EventLogTags.logtags"],
97}
98
Jay Aliomer97d4fc7d2021-09-23 16:59:09 -040099filegroup {
100 name: "ReleaseJavaFiles",
Jeff DeCew86b8e772021-10-25 20:35:45 -0400101 srcs: [
102 "src-release/**/*.kt",
103 "src-release/**/*.java",
104 ],
Jay Aliomer97d4fc7d2021-09-23 16:59:09 -0400105}
106
107filegroup {
108 name: "DebugJavaFiles",
Jeff DeCew86b8e772021-10-25 20:35:45 -0400109 srcs: [
110 "src-debug/**/*.kt",
111 "src-debug/**/*.java",
112 ],
Jay Aliomer97d4fc7d2021-09-23 16:59:09 -0400113}
114
Jason Monka2f2d822018-08-13 11:10:48 -0400115android_library {
116 name: "SystemUI-core",
Jordan Demeulenaere68e91822022-12-16 10:55:47 +0100117 defaults: [
118 "SystemUI_compose_defaults",
119 ],
Jason Monka2f2d822018-08-13 11:10:48 -0400120 srcs: [
Jason Monkae7ced22018-08-22 16:56:58 -0400121 "src/**/*.kt",
Jason Monka2f2d822018-08-13 11:10:48 -0400122 "src/**/*.java",
123 "src/**/I*.aidl",
Dave Mankoff72a50022021-11-02 20:44:54 -0400124 ":ReleaseJavaFiles",
Jason Monka2f2d822018-08-13 11:10:48 -0400125 ],
Jay Aliomer97d4fc7d2021-09-23 16:59:09 -0400126 product_variables: {
127 debuggable: {
128 srcs: [":DebugJavaFiles"],
129 exclude_srcs: [":ReleaseJavaFiles"],
130 },
131 },
Jason Monka2f2d822018-08-13 11:10:48 -0400132 resource_dirs: [
Sunny Goyalb4a26012019-12-05 15:49:41 -0800133 "res-product",
Jason Monka2f2d822018-08-13 11:10:48 -0400134 "res-keyguard",
135 "res",
136 ],
137 static_libs: [
Quang Luongc6fc5b22021-06-10 14:35:32 -0700138 "WifiTrackerLib",
Winson Chung10a9b4b2019-12-18 10:01:36 -0800139 "WindowManager-Shell",
Jordan Demeulenaerecea62bb2021-04-08 11:04:50 +0200140 "SystemUIAnimationLib",
Jason Monka2f2d822018-08-13 11:10:48 -0400141 "SystemUIPluginLib",
142 "SystemUISharedLib",
Hawkwood Glazierb8eef872022-11-11 17:56:14 +0000143 "SystemUICustomizationLib",
Jerry Chang919d1d22020-07-16 12:31:24 +0800144 "SystemUI-statsd",
Jason Monka2f2d822018-08-13 11:10:48 -0400145 "SettingsLib",
Alejandro Nijamkin6f22abf62022-06-27 14:18:17 -0700146 "androidx.core_core-ktx",
Fabian Kozynski713b7272020-03-03 18:35:52 -0500147 "androidx.viewpager2_viewpager2",
Jason Monka2f2d822018-08-13 11:10:48 -0400148 "androidx.legacy_legacy-support-v4",
149 "androidx.recyclerview_recyclerview",
150 "androidx.preference_preference",
151 "androidx.appcompat_appcompat",
Mark Renoufe2395012020-12-16 01:05:12 -0500152 "androidx.concurrent_concurrent-futures",
Jason Monka2f2d822018-08-13 11:10:48 -0400153 "androidx.mediarouter_mediarouter",
154 "androidx.palette_palette",
155 "androidx.legacy_legacy-preference-v14",
156 "androidx.leanback_leanback",
157 "androidx.slice_slice-core",
158 "androidx.slice_slice-view",
159 "androidx.slice_slice-builders",
160 "androidx.arch.core_core-runtime",
Bryce Lee436e42c2022-01-24 14:53:49 -0800161 "androidx.lifecycle_lifecycle-common-java8",
Jason Monka2f2d822018-08-13 11:10:48 -0400162 "androidx.lifecycle_lifecycle-extensions",
Jordan Demeulenaere8a169ff2022-07-13 10:42:10 +0200163 "androidx.lifecycle_lifecycle-runtime-ktx",
Joshua Tsujib1a796b2019-01-16 15:43:12 -0800164 "androidx.dynamicanimation_dynamicanimation",
Steve Elliott300b48f2019-05-29 14:13:50 -0400165 "androidx-constraintlayout_constraintlayout",
Miranda Kepharte1a22b92020-12-16 14:01:12 -0500166 "androidx.exifinterface_exifinterface",
Rahul Banerjee326c2502022-11-01 11:54:45 -0700167 "androidx.test.ext.junit",
Lucas Dupin00c1a602022-02-16 16:40:36 -0800168 "com.google.android.material_material",
Steve Elliotta7d72052020-12-16 23:04:19 -0500169 "kotlinx_coroutines_android",
170 "kotlinx_coroutines",
Hyunyoung Song5347a542019-03-01 13:32:28 -0800171 "iconloader_base",
Jason Monka2f2d822018-08-13 11:10:48 -0400172 "SystemUI-tags",
173 "SystemUI-proto",
Lucas Dupine37369f2021-08-31 00:19:39 +0000174 "monet",
Dave Mankoffdffcc472020-07-08 15:25:16 -0400175 "dagger2",
Andy Wickham64e34102021-03-07 16:02:01 -0800176 "jsr330",
Beverly46817e12021-06-22 16:29:52 -0400177 "lottie",
Lucas Silva0bfb4052022-09-20 23:32:02 -0400178 "LowLightDreamLib",
Johannes Gallmann0d5183c2022-10-04 13:32:16 +0000179 "motion_tool_lib",
Jason Monka2f2d822018-08-13 11:10:48 -0400180 ],
181 manifest: "AndroidManifest.xml",
182
Selim Cinek820ba2d2019-06-18 18:59:09 -0700183 kotlincflags: ["-Xjvm-default=enable"],
Jason Monk73e8ffc2018-12-06 14:45:19 -0500184
Dave Mankoffdffcc472020-07-08 15:25:16 -0400185 plugins: ["dagger2-compiler"],
Jernej Viragbb4ff3f2022-03-10 17:52:11 +0000186
187 lint: {
188 extra_check_modules: ["SystemUILintChecker"],
189 },
Jason Monka2f2d822018-08-13 11:10:48 -0400190}
191
Tadashi G. Takaokaa6572dc2019-09-17 15:18:53 +0900192filegroup {
Fabian Kozynskid389df52022-01-06 10:52:51 -0500193 name: "AAA-src",
194 srcs: ["tests/src/com/android/AAAPlusPlusVerifySysuiRequiredTestPropertiesTest.java"],
195 path: "tests/src",
196}
197
198filegroup {
Tadashi G. Takaokaa6572dc2019-09-17 15:18:53 +0900199 name: "SystemUI-tests-utils",
200 srcs: [
Jordan Demeulenaeref7fed3c2022-07-28 18:06:49 +0200201 "tests/utils/src/**/*.java",
202 "tests/utils/src/**/*.kt",
Dave Mankoffb4935a22021-06-01 15:12:15 -0400203 ],
Jordan Demeulenaeref7fed3c2022-07-28 18:06:49 +0200204 path: "tests/utils/src",
Tadashi G. Takaokaa6572dc2019-09-17 15:18:53 +0900205}
206
Kevin Liucff46f1fa2022-12-08 17:49:08 +0000207filegroup {
208 name: "SystemUI-tests-robolectric-pilots",
209 srcs: [
210 // data
211 "tests/src/com/android/systemui/keyguard/data/quickaffordance/CameraQuickAffordanceConfigTest.kt",
212 "tests/src/com/android/systemui/keyguard/data/quickaffordance/DoNotDisturbQuickAffordanceConfigTest.kt",
213 "tests/src/com/android/systemui/keyguard/data/quickaffordance/FakeKeyguardQuickAffordanceConfig.kt",
214 "tests/src/com/android/systemui/keyguard/data/quickaffordance/FlashlightQuickAffordanceConfigTest.kt",
215 "tests/src/com/android/systemui/keyguard/data/quickaffordance/HomeControlsKeyguardQuickAffordanceConfigTest.kt",
216 "tests/src/com/android/systemui/keyguard/data/quickaffordance/KeyguardQuickAffordanceLegacySettingSyncerTest.kt",
217 "tests/src/com/android/systemui/keyguard/data/quickaffordance/KeyguardQuickAffordanceLocalUserSelectionManagerTest.kt",
218 "tests/src/com/android/systemui/keyguard/data/quickaffordance/KeyguardQuickAffordanceRemoteUserSelectionManagerTest.kt",
219 "tests/src/com/android/systemui/keyguard/data/quickaffordance/QrCodeScannerKeyguardQuickAffordanceConfigTest.kt",
220 "tests/src/com/android/systemui/keyguard/data/quickaffordance/QuickAccessWalletKeyguardQuickAffordanceConfigTest.kt",
221 "tests/src/com/android/systemui/keyguard/data/repository/KeyguardQuickAffordanceRepositoryTest.kt",
222 "tests/src/com/android/systemui/keyguard/data/repository/KeyguardRepositoryImplTest.kt",
223 // domain
224 "tests/src/com/android/systemui/keyguard/domain/interactor/AlternateBouncerInteractorTest.kt",
225 "tests/src/com/android/systemui/keyguard/domain/interactor/KeyguardInteractorTest.kt",
226 "tests/src/com/android/systemui/keyguard/domain/interactor/AlternateBouncerInteractorTest.kt",
227 "tests/src/com/android/systemui/keyguard/domain/interactor/KeyguardInteractorTest.kt",
228 "tests/src/com/android/systemui/keyguard/domain/interactor/KeyguardQuickAffordanceInteractorTest.kt",
229 "tests/src/com/android/systemui/keyguard/domain/interactor/KeyguardTransitionInteractorTest.kt",
230 "tests/src/com/android/systemui/keyguard/domain/interactor/LightRevealScrimInteractorTest.kt",
231 "tests/src/com/android/systemui/keyguard/domain/quickaffordance/FakeKeyguardQuickAffordanceRegistry.kt",
232 "tests/src/com/android/systemui/keyguard/domain/interactor/PrimaryBouncerInteractorWithCoroutinesTest.kt",
233 "tests/src/com/android/systemui/keyguard/domain/interactor/KeyguardInteractorTest.kt",
234 "tests/src/com/android/systemui/keyguard/domain/interactor/PrimaryBouncerInteractorWithCoroutinesTest.kt",
235 // ui
236 "tests/src/com/android/systemui/keyguard/ui/viewmodel/DreamingToLockscreenTransitionViewModelTest.kt",
237 "tests/src/com/android/systemui/keyguard/ui/viewmodel/KeyguardBouncerViewModelTest.kt",
238 "tests/src/com/android/systemui/keyguard/ui/viewmodel/GoneToDreamingTransitionViewModelTest.kt",
239 "tests/src/com/android/systemui/keyguard/ui/viewmodel/LockscreenToDreamingTransitionViewModelTest.kt",
240 "tests/src/com/android/systemui/keyguard/ui/viewmodel/LockscreenToOccludedTransitionViewModelTest.kt",
241 "tests/src/com/android/systemui/keyguard/ui/viewmodel/OccludedToLockscreenTransitionViewModelTest.kt",
242 ],
243 path: "tests/src",
244}
245
Bryce Leea5b08082021-10-06 11:34:56 -0700246java_library {
247 name: "SystemUI-tests-concurrency",
248 srcs: [
249 "src/com/android/systemui/util/concurrency/DelayableExecutor.java",
250 "src/com/android/systemui/util/time/SystemClock.java",
Jordan Demeulenaeref7fed3c2022-07-28 18:06:49 +0200251 "tests/utils/src/com/android/systemui/util/concurrency/FakeExecutor.java",
252 "tests/utils/src/com/android/systemui/util/time/FakeSystemClock.java",
Bryce Leea5b08082021-10-06 11:34:56 -0700253 ],
254 jarjar_rules: ":jarjar-rules-shared",
255}
256
Jason Monkae7ced22018-08-22 16:56:58 -0400257android_library {
Jay Aliomera22acac2022-11-28 14:50:09 +0000258 name: "SystemUI-tests-base",
Sunny Goyaleb18d392020-02-07 16:48:14 -0800259 manifest: "tests/AndroidManifest-base.xml",
Jason Monkae7ced22018-08-22 16:56:58 -0400260 resource_dirs: [
261 "tests/res",
Sunny Goyalb4a26012019-12-05 15:49:41 -0800262 "res-product",
Jason Monkae7ced22018-08-22 16:56:58 -0400263 "res-keyguard",
264 "res",
265 ],
Jason Monkae7ced22018-08-22 16:56:58 -0400266 static_libs: [
Quang Luongc6fc5b22021-06-10 14:35:32 -0700267 "WifiTrackerLib",
Jordan Demeulenaerecea62bb2021-04-08 11:04:50 +0200268 "SystemUIAnimationLib",
Jason Monkae7ced22018-08-22 16:56:58 -0400269 "SystemUIPluginLib",
270 "SystemUISharedLib",
Hawkwood Glazierb8eef872022-11-11 17:56:14 +0000271 "SystemUICustomizationLib",
Hyunyoung Song3d89c932020-04-11 13:31:06 -0700272 "SystemUI-statsd",
Jason Monkae7ced22018-08-22 16:56:58 -0400273 "SettingsLib",
Fabian Kozynski713b7272020-03-03 18:35:52 -0500274 "androidx.viewpager2_viewpager2",
Jason Monkae7ced22018-08-22 16:56:58 -0400275 "androidx.legacy_legacy-support-v4",
276 "androidx.recyclerview_recyclerview",
277 "androidx.preference_preference",
278 "androidx.appcompat_appcompat",
Mark Renoufe2395012020-12-16 01:05:12 -0500279 "androidx.concurrent_concurrent-futures",
Jason Monkae7ced22018-08-22 16:56:58 -0400280 "androidx.mediarouter_mediarouter",
281 "androidx.palette_palette",
282 "androidx.legacy_legacy-preference-v14",
283 "androidx.leanback_leanback",
284 "androidx.slice_slice-core",
285 "androidx.slice_slice-view",
286 "androidx.slice_slice-builders",
287 "androidx.arch.core_core-runtime",
Bryce Lee436e42c2022-01-24 14:53:49 -0800288 "androidx.lifecycle_lifecycle-common-java8",
Jason Monkae7ced22018-08-22 16:56:58 -0400289 "androidx.lifecycle_lifecycle-extensions",
Jordan Demeulenaere8a169ff2022-07-13 10:42:10 +0200290 "androidx.lifecycle_lifecycle-runtime-ktx",
Joshua Tsujib1a796b2019-01-16 15:43:12 -0800291 "androidx.dynamicanimation_dynamicanimation",
Steve Elliott300b48f2019-05-29 14:13:50 -0400292 "androidx-constraintlayout_constraintlayout",
Miranda Kepharte1a22b92020-12-16 14:01:12 -0500293 "androidx.exifinterface_exifinterface",
Pinyao Tingee191b12020-04-29 18:35:39 -0700294 "kotlinx-coroutines-android",
295 "kotlinx-coroutines-core",
Alejandro Nijamkinc738a8c2022-07-25 13:30:41 -0700296 "kotlinx_coroutines_test",
Chandru917e4bc2022-08-19 14:25:31 +0000297 "kotlin-reflect",
Lyn Han1b4f25e2019-06-11 13:56:34 -0700298 "iconloader_base",
Jason Monkae7ced22018-08-22 16:56:58 -0400299 "SystemUI-tags",
300 "SystemUI-proto",
301 "metrics-helper-lib",
Tadashi G. Takaokac7340fb2020-10-20 17:50:13 +0900302 "hamcrest-library",
303 "androidx.test.rules",
Jason Monkae7ced22018-08-22 16:56:58 -0400304 "testables",
305 "truth-prebuilt",
Lucas Dupine37369f2021-08-31 00:19:39 +0000306 "monet",
Dave Mankoffdffcc472020-07-08 15:25:16 -0400307 "dagger2",
Bill Lina17858d12020-07-14 10:30:10 +0800308 "jsr330",
309 "WindowManager-Shell",
Lucas Silva0bfb4052022-09-20 23:32:02 -0400310 "LowLightDreamLib",
Johannes Gallmann0d5183c2022-10-04 13:32:16 +0000311 "motion_tool_lib",
Johannes Gallmannb642af92022-10-14 09:58:09 +0000312 "androidx.core_core-animation-testing-nodeps",
Jordan Demeulenaere54a0fae2023-01-04 11:36:46 +0100313 "androidx.compose.ui_ui",
Jason Monkae7ced22018-08-22 16:56:58 -0400314 ],
Jay Aliomera22acac2022-11-28 14:50:09 +0000315}
316
317android_library {
318 name: "SystemUI-tests",
Jordan Demeulenaere68e91822022-12-16 10:55:47 +0100319 defaults: [
320 "SystemUI_compose_defaults",
321 ],
Jay Aliomera22acac2022-11-28 14:50:09 +0000322 manifest: "tests/AndroidManifest-base.xml",
323 additional_manifests: ["tests/AndroidManifest.xml"],
324 srcs: [
325 "tests/src/**/*.kt",
326 "tests/src/**/*.java",
327 "src/**/*.kt",
328 "src/**/*.java",
329 "src/**/I*.aidl",
330 ":ReleaseJavaFiles",
331 ":SystemUI-tests-utils",
332 ],
333 static_libs: [
334 "SystemUI-tests-base",
335 "androidx.test.uiautomator",
336 "mockito-target-extended-minus-junit4",
337 "androidx.test.ext.junit",
338 ],
Jason Monkae7ced22018-08-22 16:56:58 -0400339 libs: [
340 "android.test.runner",
Jason Monkae7ced22018-08-22 16:56:58 -0400341 "android.test.base",
Jordan Demeulenaere6fb22d42022-08-19 15:00:36 +0200342 "android.test.mock",
Jason Monkae7ced22018-08-22 16:56:58 -0400343 ],
Selim Cinek820ba2d2019-06-18 18:59:09 -0700344 kotlincflags: ["-Xjvm-default=enable"],
Jason Monkae7ced22018-08-22 16:56:58 -0400345 aaptflags: [
346 "--extra-packages",
Hyunyoung Song8f9d34c2019-08-30 14:47:43 -0700347 "com.android.systemui",
Jason Monkae7ced22018-08-22 16:56:58 -0400348 ],
Dave Mankoffdffcc472020-07-08 15:25:16 -0400349 plugins: ["dagger2-compiler"],
Jason Monkae7ced22018-08-22 16:56:58 -0400350}
351
Jay Aliomera22acac2022-11-28 14:50:09 +0000352android_app {
353 name: "SystemUIRobo-stub",
354 defaults: [
355 "platform_app_defaults",
356 "SystemUI_app_defaults",
Kevin Liucff46f1fa2022-12-08 17:49:08 +0000357 "SystemUI_compose_defaults",
Jay Aliomera22acac2022-11-28 14:50:09 +0000358 ],
359 manifest: "tests/AndroidManifest-base.xml",
Kevin Liucff46f1fa2022-12-08 17:49:08 +0000360
361 srcs: [
362 "src/**/*.kt",
363 "src/**/*.java",
364 "src/**/I*.aidl",
365 ":ReleaseJavaFiles",
366 ],
Jay Aliomera22acac2022-11-28 14:50:09 +0000367 static_libs: [
368 "SystemUI-tests-base",
369 ],
370 aaptflags: [
371 "--extra-packages",
372 "com.android.systemui",
373 ],
374 dont_merge_manifests: true,
375 platform_apis: true,
376 system_ext_specific: true,
377 certificate: "platform",
378 privileged: true,
379 resource_dirs: [],
Kevin Liucff46f1fa2022-12-08 17:49:08 +0000380 kotlincflags: ["-Xjvm-default=all"],
381
382 plugins: ["dagger2-compiler"],
Jay Aliomera22acac2022-11-28 14:50:09 +0000383}
384
385android_robolectric_test {
386 name: "SystemUiRoboTests",
387 srcs: [
388 "tests/robolectric/src/**/*.kt",
389 "tests/robolectric/src/**/*.java",
Kevin Liucff46f1fa2022-12-08 17:49:08 +0000390 ":SystemUI-tests-utils",
391 ":SystemUI-tests-robolectric-pilots",
392 ],
393 static_libs: [
394 "androidx.test.uiautomator_uiautomator",
395 "androidx.test.ext.junit",
396 "inline-mockito-robolectric-prebuilt",
Jay Aliomera22acac2022-11-28 14:50:09 +0000397 ],
398 libs: [
399 "android.test.runner",
400 "android.test.base",
401 "android.test.mock",
402 "truth-prebuilt",
403 ],
Kevin Liucff46f1fa2022-12-08 17:49:08 +0000404
405 upstream: true,
406
Jay Aliomera22acac2022-11-28 14:50:09 +0000407 instrumentation_for: "SystemUIRobo-stub",
408 java_resource_dirs: ["tests/robolectric/config"],
409}
410
Jared Duke84e94b32022-08-05 13:46:38 -0700411// Opt-out config for optimizing the SystemUI target using R8.
412// Disabled via `export SYSTEMUI_OPTIMIZE_JAVA=false`, or explicitly in Make via
413// `SYSTEMUI_OPTIMIZE_JAVA := false`.
Jared Duke9dfa77b2021-12-22 13:31:06 -0800414soong_config_module_type {
415 name: "systemui_optimized_java_defaults",
416 module_type: "java_defaults",
417 config_namespace: "ANDROID",
418 bool_variables: ["SYSTEMUI_OPTIMIZE_JAVA"],
419 properties: ["optimize"],
Jared Duke2fee7402021-10-18 14:35:04 -0700420}
421
Jared Duke9dfa77b2021-12-22 13:31:06 -0800422systemui_optimized_java_defaults {
Jared Duke2fee7402021-10-18 14:35:04 -0700423 name: "SystemUI_app_defaults",
424 soong_config_variables: {
Jared Duke9dfa77b2021-12-22 13:31:06 -0800425 SYSTEMUI_OPTIMIZE_JAVA: {
Jared Duke2fee7402021-10-18 14:35:04 -0700426 optimize: {
427 enabled: true,
428 optimize: true,
429 shrink: true,
430 proguard_flags_files: ["proguard.flags"],
431 },
432 conditions_default: {
433 optimize: {
434 proguard_flags_files: ["proguard.flags"],
435 },
436 },
437 },
438 },
439}
440
Jason Monka2f2d822018-08-13 11:10:48 -0400441android_app {
442 name: "SystemUI",
Jared Duke2fee7402021-10-18 14:35:04 -0700443 defaults: [
444 "platform_app_defaults",
445 "SystemUI_app_defaults",
446 ],
Jason Monka2f2d822018-08-13 11:10:48 -0400447 static_libs: [
448 "SystemUI-core",
449 ],
Anton Hansson7ccca9f2019-02-08 09:01:32 +0000450 resource_dirs: [],
Jason Monka2f2d822018-08-13 11:10:48 -0400451
452 platform_apis: true,
Jeongik Chad45d9e12019-12-04 13:38:39 +0900453 system_ext_specific: true,
Jason Monka2f2d822018-08-13 11:10:48 -0400454 certificate: "platform",
455 privileged: true,
456
Selim Cinek820ba2d2019-06-18 18:59:09 -0700457 kotlincflags: ["-Xjvm-default=enable"],
458
Jason Monka2f2d822018-08-13 11:10:48 -0400459 dxflags: ["--multi-dex"],
Winson Chungb754f522020-08-03 22:17:08 -0700460 required: [
461 "privapp_whitelist_com.android.systemui",
Hongwei Wang2b227ee2022-08-19 09:38:18 -0700462 "wmshell.protolog.json.gz",
Winson Chungb754f522020-08-03 22:17:08 -0700463 ],
Jason Monka2f2d822018-08-13 11:10:48 -0400464}