blob: ee05f2d9101b92f59ead78a18b69037288a6afb8 [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 Demeulenaere0bbebad2023-07-06 10:19:49 +020068 "androidx.compose.animation_animation-graphics",
Jordan Demeulenaere68e91822022-12-16 10:55:47 +010069 ],
70
71 // By default, Compose is disabled and we compile the ComposeFacade
72 // in compose/facade/disabled/.
73 conditions_default: {
74 srcs: ["compose/facade/disabled/src/**/*.kt"],
75 static_libs: [],
76 },
77 },
78 },
79}
80
Jason Monka2f2d822018-08-13 11:10:48 -040081java_library {
82 name: "SystemUI-proto",
83
84 srcs: ["src/**/*.proto"],
85
86 proto: {
87 type: "nano",
88 },
Winson Chungeb1aa3d2020-08-25 19:02:29 -070089
90 libs: [
91 "WindowManager-Shell-proto",
92 ],
Jason Monka2f2d822018-08-13 11:10:48 -040093}
94
95java_library {
96 name: "SystemUI-tags",
97 srcs: ["src/com/android/systemui/EventLogTags.logtags"],
98}
99
Jay Aliomer97d4fc7d2021-09-23 16:59:09 -0400100filegroup {
101 name: "ReleaseJavaFiles",
Jeff DeCew86b8e772021-10-25 20:35:45 -0400102 srcs: [
103 "src-release/**/*.kt",
104 "src-release/**/*.java",
105 ],
Jay Aliomer97d4fc7d2021-09-23 16:59:09 -0400106}
107
108filegroup {
109 name: "DebugJavaFiles",
Jeff DeCew86b8e772021-10-25 20:35:45 -0400110 srcs: [
111 "src-debug/**/*.kt",
112 "src-debug/**/*.java",
113 ],
Jay Aliomer97d4fc7d2021-09-23 16:59:09 -0400114}
115
Xiaozhen Lin53063042022-11-23 02:18:08 +0000116//Create a library to expose SystemUI's resources to other modules.
117android_library {
118 name: "SystemUI-res",
Peter Kalauskas84c5a992023-08-23 13:39:23 -0700119 use_resource_processor: true,
Xiaozhen Lin53063042022-11-23 02:18:08 +0000120 resource_dirs: [
121 "res-product",
122 "res-keyguard",
123 "res",
124 ],
125 static_libs: [
126 "SystemUISharedLib",
Hawkwood Glazier057df3a2023-06-14 20:10:21 +0000127 "SystemUICustomizationLib",
Xiaozhen Lin53063042022-11-23 02:18:08 +0000128 "SettingsLib",
129 "androidx.leanback_leanback",
130 "androidx.slice_slice-core",
131 "androidx.slice_slice-view",
132 ],
133 manifest: "AndroidManifest-res.xml",
134}
135
Jason Monka2f2d822018-08-13 11:10:48 -0400136android_library {
137 name: "SystemUI-core",
Jordan Demeulenaere68e91822022-12-16 10:55:47 +0100138 defaults: [
139 "SystemUI_compose_defaults",
140 ],
Jason Monka2f2d822018-08-13 11:10:48 -0400141 srcs: [
Jason Monkae7ced22018-08-22 16:56:58 -0400142 "src/**/*.kt",
Jason Monka2f2d822018-08-13 11:10:48 -0400143 "src/**/*.java",
144 "src/**/I*.aidl",
Dave Mankoff72a50022021-11-02 20:44:54 -0400145 ":ReleaseJavaFiles",
Jason Monka2f2d822018-08-13 11:10:48 -0400146 ],
Jay Aliomer97d4fc7d2021-09-23 16:59:09 -0400147 product_variables: {
148 debuggable: {
149 srcs: [":DebugJavaFiles"],
150 exclude_srcs: [":ReleaseJavaFiles"],
151 },
152 },
Colin Crossc23cde42023-06-21 11:22:11 -0700153 use_resource_processor: true,
Jason Monka2f2d822018-08-13 11:10:48 -0400154 static_libs: [
Peter Kalauskas84c5a992023-08-23 13:39:23 -0700155 "SystemUI-res",
Quang Luongc6fc5b22021-06-10 14:35:32 -0700156 "WifiTrackerLib",
Winson Chung10a9b4b2019-12-18 10:01:36 -0800157 "WindowManager-Shell",
Jordan Demeulenaerecea62bb2021-04-08 11:04:50 +0200158 "SystemUIAnimationLib",
Darrell Shi60006322023-04-06 17:58:40 +0000159 "SystemUICommon",
160 "SystemUICustomizationLib",
Darrell Shi1a21b362023-04-28 19:51:44 +0000161 "SystemUILogLib",
Jason Monka2f2d822018-08-13 11:10:48 -0400162 "SystemUIPluginLib",
163 "SystemUISharedLib",
Jerry Chang919d1d22020-07-16 12:31:24 +0800164 "SystemUI-statsd",
Jason Monka2f2d822018-08-13 11:10:48 -0400165 "SettingsLib",
Ned Burns6d480c32023-08-28 12:12:19 -0400166 "com_android_systemui_flags_lib",
Alejandro Nijamkin38859642022-06-27 14:18:17 -0700167 "androidx.core_core-ktx",
Fabian Kozynski713b7272020-03-03 18:35:52 -0500168 "androidx.viewpager2_viewpager2",
Jason Monka2f2d822018-08-13 11:10:48 -0400169 "androidx.legacy_legacy-support-v4",
170 "androidx.recyclerview_recyclerview",
171 "androidx.preference_preference",
172 "androidx.appcompat_appcompat",
Mark Renoufe2395012020-12-16 01:05:12 -0500173 "androidx.concurrent_concurrent-futures",
Jason Monka2f2d822018-08-13 11:10:48 -0400174 "androidx.mediarouter_mediarouter",
175 "androidx.palette_palette",
176 "androidx.legacy_legacy-preference-v14",
177 "androidx.leanback_leanback",
178 "androidx.slice_slice-core",
179 "androidx.slice_slice-view",
180 "androidx.slice_slice-builders",
181 "androidx.arch.core_core-runtime",
Bryce Lee436e42c2022-01-24 14:53:49 -0800182 "androidx.lifecycle_lifecycle-common-java8",
Jason Monka2f2d822018-08-13 11:10:48 -0400183 "androidx.lifecycle_lifecycle-extensions",
Jordan Demeulenaere8a169ff2022-07-13 10:42:10 +0200184 "androidx.lifecycle_lifecycle-runtime-ktx",
Joshua Tsujib1a796b2019-01-16 15:43:12 -0800185 "androidx.dynamicanimation_dynamicanimation",
Steve Elliott300b48f2019-05-29 14:13:50 -0400186 "androidx-constraintlayout_constraintlayout",
Miranda Kepharte1a22b92020-12-16 14:01:12 -0500187 "androidx.exifinterface_exifinterface",
Lucas Dupin00c1a602022-02-16 16:40:36 -0800188 "com.google.android.material_material",
Steve Elliotta7d72052020-12-16 23:04:19 -0500189 "kotlinx_coroutines_android",
190 "kotlinx_coroutines",
Hyunyoung Song5347a542019-03-01 13:32:28 -0800191 "iconloader_base",
Jason Monka2f2d822018-08-13 11:10:48 -0400192 "SystemUI-tags",
193 "SystemUI-proto",
Lucas Dupine37369f2021-08-31 00:19:39 +0000194 "monet",
Lucas Dupind83b4ee2023-07-08 11:05:47 -0700195 "libmonet",
Dave Mankoffdffcc472020-07-08 15:25:16 -0400196 "dagger2",
Brett Chabotfc8675a2023-03-27 10:33:10 -0700197 "jsr305",
Andy Wickham64e34102021-03-07 16:02:01 -0800198 "jsr330",
Beverly46817e12021-06-22 16:29:52 -0400199 "lottie",
Lucas Silva0bfb4052022-09-20 23:32:02 -0400200 "LowLightDreamLib",
Johannes Gallmann0d5183c2022-10-04 13:32:16 +0000201 "motion_tool_lib",
Jason Monka2f2d822018-08-13 11:10:48 -0400202 ],
Nikolas Havrikovc70cb072023-09-08 15:06:35 +0200203 libs: [
204 "keepanno-annotations",
205 ],
Jason Monka2f2d822018-08-13 11:10:48 -0400206 manifest: "AndroidManifest.xml",
207
Kevin Jeonf2e72182022-04-04 19:05:05 +0000208 javacflags: ["-Adagger.fastInit=enabled"],
Colin Cross6954ea72023-07-18 10:52:21 -0700209 kotlincflags: ["-Xjvm-default=all"],
Jason Monk73e8ffc2018-12-06 14:45:19 -0500210
Dave Mankoffdffcc472020-07-08 15:25:16 -0400211 plugins: ["dagger2-compiler"],
Jernej Viragbb4ff3f2022-03-10 17:52:11 +0000212
213 lint: {
214 extra_check_modules: ["SystemUILintChecker"],
215 },
Jason Monka2f2d822018-08-13 11:10:48 -0400216}
217
Tadashi G. Takaokaa6572dc2019-09-17 15:18:53 +0900218filegroup {
Fabian Kozynskid389df52022-01-06 10:52:51 -0500219 name: "AAA-src",
220 srcs: ["tests/src/com/android/AAAPlusPlusVerifySysuiRequiredTestPropertiesTest.java"],
221 path: "tests/src",
222}
223
224filegroup {
Tadashi G. Takaokaa6572dc2019-09-17 15:18:53 +0900225 name: "SystemUI-tests-utils",
226 srcs: [
Jordan Demeulenaeref7fed3c2022-07-28 18:06:49 +0200227 "tests/utils/src/**/*.java",
228 "tests/utils/src/**/*.kt",
Dave Mankoffb4935a22021-06-01 15:12:15 -0400229 ],
Jordan Demeulenaeref7fed3c2022-07-28 18:06:49 +0200230 path: "tests/utils/src",
Tadashi G. Takaokaa6572dc2019-09-17 15:18:53 +0900231}
232
Kevin Liud3793232023-02-09 20:37:27 +0000233filegroup {
Caitlin Shkuratovd3777bd2023-07-18 21:39:33 +0000234 name: "SystemUI-test-fakes",
235 srcs: [
236 /* Status bar fakes */
237 "tests/src/com/android/systemui/statusbar/pipeline/airplane/data/repository/FakeAirplaneModeRepository.kt",
Chandru S2f6c56c2023-09-21 18:13:23 -0700238 "tests/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/FakeMobileConnectionRepository.kt",
239 "tests/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/FakeMobileConnectionsRepository.kt",
240 "tests/src/com/android/systemui/statusbar/pipeline/mobile/util/FakeMobileMappingsProxy.kt",
Caitlin Shkuratovd3777bd2023-07-18 21:39:33 +0000241 "tests/src/com/android/systemui/statusbar/pipeline/shared/data/repository/FakeConnectivityRepository.kt",
242 "tests/src/com/android/systemui/statusbar/pipeline/wifi/data/repository/FakeWifiRepository.kt",
Darrell Shi9ea21282023-08-30 23:57:12 +0000243
244 /* Log fakes */
245 "tests/src/com/android/systemui/log/core/FakeLogBuffer.kt",
Fabián Kozynski9746d312023-08-31 16:47:50 -0400246
247 /* QS fakes */
248 "tests/src/com/android/systemui/qs/pipeline/domain/interactor/FakeQSTile.kt",
Caitlin Shkuratovd3777bd2023-07-18 21:39:33 +0000249 ],
250 path: "tests/src",
251}
252
253filegroup {
Kevin Liud3793232023-02-09 20:37:27 +0000254 name: "SystemUI-tests-robolectric-pilots",
255 srcs: [
Kevin Liuc54db8b2023-03-22 21:41:46 +0000256 /* Keyguard converted tests */
Kevin Liud3793232023-02-09 20:37:27 +0000257 // data
258 "tests/src/com/android/systemui/keyguard/data/quickaffordance/CameraQuickAffordanceConfigTest.kt",
259 "tests/src/com/android/systemui/keyguard/data/quickaffordance/DoNotDisturbQuickAffordanceConfigTest.kt",
Kevin Liud3793232023-02-09 20:37:27 +0000260 "tests/src/com/android/systemui/keyguard/data/quickaffordance/FlashlightQuickAffordanceConfigTest.kt",
261 "tests/src/com/android/systemui/keyguard/data/quickaffordance/HomeControlsKeyguardQuickAffordanceConfigTest.kt",
262 "tests/src/com/android/systemui/keyguard/data/quickaffordance/KeyguardQuickAffordanceLegacySettingSyncerTest.kt",
263 "tests/src/com/android/systemui/keyguard/data/quickaffordance/KeyguardQuickAffordanceLocalUserSelectionManagerTest.kt",
264 "tests/src/com/android/systemui/keyguard/data/quickaffordance/KeyguardQuickAffordanceRemoteUserSelectionManagerTest.kt",
Kevin Liuc54db8b2023-03-22 21:41:46 +0000265 "tests/src/com/android/systemui/keyguard/data/quickaffordance/MuteQuickAffordanceConfigTest.kt",
Kevin Liud3793232023-02-09 20:37:27 +0000266 "tests/src/com/android/systemui/keyguard/data/quickaffordance/QrCodeScannerKeyguardQuickAffordanceConfigTest.kt",
267 "tests/src/com/android/systemui/keyguard/data/quickaffordance/QuickAccessWalletKeyguardQuickAffordanceConfigTest.kt",
Kevin Liuc54db8b2023-03-22 21:41:46 +0000268 "tests/src/com/android/systemui/keyguard/data/quickaffordance/VideoCameraQuickAffordanceConfigTest.kt",
269 "tests/src/com/android/systemui/keyguard/data/repository/BiometricSettingsRepositoryTest.kt",
270 "tests/src/com/android/systemui/keyguard/data/repository/DeviceEntryFaceAuthRepositoryTest.kt",
271 "tests/src/com/android/systemui/keyguard/data/repository/DeviceEntryFingerprintAuthRepositoryTest.kt",
272 "tests/src/com/android/systemui/keyguard/data/repository/DevicePostureRepositoryTest.kt",
Kevin Liud3793232023-02-09 20:37:27 +0000273 "tests/src/com/android/systemui/keyguard/data/repository/KeyguardQuickAffordanceRepositoryTest.kt",
274 "tests/src/com/android/systemui/keyguard/data/repository/KeyguardRepositoryImplTest.kt",
Kevin Liuc54db8b2023-03-22 21:41:46 +0000275 "tests/src/com/android/systemui/keyguard/data/repository/LightRevealScrimRepositoryTest.kt",
276 "tests/src/com/android/systemui/keyguard/data/repository/TrustRepositoryTest.kt",
Kevin Liud3793232023-02-09 20:37:27 +0000277 // domain
Aaron Liu8456c412023-05-31 11:12:55 -0700278 "tests/src/com/android/systemui/bouncer/domain/interactor/AlternateBouncerInteractorTest.kt",
279 "tests/src/com/android/systemui/bouncer/domain/interactor/PrimaryBouncerCallbackInteractorTest.kt",
280 "tests/src/com/android/systemui/bouncer/domain/interactor/PrimaryBouncerInteractorWithCoroutinesTest.kt",
Kevin Liud3793232023-02-09 20:37:27 +0000281 "tests/src/com/android/systemui/keyguard/domain/interactor/KeyguardInteractorTest.kt",
Kevin Liu810fcbb2023-04-24 22:33:07 +0000282 "tests/src/com/android/systemui/keyguard/domain/interactor/KeyguardLongPressInteractorTest.kt",
Kevin Liud3793232023-02-09 20:37:27 +0000283 "tests/src/com/android/systemui/keyguard/domain/interactor/KeyguardQuickAffordanceInteractorTest.kt",
284 "tests/src/com/android/systemui/keyguard/domain/interactor/KeyguardTransitionInteractorTest.kt",
285 "tests/src/com/android/systemui/keyguard/domain/interactor/LightRevealScrimInteractorTest.kt",
Kevin Liud3793232023-02-09 20:37:27 +0000286 // ui
Aaron Liu8456c412023-05-31 11:12:55 -0700287 "tests/src/com/android/systemui/bouncer/ui/viewmodel/KeyguardBouncerViewModelTest.kt",
Kevin Liud3793232023-02-09 20:37:27 +0000288 "tests/src/com/android/systemui/keyguard/ui/viewmodel/DreamingToLockscreenTransitionViewModelTest.kt",
Kevin Liud3793232023-02-09 20:37:27 +0000289 "tests/src/com/android/systemui/keyguard/ui/viewmodel/GoneToDreamingTransitionViewModelTest.kt",
290 "tests/src/com/android/systemui/keyguard/ui/viewmodel/LockscreenToDreamingTransitionViewModelTest.kt",
291 "tests/src/com/android/systemui/keyguard/ui/viewmodel/LockscreenToOccludedTransitionViewModelTest.kt",
292 "tests/src/com/android/systemui/keyguard/ui/viewmodel/OccludedToLockscreenTransitionViewModelTest.kt",
Kevin Liu810fcbb2023-04-24 22:33:07 +0000293 "tests/src/com/android/systemui/keyguard/ui/viewmodel/PrimaryBouncerToGoneTransitionViewModelTest.kt",
Kevin Liuc54db8b2023-03-22 21:41:46 +0000294 // Keyguard helper
295 "tests/src/com/android/systemui/keyguard/data/quickaffordance/FakeKeyguardQuickAffordanceConfig.kt",
Brad Hinegardner5094a5d2023-04-25 16:28:45 -0400296 "tests/src/com/android/systemui/dock/DockManagerFake.java",
Kevin Liuc54db8b2023-03-22 21:41:46 +0000297 "tests/src/com/android/systemui/dump/LogBufferHelper.kt",
298 "tests/src/com/android/systemui/statusbar/phone/FakeKeyguardStateController.java",
Kevin Liu092b8212023-02-15 05:42:34 +0000299
Kevin Liuc54db8b2023-03-22 21:41:46 +0000300 /* Biometric converted tests */
Kevin Liu092b8212023-02-15 05:42:34 +0000301 "tests/src/com/android/systemui/biometrics/BiometricTestExtensions.kt",
Kevin Liu092b8212023-02-15 05:42:34 +0000302 "tests/src/com/android/systemui/biometrics/AuthControllerTest.java",
303 "tests/src/com/android/systemui/biometrics/BiometricDisplayListenerTest.java",
304 "tests/src/com/android/systemui/biometrics/FaceHelpMessageDeferralTest.kt",
305 "tests/src/com/android/systemui/biometrics/SideFpsControllerTest.kt",
306 "tests/src/com/android/systemui/biometrics/UdfpsControllerOverlayTest.kt",
307 "tests/src/com/android/systemui/biometrics/UdfpsControllerTest.java",
308 "tests/src/com/android/systemui/biometrics/UdfpsDialogMeasureAdapterTest.java",
309 "tests/src/com/android/systemui/biometrics/UdfpsDisplayModeTest.java",
Beverlyea7325c2023-05-03 13:49:09 +0000310 "tests/src/com/android/systemui/biometrics/UdfpsKeyguardViewLegacyControllerBaseTest.java",
311 "tests/src/com/android/systemui/biometrics/UdfpsKeyguardViewLegacyControllerTest.java",
312 "tests/src/com/android/systemui/biometrics/UdfpsKeyguardViewLegacyControllerWithCoroutinesTest.kt",
Kevin Liu092b8212023-02-15 05:42:34 +0000313 "tests/src/com/android/systemui/biometrics/UdfpsShellTest.kt",
314 "tests/src/com/android/systemui/biometrics/UdfpsViewTest.kt",
Caitlin Shkuratovd3777bd2023-07-18 21:39:33 +0000315
316 /* Status bar wifi converted tests */
317 "tests/src/com/android/systemui/statusbar/pipeline/wifi/data/repository/WifiRepositorySwitcherTest.kt",
318 "tests/src/com/android/systemui/statusbar/pipeline/wifi/data/repository/prod/DisabledWifiRepositoryTest.kt",
319 "tests/src/com/android/systemui/statusbar/pipeline/wifi/data/repository/prod/WifiRepositoryImplTest.kt",
Caitlin Shkuratove0ed29452023-07-20 13:26:29 +0000320 "tests/src/com/android/systemui/statusbar/pipeline/wifi/domain/interactor/WifiInteractorImplTest.kt",
Caitlin Shkuratov87d86642023-07-20 14:49:28 +0000321 "tests/src/com/android/systemui/statusbar/pipeline/wifi/ui/viewmodel/WifiViewModelTest.kt",
Aaron Liu95f9e9a2023-08-25 11:56:47 -0700322
323 /* Bouncer UI tests */
324 "tests/src/com/android/keyguard/KeyguardPasswordViewControllerTest.kt",
325 "tests/src/com/android/keyguard/KeyguardPatternViewControllerTest.kt",
326 "tests/src/com/android/keyguard/KeyguardPinBasedInputViewControllerTest.java",
327 "tests/src/com/android/keyguard/KeyguardPinViewControllerTest.kt",
328 "tests/src/com/android/keyguard/KeyguardSecurityContainerTest.java",
329 "tests/src/com/android/keyguard/KeyguardSecurityContainerControllerTest.kt",
330 "tests/src/com/android/keyguard/KeyguardSecurityViewFlipperControllerTest.java",
331 "tests/src/com/android/keyguard/KeyguardSimPinViewControllerTest.kt",
332 "tests/src/com/android/keyguard/KeyguardSimPukViewControllerTest.kt",
Darrell Shi9ea21282023-08-30 23:57:12 +0000333
334 /* Communal tests */
335 "tests/src/com/android/systemui/communal/data/repository/CommunalWidgetRepositoryImplTest.kt",
336 "tests/src/com/android/systemui/communal/domain/interactor/CommunalInteractorTest.kt",
337 "tests/src/com/android/systemui/communal/ui/view/layout/blueprints/DefaultCommunalBlueprintTest.kt",
Darrell Shi8690e222023-08-31 21:11:25 +0000338
339 /* Dream tests */
340 "tests/src/com/android/systemui/dreams/complication/HideComplicationTouchHandlerTest.java",
341 "tests/src/com/android/systemui/dreams/conditions/AssistantAttentionConditionTest.java",
342 "tests/src/com/android/systemui/dreams/conditions/DreamConditionTest.java",
343 "tests/src/com/android/systemui/dreams/touch/scrim/BouncerlessScrimControllerTest.java",
344 "tests/src/com/android/systemui/dreams/touch/scrim/ScrimManagerTest.java",
345 "tests/src/com/android/systemui/dreams/touch/BouncerSwipeTouchHandlerTest.java",
346 "tests/src/com/android/systemui/dreams/touch/ShadeTouchHandlerTest.java",
347 "tests/src/com/android/systemui/dreams/DreamOverlayAnimationsControllerTest.kt",
348 "tests/src/com/android/systemui/dreams/DreamOverlayCallbackControllerTest.kt",
349 "tests/src/com/android/systemui/dreams/DreamOverlayContainerViewControllerTest.java",
350 "tests/src/com/android/systemui/dreams/DreamOverlayNotificationCountProviderTest.java",
351 "tests/src/com/android/systemui/dreams/DreamOverlayServiceTest.java",
352 "tests/src/com/android/systemui/dreams/DreamOverlayStateControllerTest.java",
353 "tests/src/com/android/systemui/dreams/DreamOverlayStatusBarItemsProviderTest.java",
354 "tests/src/com/android/systemui/dreams/DreamOverlayStatusBarViewControllerTest.java",
Xiaowen Lei39e0d0b2023-09-06 22:50:24 +0000355
356 /* Smartspace tests */
357 "tests/src/com/android/systemui/smartspace/BcSmartspaceConfigProviderTest.kt",
358 "tests/src/com/android/systemui/smartspace/DreamSmartspaceControllerTest.kt",
359 "tests/src/com/android/systemui/smartspace/LockscreenAndDreamTargetFilterTest.kt",
360 "tests/src/com/android/systemui/smartspace/LockscreenPreconditionTest.kt",
Fabián Kozynski9746d312023-08-31 16:47:50 -0400361
362 /* Quick Settings new pipeline converted tests */
363 "tests/src/com/android/systemui/qs/pipeline/data/**/*Test.kt",
364 "tests/src/com/android/systemui/qs/pipeline/domain/**/*Test.kt",
365 "tests/src/com/android/systemui/qs/pipeline/shared/TileSpecTest.kt",
Anton Potapova0317a32023-09-25 15:45:17 +0100366 "tests/src/com/android/systemui/qs/tiles/base/**/*.kt",
367 "tests/src/com/android/systemui/qs/tiles/viewmodel/**/*.kt",
Kevin Liud3793232023-02-09 20:37:27 +0000368 ],
369 path: "tests/src",
370}
371
Bryce Leea5b08082021-10-06 11:34:56 -0700372java_library {
373 name: "SystemUI-tests-concurrency",
374 srcs: [
375 "src/com/android/systemui/util/concurrency/DelayableExecutor.java",
376 "src/com/android/systemui/util/time/SystemClock.java",
Jordan Demeulenaeref7fed3c2022-07-28 18:06:49 +0200377 "tests/utils/src/com/android/systemui/util/concurrency/FakeExecutor.java",
378 "tests/utils/src/com/android/systemui/util/time/FakeSystemClock.java",
Bryce Leea5b08082021-10-06 11:34:56 -0700379 ],
380 jarjar_rules: ":jarjar-rules-shared",
381}
382
Jason Monkae7ced22018-08-22 16:56:58 -0400383android_library {
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000384 name: "SystemUI-tests-base",
Peter Kalauskas84c5a992023-08-23 13:39:23 -0700385 use_resource_processor: true,
Sunny Goyaleb18d392020-02-07 16:48:14 -0800386 manifest: "tests/AndroidManifest-base.xml",
Jason Monkae7ced22018-08-22 16:56:58 -0400387 resource_dirs: [
388 "tests/res",
Jason Monkae7ced22018-08-22 16:56:58 -0400389 ],
Jason Monkae7ced22018-08-22 16:56:58 -0400390 static_libs: [
Peter Kalauskas84c5a992023-08-23 13:39:23 -0700391 "SystemUI-res",
Quang Luongc6fc5b22021-06-10 14:35:32 -0700392 "WifiTrackerLib",
Jordan Demeulenaerecea62bb2021-04-08 11:04:50 +0200393 "SystemUIAnimationLib",
Jason Monkae7ced22018-08-22 16:56:58 -0400394 "SystemUIPluginLib",
395 "SystemUISharedLib",
Hawkwood Glazierb8eef872022-11-11 17:56:14 +0000396 "SystemUICustomizationLib",
Hyunyoung Song3d89c932020-04-11 13:31:06 -0700397 "SystemUI-statsd",
Jason Monkae7ced22018-08-22 16:56:58 -0400398 "SettingsLib",
Ned Burns6d480c32023-08-28 12:12:19 -0400399 "com_android_systemui_flags_lib",
Fabian Kozynski713b7272020-03-03 18:35:52 -0500400 "androidx.viewpager2_viewpager2",
Jason Monkae7ced22018-08-22 16:56:58 -0400401 "androidx.legacy_legacy-support-v4",
402 "androidx.recyclerview_recyclerview",
403 "androidx.preference_preference",
404 "androidx.appcompat_appcompat",
Mark Renoufe2395012020-12-16 01:05:12 -0500405 "androidx.concurrent_concurrent-futures",
Jason Monkae7ced22018-08-22 16:56:58 -0400406 "androidx.mediarouter_mediarouter",
407 "androidx.palette_palette",
408 "androidx.legacy_legacy-preference-v14",
409 "androidx.leanback_leanback",
410 "androidx.slice_slice-core",
411 "androidx.slice_slice-view",
412 "androidx.slice_slice-builders",
413 "androidx.arch.core_core-runtime",
Bryce Lee436e42c2022-01-24 14:53:49 -0800414 "androidx.lifecycle_lifecycle-common-java8",
Jason Monkae7ced22018-08-22 16:56:58 -0400415 "androidx.lifecycle_lifecycle-extensions",
Jordan Demeulenaere8a169ff2022-07-13 10:42:10 +0200416 "androidx.lifecycle_lifecycle-runtime-ktx",
Joshua Tsujib1a796b2019-01-16 15:43:12 -0800417 "androidx.dynamicanimation_dynamicanimation",
Steve Elliott300b48f2019-05-29 14:13:50 -0400418 "androidx-constraintlayout_constraintlayout",
Miranda Kepharte1a22b92020-12-16 14:01:12 -0500419 "androidx.exifinterface_exifinterface",
Pinyao Tingee191b12020-04-29 18:35:39 -0700420 "kotlinx-coroutines-android",
421 "kotlinx-coroutines-core",
Alejandro Nijamkinc738a8c2022-07-25 13:30:41 -0700422 "kotlinx_coroutines_test",
Chandru5a5e5332022-08-19 14:25:31 +0000423 "kotlin-reflect",
Lyn Han1b4f25e2019-06-11 13:56:34 -0700424 "iconloader_base",
Jason Monkae7ced22018-08-22 16:56:58 -0400425 "SystemUI-tags",
426 "SystemUI-proto",
427 "metrics-helper-lib",
Tadashi G. Takaokac7340fb2020-10-20 17:50:13 +0900428 "hamcrest-library",
429 "androidx.test.rules",
Jason Monkae7ced22018-08-22 16:56:58 -0400430 "testables",
431 "truth-prebuilt",
Lucas Dupine37369f2021-08-31 00:19:39 +0000432 "monet",
Lucas Dupind83b4ee2023-07-08 11:05:47 -0700433 "libmonet",
Dave Mankoffdffcc472020-07-08 15:25:16 -0400434 "dagger2",
Bill Lina17858d12020-07-14 10:30:10 +0800435 "jsr330",
436 "WindowManager-Shell",
Lucas Silva0bfb4052022-09-20 23:32:02 -0400437 "LowLightDreamLib",
Johannes Gallmann0d5183c2022-10-04 13:32:16 +0000438 "motion_tool_lib",
Johannes Gallmannb642af92022-10-14 09:58:09 +0000439 "androidx.core_core-animation-testing-nodeps",
Jordan Demeulenaere54a0fae2023-01-04 11:36:46 +0100440 "androidx.compose.ui_ui",
Jason Monkae7ced22018-08-22 16:56:58 -0400441 ],
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000442}
443
444android_library {
445 name: "SystemUI-tests",
Peter Kalauskas84c5a992023-08-23 13:39:23 -0700446 use_resource_processor: true,
Jordan Demeulenaere68e91822022-12-16 10:55:47 +0100447 defaults: [
448 "SystemUI_compose_defaults",
449 ],
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000450 manifest: "tests/AndroidManifest-base.xml",
451 additional_manifests: ["tests/AndroidManifest.xml"],
452 srcs: [
453 "tests/src/**/*.kt",
454 "tests/src/**/*.java",
455 "src/**/*.kt",
456 "src/**/*.java",
457 "src/**/I*.aidl",
458 ":ReleaseJavaFiles",
459 ":SystemUI-tests-utils",
460 ],
461 static_libs: [
462 "SystemUI-tests-base",
463 "androidx.test.uiautomator_uiautomator",
Jeff DeCewa415d0e2023-08-02 11:30:09 -0400464 "androidx.core_core-animation-testing",
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000465 "mockito-target-extended-minus-junit4",
466 "androidx.test.ext.junit",
Steven Ng45b74c62023-03-23 11:23:02 +0000467 "androidx.test.ext.truth",
Colin Cross852cd142023-08-11 16:53:55 -0700468 "kotlin-test",
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000469 ],
Jason Monkae7ced22018-08-22 16:56:58 -0400470 libs: [
471 "android.test.runner",
Jason Monkae7ced22018-08-22 16:56:58 -0400472 "android.test.base",
Jordan Demeulenaere6fb22d42022-08-19 15:00:36 +0200473 "android.test.mock",
Nikolas Havrikovc70cb072023-09-08 15:06:35 +0200474 "keepanno-annotations",
Jason Monkae7ced22018-08-22 16:56:58 -0400475 ],
Colin Cross6954ea72023-07-18 10:52:21 -0700476 kotlincflags: ["-Xjvm-default=all"],
Jason Monkae7ced22018-08-22 16:56:58 -0400477 aaptflags: [
478 "--extra-packages",
Hyunyoung Song8f9d34c2019-08-30 14:47:43 -0700479 "com.android.systemui",
Jason Monkae7ced22018-08-22 16:56:58 -0400480 ],
Dave Mankoffdffcc472020-07-08 15:25:16 -0400481 plugins: ["dagger2-compiler"],
Cole Faust17f1e722022-08-16 15:30:26 -0700482 lint: {
483 test: true,
Jeff Chen194a13f2023-03-16 15:40:05 -0700484 extra_check_modules: ["SystemUILintChecker"],
Cole Faust17f1e722022-08-16 15:30:26 -0700485 },
Jason Monkae7ced22018-08-22 16:56:58 -0400486}
487
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000488android_app {
489 name: "SystemUIRobo-stub",
Peter Kalauskas84c5a992023-08-23 13:39:23 -0700490 use_resource_processor: true,
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000491 defaults: [
492 "platform_app_defaults",
Jared Duke5bf6fb32023-02-23 14:27:47 -0800493 "SystemUI_optimized_defaults",
Kevin Liud3793232023-02-09 20:37:27 +0000494 "SystemUI_compose_defaults",
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000495 ],
496 manifest: "tests/AndroidManifest-base.xml",
Kevin Liud3793232023-02-09 20:37:27 +0000497
498 srcs: [
499 "src/**/*.kt",
500 "src/**/*.java",
501 "src/**/I*.aidl",
502 ":ReleaseJavaFiles",
503 ],
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000504 static_libs: [
505 "SystemUI-tests-base",
506 ],
Nikolas Havrikovc70cb072023-09-08 15:06:35 +0200507 libs: [
508 "keepanno-annotations",
509 ],
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000510 aaptflags: [
511 "--extra-packages",
512 "com.android.systemui",
513 ],
514 dont_merge_manifests: true,
515 platform_apis: true,
516 system_ext_specific: true,
517 certificate: "platform",
518 privileged: true,
519 resource_dirs: [],
Kevin Liud3793232023-02-09 20:37:27 +0000520 kotlincflags: ["-Xjvm-default=all"],
Kevin Liu092b8212023-02-15 05:42:34 +0000521 optimize: {
522 shrink_resources: false,
523 proguard_flags_files: ["proguard.flags"],
524 },
Kevin Liud3793232023-02-09 20:37:27 +0000525
526 plugins: ["dagger2-compiler"],
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000527}
528
529android_robolectric_test {
530 name: "SystemUiRoboTests",
531 srcs: [
532 "tests/robolectric/src/**/*.kt",
533 "tests/robolectric/src/**/*.java",
Kevin Liud3793232023-02-09 20:37:27 +0000534 ":SystemUI-tests-utils",
Caitlin Shkuratovd3777bd2023-07-18 21:39:33 +0000535 ":SystemUI-test-fakes",
Kevin Liud3793232023-02-09 20:37:27 +0000536 ":SystemUI-tests-robolectric-pilots",
537 ],
538 static_libs: [
539 "androidx.test.uiautomator_uiautomator",
Jeff DeCewa415d0e2023-08-02 11:30:09 -0400540 "androidx.core_core-animation-testing",
Kevin Liud3793232023-02-09 20:37:27 +0000541 "androidx.test.ext.junit",
542 "inline-mockito-robolectric-prebuilt",
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000543 ],
544 libs: [
545 "android.test.runner",
546 "android.test.base",
547 "android.test.mock",
548 "truth-prebuilt",
549 ],
Kevin Liud3793232023-02-09 20:37:27 +0000550
551 upstream: true,
552
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000553 instrumentation_for: "SystemUIRobo-stub",
554 java_resource_dirs: ["tests/robolectric/config"],
555}
556
Jared Duke84e94b32022-08-05 13:46:38 -0700557// Opt-out config for optimizing the SystemUI target using R8.
558// Disabled via `export SYSTEMUI_OPTIMIZE_JAVA=false`, or explicitly in Make via
559// `SYSTEMUI_OPTIMIZE_JAVA := false`.
Jared Duke9dfa77b2021-12-22 13:31:06 -0800560soong_config_module_type {
561 name: "systemui_optimized_java_defaults",
562 module_type: "java_defaults",
563 config_namespace: "ANDROID",
564 bool_variables: ["SYSTEMUI_OPTIMIZE_JAVA"],
565 properties: ["optimize"],
Jared Duke2fee7402021-10-18 14:35:04 -0700566}
567
Jared Duke9dfa77b2021-12-22 13:31:06 -0800568systemui_optimized_java_defaults {
Jared Duke5bf6fb32023-02-23 14:27:47 -0800569 name: "SystemUI_optimized_defaults",
Jared Duke2fee7402021-10-18 14:35:04 -0700570 soong_config_variables: {
Jared Duke9dfa77b2021-12-22 13:31:06 -0800571 SYSTEMUI_OPTIMIZE_JAVA: {
Jared Duke2fee7402021-10-18 14:35:04 -0700572 optimize: {
573 enabled: true,
574 optimize: true,
575 shrink: true,
Jared Duke0668af22023-02-23 14:43:31 -0800576 shrink_resources: true,
Jared Duke5ecfe872022-09-08 09:25:30 -0700577 ignore_warnings: false,
Jared Dukef0904172022-06-07 18:01:06 +0000578 proguard_compatibility: false,
Jared Duke2fee7402021-10-18 14:35:04 -0700579 },
580 conditions_default: {
581 optimize: {
Jared Duke5ecfe872022-09-08 09:25:30 -0700582 ignore_warnings: false,
Jared Dukef0904172022-06-07 18:01:06 +0000583 proguard_compatibility: false,
Jared Duke2fee7402021-10-18 14:35:04 -0700584 },
585 },
586 },
587 },
588}
589
Jason Monka2f2d822018-08-13 11:10:48 -0400590android_app {
591 name: "SystemUI",
Jared Duke2fee7402021-10-18 14:35:04 -0700592 defaults: [
593 "platform_app_defaults",
Jared Duke5bf6fb32023-02-23 14:27:47 -0800594 "SystemUI_optimized_defaults",
Jared Duke2fee7402021-10-18 14:35:04 -0700595 ],
Jason Monka2f2d822018-08-13 11:10:48 -0400596 static_libs: [
597 "SystemUI-core",
598 ],
Anton Hansson7ccca9f2019-02-08 09:01:32 +0000599 resource_dirs: [],
Jason Monka2f2d822018-08-13 11:10:48 -0400600
Colin Crossc23cde42023-06-21 11:22:11 -0700601 use_resource_processor: true,
Jason Monka2f2d822018-08-13 11:10:48 -0400602 platform_apis: true,
Jeongik Chad45d9e12019-12-04 13:38:39 +0900603 system_ext_specific: true,
Jason Monka2f2d822018-08-13 11:10:48 -0400604 certificate: "platform",
605 privileged: true,
606
Colin Cross6954ea72023-07-18 10:52:21 -0700607 kotlincflags: ["-Xjvm-default=all"],
Selim Cinek820ba2d2019-06-18 18:59:09 -0700608
Jason Monka2f2d822018-08-13 11:10:48 -0400609 dxflags: ["--multi-dex"],
Jared Duke5bf6fb32023-02-23 14:27:47 -0800610 optimize: {
611 proguard_flags_files: ["proguard.flags"],
612 },
Winson Chungb754f522020-08-03 22:17:08 -0700613 required: [
614 "privapp_whitelist_com.android.systemui",
Hongwei Wang2b227ee2022-08-19 09:38:18 -0700615 "wmshell.protolog.json.gz",
Winson Chungb754f522020-08-03 22:17:08 -0700616 ],
Jason Monka2f2d822018-08-13 11:10:48 -0400617}