blob: 0e9f8b153fd4b0453e7439992e2493bf8864941c [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 Demeulenaere6d5bea52023-10-12 14:12:00 +020064 "PlatformComposeSceneTransitionLayout",
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",
Dave Mankoff2ea6f6d2023-11-01 16:08:15 +0000168 "com_android_systemui_shared_flags_lib",
Alejandro Nijamkin38859642022-06-27 14:18:17 -0700169 "androidx.core_core-ktx",
Fabian Kozynski713b7272020-03-03 18:35:52 -0500170 "androidx.viewpager2_viewpager2",
Jason Monka2f2d822018-08-13 11:10:48 -0400171 "androidx.legacy_legacy-support-v4",
172 "androidx.recyclerview_recyclerview",
173 "androidx.preference_preference",
174 "androidx.appcompat_appcompat",
Mark Renoufe2395012020-12-16 01:05:12 -0500175 "androidx.concurrent_concurrent-futures",
Jason Monka2f2d822018-08-13 11:10:48 -0400176 "androidx.mediarouter_mediarouter",
177 "androidx.palette_palette",
178 "androidx.legacy_legacy-preference-v14",
179 "androidx.leanback_leanback",
180 "androidx.slice_slice-core",
181 "androidx.slice_slice-view",
182 "androidx.slice_slice-builders",
183 "androidx.arch.core_core-runtime",
Bryce Lee436e42c2022-01-24 14:53:49 -0800184 "androidx.lifecycle_lifecycle-common-java8",
Jason Monka2f2d822018-08-13 11:10:48 -0400185 "androidx.lifecycle_lifecycle-extensions",
Jordan Demeulenaere8a169ff2022-07-13 10:42:10 +0200186 "androidx.lifecycle_lifecycle-runtime-ktx",
Joshua Tsujib1a796b2019-01-16 15:43:12 -0800187 "androidx.dynamicanimation_dynamicanimation",
Steve Elliott300b48f2019-05-29 14:13:50 -0400188 "androidx-constraintlayout_constraintlayout",
Miranda Kepharte1a22b92020-12-16 14:01:12 -0500189 "androidx.exifinterface_exifinterface",
Coco Duand8ef1812023-10-19 21:35:01 +0000190 "androidx.room_room-runtime",
191 "androidx.room_room-ktx",
Lucas Dupin00c1a602022-02-16 16:40:36 -0800192 "com.google.android.material_material",
Steve Elliotta7d72052020-12-16 23:04:19 -0500193 "kotlinx_coroutines_android",
194 "kotlinx_coroutines",
Hyunyoung Song5347a542019-03-01 13:32:28 -0800195 "iconloader_base",
Jason Monka2f2d822018-08-13 11:10:48 -0400196 "SystemUI-tags",
197 "SystemUI-proto",
Lucas Dupine37369f2021-08-31 00:19:39 +0000198 "monet",
Lucas Dupind83b4ee2023-07-08 11:05:47 -0700199 "libmonet",
Dave Mankoffdffcc472020-07-08 15:25:16 -0400200 "dagger2",
Brett Chabotfc8675a2023-03-27 10:33:10 -0700201 "jsr305",
Andy Wickham64e34102021-03-07 16:02:01 -0800202 "jsr330",
Beverly46817e12021-06-22 16:29:52 -0400203 "lottie",
Lucas Silva0bfb4052022-09-20 23:32:02 -0400204 "LowLightDreamLib",
Johannes Gallmann0d5183c2022-10-04 13:32:16 +0000205 "motion_tool_lib",
Jason Monka2f2d822018-08-13 11:10:48 -0400206 ],
Nikolas Havrikovc70cb072023-09-08 15:06:35 +0200207 libs: [
208 "keepanno-annotations",
209 ],
Jason Monka2f2d822018-08-13 11:10:48 -0400210 manifest: "AndroidManifest.xml",
211
Coco Duand8ef1812023-10-19 21:35:01 +0000212 javacflags: [
213 "-Adagger.fastInit=enabled",
214 "-Aroom.schemaLocation=frameworks/base/packages/SystemUI/schemas",
215 ],
Colin Cross6954ea72023-07-18 10:52:21 -0700216 kotlincflags: ["-Xjvm-default=all"],
Jason Monk73e8ffc2018-12-06 14:45:19 -0500217
Coco Duand8ef1812023-10-19 21:35:01 +0000218 plugins: [
219 "androidx.room_room-compiler-plugin",
220 "dagger2-compiler",
221 ],
Jernej Viragbb4ff3f2022-03-10 17:52:11 +0000222
223 lint: {
224 extra_check_modules: ["SystemUILintChecker"],
Michal Brzezinskid552d1f2023-09-29 15:00:19 +0100225 warning_checks: ["MissingApacheLicenseDetector"],
Jernej Viragbb4ff3f2022-03-10 17:52:11 +0000226 },
Jason Monka2f2d822018-08-13 11:10:48 -0400227}
228
Tadashi G. Takaokaa6572dc2019-09-17 15:18:53 +0900229filegroup {
Fabian Kozynskid389df52022-01-06 10:52:51 -0500230 name: "AAA-src",
231 srcs: ["tests/src/com/android/AAAPlusPlusVerifySysuiRequiredTestPropertiesTest.java"],
232 path: "tests/src",
233}
234
235filegroup {
Tadashi G. Takaokaa6572dc2019-09-17 15:18:53 +0900236 name: "SystemUI-tests-utils",
237 srcs: [
Jordan Demeulenaeref7fed3c2022-07-28 18:06:49 +0200238 "tests/utils/src/**/*.java",
239 "tests/utils/src/**/*.kt",
Dave Mankoffb4935a22021-06-01 15:12:15 -0400240 ],
Jordan Demeulenaeref7fed3c2022-07-28 18:06:49 +0200241 path: "tests/utils/src",
Tadashi G. Takaokaa6572dc2019-09-17 15:18:53 +0900242}
243
Kevin Liud3793232023-02-09 20:37:27 +0000244filegroup {
Caitlin Shkuratovd3777bd2023-07-18 21:39:33 +0000245 name: "SystemUI-test-fakes",
246 srcs: [
247 /* Status bar fakes */
248 "tests/src/com/android/systemui/statusbar/pipeline/airplane/data/repository/FakeAirplaneModeRepository.kt",
Chandru S2f6c56c2023-09-21 18:13:23 -0700249 "tests/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/FakeMobileConnectionRepository.kt",
250 "tests/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/FakeMobileConnectionsRepository.kt",
251 "tests/src/com/android/systemui/statusbar/pipeline/mobile/util/FakeMobileMappingsProxy.kt",
Caitlin Shkuratovd3777bd2023-07-18 21:39:33 +0000252 "tests/src/com/android/systemui/statusbar/pipeline/shared/data/repository/FakeConnectivityRepository.kt",
253 "tests/src/com/android/systemui/statusbar/pipeline/wifi/data/repository/FakeWifiRepository.kt",
Darrell Shi9ea21282023-08-30 23:57:12 +0000254
FabiĂĄn Kozynski9746d312023-08-31 16:47:50 -0400255 /* QS fakes */
256 "tests/src/com/android/systemui/qs/pipeline/domain/interactor/FakeQSTile.kt",
Caitlin Shkuratovd3777bd2023-07-18 21:39:33 +0000257 ],
258 path: "tests/src",
259}
260
261filegroup {
Kevin Liud3793232023-02-09 20:37:27 +0000262 name: "SystemUI-tests-robolectric-pilots",
263 srcs: [
Kevin Liuc54db8b2023-03-22 21:41:46 +0000264 /* Keyguard converted tests */
Kevin Liud3793232023-02-09 20:37:27 +0000265 // data
Kevin Liud3793232023-02-09 20:37:27 +0000266 "tests/src/com/android/systemui/keyguard/data/quickaffordance/DoNotDisturbQuickAffordanceConfigTest.kt",
Kevin Liud3793232023-02-09 20:37:27 +0000267 "tests/src/com/android/systemui/keyguard/data/quickaffordance/FlashlightQuickAffordanceConfigTest.kt",
268 "tests/src/com/android/systemui/keyguard/data/quickaffordance/HomeControlsKeyguardQuickAffordanceConfigTest.kt",
269 "tests/src/com/android/systemui/keyguard/data/quickaffordance/KeyguardQuickAffordanceLegacySettingSyncerTest.kt",
270 "tests/src/com/android/systemui/keyguard/data/quickaffordance/KeyguardQuickAffordanceLocalUserSelectionManagerTest.kt",
271 "tests/src/com/android/systemui/keyguard/data/quickaffordance/KeyguardQuickAffordanceRemoteUserSelectionManagerTest.kt",
Kevin Liuc54db8b2023-03-22 21:41:46 +0000272 "tests/src/com/android/systemui/keyguard/data/quickaffordance/MuteQuickAffordanceConfigTest.kt",
Kevin Liud3793232023-02-09 20:37:27 +0000273 "tests/src/com/android/systemui/keyguard/data/quickaffordance/QrCodeScannerKeyguardQuickAffordanceConfigTest.kt",
274 "tests/src/com/android/systemui/keyguard/data/quickaffordance/QuickAccessWalletKeyguardQuickAffordanceConfigTest.kt",
Kevin Liuc54db8b2023-03-22 21:41:46 +0000275 "tests/src/com/android/systemui/keyguard/data/quickaffordance/VideoCameraQuickAffordanceConfigTest.kt",
276 "tests/src/com/android/systemui/keyguard/data/repository/BiometricSettingsRepositoryTest.kt",
277 "tests/src/com/android/systemui/keyguard/data/repository/DeviceEntryFaceAuthRepositoryTest.kt",
278 "tests/src/com/android/systemui/keyguard/data/repository/DeviceEntryFingerprintAuthRepositoryTest.kt",
279 "tests/src/com/android/systemui/keyguard/data/repository/DevicePostureRepositoryTest.kt",
Kevin Liud3793232023-02-09 20:37:27 +0000280 "tests/src/com/android/systemui/keyguard/data/repository/KeyguardQuickAffordanceRepositoryTest.kt",
281 "tests/src/com/android/systemui/keyguard/data/repository/KeyguardRepositoryImplTest.kt",
Kevin Liuc54db8b2023-03-22 21:41:46 +0000282 "tests/src/com/android/systemui/keyguard/data/repository/LightRevealScrimRepositoryTest.kt",
283 "tests/src/com/android/systemui/keyguard/data/repository/TrustRepositoryTest.kt",
Kevin Liud3793232023-02-09 20:37:27 +0000284 // domain
Aaron Liu8456c412023-05-31 11:12:55 -0700285 "tests/src/com/android/systemui/bouncer/domain/interactor/AlternateBouncerInteractorTest.kt",
286 "tests/src/com/android/systemui/bouncer/domain/interactor/PrimaryBouncerCallbackInteractorTest.kt",
287 "tests/src/com/android/systemui/bouncer/domain/interactor/PrimaryBouncerInteractorWithCoroutinesTest.kt",
Kevin Liud3793232023-02-09 20:37:27 +0000288 "tests/src/com/android/systemui/keyguard/domain/interactor/KeyguardInteractorTest.kt",
Kevin Liu810fcbb2023-04-24 22:33:07 +0000289 "tests/src/com/android/systemui/keyguard/domain/interactor/KeyguardLongPressInteractorTest.kt",
Kevin Liud3793232023-02-09 20:37:27 +0000290 "tests/src/com/android/systemui/keyguard/domain/interactor/KeyguardQuickAffordanceInteractorTest.kt",
291 "tests/src/com/android/systemui/keyguard/domain/interactor/KeyguardTransitionInteractorTest.kt",
292 "tests/src/com/android/systemui/keyguard/domain/interactor/LightRevealScrimInteractorTest.kt",
Kevin Liud3793232023-02-09 20:37:27 +0000293 // ui
Aaron Liu8456c412023-05-31 11:12:55 -0700294 "tests/src/com/android/systemui/bouncer/ui/viewmodel/KeyguardBouncerViewModelTest.kt",
Kevin Liud3793232023-02-09 20:37:27 +0000295 "tests/src/com/android/systemui/keyguard/ui/viewmodel/DreamingToLockscreenTransitionViewModelTest.kt",
Kevin Liud3793232023-02-09 20:37:27 +0000296 "tests/src/com/android/systemui/keyguard/ui/viewmodel/GoneToDreamingTransitionViewModelTest.kt",
297 "tests/src/com/android/systemui/keyguard/ui/viewmodel/LockscreenToDreamingTransitionViewModelTest.kt",
298 "tests/src/com/android/systemui/keyguard/ui/viewmodel/LockscreenToOccludedTransitionViewModelTest.kt",
299 "tests/src/com/android/systemui/keyguard/ui/viewmodel/OccludedToLockscreenTransitionViewModelTest.kt",
Kevin Liu810fcbb2023-04-24 22:33:07 +0000300 "tests/src/com/android/systemui/keyguard/ui/viewmodel/PrimaryBouncerToGoneTransitionViewModelTest.kt",
Kevin Liuc54db8b2023-03-22 21:41:46 +0000301 // Keyguard helper
302 "tests/src/com/android/systemui/keyguard/data/quickaffordance/FakeKeyguardQuickAffordanceConfig.kt",
Brad Hinegardner5094a5d2023-04-25 16:28:45 -0400303 "tests/src/com/android/systemui/dock/DockManagerFake.java",
Kevin Liuc54db8b2023-03-22 21:41:46 +0000304 "tests/src/com/android/systemui/dump/LogBufferHelper.kt",
305 "tests/src/com/android/systemui/statusbar/phone/FakeKeyguardStateController.java",
Kevin Liu092b8212023-02-15 05:42:34 +0000306
Kevin Liuc54db8b2023-03-22 21:41:46 +0000307 /* Biometric converted tests */
Kevin Liu092b8212023-02-15 05:42:34 +0000308 "tests/src/com/android/systemui/biometrics/BiometricTestExtensions.kt",
Kevin Liu092b8212023-02-15 05:42:34 +0000309 "tests/src/com/android/systemui/biometrics/AuthControllerTest.java",
310 "tests/src/com/android/systemui/biometrics/BiometricDisplayListenerTest.java",
311 "tests/src/com/android/systemui/biometrics/FaceHelpMessageDeferralTest.kt",
312 "tests/src/com/android/systemui/biometrics/SideFpsControllerTest.kt",
313 "tests/src/com/android/systemui/biometrics/UdfpsControllerOverlayTest.kt",
314 "tests/src/com/android/systemui/biometrics/UdfpsControllerTest.java",
315 "tests/src/com/android/systemui/biometrics/UdfpsDialogMeasureAdapterTest.java",
316 "tests/src/com/android/systemui/biometrics/UdfpsDisplayModeTest.java",
Beverlyea7325c2023-05-03 13:49:09 +0000317 "tests/src/com/android/systemui/biometrics/UdfpsKeyguardViewLegacyControllerBaseTest.java",
318 "tests/src/com/android/systemui/biometrics/UdfpsKeyguardViewLegacyControllerTest.java",
319 "tests/src/com/android/systemui/biometrics/UdfpsKeyguardViewLegacyControllerWithCoroutinesTest.kt",
Kevin Liu092b8212023-02-15 05:42:34 +0000320 "tests/src/com/android/systemui/biometrics/UdfpsShellTest.kt",
321 "tests/src/com/android/systemui/biometrics/UdfpsViewTest.kt",
Caitlin Shkuratovd3777bd2023-07-18 21:39:33 +0000322
323 /* Status bar wifi converted tests */
324 "tests/src/com/android/systemui/statusbar/pipeline/wifi/data/repository/WifiRepositorySwitcherTest.kt",
325 "tests/src/com/android/systemui/statusbar/pipeline/wifi/data/repository/prod/DisabledWifiRepositoryTest.kt",
326 "tests/src/com/android/systemui/statusbar/pipeline/wifi/data/repository/prod/WifiRepositoryImplTest.kt",
Caitlin Shkuratove0ed29452023-07-20 13:26:29 +0000327 "tests/src/com/android/systemui/statusbar/pipeline/wifi/domain/interactor/WifiInteractorImplTest.kt",
Caitlin Shkuratov87d86642023-07-20 14:49:28 +0000328 "tests/src/com/android/systemui/statusbar/pipeline/wifi/ui/viewmodel/WifiViewModelTest.kt",
Alejandro Nijamkinfb7db262023-10-04 15:40:18 -0700329 "tests/src/com/android/systemui/statusbar/pipeline/mobile/domain/interactor/FakeMobileIconsInteractor.kt",
330 "tests/src/com/android/systemui/statusbar/pipeline/mobile/domain/interactor/FakeMobileIconInteractor.kt",
Aaron Liu95f9e9a2023-08-25 11:56:47 -0700331
332 /* Bouncer UI tests */
333 "tests/src/com/android/keyguard/KeyguardPasswordViewControllerTest.kt",
334 "tests/src/com/android/keyguard/KeyguardPatternViewControllerTest.kt",
335 "tests/src/com/android/keyguard/KeyguardPinBasedInputViewControllerTest.java",
336 "tests/src/com/android/keyguard/KeyguardPinViewControllerTest.kt",
337 "tests/src/com/android/keyguard/KeyguardSecurityContainerTest.java",
338 "tests/src/com/android/keyguard/KeyguardSecurityContainerControllerTest.kt",
339 "tests/src/com/android/keyguard/KeyguardSecurityViewFlipperControllerTest.java",
340 "tests/src/com/android/keyguard/KeyguardSimPinViewControllerTest.kt",
341 "tests/src/com/android/keyguard/KeyguardSimPukViewControllerTest.kt",
Darrell Shi9ea21282023-08-30 23:57:12 +0000342
343 /* Communal tests */
344 "tests/src/com/android/systemui/communal/data/repository/CommunalWidgetRepositoryImplTest.kt",
345 "tests/src/com/android/systemui/communal/domain/interactor/CommunalInteractorTest.kt",
346 "tests/src/com/android/systemui/communal/ui/view/layout/blueprints/DefaultCommunalBlueprintTest.kt",
Darrell Shi8690e222023-08-31 21:11:25 +0000347
348 /* Dream tests */
349 "tests/src/com/android/systemui/dreams/complication/HideComplicationTouchHandlerTest.java",
350 "tests/src/com/android/systemui/dreams/conditions/AssistantAttentionConditionTest.java",
351 "tests/src/com/android/systemui/dreams/conditions/DreamConditionTest.java",
352 "tests/src/com/android/systemui/dreams/touch/scrim/BouncerlessScrimControllerTest.java",
353 "tests/src/com/android/systemui/dreams/touch/scrim/ScrimManagerTest.java",
354 "tests/src/com/android/systemui/dreams/touch/BouncerSwipeTouchHandlerTest.java",
355 "tests/src/com/android/systemui/dreams/touch/ShadeTouchHandlerTest.java",
356 "tests/src/com/android/systemui/dreams/DreamOverlayAnimationsControllerTest.kt",
357 "tests/src/com/android/systemui/dreams/DreamOverlayCallbackControllerTest.kt",
358 "tests/src/com/android/systemui/dreams/DreamOverlayContainerViewControllerTest.java",
359 "tests/src/com/android/systemui/dreams/DreamOverlayNotificationCountProviderTest.java",
360 "tests/src/com/android/systemui/dreams/DreamOverlayServiceTest.java",
361 "tests/src/com/android/systemui/dreams/DreamOverlayStateControllerTest.java",
362 "tests/src/com/android/systemui/dreams/DreamOverlayStatusBarItemsProviderTest.java",
363 "tests/src/com/android/systemui/dreams/DreamOverlayStatusBarViewControllerTest.java",
Xiaowen Lei39e0d0b2023-09-06 22:50:24 +0000364
365 /* Smartspace tests */
366 "tests/src/com/android/systemui/smartspace/BcSmartspaceConfigProviderTest.kt",
367 "tests/src/com/android/systemui/smartspace/DreamSmartspaceControllerTest.kt",
368 "tests/src/com/android/systemui/smartspace/LockscreenAndDreamTargetFilterTest.kt",
369 "tests/src/com/android/systemui/smartspace/LockscreenPreconditionTest.kt",
FabiĂĄn Kozynski9746d312023-08-31 16:47:50 -0400370
371 /* Quick Settings new pipeline converted tests */
372 "tests/src/com/android/systemui/qs/pipeline/data/**/*Test.kt",
373 "tests/src/com/android/systemui/qs/pipeline/domain/**/*Test.kt",
374 "tests/src/com/android/systemui/qs/pipeline/shared/TileSpecTest.kt",
Anton Potapova0317a32023-09-25 15:45:17 +0100375 "tests/src/com/android/systemui/qs/tiles/base/**/*.kt",
376 "tests/src/com/android/systemui/qs/tiles/viewmodel/**/*.kt",
Anton Potapov0e958d62023-10-26 11:52:31 +0100377 "tests/src/com/android/systemui/qs/tiles/impl/**/*.kt",
Alejandro Nijamkinfb7db262023-10-04 15:40:18 -0700378
379 /* Authentication */
380 "tests/src/com/android/systemui/authentication/data/repository/AuthenticationRepositoryTest.kt",
381 "tests/src/com/android/systemui/authentication/domain/interactor/AuthenticationInteractorTest.kt",
382
383 /* Device entry */
384 "tests/src/com/android/systemui/deviceentry/data/repository/DeviceEntryRepositoryTest.kt",
385 "tests/src/com/android/systemui/deviceentry/domain/interactor/DeviceEntryInteractorTest.kt",
386
387 /* Bouncer scene */
388 "tests/src/com/android/systemui/bouncer/domain/interactor/BouncerInteractorTest.kt",
389 "tests/src/com/android/systemui/bouncer/ui/viewmodel/AuthMethodBouncerViewModelTest.kt",
390 "tests/src/com/android/systemui/bouncer/ui/viewmodel/BouncerViewModelTest.kt",
391 "tests/src/com/android/systemui/bouncer/ui/viewmodel/PasswordBouncerViewModelTest.kt",
392 "tests/src/com/android/systemui/bouncer/ui/viewmodel/PatternBouncerViewModelTest.kt",
393 "tests/src/com/android/systemui/bouncer/ui/viewmodel/PinBouncerViewModelTest.kt",
394 "tests/src/com/android/systemui/bouncer/ui/viewmodel/PinInputViewModelTest.kt",
395
396 /* Lockscreen scene */
397 "tests/src/com/android/systemui/keyguard/ui/viewmodel/LockscreenSceneViewModelTest.kt",
398
399 /* Shade scene */
400 "tests/src/com/android/systemui/shade/ui/viewmodel/ShadeSceneViewModelTest.kt",
401 "tests/src/com/android/systemui/shade/ui/viewmodel/ShadeHeaderViewModelTest.kt",
402
403 /* Quick Settings scene */
404 "tests/src/com/android/systemui/qs/ui/viewmodel/QuickSettingsSceneViewModelTest.kt",
405
406 /* Flexiglass / Scene framework tests */
407 "tests/src/com/android/systemui/scene/SceneFrameworkIntegrationTest.kt",
408 "tests/src/com/android/systemui/scene/data/repository/SceneContainerRepositoryTest.kt",
409 "tests/src/com/android/systemui/scene/data/repository/WindowRootViewVisibilityRepositoryTest.kt",
410 "tests/src/com/android/systemui/scene/domain/interactor/SceneInteractorTest.kt",
411 "tests/src/com/android/systemui/scene/domain/interactor/WindowRootViewVisibilityInteractorTest.kt",
412 "tests/src/com/android/systemui/scene/domain/startable/SceneContainerStartableTest.kt",
413 "tests/src/com/android/systemui/scene/ui/viewmodel/SceneContainerViewModelTest.kt",
David Saffb2319612023-10-19 14:14:16 -0400414
Kevin Liud3793232023-02-09 20:37:27 +0000415 ],
416 path: "tests/src",
417}
418
David Saffb2319612023-10-19 14:14:16 -0400419filegroup {
420 name: "SystemUI-tests-multivalent",
421 srcs: [
422 "multivalentTests/src/**/*.kt",
423 ],
424 path: "multivalentTests/src",
425}
426
Bryce Leea5b08082021-10-06 11:34:56 -0700427java_library {
428 name: "SystemUI-tests-concurrency",
429 srcs: [
430 "src/com/android/systemui/util/concurrency/DelayableExecutor.java",
431 "src/com/android/systemui/util/time/SystemClock.java",
Jordan Demeulenaeref7fed3c2022-07-28 18:06:49 +0200432 "tests/utils/src/com/android/systemui/util/concurrency/FakeExecutor.java",
433 "tests/utils/src/com/android/systemui/util/time/FakeSystemClock.java",
Bryce Leea5b08082021-10-06 11:34:56 -0700434 ],
435 jarjar_rules: ":jarjar-rules-shared",
436}
437
Jason Monkae7ced22018-08-22 16:56:58 -0400438android_library {
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000439 name: "SystemUI-tests-base",
Peter Kalauskas84c5a992023-08-23 13:39:23 -0700440 use_resource_processor: true,
Sunny Goyaleb18d392020-02-07 16:48:14 -0800441 manifest: "tests/AndroidManifest-base.xml",
Jason Monkae7ced22018-08-22 16:56:58 -0400442 resource_dirs: [
443 "tests/res",
Jason Monkae7ced22018-08-22 16:56:58 -0400444 ],
Jason Monkae7ced22018-08-22 16:56:58 -0400445 static_libs: [
Peter Kalauskas84c5a992023-08-23 13:39:23 -0700446 "SystemUI-res",
Quang Luongc6fc5b22021-06-10 14:35:32 -0700447 "WifiTrackerLib",
Jordan Demeulenaerecea62bb2021-04-08 11:04:50 +0200448 "SystemUIAnimationLib",
Jason Monkae7ced22018-08-22 16:56:58 -0400449 "SystemUIPluginLib",
450 "SystemUISharedLib",
Hawkwood Glazierb8eef872022-11-11 17:56:14 +0000451 "SystemUICustomizationLib",
Hyunyoung Song3d89c932020-04-11 13:31:06 -0700452 "SystemUI-statsd",
Jason Monkae7ced22018-08-22 16:56:58 -0400453 "SettingsLib",
Ned Burns6d480c32023-08-28 12:12:19 -0400454 "com_android_systemui_flags_lib",
Dave Mankoff2ea6f6d2023-11-01 16:08:15 +0000455 "com_android_systemui_shared_flags_lib",
Jeff DeCew91a53962023-10-06 15:40:23 +0000456 "flag-junit-base",
Fabian Kozynski713b7272020-03-03 18:35:52 -0500457 "androidx.viewpager2_viewpager2",
Jason Monkae7ced22018-08-22 16:56:58 -0400458 "androidx.legacy_legacy-support-v4",
459 "androidx.recyclerview_recyclerview",
460 "androidx.preference_preference",
461 "androidx.appcompat_appcompat",
Mark Renoufe2395012020-12-16 01:05:12 -0500462 "androidx.concurrent_concurrent-futures",
Jason Monkae7ced22018-08-22 16:56:58 -0400463 "androidx.mediarouter_mediarouter",
464 "androidx.palette_palette",
465 "androidx.legacy_legacy-preference-v14",
466 "androidx.leanback_leanback",
467 "androidx.slice_slice-core",
468 "androidx.slice_slice-view",
469 "androidx.slice_slice-builders",
470 "androidx.arch.core_core-runtime",
Bryce Lee436e42c2022-01-24 14:53:49 -0800471 "androidx.lifecycle_lifecycle-common-java8",
Jason Monkae7ced22018-08-22 16:56:58 -0400472 "androidx.lifecycle_lifecycle-extensions",
Jordan Demeulenaere8a169ff2022-07-13 10:42:10 +0200473 "androidx.lifecycle_lifecycle-runtime-ktx",
Joshua Tsujib1a796b2019-01-16 15:43:12 -0800474 "androidx.dynamicanimation_dynamicanimation",
Steve Elliott300b48f2019-05-29 14:13:50 -0400475 "androidx-constraintlayout_constraintlayout",
Miranda Kepharte1a22b92020-12-16 14:01:12 -0500476 "androidx.exifinterface_exifinterface",
Coco Duand8ef1812023-10-19 21:35:01 +0000477 "androidx.room_room-runtime",
478 "androidx.room_room-ktx",
Pinyao Tingee191b12020-04-29 18:35:39 -0700479 "kotlinx-coroutines-android",
480 "kotlinx-coroutines-core",
Alejandro Nijamkinc738a8c2022-07-25 13:30:41 -0700481 "kotlinx_coroutines_test",
Chandru5a5e5332022-08-19 14:25:31 +0000482 "kotlin-reflect",
Lyn Han1b4f25e2019-06-11 13:56:34 -0700483 "iconloader_base",
Jason Monkae7ced22018-08-22 16:56:58 -0400484 "SystemUI-tags",
485 "SystemUI-proto",
486 "metrics-helper-lib",
Tadashi G. Takaokac7340fb2020-10-20 17:50:13 +0900487 "hamcrest-library",
488 "androidx.test.rules",
Jason Monkae7ced22018-08-22 16:56:58 -0400489 "testables",
Krzysztof KosiƄski60b70872023-10-06 20:11:39 +0000490 "truth",
Lucas Dupine37369f2021-08-31 00:19:39 +0000491 "monet",
Lucas Dupind83b4ee2023-07-08 11:05:47 -0700492 "libmonet",
Dave Mankoffdffcc472020-07-08 15:25:16 -0400493 "dagger2",
Bill Lina17858d12020-07-14 10:30:10 +0800494 "jsr330",
495 "WindowManager-Shell",
Lucas Silva0bfb4052022-09-20 23:32:02 -0400496 "LowLightDreamLib",
Johannes Gallmann0d5183c2022-10-04 13:32:16 +0000497 "motion_tool_lib",
Johannes Gallmannb642af92022-10-14 09:58:09 +0000498 "androidx.core_core-animation-testing-nodeps",
Jordan Demeulenaere54a0fae2023-01-04 11:36:46 +0100499 "androidx.compose.ui_ui",
Riley Jones84156fc2023-09-06 22:27:37 +0000500 "flag-junit",
501 "platform-test-annotations",
Jason Monkae7ced22018-08-22 16:56:58 -0400502 ],
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000503}
504
505android_library {
506 name: "SystemUI-tests",
Peter Kalauskas84c5a992023-08-23 13:39:23 -0700507 use_resource_processor: true,
Jordan Demeulenaere68e91822022-12-16 10:55:47 +0100508 defaults: [
509 "SystemUI_compose_defaults",
510 ],
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000511 manifest: "tests/AndroidManifest-base.xml",
512 additional_manifests: ["tests/AndroidManifest.xml"],
513 srcs: [
514 "tests/src/**/*.kt",
515 "tests/src/**/*.java",
516 "src/**/*.kt",
517 "src/**/*.java",
518 "src/**/I*.aidl",
519 ":ReleaseJavaFiles",
David Saffb2319612023-10-19 14:14:16 -0400520 ":SystemUI-tests-multivalent",
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000521 ":SystemUI-tests-utils",
522 ],
523 static_libs: [
524 "SystemUI-tests-base",
525 "androidx.test.uiautomator_uiautomator",
Jeff DeCewa415d0e2023-08-02 11:30:09 -0400526 "androidx.core_core-animation-testing",
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000527 "mockito-target-extended-minus-junit4",
528 "androidx.test.ext.junit",
Steven Ng45b74c62023-03-23 11:23:02 +0000529 "androidx.test.ext.truth",
Colin Cross852cd142023-08-11 16:53:55 -0700530 "kotlin-test",
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000531 ],
Jason Monkae7ced22018-08-22 16:56:58 -0400532 libs: [
533 "android.test.runner",
Jason Monkae7ced22018-08-22 16:56:58 -0400534 "android.test.base",
Jordan Demeulenaere6fb22d42022-08-19 15:00:36 +0200535 "android.test.mock",
Nikolas Havrikovc70cb072023-09-08 15:06:35 +0200536 "keepanno-annotations",
Jason Monkae7ced22018-08-22 16:56:58 -0400537 ],
Colin Cross6954ea72023-07-18 10:52:21 -0700538 kotlincflags: ["-Xjvm-default=all"],
Jason Monkae7ced22018-08-22 16:56:58 -0400539 aaptflags: [
540 "--extra-packages",
Hyunyoung Song8f9d34c2019-08-30 14:47:43 -0700541 "com.android.systemui",
Jason Monkae7ced22018-08-22 16:56:58 -0400542 ],
Coco Duand8ef1812023-10-19 21:35:01 +0000543 plugins: [
544 "androidx.room_room-compiler-plugin",
545 "dagger2-compiler",
546 ],
Cole Faust17f1e722022-08-16 15:30:26 -0700547 lint: {
548 test: true,
Jeff Chen194a13f2023-03-16 15:40:05 -0700549 extra_check_modules: ["SystemUILintChecker"],
Cole Faust17f1e722022-08-16 15:30:26 -0700550 },
Jason Monkae7ced22018-08-22 16:56:58 -0400551}
552
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000553android_app {
554 name: "SystemUIRobo-stub",
Peter Kalauskas84c5a992023-08-23 13:39:23 -0700555 use_resource_processor: true,
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000556 defaults: [
557 "platform_app_defaults",
Jared Duke5bf6fb32023-02-23 14:27:47 -0800558 "SystemUI_optimized_defaults",
Kevin Liud3793232023-02-09 20:37:27 +0000559 "SystemUI_compose_defaults",
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000560 ],
561 manifest: "tests/AndroidManifest-base.xml",
Kevin Liud3793232023-02-09 20:37:27 +0000562
563 srcs: [
564 "src/**/*.kt",
565 "src/**/*.java",
566 "src/**/I*.aidl",
567 ":ReleaseJavaFiles",
568 ],
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000569 static_libs: [
570 "SystemUI-tests-base",
571 ],
Nikolas Havrikovc70cb072023-09-08 15:06:35 +0200572 libs: [
573 "keepanno-annotations",
574 ],
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000575 aaptflags: [
576 "--extra-packages",
577 "com.android.systemui",
578 ],
579 dont_merge_manifests: true,
580 platform_apis: true,
581 system_ext_specific: true,
582 certificate: "platform",
583 privileged: true,
584 resource_dirs: [],
Kevin Liud3793232023-02-09 20:37:27 +0000585 kotlincflags: ["-Xjvm-default=all"],
Kevin Liu092b8212023-02-15 05:42:34 +0000586 optimize: {
587 shrink_resources: false,
588 proguard_flags_files: ["proguard.flags"],
589 },
Kevin Liud3793232023-02-09 20:37:27 +0000590
591 plugins: ["dagger2-compiler"],
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000592}
593
594android_robolectric_test {
595 name: "SystemUiRoboTests",
596 srcs: [
597 "tests/robolectric/src/**/*.kt",
598 "tests/robolectric/src/**/*.java",
Kevin Liud3793232023-02-09 20:37:27 +0000599 ":SystemUI-tests-utils",
Caitlin Shkuratovd3777bd2023-07-18 21:39:33 +0000600 ":SystemUI-test-fakes",
Kevin Liud3793232023-02-09 20:37:27 +0000601 ":SystemUI-tests-robolectric-pilots",
David Saffb2319612023-10-19 14:14:16 -0400602 ":SystemUI-tests-multivalent",
Kevin Liud3793232023-02-09 20:37:27 +0000603 ],
604 static_libs: [
605 "androidx.test.uiautomator_uiautomator",
Jeff DeCewa415d0e2023-08-02 11:30:09 -0400606 "androidx.core_core-animation-testing",
Kevin Liud3793232023-02-09 20:37:27 +0000607 "androidx.test.ext.junit",
608 "inline-mockito-robolectric-prebuilt",
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000609 ],
610 libs: [
611 "android.test.runner",
612 "android.test.base",
613 "android.test.mock",
Krzysztof KosiƄski60b70872023-10-06 20:11:39 +0000614 "truth",
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000615 ],
Kevin Liud3793232023-02-09 20:37:27 +0000616
617 upstream: true,
618
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000619 instrumentation_for: "SystemUIRobo-stub",
620 java_resource_dirs: ["tests/robolectric/config"],
621}
622
Jared Duke84e94b32022-08-05 13:46:38 -0700623// Opt-out config for optimizing the SystemUI target using R8.
624// Disabled via `export SYSTEMUI_OPTIMIZE_JAVA=false`, or explicitly in Make via
625// `SYSTEMUI_OPTIMIZE_JAVA := false`.
Jared Duke9dfa77b2021-12-22 13:31:06 -0800626soong_config_module_type {
627 name: "systemui_optimized_java_defaults",
628 module_type: "java_defaults",
629 config_namespace: "ANDROID",
630 bool_variables: ["SYSTEMUI_OPTIMIZE_JAVA"],
631 properties: ["optimize"],
Jared Duke2fee7402021-10-18 14:35:04 -0700632}
633
Jared Duke9dfa77b2021-12-22 13:31:06 -0800634systemui_optimized_java_defaults {
Jared Duke5bf6fb32023-02-23 14:27:47 -0800635 name: "SystemUI_optimized_defaults",
Jared Duke2fee7402021-10-18 14:35:04 -0700636 soong_config_variables: {
Jared Duke9dfa77b2021-12-22 13:31:06 -0800637 SYSTEMUI_OPTIMIZE_JAVA: {
Jared Duke2fee7402021-10-18 14:35:04 -0700638 optimize: {
639 enabled: true,
640 optimize: true,
641 shrink: true,
Jared Duke0668af22023-02-23 14:43:31 -0800642 shrink_resources: true,
Jared Duke5ecfe872022-09-08 09:25:30 -0700643 ignore_warnings: false,
Jared Dukef0904172022-06-07 18:01:06 +0000644 proguard_compatibility: false,
Jared Duke2fee7402021-10-18 14:35:04 -0700645 },
646 conditions_default: {
647 optimize: {
Jared Duke5ecfe872022-09-08 09:25:30 -0700648 ignore_warnings: false,
Jared Dukef0904172022-06-07 18:01:06 +0000649 proguard_compatibility: false,
Jared Duke2fee7402021-10-18 14:35:04 -0700650 },
651 },
652 },
653 },
654}
655
Jason Monka2f2d822018-08-13 11:10:48 -0400656android_app {
657 name: "SystemUI",
Jared Duke2fee7402021-10-18 14:35:04 -0700658 defaults: [
659 "platform_app_defaults",
Jared Duke5bf6fb32023-02-23 14:27:47 -0800660 "SystemUI_optimized_defaults",
Jared Duke2fee7402021-10-18 14:35:04 -0700661 ],
Jason Monka2f2d822018-08-13 11:10:48 -0400662 static_libs: [
663 "SystemUI-core",
664 ],
Anton Hansson7ccca9f2019-02-08 09:01:32 +0000665 resource_dirs: [],
Jason Monka2f2d822018-08-13 11:10:48 -0400666
Colin Crossc23cde42023-06-21 11:22:11 -0700667 use_resource_processor: true,
Jason Monka2f2d822018-08-13 11:10:48 -0400668 platform_apis: true,
Jeongik Chad45d9e12019-12-04 13:38:39 +0900669 system_ext_specific: true,
Jason Monka2f2d822018-08-13 11:10:48 -0400670 certificate: "platform",
671 privileged: true,
672
Colin Cross6954ea72023-07-18 10:52:21 -0700673 kotlincflags: ["-Xjvm-default=all"],
Selim Cinek820ba2d2019-06-18 18:59:09 -0700674
Jason Monka2f2d822018-08-13 11:10:48 -0400675 dxflags: ["--multi-dex"],
Jared Duke5bf6fb32023-02-23 14:27:47 -0800676 optimize: {
677 proguard_flags_files: ["proguard.flags"],
678 },
Winson Chungb754f522020-08-03 22:17:08 -0700679 required: [
680 "privapp_whitelist_com.android.systemui",
Hongwei Wang2b227ee2022-08-19 09:38:18 -0700681 "wmshell.protolog.json.gz",
Winson Chungb754f522020-08-03 22:17:08 -0700682 ],
Jason Monka2f2d822018-08-13 11:10:48 -0400683}