blob: 1a33b6e3cd683b2cf4cf61d4a704cbf8991b87c9 [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: [
Darrell Shiacfbe672023-10-06 15:58:02 +000063 "CommunalLayoutLib",
Jordan Demeulenaere8a1747d2022-12-28 11:11:42 +010064 "PlatformComposeCore",
Jordan Demeulenaere68e91822022-12-16 10:55:47 +010065
66 "androidx.compose.runtime_runtime",
67 "androidx.compose.material3_material3",
Jordan Demeulenaerebf43b1d2022-12-16 13:00:23 +010068 "androidx.activity_activity-compose",
Jordan Demeulenaere0bbebad2023-07-06 10:19:49 +020069 "androidx.compose.animation_animation-graphics",
Jordan Demeulenaere68e91822022-12-16 10:55:47 +010070 ],
71
72 // By default, Compose is disabled and we compile the ComposeFacade
73 // in compose/facade/disabled/.
74 conditions_default: {
75 srcs: ["compose/facade/disabled/src/**/*.kt"],
76 static_libs: [],
77 },
78 },
79 },
80}
81
Jason Monka2f2d822018-08-13 11:10:48 -040082java_library {
83 name: "SystemUI-proto",
84
85 srcs: ["src/**/*.proto"],
86
87 proto: {
88 type: "nano",
89 },
Winson Chungeb1aa3d2020-08-25 19:02:29 -070090
91 libs: [
92 "WindowManager-Shell-proto",
93 ],
Jason Monka2f2d822018-08-13 11:10:48 -040094}
95
96java_library {
97 name: "SystemUI-tags",
98 srcs: ["src/com/android/systemui/EventLogTags.logtags"],
99}
100
Jay Aliomer97d4fc7d2021-09-23 16:59:09 -0400101filegroup {
102 name: "ReleaseJavaFiles",
Jeff DeCew86b8e772021-10-25 20:35:45 -0400103 srcs: [
104 "src-release/**/*.kt",
105 "src-release/**/*.java",
106 ],
Jay Aliomer97d4fc7d2021-09-23 16:59:09 -0400107}
108
109filegroup {
110 name: "DebugJavaFiles",
Jeff DeCew86b8e772021-10-25 20:35:45 -0400111 srcs: [
112 "src-debug/**/*.kt",
113 "src-debug/**/*.java",
114 ],
Jay Aliomer97d4fc7d2021-09-23 16:59:09 -0400115}
116
Xiaozhen Lin53063042022-11-23 02:18:08 +0000117//Create a library to expose SystemUI's resources to other modules.
118android_library {
119 name: "SystemUI-res",
Peter Kalauskas84c5a992023-08-23 13:39:23 -0700120 use_resource_processor: true,
Xiaozhen Lin53063042022-11-23 02:18:08 +0000121 resource_dirs: [
122 "res-product",
123 "res-keyguard",
124 "res",
125 ],
126 static_libs: [
127 "SystemUISharedLib",
Hawkwood Glazier057df3a2023-06-14 20:10:21 +0000128 "SystemUICustomizationLib",
Xiaozhen Lin53063042022-11-23 02:18:08 +0000129 "SettingsLib",
130 "androidx.leanback_leanback",
131 "androidx.slice_slice-core",
132 "androidx.slice_slice-view",
133 ],
134 manifest: "AndroidManifest-res.xml",
135}
136
Jason Monka2f2d822018-08-13 11:10:48 -0400137android_library {
138 name: "SystemUI-core",
Jordan Demeulenaere68e91822022-12-16 10:55:47 +0100139 defaults: [
140 "SystemUI_compose_defaults",
141 ],
Jason Monka2f2d822018-08-13 11:10:48 -0400142 srcs: [
Jason Monkae7ced22018-08-22 16:56:58 -0400143 "src/**/*.kt",
Jason Monka2f2d822018-08-13 11:10:48 -0400144 "src/**/*.java",
145 "src/**/I*.aidl",
Dave Mankoff72a50022021-11-02 20:44:54 -0400146 ":ReleaseJavaFiles",
Jason Monka2f2d822018-08-13 11:10:48 -0400147 ],
Jay Aliomer97d4fc7d2021-09-23 16:59:09 -0400148 product_variables: {
149 debuggable: {
150 srcs: [":DebugJavaFiles"],
151 exclude_srcs: [":ReleaseJavaFiles"],
152 },
153 },
Colin Crossc23cde42023-06-21 11:22:11 -0700154 use_resource_processor: true,
Jason Monka2f2d822018-08-13 11:10:48 -0400155 static_libs: [
Peter Kalauskas84c5a992023-08-23 13:39:23 -0700156 "SystemUI-res",
Quang Luongc6fc5b22021-06-10 14:35:32 -0700157 "WifiTrackerLib",
Winson Chung10a9b4b2019-12-18 10:01:36 -0800158 "WindowManager-Shell",
Jordan Demeulenaerecea62bb2021-04-08 11:04:50 +0200159 "SystemUIAnimationLib",
Darrell Shi60006322023-04-06 17:58:40 +0000160 "SystemUICommon",
161 "SystemUICustomizationLib",
Darrell Shi1a21b362023-04-28 19:51:44 +0000162 "SystemUILogLib",
Jason Monka2f2d822018-08-13 11:10:48 -0400163 "SystemUIPluginLib",
164 "SystemUISharedLib",
Jerry Chang919d1d22020-07-16 12:31:24 +0800165 "SystemUI-statsd",
Jason Monka2f2d822018-08-13 11:10:48 -0400166 "SettingsLib",
Ned Burns6d480c32023-08-28 12:12:19 -0400167 "com_android_systemui_flags_lib",
Alejandro Nijamkin38859642022-06-27 14:18:17 -0700168 "androidx.core_core-ktx",
Fabian Kozynski713b7272020-03-03 18:35:52 -0500169 "androidx.viewpager2_viewpager2",
Jason Monka2f2d822018-08-13 11:10:48 -0400170 "androidx.legacy_legacy-support-v4",
171 "androidx.recyclerview_recyclerview",
172 "androidx.preference_preference",
173 "androidx.appcompat_appcompat",
Mark Renoufe2395012020-12-16 01:05:12 -0500174 "androidx.concurrent_concurrent-futures",
Jason Monka2f2d822018-08-13 11:10:48 -0400175 "androidx.mediarouter_mediarouter",
176 "androidx.palette_palette",
177 "androidx.legacy_legacy-preference-v14",
178 "androidx.leanback_leanback",
179 "androidx.slice_slice-core",
180 "androidx.slice_slice-view",
181 "androidx.slice_slice-builders",
182 "androidx.arch.core_core-runtime",
Bryce Lee436e42c2022-01-24 14:53:49 -0800183 "androidx.lifecycle_lifecycle-common-java8",
Jason Monka2f2d822018-08-13 11:10:48 -0400184 "androidx.lifecycle_lifecycle-extensions",
Jordan Demeulenaere8a169ff2022-07-13 10:42:10 +0200185 "androidx.lifecycle_lifecycle-runtime-ktx",
Joshua Tsujib1a796b2019-01-16 15:43:12 -0800186 "androidx.dynamicanimation_dynamicanimation",
Steve Elliott300b48f2019-05-29 14:13:50 -0400187 "androidx-constraintlayout_constraintlayout",
Miranda Kepharte1a22b92020-12-16 14:01:12 -0500188 "androidx.exifinterface_exifinterface",
Lucas Dupin00c1a602022-02-16 16:40:36 -0800189 "com.google.android.material_material",
Steve Elliotta7d72052020-12-16 23:04:19 -0500190 "kotlinx_coroutines_android",
191 "kotlinx_coroutines",
Hyunyoung Song5347a542019-03-01 13:32:28 -0800192 "iconloader_base",
Jason Monka2f2d822018-08-13 11:10:48 -0400193 "SystemUI-tags",
194 "SystemUI-proto",
Lucas Dupine37369f2021-08-31 00:19:39 +0000195 "monet",
Lucas Dupind83b4ee2023-07-08 11:05:47 -0700196 "libmonet",
Dave Mankoffdffcc472020-07-08 15:25:16 -0400197 "dagger2",
Brett Chabotfc8675a2023-03-27 10:33:10 -0700198 "jsr305",
Andy Wickham64e34102021-03-07 16:02:01 -0800199 "jsr330",
Beverly46817e12021-06-22 16:29:52 -0400200 "lottie",
Lucas Silva0bfb4052022-09-20 23:32:02 -0400201 "LowLightDreamLib",
Johannes Gallmann0d5183c2022-10-04 13:32:16 +0000202 "motion_tool_lib",
Jason Monka2f2d822018-08-13 11:10:48 -0400203 ],
Nikolas Havrikovc70cb072023-09-08 15:06:35 +0200204 libs: [
205 "keepanno-annotations",
206 ],
Jason Monka2f2d822018-08-13 11:10:48 -0400207 manifest: "AndroidManifest.xml",
208
Kevin Jeonf2e72182022-04-04 19:05:05 +0000209 javacflags: ["-Adagger.fastInit=enabled"],
Colin Cross6954ea72023-07-18 10:52:21 -0700210 kotlincflags: ["-Xjvm-default=all"],
Jason Monk73e8ffc2018-12-06 14:45:19 -0500211
Dave Mankoffdffcc472020-07-08 15:25:16 -0400212 plugins: ["dagger2-compiler"],
Jernej Viragbb4ff3f2022-03-10 17:52:11 +0000213
214 lint: {
215 extra_check_modules: ["SystemUILintChecker"],
216 },
Jason Monka2f2d822018-08-13 11:10:48 -0400217}
218
Tadashi G. Takaokaa6572dc2019-09-17 15:18:53 +0900219filegroup {
Fabian Kozynskid389df52022-01-06 10:52:51 -0500220 name: "AAA-src",
221 srcs: ["tests/src/com/android/AAAPlusPlusVerifySysuiRequiredTestPropertiesTest.java"],
222 path: "tests/src",
223}
224
225filegroup {
Tadashi G. Takaokaa6572dc2019-09-17 15:18:53 +0900226 name: "SystemUI-tests-utils",
227 srcs: [
Jordan Demeulenaeref7fed3c2022-07-28 18:06:49 +0200228 "tests/utils/src/**/*.java",
229 "tests/utils/src/**/*.kt",
Dave Mankoffb4935a22021-06-01 15:12:15 -0400230 ],
Jordan Demeulenaeref7fed3c2022-07-28 18:06:49 +0200231 path: "tests/utils/src",
Tadashi G. Takaokaa6572dc2019-09-17 15:18:53 +0900232}
233
Kevin Liud3793232023-02-09 20:37:27 +0000234filegroup {
Caitlin Shkuratovd3777bd2023-07-18 21:39:33 +0000235 name: "SystemUI-test-fakes",
236 srcs: [
237 /* Status bar fakes */
238 "tests/src/com/android/systemui/statusbar/pipeline/airplane/data/repository/FakeAirplaneModeRepository.kt",
Chandru S2f6c56c2023-09-21 18:13:23 -0700239 "tests/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/FakeMobileConnectionRepository.kt",
240 "tests/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/FakeMobileConnectionsRepository.kt",
241 "tests/src/com/android/systemui/statusbar/pipeline/mobile/util/FakeMobileMappingsProxy.kt",
Caitlin Shkuratovd3777bd2023-07-18 21:39:33 +0000242 "tests/src/com/android/systemui/statusbar/pipeline/shared/data/repository/FakeConnectivityRepository.kt",
243 "tests/src/com/android/systemui/statusbar/pipeline/wifi/data/repository/FakeWifiRepository.kt",
Darrell Shi9ea21282023-08-30 23:57:12 +0000244
245 /* Log fakes */
246 "tests/src/com/android/systemui/log/core/FakeLogBuffer.kt",
FabiĂĄn Kozynski9746d312023-08-31 16:47:50 -0400247
248 /* QS fakes */
249 "tests/src/com/android/systemui/qs/pipeline/domain/interactor/FakeQSTile.kt",
Caitlin Shkuratovd3777bd2023-07-18 21:39:33 +0000250 ],
251 path: "tests/src",
252}
253
254filegroup {
Kevin Liud3793232023-02-09 20:37:27 +0000255 name: "SystemUI-tests-robolectric-pilots",
256 srcs: [
Kevin Liuc54db8b2023-03-22 21:41:46 +0000257 /* Keyguard converted tests */
Kevin Liud3793232023-02-09 20:37:27 +0000258 // data
259 "tests/src/com/android/systemui/keyguard/data/quickaffordance/CameraQuickAffordanceConfigTest.kt",
260 "tests/src/com/android/systemui/keyguard/data/quickaffordance/DoNotDisturbQuickAffordanceConfigTest.kt",
Kevin Liud3793232023-02-09 20:37:27 +0000261 "tests/src/com/android/systemui/keyguard/data/quickaffordance/FlashlightQuickAffordanceConfigTest.kt",
262 "tests/src/com/android/systemui/keyguard/data/quickaffordance/HomeControlsKeyguardQuickAffordanceConfigTest.kt",
263 "tests/src/com/android/systemui/keyguard/data/quickaffordance/KeyguardQuickAffordanceLegacySettingSyncerTest.kt",
264 "tests/src/com/android/systemui/keyguard/data/quickaffordance/KeyguardQuickAffordanceLocalUserSelectionManagerTest.kt",
265 "tests/src/com/android/systemui/keyguard/data/quickaffordance/KeyguardQuickAffordanceRemoteUserSelectionManagerTest.kt",
Kevin Liuc54db8b2023-03-22 21:41:46 +0000266 "tests/src/com/android/systemui/keyguard/data/quickaffordance/MuteQuickAffordanceConfigTest.kt",
Kevin Liud3793232023-02-09 20:37:27 +0000267 "tests/src/com/android/systemui/keyguard/data/quickaffordance/QrCodeScannerKeyguardQuickAffordanceConfigTest.kt",
268 "tests/src/com/android/systemui/keyguard/data/quickaffordance/QuickAccessWalletKeyguardQuickAffordanceConfigTest.kt",
Kevin Liuc54db8b2023-03-22 21:41:46 +0000269 "tests/src/com/android/systemui/keyguard/data/quickaffordance/VideoCameraQuickAffordanceConfigTest.kt",
270 "tests/src/com/android/systemui/keyguard/data/repository/BiometricSettingsRepositoryTest.kt",
271 "tests/src/com/android/systemui/keyguard/data/repository/DeviceEntryFaceAuthRepositoryTest.kt",
272 "tests/src/com/android/systemui/keyguard/data/repository/DeviceEntryFingerprintAuthRepositoryTest.kt",
273 "tests/src/com/android/systemui/keyguard/data/repository/DevicePostureRepositoryTest.kt",
Kevin Liud3793232023-02-09 20:37:27 +0000274 "tests/src/com/android/systemui/keyguard/data/repository/KeyguardQuickAffordanceRepositoryTest.kt",
275 "tests/src/com/android/systemui/keyguard/data/repository/KeyguardRepositoryImplTest.kt",
Kevin Liuc54db8b2023-03-22 21:41:46 +0000276 "tests/src/com/android/systemui/keyguard/data/repository/LightRevealScrimRepositoryTest.kt",
277 "tests/src/com/android/systemui/keyguard/data/repository/TrustRepositoryTest.kt",
Kevin Liud3793232023-02-09 20:37:27 +0000278 // domain
Aaron Liu8456c412023-05-31 11:12:55 -0700279 "tests/src/com/android/systemui/bouncer/domain/interactor/AlternateBouncerInteractorTest.kt",
280 "tests/src/com/android/systemui/bouncer/domain/interactor/PrimaryBouncerCallbackInteractorTest.kt",
281 "tests/src/com/android/systemui/bouncer/domain/interactor/PrimaryBouncerInteractorWithCoroutinesTest.kt",
Kevin Liud3793232023-02-09 20:37:27 +0000282 "tests/src/com/android/systemui/keyguard/domain/interactor/KeyguardInteractorTest.kt",
Kevin Liu810fcbb2023-04-24 22:33:07 +0000283 "tests/src/com/android/systemui/keyguard/domain/interactor/KeyguardLongPressInteractorTest.kt",
Kevin Liud3793232023-02-09 20:37:27 +0000284 "tests/src/com/android/systemui/keyguard/domain/interactor/KeyguardQuickAffordanceInteractorTest.kt",
285 "tests/src/com/android/systemui/keyguard/domain/interactor/KeyguardTransitionInteractorTest.kt",
286 "tests/src/com/android/systemui/keyguard/domain/interactor/LightRevealScrimInteractorTest.kt",
Kevin Liud3793232023-02-09 20:37:27 +0000287 // ui
Aaron Liu8456c412023-05-31 11:12:55 -0700288 "tests/src/com/android/systemui/bouncer/ui/viewmodel/KeyguardBouncerViewModelTest.kt",
Kevin Liud3793232023-02-09 20:37:27 +0000289 "tests/src/com/android/systemui/keyguard/ui/viewmodel/DreamingToLockscreenTransitionViewModelTest.kt",
Kevin Liud3793232023-02-09 20:37:27 +0000290 "tests/src/com/android/systemui/keyguard/ui/viewmodel/GoneToDreamingTransitionViewModelTest.kt",
291 "tests/src/com/android/systemui/keyguard/ui/viewmodel/LockscreenToDreamingTransitionViewModelTest.kt",
292 "tests/src/com/android/systemui/keyguard/ui/viewmodel/LockscreenToOccludedTransitionViewModelTest.kt",
293 "tests/src/com/android/systemui/keyguard/ui/viewmodel/OccludedToLockscreenTransitionViewModelTest.kt",
Kevin Liu810fcbb2023-04-24 22:33:07 +0000294 "tests/src/com/android/systemui/keyguard/ui/viewmodel/PrimaryBouncerToGoneTransitionViewModelTest.kt",
Kevin Liuc54db8b2023-03-22 21:41:46 +0000295 // Keyguard helper
296 "tests/src/com/android/systemui/keyguard/data/quickaffordance/FakeKeyguardQuickAffordanceConfig.kt",
Brad Hinegardner5094a5d2023-04-25 16:28:45 -0400297 "tests/src/com/android/systemui/dock/DockManagerFake.java",
Kevin Liuc54db8b2023-03-22 21:41:46 +0000298 "tests/src/com/android/systemui/dump/LogBufferHelper.kt",
299 "tests/src/com/android/systemui/statusbar/phone/FakeKeyguardStateController.java",
Kevin Liu092b8212023-02-15 05:42:34 +0000300
Kevin Liuc54db8b2023-03-22 21:41:46 +0000301 /* Biometric converted tests */
Kevin Liu092b8212023-02-15 05:42:34 +0000302 "tests/src/com/android/systemui/biometrics/BiometricTestExtensions.kt",
Kevin Liu092b8212023-02-15 05:42:34 +0000303 "tests/src/com/android/systemui/biometrics/AuthControllerTest.java",
304 "tests/src/com/android/systemui/biometrics/BiometricDisplayListenerTest.java",
305 "tests/src/com/android/systemui/biometrics/FaceHelpMessageDeferralTest.kt",
306 "tests/src/com/android/systemui/biometrics/SideFpsControllerTest.kt",
307 "tests/src/com/android/systemui/biometrics/UdfpsControllerOverlayTest.kt",
308 "tests/src/com/android/systemui/biometrics/UdfpsControllerTest.java",
309 "tests/src/com/android/systemui/biometrics/UdfpsDialogMeasureAdapterTest.java",
310 "tests/src/com/android/systemui/biometrics/UdfpsDisplayModeTest.java",
Beverlyea7325c2023-05-03 13:49:09 +0000311 "tests/src/com/android/systemui/biometrics/UdfpsKeyguardViewLegacyControllerBaseTest.java",
312 "tests/src/com/android/systemui/biometrics/UdfpsKeyguardViewLegacyControllerTest.java",
313 "tests/src/com/android/systemui/biometrics/UdfpsKeyguardViewLegacyControllerWithCoroutinesTest.kt",
Kevin Liu092b8212023-02-15 05:42:34 +0000314 "tests/src/com/android/systemui/biometrics/UdfpsShellTest.kt",
315 "tests/src/com/android/systemui/biometrics/UdfpsViewTest.kt",
Caitlin Shkuratovd3777bd2023-07-18 21:39:33 +0000316
317 /* Status bar wifi converted tests */
318 "tests/src/com/android/systemui/statusbar/pipeline/wifi/data/repository/WifiRepositorySwitcherTest.kt",
319 "tests/src/com/android/systemui/statusbar/pipeline/wifi/data/repository/prod/DisabledWifiRepositoryTest.kt",
320 "tests/src/com/android/systemui/statusbar/pipeline/wifi/data/repository/prod/WifiRepositoryImplTest.kt",
Caitlin Shkuratove0ed29452023-07-20 13:26:29 +0000321 "tests/src/com/android/systemui/statusbar/pipeline/wifi/domain/interactor/WifiInteractorImplTest.kt",
Caitlin Shkuratov87d86642023-07-20 14:49:28 +0000322 "tests/src/com/android/systemui/statusbar/pipeline/wifi/ui/viewmodel/WifiViewModelTest.kt",
Alejandro Nijamkinfb7db262023-10-04 15:40:18 -0700323 "tests/src/com/android/systemui/statusbar/pipeline/mobile/domain/interactor/FakeMobileIconsInteractor.kt",
324 "tests/src/com/android/systemui/statusbar/pipeline/mobile/domain/interactor/FakeMobileIconInteractor.kt",
Aaron Liu95f9e9a2023-08-25 11:56:47 -0700325
326 /* Bouncer UI tests */
327 "tests/src/com/android/keyguard/KeyguardPasswordViewControllerTest.kt",
328 "tests/src/com/android/keyguard/KeyguardPatternViewControllerTest.kt",
329 "tests/src/com/android/keyguard/KeyguardPinBasedInputViewControllerTest.java",
330 "tests/src/com/android/keyguard/KeyguardPinViewControllerTest.kt",
331 "tests/src/com/android/keyguard/KeyguardSecurityContainerTest.java",
332 "tests/src/com/android/keyguard/KeyguardSecurityContainerControllerTest.kt",
333 "tests/src/com/android/keyguard/KeyguardSecurityViewFlipperControllerTest.java",
334 "tests/src/com/android/keyguard/KeyguardSimPinViewControllerTest.kt",
335 "tests/src/com/android/keyguard/KeyguardSimPukViewControllerTest.kt",
Darrell Shi9ea21282023-08-30 23:57:12 +0000336
337 /* Communal tests */
338 "tests/src/com/android/systemui/communal/data/repository/CommunalWidgetRepositoryImplTest.kt",
339 "tests/src/com/android/systemui/communal/domain/interactor/CommunalInteractorTest.kt",
340 "tests/src/com/android/systemui/communal/ui/view/layout/blueprints/DefaultCommunalBlueprintTest.kt",
Darrell Shi8690e222023-08-31 21:11:25 +0000341
342 /* Dream tests */
343 "tests/src/com/android/systemui/dreams/complication/HideComplicationTouchHandlerTest.java",
344 "tests/src/com/android/systemui/dreams/conditions/AssistantAttentionConditionTest.java",
345 "tests/src/com/android/systemui/dreams/conditions/DreamConditionTest.java",
346 "tests/src/com/android/systemui/dreams/touch/scrim/BouncerlessScrimControllerTest.java",
347 "tests/src/com/android/systemui/dreams/touch/scrim/ScrimManagerTest.java",
348 "tests/src/com/android/systemui/dreams/touch/BouncerSwipeTouchHandlerTest.java",
349 "tests/src/com/android/systemui/dreams/touch/ShadeTouchHandlerTest.java",
350 "tests/src/com/android/systemui/dreams/DreamOverlayAnimationsControllerTest.kt",
351 "tests/src/com/android/systemui/dreams/DreamOverlayCallbackControllerTest.kt",
352 "tests/src/com/android/systemui/dreams/DreamOverlayContainerViewControllerTest.java",
353 "tests/src/com/android/systemui/dreams/DreamOverlayNotificationCountProviderTest.java",
354 "tests/src/com/android/systemui/dreams/DreamOverlayServiceTest.java",
355 "tests/src/com/android/systemui/dreams/DreamOverlayStateControllerTest.java",
356 "tests/src/com/android/systemui/dreams/DreamOverlayStatusBarItemsProviderTest.java",
357 "tests/src/com/android/systemui/dreams/DreamOverlayStatusBarViewControllerTest.java",
Xiaowen Lei39e0d0b2023-09-06 22:50:24 +0000358
359 /* Smartspace tests */
360 "tests/src/com/android/systemui/smartspace/BcSmartspaceConfigProviderTest.kt",
361 "tests/src/com/android/systemui/smartspace/DreamSmartspaceControllerTest.kt",
362 "tests/src/com/android/systemui/smartspace/LockscreenAndDreamTargetFilterTest.kt",
363 "tests/src/com/android/systemui/smartspace/LockscreenPreconditionTest.kt",
FabiĂĄn Kozynski9746d312023-08-31 16:47:50 -0400364
365 /* Quick Settings new pipeline converted tests */
366 "tests/src/com/android/systemui/qs/pipeline/data/**/*Test.kt",
367 "tests/src/com/android/systemui/qs/pipeline/domain/**/*Test.kt",
368 "tests/src/com/android/systemui/qs/pipeline/shared/TileSpecTest.kt",
Anton Potapova0317a32023-09-25 15:45:17 +0100369 "tests/src/com/android/systemui/qs/tiles/base/**/*.kt",
370 "tests/src/com/android/systemui/qs/tiles/viewmodel/**/*.kt",
Alejandro Nijamkinfb7db262023-10-04 15:40:18 -0700371
372 /* Authentication */
373 "tests/src/com/android/systemui/authentication/data/repository/AuthenticationRepositoryTest.kt",
374 "tests/src/com/android/systemui/authentication/domain/interactor/AuthenticationInteractorTest.kt",
375
376 /* Device entry */
377 "tests/src/com/android/systemui/deviceentry/data/repository/DeviceEntryRepositoryTest.kt",
378 "tests/src/com/android/systemui/deviceentry/domain/interactor/DeviceEntryInteractorTest.kt",
379
380 /* Bouncer scene */
381 "tests/src/com/android/systemui/bouncer/domain/interactor/BouncerInteractorTest.kt",
382 "tests/src/com/android/systemui/bouncer/ui/viewmodel/AuthMethodBouncerViewModelTest.kt",
383 "tests/src/com/android/systemui/bouncer/ui/viewmodel/BouncerViewModelTest.kt",
384 "tests/src/com/android/systemui/bouncer/ui/viewmodel/PasswordBouncerViewModelTest.kt",
385 "tests/src/com/android/systemui/bouncer/ui/viewmodel/PatternBouncerViewModelTest.kt",
386 "tests/src/com/android/systemui/bouncer/ui/viewmodel/PinBouncerViewModelTest.kt",
387 "tests/src/com/android/systemui/bouncer/ui/viewmodel/PinInputViewModelTest.kt",
388
389 /* Lockscreen scene */
390 "tests/src/com/android/systemui/keyguard/ui/viewmodel/LockscreenSceneViewModelTest.kt",
391
392 /* Shade scene */
393 "tests/src/com/android/systemui/shade/ui/viewmodel/ShadeSceneViewModelTest.kt",
394 "tests/src/com/android/systemui/shade/ui/viewmodel/ShadeHeaderViewModelTest.kt",
395
396 /* Quick Settings scene */
397 "tests/src/com/android/systemui/qs/ui/viewmodel/QuickSettingsSceneViewModelTest.kt",
398
399 /* Flexiglass / Scene framework tests */
400 "tests/src/com/android/systemui/scene/SceneFrameworkIntegrationTest.kt",
401 "tests/src/com/android/systemui/scene/data/repository/SceneContainerRepositoryTest.kt",
402 "tests/src/com/android/systemui/scene/data/repository/WindowRootViewVisibilityRepositoryTest.kt",
403 "tests/src/com/android/systemui/scene/domain/interactor/SceneInteractorTest.kt",
404 "tests/src/com/android/systemui/scene/domain/interactor/WindowRootViewVisibilityInteractorTest.kt",
405 "tests/src/com/android/systemui/scene/domain/startable/SceneContainerStartableTest.kt",
406 "tests/src/com/android/systemui/scene/ui/viewmodel/SceneContainerViewModelTest.kt",
Kevin Liud3793232023-02-09 20:37:27 +0000407 ],
408 path: "tests/src",
409}
410
Bryce Leea5b08082021-10-06 11:34:56 -0700411java_library {
412 name: "SystemUI-tests-concurrency",
413 srcs: [
414 "src/com/android/systemui/util/concurrency/DelayableExecutor.java",
415 "src/com/android/systemui/util/time/SystemClock.java",
Jordan Demeulenaeref7fed3c2022-07-28 18:06:49 +0200416 "tests/utils/src/com/android/systemui/util/concurrency/FakeExecutor.java",
417 "tests/utils/src/com/android/systemui/util/time/FakeSystemClock.java",
Bryce Leea5b08082021-10-06 11:34:56 -0700418 ],
419 jarjar_rules: ":jarjar-rules-shared",
420}
421
Jason Monkae7ced22018-08-22 16:56:58 -0400422android_library {
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000423 name: "SystemUI-tests-base",
Peter Kalauskas84c5a992023-08-23 13:39:23 -0700424 use_resource_processor: true,
Sunny Goyaleb18d392020-02-07 16:48:14 -0800425 manifest: "tests/AndroidManifest-base.xml",
Jason Monkae7ced22018-08-22 16:56:58 -0400426 resource_dirs: [
427 "tests/res",
Jason Monkae7ced22018-08-22 16:56:58 -0400428 ],
Jason Monkae7ced22018-08-22 16:56:58 -0400429 static_libs: [
Peter Kalauskas84c5a992023-08-23 13:39:23 -0700430 "SystemUI-res",
Quang Luongc6fc5b22021-06-10 14:35:32 -0700431 "WifiTrackerLib",
Jordan Demeulenaerecea62bb2021-04-08 11:04:50 +0200432 "SystemUIAnimationLib",
Jason Monkae7ced22018-08-22 16:56:58 -0400433 "SystemUIPluginLib",
434 "SystemUISharedLib",
Hawkwood Glazierb8eef872022-11-11 17:56:14 +0000435 "SystemUICustomizationLib",
Hyunyoung Song3d89c932020-04-11 13:31:06 -0700436 "SystemUI-statsd",
Jason Monkae7ced22018-08-22 16:56:58 -0400437 "SettingsLib",
Ned Burns6d480c32023-08-28 12:12:19 -0400438 "com_android_systemui_flags_lib",
Fabian Kozynski713b7272020-03-03 18:35:52 -0500439 "androidx.viewpager2_viewpager2",
Jason Monkae7ced22018-08-22 16:56:58 -0400440 "androidx.legacy_legacy-support-v4",
441 "androidx.recyclerview_recyclerview",
442 "androidx.preference_preference",
443 "androidx.appcompat_appcompat",
Mark Renoufe2395012020-12-16 01:05:12 -0500444 "androidx.concurrent_concurrent-futures",
Jason Monkae7ced22018-08-22 16:56:58 -0400445 "androidx.mediarouter_mediarouter",
446 "androidx.palette_palette",
447 "androidx.legacy_legacy-preference-v14",
448 "androidx.leanback_leanback",
449 "androidx.slice_slice-core",
450 "androidx.slice_slice-view",
451 "androidx.slice_slice-builders",
452 "androidx.arch.core_core-runtime",
Bryce Lee436e42c2022-01-24 14:53:49 -0800453 "androidx.lifecycle_lifecycle-common-java8",
Jason Monkae7ced22018-08-22 16:56:58 -0400454 "androidx.lifecycle_lifecycle-extensions",
Jordan Demeulenaere8a169ff2022-07-13 10:42:10 +0200455 "androidx.lifecycle_lifecycle-runtime-ktx",
Joshua Tsujib1a796b2019-01-16 15:43:12 -0800456 "androidx.dynamicanimation_dynamicanimation",
Steve Elliott300b48f2019-05-29 14:13:50 -0400457 "androidx-constraintlayout_constraintlayout",
Miranda Kepharte1a22b92020-12-16 14:01:12 -0500458 "androidx.exifinterface_exifinterface",
Pinyao Tingee191b12020-04-29 18:35:39 -0700459 "kotlinx-coroutines-android",
460 "kotlinx-coroutines-core",
Alejandro Nijamkinc738a8c2022-07-25 13:30:41 -0700461 "kotlinx_coroutines_test",
Chandru5a5e5332022-08-19 14:25:31 +0000462 "kotlin-reflect",
Lyn Han1b4f25e2019-06-11 13:56:34 -0700463 "iconloader_base",
Jason Monkae7ced22018-08-22 16:56:58 -0400464 "SystemUI-tags",
465 "SystemUI-proto",
466 "metrics-helper-lib",
Tadashi G. Takaokac7340fb2020-10-20 17:50:13 +0900467 "hamcrest-library",
468 "androidx.test.rules",
Jason Monkae7ced22018-08-22 16:56:58 -0400469 "testables",
Krzysztof KosiƄski60b70872023-10-06 20:11:39 +0000470 "truth",
Lucas Dupine37369f2021-08-31 00:19:39 +0000471 "monet",
Lucas Dupind83b4ee2023-07-08 11:05:47 -0700472 "libmonet",
Dave Mankoffdffcc472020-07-08 15:25:16 -0400473 "dagger2",
Bill Lina17858d12020-07-14 10:30:10 +0800474 "jsr330",
475 "WindowManager-Shell",
Lucas Silva0bfb4052022-09-20 23:32:02 -0400476 "LowLightDreamLib",
Johannes Gallmann0d5183c2022-10-04 13:32:16 +0000477 "motion_tool_lib",
Johannes Gallmannb642af92022-10-14 09:58:09 +0000478 "androidx.core_core-animation-testing-nodeps",
Jordan Demeulenaere54a0fae2023-01-04 11:36:46 +0100479 "androidx.compose.ui_ui",
Jason Monkae7ced22018-08-22 16:56:58 -0400480 ],
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000481}
482
483android_library {
484 name: "SystemUI-tests",
Peter Kalauskas84c5a992023-08-23 13:39:23 -0700485 use_resource_processor: true,
Jordan Demeulenaere68e91822022-12-16 10:55:47 +0100486 defaults: [
487 "SystemUI_compose_defaults",
488 ],
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000489 manifest: "tests/AndroidManifest-base.xml",
490 additional_manifests: ["tests/AndroidManifest.xml"],
491 srcs: [
492 "tests/src/**/*.kt",
493 "tests/src/**/*.java",
494 "src/**/*.kt",
495 "src/**/*.java",
496 "src/**/I*.aidl",
497 ":ReleaseJavaFiles",
498 ":SystemUI-tests-utils",
499 ],
500 static_libs: [
501 "SystemUI-tests-base",
502 "androidx.test.uiautomator_uiautomator",
Jeff DeCewa415d0e2023-08-02 11:30:09 -0400503 "androidx.core_core-animation-testing",
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000504 "mockito-target-extended-minus-junit4",
505 "androidx.test.ext.junit",
Steven Ng45b74c62023-03-23 11:23:02 +0000506 "androidx.test.ext.truth",
Colin Cross852cd142023-08-11 16:53:55 -0700507 "kotlin-test",
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000508 ],
Jason Monkae7ced22018-08-22 16:56:58 -0400509 libs: [
510 "android.test.runner",
Jason Monkae7ced22018-08-22 16:56:58 -0400511 "android.test.base",
Jordan Demeulenaere6fb22d42022-08-19 15:00:36 +0200512 "android.test.mock",
Nikolas Havrikovc70cb072023-09-08 15:06:35 +0200513 "keepanno-annotations",
Jason Monkae7ced22018-08-22 16:56:58 -0400514 ],
Colin Cross6954ea72023-07-18 10:52:21 -0700515 kotlincflags: ["-Xjvm-default=all"],
Jason Monkae7ced22018-08-22 16:56:58 -0400516 aaptflags: [
517 "--extra-packages",
Hyunyoung Song8f9d34c2019-08-30 14:47:43 -0700518 "com.android.systemui",
Jason Monkae7ced22018-08-22 16:56:58 -0400519 ],
Dave Mankoffdffcc472020-07-08 15:25:16 -0400520 plugins: ["dagger2-compiler"],
Cole Faust17f1e722022-08-16 15:30:26 -0700521 lint: {
522 test: true,
Jeff Chen194a13f2023-03-16 15:40:05 -0700523 extra_check_modules: ["SystemUILintChecker"],
Cole Faust17f1e722022-08-16 15:30:26 -0700524 },
Jason Monkae7ced22018-08-22 16:56:58 -0400525}
526
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000527android_app {
528 name: "SystemUIRobo-stub",
Peter Kalauskas84c5a992023-08-23 13:39:23 -0700529 use_resource_processor: true,
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000530 defaults: [
531 "platform_app_defaults",
Jared Duke5bf6fb32023-02-23 14:27:47 -0800532 "SystemUI_optimized_defaults",
Kevin Liud3793232023-02-09 20:37:27 +0000533 "SystemUI_compose_defaults",
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000534 ],
535 manifest: "tests/AndroidManifest-base.xml",
Kevin Liud3793232023-02-09 20:37:27 +0000536
537 srcs: [
538 "src/**/*.kt",
539 "src/**/*.java",
540 "src/**/I*.aidl",
541 ":ReleaseJavaFiles",
542 ],
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000543 static_libs: [
544 "SystemUI-tests-base",
545 ],
Nikolas Havrikovc70cb072023-09-08 15:06:35 +0200546 libs: [
547 "keepanno-annotations",
548 ],
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000549 aaptflags: [
550 "--extra-packages",
551 "com.android.systemui",
552 ],
553 dont_merge_manifests: true,
554 platform_apis: true,
555 system_ext_specific: true,
556 certificate: "platform",
557 privileged: true,
558 resource_dirs: [],
Kevin Liud3793232023-02-09 20:37:27 +0000559 kotlincflags: ["-Xjvm-default=all"],
Kevin Liu092b8212023-02-15 05:42:34 +0000560 optimize: {
561 shrink_resources: false,
562 proguard_flags_files: ["proguard.flags"],
563 },
Kevin Liud3793232023-02-09 20:37:27 +0000564
565 plugins: ["dagger2-compiler"],
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000566}
567
568android_robolectric_test {
569 name: "SystemUiRoboTests",
570 srcs: [
571 "tests/robolectric/src/**/*.kt",
572 "tests/robolectric/src/**/*.java",
Kevin Liud3793232023-02-09 20:37:27 +0000573 ":SystemUI-tests-utils",
Caitlin Shkuratovd3777bd2023-07-18 21:39:33 +0000574 ":SystemUI-test-fakes",
Kevin Liud3793232023-02-09 20:37:27 +0000575 ":SystemUI-tests-robolectric-pilots",
576 ],
577 static_libs: [
578 "androidx.test.uiautomator_uiautomator",
Jeff DeCewa415d0e2023-08-02 11:30:09 -0400579 "androidx.core_core-animation-testing",
Kevin Liud3793232023-02-09 20:37:27 +0000580 "androidx.test.ext.junit",
581 "inline-mockito-robolectric-prebuilt",
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000582 ],
583 libs: [
584 "android.test.runner",
585 "android.test.base",
586 "android.test.mock",
Krzysztof KosiƄski60b70872023-10-06 20:11:39 +0000587 "truth",
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000588 ],
Kevin Liud3793232023-02-09 20:37:27 +0000589
590 upstream: true,
591
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000592 instrumentation_for: "SystemUIRobo-stub",
593 java_resource_dirs: ["tests/robolectric/config"],
594}
595
Jared Duke84e94b32022-08-05 13:46:38 -0700596// Opt-out config for optimizing the SystemUI target using R8.
597// Disabled via `export SYSTEMUI_OPTIMIZE_JAVA=false`, or explicitly in Make via
598// `SYSTEMUI_OPTIMIZE_JAVA := false`.
Jared Duke9dfa77b2021-12-22 13:31:06 -0800599soong_config_module_type {
600 name: "systemui_optimized_java_defaults",
601 module_type: "java_defaults",
602 config_namespace: "ANDROID",
603 bool_variables: ["SYSTEMUI_OPTIMIZE_JAVA"],
604 properties: ["optimize"],
Jared Duke2fee7402021-10-18 14:35:04 -0700605}
606
Jared Duke9dfa77b2021-12-22 13:31:06 -0800607systemui_optimized_java_defaults {
Jared Duke5bf6fb32023-02-23 14:27:47 -0800608 name: "SystemUI_optimized_defaults",
Jared Duke2fee7402021-10-18 14:35:04 -0700609 soong_config_variables: {
Jared Duke9dfa77b2021-12-22 13:31:06 -0800610 SYSTEMUI_OPTIMIZE_JAVA: {
Jared Duke2fee7402021-10-18 14:35:04 -0700611 optimize: {
612 enabled: true,
613 optimize: true,
614 shrink: true,
Jared Duke0668af22023-02-23 14:43:31 -0800615 shrink_resources: true,
Jared Duke5ecfe872022-09-08 09:25:30 -0700616 ignore_warnings: false,
Jared Dukef0904172022-06-07 18:01:06 +0000617 proguard_compatibility: false,
Jared Duke2fee7402021-10-18 14:35:04 -0700618 },
619 conditions_default: {
620 optimize: {
Jared Duke5ecfe872022-09-08 09:25:30 -0700621 ignore_warnings: false,
Jared Dukef0904172022-06-07 18:01:06 +0000622 proguard_compatibility: false,
Jared Duke2fee7402021-10-18 14:35:04 -0700623 },
624 },
625 },
626 },
627}
628
Jason Monka2f2d822018-08-13 11:10:48 -0400629android_app {
630 name: "SystemUI",
Jared Duke2fee7402021-10-18 14:35:04 -0700631 defaults: [
632 "platform_app_defaults",
Jared Duke5bf6fb32023-02-23 14:27:47 -0800633 "SystemUI_optimized_defaults",
Jared Duke2fee7402021-10-18 14:35:04 -0700634 ],
Jason Monka2f2d822018-08-13 11:10:48 -0400635 static_libs: [
636 "SystemUI-core",
637 ],
Anton Hansson7ccca9f2019-02-08 09:01:32 +0000638 resource_dirs: [],
Jason Monka2f2d822018-08-13 11:10:48 -0400639
Colin Crossc23cde42023-06-21 11:22:11 -0700640 use_resource_processor: true,
Jason Monka2f2d822018-08-13 11:10:48 -0400641 platform_apis: true,
Jeongik Chad45d9e12019-12-04 13:38:39 +0900642 system_ext_specific: true,
Jason Monka2f2d822018-08-13 11:10:48 -0400643 certificate: "platform",
644 privileged: true,
645
Colin Cross6954ea72023-07-18 10:52:21 -0700646 kotlincflags: ["-Xjvm-default=all"],
Selim Cinek820ba2d2019-06-18 18:59:09 -0700647
Jason Monka2f2d822018-08-13 11:10:48 -0400648 dxflags: ["--multi-dex"],
Jared Duke5bf6fb32023-02-23 14:27:47 -0800649 optimize: {
650 proguard_flags_files: ["proguard.flags"],
651 },
Winson Chungb754f522020-08-03 22:17:08 -0700652 required: [
653 "privapp_whitelist_com.android.systemui",
Hongwei Wang2b227ee2022-08-19 09:38:18 -0700654 "wmshell.protolog.json.gz",
Winson Chungb754f522020-08-03 22:17:08 -0700655 ],
Jason Monka2f2d822018-08-13 11:10:48 -0400656}