blob: 2b17ae48132c41668253a774ccb871f68ffbe59a [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 {
Aditya Choudharyb4262272024-01-31 11:09:29 +000018 default_team: "trendy_team_system_ui_please_use_a_more_specific_subteam_if_possible_",
Bob Badour8a6a2bc2021-02-12 17:07:05 -080019 default_applicable_licenses: ["frameworks_base_packages_SystemUI_license"],
20}
21
22// Added automatically by a large-scale-change
23// See: http://go/android-license-faq
24license {
25 name: "frameworks_base_packages_SystemUI_license",
Jordan Demeulenaere6310fa72024-07-04 11:05:23 +020026 visibility: [
27 ":__subpackages__",
28 "//development/samples/SceneTransitionLayoutDemo:__subpackages__",
29 ],
Bob Badour8a6a2bc2021-02-12 17:07:05 -080030 license_kinds: [
31 "SPDX-license-identifier-Apache-2.0",
32 ],
33 license_text: [
34 "NOTICE",
35 ],
36}
37
Jason Monka2f2d822018-08-13 11:10:48 -040038java_library {
39 name: "SystemUI-proto",
40
41 srcs: ["src/**/*.proto"],
42
43 proto: {
44 type: "nano",
45 },
Winson Chungeb1aa3d2020-08-25 19:02:29 -070046
47 libs: [
48 "WindowManager-Shell-proto",
49 ],
Jason Monka2f2d822018-08-13 11:10:48 -040050}
51
52java_library {
53 name: "SystemUI-tags",
54 srcs: ["src/com/android/systemui/EventLogTags.logtags"],
55}
56
Jay Aliomer97d4fc7d2021-09-23 16:59:09 -040057filegroup {
58 name: "ReleaseJavaFiles",
Jeff DeCew86b8e772021-10-25 20:35:45 -040059 srcs: [
60 "src-release/**/*.kt",
61 "src-release/**/*.java",
62 ],
Peter Kalauskas9159d362025-02-11 13:35:01 -080063 path: "src-release",
Peter Kalauskascd50f532024-04-02 15:41:14 -070064 visibility: ["//visibility:private"],
Jay Aliomer97d4fc7d2021-09-23 16:59:09 -040065}
66
67filegroup {
68 name: "DebugJavaFiles",
Jeff DeCew86b8e772021-10-25 20:35:45 -040069 srcs: [
70 "src-debug/**/*.kt",
71 "src-debug/**/*.java",
72 ],
Peter Kalauskas9159d362025-02-11 13:35:01 -080073 path: "src-debug",
Peter Kalauskascd50f532024-04-02 15:41:14 -070074 visibility: ["//visibility:private"],
Jay Aliomer97d4fc7d2021-09-23 16:59:09 -040075}
76
Matthew Reynolds30f06292024-04-30 23:48:37 +000077filegroup {
78 name: "SystemUI-tests-robofiles",
79 srcs: [
80 "tests/src/**/*.kt",
81 "tests/src/**/*.java",
82 ],
83 visibility: ["//visibility:private"],
84}
85
Matthew Reynolds9b949c92024-06-17 14:00:11 +000086// Tests where robolectric failed at runtime. (go/central-multivalent)
Matthew Reynolds4265fe62024-05-03 16:41:56 +000087filegroup {
88 name: "SystemUI-tests-broken-robofiles-run",
89 srcs: [
Matthew Reynolds0abd7332024-12-23 21:10:42 +000090 "tests/src/**/systemui/keyguard/data/repository/KeyguardTransitionRepositoryTest.kt",
91 "tests/src/**/systemui/power/PowerNotificationWarningsTest.java",
92 "tests/src/**/systemui/user/domain/interactor/RefreshUsersSchedulerTest.kt",
Matthew Reynolds8a719e62024-12-04 15:04:36 +000093 "tests/src/**/systemui/dreams/touch/CommunalTouchHandlerTest.java",
Matthew Reynolds9eb885d2024-11-20 03:20:50 +000094 "tests/src/**/systemui/shade/NotificationShadeWindowViewControllerTest.kt",
95 "tests/src/**/systemui/keyguard/domain/interactor/KeyguardQuickAffordanceInteractorSceneContainerTest.kt",
96 "tests/src/**/systemui/statusbar/pipeline/mobile/ui/model/SignalIconModelParameterizedTest.kt",
Matthew Reynolds9eb885d2024-11-20 03:20:50 +000097 "tests/src/**/systemui/biometrics/udfps/SinglePointerTouchProcessorTest.kt",
98 "tests/src/**/systemui/animation/back/FlingOnBackAnimationCallbackTest.kt",
99 "tests/src/**/systemui/education/domain/ui/view/ContextualEduDialogTest.kt",
100 "tests/src/**/systemui/screenshot/ActionIntentCreatorTest.kt",
101 "tests/src/**/systemui/keyguard/domain/interactor/KeyguardQuickAffordanceInteractorParameterizedTest.kt",
102 "tests/src/**/systemui/accessibility/WindowMagnificationControllerTest.java",
103 "tests/src/**/systemui/broadcast/BroadcastDispatcherTest.kt",
104 "tests/src/**/systemui/globalactions/GlobalActionsDialogLiteTest.java",
105 "tests/src/**/systemui/globalactions/GlobalActionsImeTest.java",
106 "tests/src/**/systemui/media/dialog/MediaOutputBaseDialogTest.java",
107 "tests/src/**/systemui/media/dialog/MediaOutputBroadcastDialogTest.java",
108 "tests/src/**/systemui/media/dialog/MediaOutputDialogTest.java",
109 "tests/src/**/systemui/settings/brightness/BrightnessDialogTest.kt",
110 "tests/src/**/systemui/shared/clocks/view/SimpleDigitalClockTextViewTest.kt",
111 "tests/src/**/systemui/statusbar/policy/SecurityControllerTest.java",
112 "tests/src/**/systemui/lifecycle/SysUiViewModelTest.kt",
113 "tests/src/**/systemui/keyguard/ui/viewmodel/KeyguardQuickAffordancesCombinedViewModelTest.kt",
114 "tests/src/**/systemui/graphics/ImageLoaderContentProviderTest.kt",
115 "tests/src/**/systemui/flags/FakeFeatureFlagsTest.kt",
116 "tests/src/**/systemui/communal/data/backup/CommunalBackupUtilsTest.kt",
Matthew Reynolds9b949c92024-06-17 14:00:11 +0000117 "tests/src/**/AAAPlusPlusVerifySysuiRequiredTestPropertiesTest.java",
Matthew Reynolds5af9275ce2024-10-22 21:20:53 +0000118 "tests/src/**/systemui/accessibility/AccessibilityGestureTargetsObserverTest.java",
Matthew Reynolds9b949c92024-06-17 14:00:11 +0000119 "tests/src/**/systemui/accessibility/floatingmenu/AccessibilityFloatingMenuControllerTest.java",
Matthew Reynolds9b949c92024-06-17 14:00:11 +0000120 "tests/src/**/systemui/screenshot/appclips/AppClipsActivityTest.java",
121 "tests/src/**/systemui/screenshot/appclips/AppClipsTrampolineActivityTest.java",
122 "tests/src/**/systemui/screenshot/appclips/AppClipsViewModelTest.java",
123 "tests/src/**/systemui/appops/AppOpsControllerTest.java",
124 "tests/src/**/systemui/biometrics/BiometricNotificationServiceTest.java",
125 "tests/src/**/systemui/bluetooth/BroadcastDialogDelegateTest.java",
126 "tests/src/**/systemui/clipboardoverlay/ClipboardOverlayControllerTest.java",
127 "tests/src/**/systemui/communal/data/backup/CommunalBackupHelperTest.kt",
128 "tests/src/**/systemui/controls/ui/ControlsPopupMenuTest.kt",
129 "tests/src/**/systemui/classifier/DistanceClassifierTest.java",
130 "tests/src/**/systemui/doze/DozeScreenBrightnessTest.java",
131 "tests/src/**/systemui/doze/DozeSensorsTest.java",
132 "tests/src/**/systemui/doze/DozeTriggersTest.java",
133 "tests/src/**/systemui/classifier/FalsingDataProviderTest.java",
134 "tests/src/**/systemui/screenshot/ImageExporterTest.java",
135 "tests/src/**/systemui/bouncer/data/repository/KeyguardBouncerRepositoryTest.kt",
Matthew Reynolds9b949c92024-06-17 14:00:11 +0000136 "tests/src/**/systemui/logcat/LogAccessDialogActivityTest.java",
137 "tests/src/**/systemui/media/controls/domain/pipeline/MediaDeviceManagerTest.kt",
138 "tests/src/**/systemui/media/controls/domain/pipeline/MediaSessionBasedFilterTest.kt",
139 "tests/src/**/systemui/accessibility/floatingmenu/MenuNotificationFactoryTest.java",
140 "tests/src/**/systemui/accessibility/floatingmenu/MenuViewLayerTest.java",
Matthew Reynolds9b949c92024-06-17 14:00:11 +0000141 "tests/src/**/systemui/classifier/PointerCountClassifierTest.java",
Matthew Reynolds9b949c92024-06-17 14:00:11 +0000142 "tests/src/**/systemui/accessibility/floatingmenu/RadiiAnimatorTest.java",
143 "tests/src/**/systemui/screenrecord/RecordingControllerTest.java",
144 "tests/src/**/systemui/screenshot/RequestProcessorTest.kt",
145 "tests/src/**/systemui/media/controls/domain/resume/ResumeMediaBrowserTest.kt",
Matthew Reynolds9b949c92024-06-17 14:00:11 +0000146 "tests/src/**/systemui/screenshot/scroll/ScrollCaptureClientTest.java",
147 "tests/src/**/systemui/accessibility/SecureSettingsContentObserverTest.java",
148 "tests/src/**/systemui/media/controls/ui/viewmodel/SeekBarViewModelTest.kt",
149 "tests/src/**/systemui/qs/external/TileServicesTest.java",
150 "tests/src/**/systemui/ambient/touch/TouchMonitorTest.java",
Matthew Reynolds9b949c92024-06-17 14:00:11 +0000151 "tests/src/**/systemui/accessibility/WindowMagnificationSettingsTest.java",
Matthew Reynolds9b949c92024-06-17 14:00:11 +0000152 "tests/src/**/systemui/CameraProtectionLoaderImplTest.kt",
Matthew Reynolds9b949c92024-06-17 14:00:11 +0000153 "tests/src/**/systemui/SliceBroadcastRelayHandlerTest.java",
154 "tests/src/**/systemui/SystemUIApplicationTest.kt",
155 "tests/src/**/systemui/SysUICutoutProviderTest.kt",
Matthew Reynolds9b949c92024-06-17 14:00:11 +0000156 "tests/src/**/keyguard/AdminSecondaryLockScreenControllerTest.java",
Matthew Reynolds9b949c92024-06-17 14:00:11 +0000157 "tests/src/**/keyguard/KeyguardStatusViewControllerTest.java",
Matthew Reynoldsd0ef2862024-06-07 20:09:39 +0000158 "tests/src/**/systemui/accessibility/AccessibilityButtonModeObserverTest.java",
159 "tests/src/**/systemui/accessibility/AccessibilityButtonTargetsObserverTest.java",
160 "tests/src/**/systemui/accessibility/FullscreenMagnificationControllerTest.java",
Matthew Reynolds9b949c92024-06-17 14:00:11 +0000161 "tests/src/**/systemui/accessibility/MagnificationTest.java",
Matthew Reynoldsd0ef2862024-06-07 20:09:39 +0000162 "tests/src/**/systemui/accessibility/WindowMagnificationAnimationControllerTest.java",
163 "tests/src/**/systemui/animation/FontInterpolatorTest.kt",
164 "tests/src/**/systemui/animation/TextAnimatorTest.kt",
165 "tests/src/**/systemui/animation/TextInterpolatorTest.kt",
166 "tests/src/**/systemui/animation/ActivityTransitionAnimatorTest.kt",
Matthew Reynoldsd0ef2862024-06-07 20:09:39 +0000167 "tests/src/**/systemui/animation/DialogTransitionAnimatorTest.kt",
Matthew Reynoldsd0ef2862024-06-07 20:09:39 +0000168 "tests/src/**/systemui/broadcast/BroadcastDispatcherTest.kt",
Matthew Reynoldsd0ef2862024-06-07 20:09:39 +0000169 "tests/src/**/systemui/controls/ui/ControlsActivityTest.kt",
170 "tests/src/**/systemui/controls/management/ControlsEditingActivityTest.kt",
171 "tests/src/**/systemui/controls/management/ControlsRequestDialogTest.kt",
172 "tests/src/**/systemui/controls/ui/DetailDialogTest.kt",
Matthew Reynoldsd0ef2862024-06-07 20:09:39 +0000173 "tests/src/**/systemui/keyguard/CustomizationProviderTest.kt",
Matthew Reynoldsea1d7482024-05-30 01:04:18 +0000174 "tests/src/**/systemui/globalactions/GlobalActionsColumnLayoutTest.java",
175 "tests/src/**/systemui/globalactions/GlobalActionsDialogLiteTest.java",
176 "tests/src/**/systemui/globalactions/GlobalActionsImeTest.java",
177 "tests/src/**/systemui/graphics/ImageLoaderTest.kt",
Matthew Reynolds25a19932024-05-31 19:44:38 +0000178 "tests/src/**/systemui/keyguard/CustomizationProviderTest.kt",
Matthew Reynoldsea1d7482024-05-30 01:04:18 +0000179 "tests/src/**/systemui/keyguard/KeyguardViewMediatorTest.java",
180 "tests/src/**/systemui/keyguard/LifecycleTest.java",
Matthew Reynoldsea1d7482024-05-30 01:04:18 +0000181 "tests/src/**/systemui/lifecycle/RepeatWhenAttachedTest.kt",
182 "tests/src/**/systemui/log/LogBufferTest.kt",
183 "tests/src/**/systemui/media/dialog/MediaOutputBaseDialogTest.java",
184 "tests/src/**/systemui/media/dialog/MediaOutputBroadcastDialogTest.java",
185 "tests/src/**/systemui/media/dialog/MediaOutputDialogTest.java",
186 "tests/src/**/systemui/media/controls/domain/resume/MediaResumeListenerTest.kt",
187 "tests/src/**/systemui/mediaprojection/taskswitcher/ui/TaskSwitcherNotificationCoordinatorTest.kt",
Matthew Reynolds25a19932024-05-31 19:44:38 +0000188 "tests/src/**/systemui/people/PeopleProviderTest.java",
189 "tests/src/**/systemui/people/PeopleSpaceUtilsTest.java",
190 "tests/src/**/systemui/people/widget/PeopleSpaceWidgetManagerTest.java",
191 "tests/src/**/systemui/people/PeopleTileViewHelperTest.java",
192 "tests/src/**/systemui/power/data/repository/PowerRepositoryImplTest.kt",
Matthew Reynolds25a19932024-05-31 19:44:38 +0000193 "tests/src/**/systemui/qs/tiles/DndTileTest.kt",
194 "tests/src/**/systemui/qs/tiles/DreamTileTest.java",
Matthew Reynolds25a19932024-05-31 19:44:38 +0000195 "tests/src/**/systemui/qs/QSPanelTest.kt",
Kevin Chyn31d2f512024-11-08 21:01:38 +0000196 "tests/src/**/systemui/reardisplay/RearDisplayCoreStartableTest.kt",
Matthew Reynolds25a19932024-05-31 19:44:38 +0000197 "tests/src/**/systemui/reardisplay/RearDisplayDialogControllerTest.java",
Kevin Chyn31d2f512024-11-08 21:01:38 +0000198 "tests/src/**/systemui/reardisplay/RearDisplayInnerDialogDelegateTest.kt",
Matthew Reynolds2c81f3d2024-05-15 22:13:07 +0000199 "tests/src/**/systemui/statusbar/KeyboardShortcutListSearchTest.java",
200 "tests/src/**/systemui/statusbar/KeyboardShortcutsTest.java",
Matthew Reynolds2c81f3d2024-05-15 22:13:07 +0000201 "tests/src/**/systemui/statusbar/notification/collection/NotificationEntryTest.java",
Matthew Reynolds2c81f3d2024-05-15 22:13:07 +0000202 "tests/src/**/systemui/statusbar/notification/collection/ShadeListBuilderTest.java",
Matthew Reynolds2c81f3d2024-05-15 22:13:07 +0000203 "tests/src/**/systemui/statusbar/notification/interruption/NotificationInterruptStateProviderImplTest.java",
204 "tests/src/**/systemui/statusbar/notification/interruption/NotificationInterruptStateProviderWrapperTest.kt",
205 "tests/src/**/systemui/statusbar/notification/interruption/VisualInterruptionDecisionProviderImplTest.kt",
Matthew Reynolds2c81f3d2024-05-15 22:13:07 +0000206 "tests/src/**/systemui/statusbar/notification/logging/NotificationLoggerTest.java",
207 "tests/src/**/systemui/statusbar/notification/row/ExpandableNotificationRowTest.java",
Matthew Reynolds2c81f3d2024-05-15 22:13:07 +0000208 "tests/src/**/systemui/statusbar/notification/row/NotificationContentViewTest.kt",
209 "tests/src/**/systemui/statusbar/notification/row/NotificationConversationInfoTest.java",
Matthew Reynolds2c81f3d2024-05-15 22:13:07 +0000210 "tests/src/**/systemui/statusbar/notification/row/NotificationGutsManagerWithScenesTest.kt",
Matthew Reynolds2c81f3d2024-05-15 22:13:07 +0000211 "tests/src/**/systemui/statusbar/notification/row/wrapper/NotificationTemplateViewWrapperTest.kt",
Jernej Virag7ee73ee2024-11-15 10:27:05 +0100212 "tests/src/**/systemui/statusbar/notification/row/NotificationCustomContentMemoryVerifierTest.java",
213 "tests/src/**/systemui/statusbar/notification/row/NotificationCustomContentMemoryVerifierDisabledTest.java",
Matthew Reynolds2c81f3d2024-05-15 22:13:07 +0000214 "tests/src/**/systemui/statusbar/notification/stack/NotificationStackScrollLayoutTest.java",
Matthew Reynolds2c81f3d2024-05-15 22:13:07 +0000215 "tests/src/**/systemui/statusbar/phone/CentralSurfacesImplTest.java",
216 "tests/src/**/systemui/statusbar/phone/fragment/CollapsedStatusBarFragmentTest.java",
217 "tests/src/**/systemui/statusbar/phone/PhoneStatusBarTransitionsTest.kt",
218 "tests/src/**/systemui/statusbar/phone/PhoneStatusBarViewControllerTest.kt",
Matthew Reynolds2c81f3d2024-05-15 22:13:07 +0000219 "tests/src/**/systemui/statusbar/phone/PhoneStatusBarViewTest.kt",
220 "tests/src/**/systemui/statusbar/phone/StatusBarBoundsProviderTest.kt",
221 "tests/src/**/systemui/statusbar/phone/StatusBarMoveFromCenterAnimationControllerTest.kt",
222 "tests/src/**/systemui/statusbar/pipeline/airplane/ui/viewmodel/AirplaneModeViewModelImplTest.kt",
Steve Elliott5c9d5882025-01-07 18:10:49 -0500223 "tests/src/**/systemui/statusbar/pipeline/mobile/data/repository/prod/MobileConnectionsRepositoryKairosAdapterTest.kt",
Matthew Reynolds2c81f3d2024-05-15 22:13:07 +0000224 "tests/src/**/systemui/statusbar/pipeline/mobile/data/repository/prod/MobileConnectionsRepositoryTest.kt",
225 "tests/src/**/systemui/statusbar/pipeline/mobile/ui/view/ModernStatusBarMobileViewTest.kt",
Matthew Reynolds2c81f3d2024-05-15 22:13:07 +0000226 "tests/src/**/systemui/statusbar/pipeline/wifi/ui/view/ModernStatusBarWifiViewTest.kt",
227 "tests/src/**/systemui/statusbar/policy/CallbackControllerTest.java",
228 "tests/src/**/systemui/statusbar/policy/DeviceStateRotationLockSettingControllerTest.java",
229 "tests/src/**/systemui/statusbar/policy/InflatedSmartRepliesTest.java",
230 "tests/src/**/systemui/statusbar/policy/LocationControllerImplTest.java",
231 "tests/src/**/systemui/statusbar/policy/RemoteInputViewTest.java",
232 "tests/src/**/systemui/statusbar/policy/SmartReplyViewTest.java",
Matthew Reynolds25a19932024-05-31 19:44:38 +0000233 "tests/src/**/systemui/theme/ThemeOverlayApplierTest.java",
234 "tests/src/**/systemui/touch/TouchInsetManagerTest.java",
235 "tests/src/**/systemui/util/LifecycleFragmentTest.java",
Matthew Reynolds25a19932024-05-31 19:44:38 +0000236 "tests/src/**/systemui/util/sensors/ThresholdSensorImplTest.java",
Matthew Reynolds25a19932024-05-31 19:44:38 +0000237 "tests/src/**/systemui/volume/VolumeDialogImplTest.java",
238 "tests/src/**/systemui/wallet/controller/QuickAccessWalletControllerTest.java",
239 "tests/src/**/systemui/wallet/ui/WalletScreenControllerTest.java",
Matthew Reynolds5af9275ce2024-10-22 21:20:53 +0000240 "tests/src/**/systemui/accessibility/data/repository/AccessibilityQsShortcutsRepositoryImplForDeviceTest.kt",
241 "tests/src/**/systemui/biometrics/UdfpsControllerOverlayTest.kt",
242 // TODO(b/322324387): Fails to start due to missing ScreenshotActivity
243 "tests/src/**/systemui/bouncer/ui/composable/BouncerContentTest.kt",
244 "tests/src/**/systemui/bouncer/ui/composable/PatternBouncerTest.kt",
245 "tests/src/**/systemui/clipboardoverlay/ClipboardListenerTest.java",
246 "tests/src/**/systemui/communal/data/db/CommunalDatabaseMigrationsTest.kt",
247 "tests/src/**/systemui/communal/data/db/CommunalWidgetDaoTest.kt",
Matthew Reynolds5af9275ce2024-10-22 21:20:53 +0000248 "tests/src/**/systemui/keyboard/shortcut/ui/viewmodel/ShortcutHelperViewModelTest.kt",
249 "tests/src/**/systemui/keyguard/ui/viewmodel/KeyguardBottomAreaViewModelTest.kt",
250 "tests/src/**/systemui/lifecycle/ActivatableTest.kt",
Matthew Reynolds5af9275ce2024-10-22 21:20:53 +0000251 "tests/src/**/systemui/media/dialog/MediaSwitchingControllerTest.java",
252 "tests/src/**/systemui/qs/QSImplTest.java",
253 "tests/src/**/systemui/qs/panels/ui/compose/DragAndDropTest.kt",
254 "tests/src/**/systemui/qs/panels/ui/compose/ResizingTest.kt",
Matthew Reynolds5af9275ce2024-10-22 21:20:53 +0000255 "tests/src/**/systemui/accessibility/floatingmenu/MenuAnimationControllerTest.java",
Matthew Reynolds5af9275ce2024-10-22 21:20:53 +0000256 "tests/src/**/systemui/animation/TransitionAnimatorTest.kt",
Matthew Reynolds5af9275ce2024-10-22 21:20:53 +0000257 "tests/src/**/systemui/animation/TransitionAnimatorTest.kt",
Matthew Reynolds5af9275ce2024-10-22 21:20:53 +0000258 "tests/src/**/systemui/statusbar/connectivity/NetworkControllerSignalTest.java",
Matthew Reynolds5af9275ce2024-10-22 21:20:53 +0000259 "tests/src/**/systemui/statusbar/phone/ScrimControllerTest.java",
Matthew Reynolds5af9275ce2024-10-22 21:20:53 +0000260 "tests/src/**/systemui/toast/ToastUITest.java",
261 "tests/src/**/systemui/statusbar/policy/FlashlightControllerImplTest.kt",
262 "tests/src/**/systemui/statusbar/pipeline/satellite/data/prod/DeviceBasedSatelliteRepositoryImplTest.kt",
Matthew Reynoldsbabda272024-11-12 17:59:33 +0000263 "tests/src/**/systemui/stylus/StylusUsiPowerUiTest.kt",
264 ],
265}
266
267// Files which use ExtendedMockito on the device.
268filegroup {
269 name: "SystemUI-tests-broken-robofiles-mockito-extended",
270 srcs: [
271 "tests/src/**/systemui/notetask/quickaffordance/NoteTaskQuickAffordanceConfigTest.kt",
272 "tests/src/**/systemui/notetask/shortcut/LaunchNoteTaskActivityTest.kt",
273 "tests/src/**/systemui/notetask/LaunchNotesRoleSettingsTrampolineActivityTest.kt",
274 "tests/src/**/systemui/bluetooth/qsdialog/AudioSharingDeviceItemActionInteractorTest.kt",
275 "tests/src/**/systemui/bluetooth/qsdialog/AudioSharingButtonViewModelTest.kt",
276 "tests/src/**/systemui/bluetooth/qsdialog/DeviceItemFactoryTest.kt",
277 "tests/src/**/systemui/stylus/StylusManagerTest.kt",
278 "tests/src/**/systemui/recents/OverviewProxyServiceTest.kt",
279 "tests/src/**/systemui/DisplayCutoutBaseViewTest.kt",
Evan Lairde03d1c32024-12-10 17:07:08 -0500280 "tests/src/**/systemui/statusbar/pipeline/mobile/data/repository/CarrierConfigRepositoryImplTest.kt",
Matthew Reynoldsbabda272024-11-12 17:59:33 +0000281 "tests/src/**/systemui/statusbar/policy/BatteryControllerTest.java",
282 "tests/src/**/systemui/statusbar/policy/SensitiveNotificationProtectionControllerTest.kt",
283 "tests/src/**/systemui/statusbar/KeyboardShortcutsReceiverTest.java",
284 "tests/src/**/systemui/media/controls/domain/pipeline/MediaDataProcessorTest.kt",
285 "tests/src/**/systemui/media/controls/domain/pipeline/LegacyMediaDataManagerImplTest.kt",
286 "tests/src/**/systemui/temporarydisplay/chipbar/SwipeChipbarAwayGestureHandlerTest.kt",
287 "tests/src/**/systemui/qs/tiles/HotspotTileTest.java",
Jiaming Chengc3778282024-12-27 18:50:17 +0000288 "tests/src/**/systemui/qs/tiles/dialog/InternetDialogDelegateLegacyTest.java",
Matthew Reynoldsbabda272024-11-12 17:59:33 +0000289 "tests/src/**/systemui/navigationbar/NavigationBarControllerImplTest.java",
290 "tests/src/**/systemui/wmshell/BubblesTest.java",
291 "tests/src/**/systemui/statusbar/phone/StatusBarNotificationActivityStarterTest.java",
292 "tests/src/**/systemui/statusbar/phone/KeyguardClockPositionAlgorithmTest.java",
293 "tests/src/**/systemui/shared/system/RemoteTransitionTest.java",
Jiaming Cheng2a803b22024-12-26 22:16:58 +0000294 "tests/src/**/systemui/qs/tiles/dialog/InternetDetailsContentControllerTest.java",
Jiaming Chengd5d8ca02025-01-06 23:51:29 +0000295 "tests/src/**/systemui/qs/tiles/dialog/InternetDetailsContentManagerTest.kt",
Matthew Reynoldsbabda272024-11-12 17:59:33 +0000296 "tests/src/**/systemui/qs/external/TileLifecycleManagerTest.java",
297 "tests/src/**/systemui/ScreenDecorationsTest.java",
Matthew Reynolds9eb885d2024-11-20 03:20:50 +0000298 "tests/src/**/systemui/statusbar/policy/BatteryControllerStartableTest.java",
Matthew Reynoldsbabda272024-11-12 17:59:33 +0000299 "tests/src/**/keyguard/CarrierTextManagerTest.java",
300 "tests/src/**/keyguard/KeyguardUpdateMonitorTest.java",
Matthew Reynolds4265fe62024-05-03 16:41:56 +0000301 ],
302}
303
Matthew Reynolds9eb885d2024-11-20 03:20:50 +0000304// Tests where compilation failed due to kotlin internal references.
Matthew Reynolds30f06292024-04-30 23:48:37 +0000305filegroup {
Matthew Reynolds9eb885d2024-11-20 03:20:50 +0000306 name: "SystemUI-tests-broken-robofiles-internal",
Matthew Reynolds30f06292024-04-30 23:48:37 +0000307 srcs: [
Matthew Reynolds9eb885d2024-11-20 03:20:50 +0000308 "tests/src/**/android/systemui/media/controls/ui/controller/MediaHierarchyManagerTest.kt",
309 "tests/src/**/android/systemui/statusbar/SplitShadeLockScreenOverScrollerTest.kt",
310 "tests/src/**/android/systemui/statusbar/notification/icon/IconManagerTest.kt",
311 "tests/src/**/android/systemui/notetask/NoteTaskInitializerTest.kt",
312 "tests/src/**/systemui/statusbar/policy/VariableDateViewControllerTest.kt",
313 "tests/src/**/systemui/statusbar/policy/DeviceControlsControllerImplTest.kt",
314 "tests/src/**/systemui/statusbar/pipeline/wifi/ui/viewmodel/WifiViewModelIconParameterizedTest.kt",
315 "tests/src/**/systemui/statusbar/pipeline/wifi/shared/model/WifiNetworkModelTest.kt",
316 "tests/src/**/systemui/statusbar/pipeline/shared/data/repository/ConnectivityRepositoryImplTest.kt",
317 "tests/src/**/systemui/temporarydisplay/chipbar/ChipbarCoordinatorTest.kt",
Matthew Reynolds30f06292024-04-30 23:48:37 +0000318 "tests/src/**/systemui/temporarydisplay/TemporaryViewDisplayControllerTest.kt",
Matthew Reynolds9eb885d2024-11-20 03:20:50 +0000319 "tests/src/**/systemui/statusbar/policy/WalletControllerImplTest.kt",
Matthew Reynolds30f06292024-04-30 23:48:37 +0000320 "tests/src/**/keyguard/ClockEventControllerTest.kt",
My Name89b27082024-12-18 15:19:00 -0800321 "tests/src/**/systemui/bluetooth/qsdialog/BluetoothDetailsContentManagerTest.kt",
My Name410afb32025-02-06 15:54:28 -0800322 "tests/src/**/systemui/bluetooth/qsdialog/BluetoothDetailsContentViewModelTest.kt",
323 "tests/src/**/systemui/bluetooth/qsdialog/BluetoothStateInteractorTest.kt",
Matthew Reynolds30f06292024-04-30 23:48:37 +0000324 "tests/src/**/systemui/bluetooth/qsdialog/BluetoothTileDialogDelegateTest.kt",
325 "tests/src/**/systemui/bluetooth/qsdialog/BluetoothTileDialogRepositoryTest.kt",
Matthew Reynolds9eb885d2024-11-20 03:20:50 +0000326 "tests/src/**/systemui/bluetooth/qsdialog/DeviceItemFactoryTest.kt",
Matthew Reynolds30f06292024-04-30 23:48:37 +0000327 "tests/src/**/systemui/bluetooth/qsdialog/DeviceItemInteractorTest.kt",
328 "tests/src/**/systemui/broadcast/UserBroadcastDispatcherTest.kt",
329 "tests/src/**/systemui/charging/WiredChargingRippleControllerTest.kt",
330 "tests/src/**/systemui/clipboardoverlay/ClipboardModelTest.kt",
331 "tests/src/**/systemui/controls/controller/AuxiliaryPersistenceWrapperTest.kt",
Matthew Reynolds30f06292024-04-30 23:48:37 +0000332 "tests/src/**/systemui/controls/controller/ControlsControllerImplTest.kt",
333 "tests/src/**/systemui/controls/controller/DeletionJobServiceTest.kt",
Matthew Reynolds9eb885d2024-11-20 03:20:50 +0000334 "tests/src/**/systemui/controls/management/ControlsFavoritingActivityTest.kt",
Matthew Reynolds30f06292024-04-30 23:48:37 +0000335 "tests/src/**/systemui/controls/ui/ControlsUiControllerImplTest.kt",
Matthew Reynolds30f06292024-04-30 23:48:37 +0000336 "tests/src/**/systemui/controls/ui/SelectionItemTest.kt",
337 "tests/src/**/systemui/keyguard/ui/view/layout/sections/DefaultDeviceEntrySectionTest.kt",
338 "tests/src/**/systemui/media/controls/domain/pipeline/LegacyMediaDataFilterImplTest.kt",
Matthew Reynolds9eb885d2024-11-20 03:20:50 +0000339 "tests/src/**/systemui/media/controls/domain/pipeline/LegacyMediaDataManagerImplTest.kt",
340 "tests/src/**/systemui/media/controls/ui/MediaPlayerDataTest.kt",
Matthew Reynolds30f06292024-04-30 23:48:37 +0000341 "tests/src/**/systemui/media/controls/ui/animation/AnimationBindHandlerTest.kt",
342 "tests/src/**/systemui/media/controls/ui/animation/ColorSchemeTransitionTest.kt",
343 "tests/src/**/systemui/media/controls/ui/animation/MetadataAnimationHandlerTest.kt",
344 "tests/src/**/systemui/media/controls/ui/controller/MediaCarouselControllerTest.kt",
345 "tests/src/**/systemui/media/controls/ui/controller/MediaControlPanelTest.kt",
346 "tests/src/**/systemui/media/controls/ui/controller/MediaViewControllerTest.kt",
347 "tests/src/**/systemui/media/controls/ui/drawable/SquigglyProgressTest.kt",
Matthew Reynolds30f06292024-04-30 23:48:37 +0000348 "tests/src/**/systemui/media/taptotransfer/sender/MediaTttSenderCoordinatorTest.kt",
349 "tests/src/**/systemui/navigationbar/gestural/BackPanelControllerTest.kt",
350 "tests/src/**/systemui/notetask/NoteTaskControllerTest.kt",
Matthew Reynolds30f06292024-04-30 23:48:37 +0000351 "tests/src/**/systemui/privacy/AppOpsPrivacyItemMonitorTest.kt",
352 "tests/src/**/systemui/privacy/PrivacyItemControllerTest.kt",
353 "tests/src/**/systemui/qs/external/CustomTileStatePersisterTest.kt",
354 "tests/src/**/systemui/qs/external/TileRequestDialogTest.kt",
355 "tests/src/**/systemui/qs/external/TileServiceRequestControllerTest.kt",
Matthew Reynolds9eb885d2024-11-20 03:20:50 +0000356 "tests/src/**/systemui/qs/tileimpl/QSTileViewImplTest.kt",
Matthew Reynolds30f06292024-04-30 23:48:37 +0000357 "tests/src/**/systemui/qs/tiles/AlarmTileTest.kt",
358 "tests/src/**/systemui/qs/tiles/BluetoothTileTest.kt",
Matthew Reynolds9eb885d2024-11-20 03:20:50 +0000359 "tests/src/**/systemui/statusbar/pipeline/mobile/data/repository/prod/FullMobileConnectionRepositoryTest.kt",
Steve Elliott5c9d5882025-01-07 18:10:49 -0500360 "tests/src/**/systemui/statusbar/pipeline/mobile/data/repository/prod/MobileConnectionRepositoryKairosAdapterTest.kt",
Matthew Reynolds9eb885d2024-11-20 03:20:50 +0000361 "tests/src/**/systemui/statusbar/pipeline/mobile/data/repository/prod/MobileConnectionRepositoryTest.kt",
Steve Elliott5c9d5882025-01-07 18:10:49 -0500362 "tests/src/**/systemui/statusbar/pipeline/mobile/data/repository/prod/MobileConnectionKairosAdapterTelephonySmokeTests.kt",
Matthew Reynolds9eb885d2024-11-20 03:20:50 +0000363 "tests/src/**/systemui/statusbar/pipeline/mobile/data/repository/prod/MobileConnectionTelephonySmokeTests.kt",
364 "tests/src/**/systemui/statusbar/pipeline/mobile/data/repository/MobileRepositorySwitcherTest.kt",
365 "tests/src/**/systemui/statusbar/pipeline/mobile/data/model/SystemUiCarrierConfigTest.kt",
366 "tests/src/**/systemui/statusbar/phone/fragment/MultiSourceMinAlphaControllerTest.kt",
367 "tests/src/**/systemui/statusbar/phone/FoldStateListenerTest.kt",
368 "tests/src/**/systemui/statusbar/notification/stack/ui/view/NotificationStatsLoggerTest.kt",
369 "tests/src/**/systemui/statusbar/notification/row/TextPrecomputerTest.kt",
370 "tests/src/**/systemui/statusbar/notification/row/SingleLineConversationViewBinderTest.kt",
371 "tests/src/**/systemui/statusbar/notification/row/SingleLineViewBinderTest.kt",
372 "tests/src/**/systemui/statusbar/notification/row/SingleLineViewInflaterTest.kt",
373 "tests/src/**/systemui/statusbar/notification/row/ChannelEditorDialogControllerTest.kt",
374 "tests/src/**/systemui/statusbar/notification/logging/NotificationMemoryLoggerTest.kt",
375 "tests/src/**/systemui/statusbar/notification/logging/NotificationMemoryMeterTest.kt",
376 "tests/src/**/systemui/statusbar/notification/logging/NotificationMemoryViewWalkerTest.kt",
377 "tests/src/**/systemui/statusbar/notification/collection/coordinator/ViewConfigCoordinatorTest.kt",
378 "tests/src/**/systemui/statusbar/notification/collection/coordinator/StackCoordinatorTest.kt",
379 "tests/src/**/systemui/statusbar/notification/collection/coordinator/ShadeEventCoordinatorTest.kt",
380 "tests/src/**/systemui/statusbar/notification/collection/coordinator/DataStoreCoordinatorTest.kt",
381 "tests/src/**/systemui/statusbar/notification/collection/coordinator/RowAppearanceCoordinatorTest.kt",
382 "tests/src/**/systemui/statusbar/notification/RoundableTest.kt",
383 "tests/src/**/systemui/stylus/StylusUsiPowerUiTest.kt",
384 "tests/src/**/systemui/statusbar/gesture/GenericGestureDetectorTest.kt",
385 "tests/src/**/systemui/statusbar/events/SystemStatusAnimationSchedulerImplTest.kt",
386 "tests/src/**/systemui/statusbar/connectivity/MobileStateTest.kt",
387 "tests/src/**/systemui/statusbar/commandline/CommandParserTest.kt",
388 "tests/src/**/systemui/statusbar/LockscreenShadeTransitionControllerTest.kt",
389 "tests/src/**/systemui/statusbar/LightRevealScrimTest.kt",
390 "tests/src/**/systemui/shade/transition/LargeScreenShadeInterpolatorImplTest.kt",
391 "tests/src/**/systemui/shade/ShadeExpansionStateManagerTest.kt",
392 "tests/src/**/systemui/shade/ShadeHeaderControllerTest.kt",
393 "tests/src/**/systemui/shade/NotificationsQSContainerControllerTest.kt",
Matthew Reynolds30f06292024-04-30 23:48:37 +0000394 "tests/src/**/systemui/settings/UserFileManagerImplTest.kt",
395 "tests/src/**/systemui/settings/UserTrackerImplReceiveTest.kt",
396 "tests/src/**/systemui/settings/UserTrackerImplTest.kt",
397 "tests/src/**/systemui/shade/GlanceableHubContainerControllerTest.kt",
398 "tests/src/**/systemui/shade/NotificationsQSContainerControllerLegacyTest.kt",
Matthew Reynolds9eb885d2024-11-20 03:20:50 +0000399 "tests/src/**/systemui/screenshot/ScreenshotPolicyImplTest.kt",
400 "tests/src/**/systemui/qs/tileimpl/TilesStatesTextTest.kt",
401 "tests/src/**/systemui/media/controls/domain/pipeline/MediaDataFilterImplTest.kt",
402 "tests/src/**/systemui/controls/ui/ControlViewHolderTest.kt",
403 "tests/src/**/systemui/controls/settings/ControlsSettingsDialogManagerImplTest.kt",
404 "tests/src/**/systemui/controls/controller/ControlsBindingControllerImplTest.kt",
405 "tests/src/**/systemui/bluetooth/qsdialog/BluetoothAutoOnRepositoryTest.kt",
406 "tests/src/**/systemui/media/taptotransfer/receiver/FakeMediaTttChipControllerReceiver.kt",
407 "tests/src/**/systemui/media/taptotransfer/receiver/MediaTttChipControllerReceiverTest.kt",
408 "tests/src/**/systemui/controls/management/ControlsProviderSelectorActivityTest.kt",
409 "tests/src/**/systemui/settings/DisplayTrackerImplTest.kt",
410 "tests/src/**/systemui/biometrics/ui/viewmodel/PromptViewModelTest.kt",
411 "tests/src/**/systemui/wmshell/BubblesTest.java",
Matthew Reynolds30f06292024-04-30 23:48:37 +0000412 ],
Matthew Reynolds30f06292024-04-30 23:48:37 +0000413}
414
Xiaozhen Lin53063042022-11-23 02:18:08 +0000415//Create a library to expose SystemUI's resources to other modules.
416android_library {
417 name: "SystemUI-res",
Peter Kalauskas84c5a992023-08-23 13:39:23 -0700418 use_resource_processor: true,
Xiaozhen Lin53063042022-11-23 02:18:08 +0000419 resource_dirs: [
420 "res-product",
421 "res-keyguard",
422 "res",
423 ],
424 static_libs: [
425 "SystemUISharedLib",
Hawkwood Glazier057df3a2023-06-14 20:10:21 +0000426 "SystemUICustomizationLib",
Xiaozhen Lin53063042022-11-23 02:18:08 +0000427 "SettingsLib",
428 "androidx.leanback_leanback",
429 "androidx.slice_slice-core",
430 "androidx.slice_slice-view",
431 ],
432 manifest: "AndroidManifest-res.xml",
William Xiao019e7e822024-12-12 13:53:36 -0800433 flags_packages: [
Steven Nge408b8b2025-01-10 17:06:20 +0000434 "android.app.flags-aconfig",
Caitlin Shkuratov1194e162025-03-07 22:17:27 +0000435 "com_android_systemui_flags",
William Xiao019e7e822024-12-12 13:53:36 -0800436 ],
Xiaozhen Lin53063042022-11-23 02:18:08 +0000437}
438
Peter Kalauskas9159d362025-02-11 13:35:01 -0800439filegroup {
440 name: "SystemUI-core-srcs",
Jason Monka2f2d822018-08-13 11:10:48 -0400441 srcs: [
Jason Monkae7ced22018-08-22 16:56:58 -0400442 "src/**/*.kt",
Jason Monka2f2d822018-08-13 11:10:48 -0400443 "src/**/*.java",
444 "src/**/I*.aidl",
Peter Kalauskas9159d362025-02-11 13:35:01 -0800445 ],
446 path: "src",
447 visibility: ["//visibility:private"],
448}
449
450android_library {
451 name: "SystemUI-core",
452 srcs: [
453 ":SystemUI-core-srcs",
Dave Mankoff72a50022021-11-02 20:44:54 -0400454 ":ReleaseJavaFiles",
Jordan Demeulenaere941e6132024-02-28 14:37:37 +0100455 "compose/features/src/**/*.kt",
456 "compose/facade/enabled/src/**/*.kt",
Jason Monka2f2d822018-08-13 11:10:48 -0400457 ],
Jay Aliomer97d4fc7d2021-09-23 16:59:09 -0400458 product_variables: {
459 debuggable: {
460 srcs: [":DebugJavaFiles"],
461 exclude_srcs: [":ReleaseJavaFiles"],
462 },
463 },
Colin Crossc23cde42023-06-21 11:22:11 -0700464 use_resource_processor: true,
Peter Kalauskasf01b3d82024-10-24 15:28:54 -0700465 resource_dirs: [],
Jason Monka2f2d822018-08-13 11:10:48 -0400466 static_libs: [
Peter Kalauskascd50f532024-04-02 15:41:14 -0700467 "//frameworks/libs/systemui:compilelib",
Peter Kalauskas043f4d02025-02-21 11:00:10 -0800468 "com.android.systemui.dagger-api",
469 "com.android.systemui.util.settings-api",
470 "com.android.systemui.retail-impl",
Peter Kalauskas84c5a992023-08-23 13:39:23 -0700471 "SystemUI-res",
Quang Luongc6fc5b22021-06-10 14:35:32 -0700472 "WifiTrackerLib",
Winson Chung10a9b4b2019-12-18 10:01:36 -0800473 "WindowManager-Shell",
Luca Zuccarini674ecf02023-12-20 15:51:55 +0100474 "PlatformAnimationLib",
Darrell Shi60006322023-04-06 17:58:40 +0000475 "SystemUICommon",
476 "SystemUICustomizationLib",
Darrell Shi1a21b362023-04-28 19:51:44 +0000477 "SystemUILogLib",
Jason Monka2f2d822018-08-13 11:10:48 -0400478 "SystemUIPluginLib",
479 "SystemUISharedLib",
Steve Elliott4c432012024-04-15 11:41:14 -0400480 "SystemUI-shared-utils",
Jerry Chang919d1d22020-07-16 12:31:24 +0800481 "SystemUI-statsd",
Jason Monka2f2d822018-08-13 11:10:48 -0400482 "SettingsLib",
Ned Burns6d480c32023-08-28 12:12:19 -0400483 "com_android_systemui_flags_lib",
Peter Kalauskascd50f532024-04-02 15:41:14 -0700484 "//frameworks/libs/systemui:com_android_systemui_shared_flags_lib",
Alejandro Nijamkin38859642022-06-27 14:18:17 -0700485 "androidx.core_core-ktx",
Fabian Kozynski713b7272020-03-03 18:35:52 -0500486 "androidx.viewpager2_viewpager2",
Jason Monka2f2d822018-08-13 11:10:48 -0400487 "androidx.legacy_legacy-support-v4",
488 "androidx.recyclerview_recyclerview",
489 "androidx.preference_preference",
490 "androidx.appcompat_appcompat",
Mark Renoufe2395012020-12-16 01:05:12 -0500491 "androidx.concurrent_concurrent-futures",
Ioana Alexandru88ac3262024-07-16 15:53:06 +0200492 "androidx.concurrent_concurrent-futures-ktx",
Jason Monka2f2d822018-08-13 11:10:48 -0400493 "androidx.mediarouter_mediarouter",
494 "androidx.palette_palette",
495 "androidx.legacy_legacy-preference-v14",
496 "androidx.leanback_leanback",
497 "androidx.slice_slice-core",
498 "androidx.slice_slice-view",
499 "androidx.slice_slice-builders",
500 "androidx.arch.core_core-runtime",
Bryce Lee436e42c2022-01-24 14:53:49 -0800501 "androidx.lifecycle_lifecycle-common-java8",
Jason Monka2f2d822018-08-13 11:10:48 -0400502 "androidx.lifecycle_lifecycle-extensions",
Jordan Demeulenaere8a169ff2022-07-13 10:42:10 +0200503 "androidx.lifecycle_lifecycle-runtime-ktx",
Joshua Tsujib1a796b2019-01-16 15:43:12 -0800504 "androidx.dynamicanimation_dynamicanimation",
Steve Elliott300b48f2019-05-29 14:13:50 -0400505 "androidx-constraintlayout_constraintlayout",
Miranda Kepharte1a22b922020-12-16 14:01:12 -0500506 "androidx.exifinterface_exifinterface",
Coco Duand8ef1812023-10-19 21:35:01 +0000507 "androidx.room_room-runtime",
508 "androidx.room_room-ktx",
helencheuk44ae2d82024-06-28 19:57:34 +0100509 "androidx.datastore_datastore-preferences",
Beth Thibodeau43e80872024-10-28 19:19:14 -0500510 "androidx.media3.media3-common",
511 "androidx.media3.media3-session",
Lucas Dupin00c1a602022-02-16 16:40:36 -0800512 "com.google.android.material_material",
Nicolo' Mazzucatoadc02502023-11-30 16:09:19 +0000513 "device_state_flags_lib",
Steve Elliotta7d72052020-12-16 23:04:19 -0500514 "kotlinx_coroutines_android",
515 "kotlinx_coroutines",
Peter Kalauskascd50f532024-04-02 15:41:14 -0700516 "//frameworks/libs/systemui:iconloader_base",
Jason Monka2f2d822018-08-13 11:10:48 -0400517 "SystemUI-tags",
518 "SystemUI-proto",
Lucas Dupine37369f2021-08-31 00:19:39 +0000519 "monet",
Lucas Dupind83b4ee2023-07-08 11:05:47 -0700520 "libmonet",
Dave Mankoffdffcc472020-07-08 15:25:16 -0400521 "dagger2",
Brett Chabotfc8675a2023-03-27 10:33:10 -0700522 "jsr305",
Andy Wickham64e34102021-03-07 16:02:01 -0800523 "jsr330",
Beverly46817e12021-06-22 16:29:52 -0400524 "lottie",
Michal Brzezinskie78e5202024-07-19 15:27:00 +0100525 "lottie_compose",
Lucas Silva0bfb4052022-09-20 23:32:02 -0400526 "LowLightDreamLib",
Stefan Andonian2de9db72024-03-08 04:43:38 +0000527 "TraceurCommon",
Stefan Andonian493ff8b2024-07-11 23:41:32 +0000528 "Traceur-res",
Peter Kalauskascd50f532024-04-02 15:41:14 -0700529 "//frameworks/libs/systemui:motion_tool_lib",
helencheukd571ed82024-07-19 13:03:02 +0100530 "//frameworks/libs/systemui:contextualeducationlib",
Valentin Iftimea08bd962023-12-11 19:22:51 +0100531 "notification_flags_lib",
Jordan Demeulenaere941e6132024-02-28 14:37:37 +0100532 "PlatformComposeCore",
533 "PlatformComposeSceneTransitionLayout",
534 "androidx.compose.runtime_runtime",
535 "androidx.compose.material3_material3",
536 "androidx.compose.material_material-icons-extended",
537 "androidx.activity_activity-compose",
538 "androidx.compose.animation_animation-graphics",
Michal Brzezinskia15c5242024-05-24 18:21:20 +0100539 "androidx.lifecycle_lifecycle-viewmodel-compose",
Steve Elliott8e2558f72024-07-14 22:32:54 -0400540 "kairos",
Nicolo' Mazzucato1d1539912025-03-07 16:21:59 +0000541 "displaylib",
Shawn Lin4998c5a2024-12-29 06:40:22 +0000542 "aconfig_settings_flags_lib",
Jason Monka2f2d822018-08-13 11:10:48 -0400543 ],
Nikolas Havrikovc70cb072023-09-08 15:06:35 +0200544 libs: [
545 "keepanno-annotations",
546 ],
Jason Monka2f2d822018-08-13 11:10:48 -0400547 manifest: "AndroidManifest.xml",
548
Coco Duand8ef1812023-10-19 21:35:01 +0000549 javacflags: [
550 "-Adagger.fastInit=enabled",
Dave Mankofff69c3422024-01-26 20:59:11 +0000551 "-Adagger.explicitBindingConflictsWithInject=ERROR",
552 "-Adagger.strictMultibindingValidation=enabled",
Dave Mankoff05c134c2025-01-10 18:21:36 +0000553 "-Adagger.useBindingGraphFix=ENABLED",
Coco Duand8ef1812023-10-19 21:35:01 +0000554 "-Aroom.schemaLocation=frameworks/base/packages/SystemUI/schemas",
555 ],
Julia Tuttlecedce772024-12-19 11:38:00 -0500556 kotlincflags: [
557 "-Xjvm-default=all",
558 "-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi",
Jordan Demeulenaere83718af2025-02-05 13:43:09 +0100559 "-P plugin:androidx.compose.compiler.plugins.kotlin:sourceInformation=true",
Julia Tuttlecedce772024-12-19 11:38:00 -0500560 ],
Jason Monk73e8ffc2018-12-06 14:45:19 -0500561
Coco Duand8ef1812023-10-19 21:35:01 +0000562 plugins: [
563 "androidx.room_room-compiler-plugin",
564 "dagger2-compiler",
565 ],
Jernej Viragbb4ff3f2022-03-10 17:52:11 +0000566
567 lint: {
568 extra_check_modules: ["SystemUILintChecker"],
Michal Brzezinskid552d1f2023-09-29 15:00:19 +0100569 warning_checks: ["MissingApacheLicenseDetector"],
Peter Kalauskasde4b6e12024-04-18 17:22:49 -0700570 baseline_filename: "lint-baseline.xml",
Jernej Viragbb4ff3f2022-03-10 17:52:11 +0000571 },
Jason Monka2f2d822018-08-13 11:10:48 -0400572}
573
Jernej Virag7ee73ee2024-11-15 10:27:05 +0100574platform_compat_config {
575 name: "SystemUI-core-compat-config",
576 src: ":SystemUI-core",
577}
578
Tadashi G. Takaokaa6572dc2019-09-17 15:18:53 +0900579filegroup {
Fabian Kozynskid389df52022-01-06 10:52:51 -0500580 name: "AAA-src",
581 srcs: ["tests/src/com/android/AAAPlusPlusVerifySysuiRequiredTestPropertiesTest.java"],
582 path: "tests/src",
583}
584
585filegroup {
Steve Elliottb42fe7c2024-03-28 14:00:20 -0400586 name: "kosmos-src",
587 srcs: ["tests/utils/kosmos/src/**/*.kt"],
588 path: "tests/utils/kosmos",
589}
590
591java_library {
592 name: "kosmos",
593 host_supported: true,
594 srcs: [":kosmos-src"],
595 static_libs: [
596 "kotlin-reflect",
597 "kotlin-stdlib",
598 ],
599}
600
601filegroup {
Tadashi G. Takaokaa6572dc2019-09-17 15:18:53 +0900602 name: "SystemUI-tests-utils",
603 srcs: [
Jordan Demeulenaeref7fed3c2022-07-28 18:06:49 +0200604 "tests/utils/src/**/*.java",
605 "tests/utils/src/**/*.kt",
Steve Elliottb42fe7c2024-03-28 14:00:20 -0400606 ":kosmos-src",
Dave Mankoffb4935a22021-06-01 15:12:15 -0400607 ],
Steve Elliottb42fe7c2024-03-28 14:00:20 -0400608 path: "tests/utils",
Tadashi G. Takaokaa6572dc2019-09-17 15:18:53 +0900609}
610
Kevin Liud3793232023-02-09 20:37:27 +0000611filegroup {
Alex Stetson36ae22d2024-07-25 16:11:47 -0700612 name: "SystemUI-robotest-utils",
613 srcs: [
614 "tests/robolectric/src/com/android/systemui/testutils/**/*.kt",
615 "tests/robolectric/src/com/android/systemui/testutils/**/*.java",
616 ],
617 path: "tests/robolectric/src/com/android/systemui/testutils",
618}
619
620filegroup {
David Saffb2319612023-10-19 14:14:16 -0400621 name: "SystemUI-tests-multivalent",
622 srcs: [
623 "multivalentTests/src/**/*.kt",
Rex Hoffman1477e0f2023-11-28 17:18:28 +0000624 "multivalentTests/src/**/*.java",
David Saffb2319612023-10-19 14:14:16 -0400625 ],
626 path: "multivalentTests/src",
627}
628
Bryce Leea5b08082021-10-06 11:34:56 -0700629java_library {
630 name: "SystemUI-tests-concurrency",
631 srcs: [
632 "src/com/android/systemui/util/concurrency/DelayableExecutor.java",
633 "src/com/android/systemui/util/time/SystemClock.java",
Jordan Demeulenaeref7fed3c2022-07-28 18:06:49 +0200634 "tests/utils/src/com/android/systemui/util/concurrency/FakeExecutor.java",
635 "tests/utils/src/com/android/systemui/util/time/FakeSystemClock.java",
Bryce Leea5b08082021-10-06 11:34:56 -0700636 ],
637 jarjar_rules: ":jarjar-rules-shared",
638}
639
Jason Monkae7ced22018-08-22 16:56:58 -0400640android_library {
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000641 name: "SystemUI-tests-base",
Peter Kalauskas84c5a992023-08-23 13:39:23 -0700642 use_resource_processor: true,
Sunny Goyaleb18d392020-02-07 16:48:14 -0800643 manifest: "tests/AndroidManifest-base.xml",
Jason Monkae7ced22018-08-22 16:56:58 -0400644 resource_dirs: [
645 "tests/res",
Jason Monkae7ced22018-08-22 16:56:58 -0400646 ],
Luca Zuccarini23b4cb22024-02-20 16:55:21 +0000647 asset_dirs: [
648 "tests/goldens",
Darrell Shi4986ebf2024-07-02 12:59:40 -0700649 "schemas",
Luca Zuccarini23b4cb22024-02-20 16:55:21 +0000650 ],
Jason Monkae7ced22018-08-22 16:56:58 -0400651 static_libs: [
Peter Kalauskas84c5a992023-08-23 13:39:23 -0700652 "SystemUI-res",
Quang Luongc6fc5b22021-06-10 14:35:32 -0700653 "WifiTrackerLib",
Luca Zuccarini674ecf02023-12-20 15:51:55 +0100654 "PlatformAnimationLib",
Mike Schneiderc776b932024-04-24 13:29:43 +0200655 "PlatformMotionTestingCompose",
656 "ScreenshotComposeUtilsLib",
Jason Monkae7ced22018-08-22 16:56:58 -0400657 "SystemUIPluginLib",
658 "SystemUISharedLib",
Hawkwood Glazierb8eef872022-11-11 17:56:14 +0000659 "SystemUICustomizationLib",
Ioana Alexandru7678de9e2023-12-04 21:07:23 +0100660 "SystemUICustomizationTestUtils",
Steve Elliott4c432012024-04-15 11:41:14 -0400661 "SystemUI-shared-utils",
Hyunyoung Song3d89c932020-04-11 13:31:06 -0700662 "SystemUI-statsd",
Jason Monkae7ced22018-08-22 16:56:58 -0400663 "SettingsLib",
Ned Burns6d480c32023-08-28 12:12:19 -0400664 "com_android_systemui_flags_lib",
Peter Kalauskascd50f532024-04-02 15:41:14 -0700665 "//frameworks/libs/systemui:com_android_systemui_shared_flags_lib",
Jeff DeCew91a53962023-10-06 15:40:23 +0000666 "flag-junit-base",
Jeff DeCewcaef3b32023-11-13 03:13:13 +0000667 "platform-parametric-runner-lib",
Fabian Kozynski713b7272020-03-03 18:35:52 -0500668 "androidx.viewpager2_viewpager2",
Jason Monkae7ced22018-08-22 16:56:58 -0400669 "androidx.legacy_legacy-support-v4",
670 "androidx.recyclerview_recyclerview",
671 "androidx.preference_preference",
672 "androidx.appcompat_appcompat",
Mark Renoufe2395012020-12-16 01:05:12 -0500673 "androidx.concurrent_concurrent-futures",
Jason Monkae7ced22018-08-22 16:56:58 -0400674 "androidx.mediarouter_mediarouter",
675 "androidx.palette_palette",
676 "androidx.legacy_legacy-preference-v14",
677 "androidx.leanback_leanback",
678 "androidx.slice_slice-core",
679 "androidx.slice_slice-view",
680 "androidx.slice_slice-builders",
681 "androidx.arch.core_core-runtime",
Bryce Lee436e42c2022-01-24 14:53:49 -0800682 "androidx.lifecycle_lifecycle-common-java8",
Jason Monkae7ced22018-08-22 16:56:58 -0400683 "androidx.lifecycle_lifecycle-extensions",
Jordan Demeulenaere8a169ff2022-07-13 10:42:10 +0200684 "androidx.lifecycle_lifecycle-runtime-ktx",
Joshua Tsujib1a796b2019-01-16 15:43:12 -0800685 "androidx.dynamicanimation_dynamicanimation",
Steve Elliott300b48f2019-05-29 14:13:50 -0400686 "androidx-constraintlayout_constraintlayout",
Miranda Kepharte1a22b922020-12-16 14:01:12 -0500687 "androidx.exifinterface_exifinterface",
Coco Duand8ef1812023-10-19 21:35:01 +0000688 "androidx.room_room-runtime",
Darrell Shi4986ebf2024-07-02 12:59:40 -0700689 "androidx.room_room-testing",
Coco Duand8ef1812023-10-19 21:35:01 +0000690 "androidx.room_room-ktx",
helencheuk44ae2d82024-06-28 19:57:34 +0100691 "androidx.datastore_datastore-preferences",
Beth Thibodeau43e80872024-10-28 19:19:14 -0500692 "androidx.media3.media3-common",
693 "androidx.media3.media3-session",
Nicolo' Mazzucatoadc02502023-11-30 16:09:19 +0000694 "device_state_flags_lib",
Pinyao Tingee191b12020-04-29 18:35:39 -0700695 "kotlinx-coroutines-android",
696 "kotlinx-coroutines-core",
Alejandro Nijamkinc738a8c2022-07-25 13:30:41 -0700697 "kotlinx_coroutines_test",
Chandru5a5e5332022-08-19 14:25:31 +0000698 "kotlin-reflect",
Peter Kalauskascd50f532024-04-02 15:41:14 -0700699 "//frameworks/libs/systemui:iconloader_base",
Jason Monkae7ced22018-08-22 16:56:58 -0400700 "SystemUI-tags",
701 "SystemUI-proto",
702 "metrics-helper-lib",
Tadashi G. Takaokac7340fb2020-10-20 17:50:13 +0900703 "hamcrest-library",
704 "androidx.test.rules",
Jason Monkae7ced22018-08-22 16:56:58 -0400705 "testables",
Krzysztof KosiƄski60b70872023-10-06 20:11:39 +0000706 "truth",
Lucas Dupine37369f2021-08-31 00:19:39 +0000707 "monet",
Lucas Dupind83b4ee2023-07-08 11:05:47 -0700708 "libmonet",
Michal Brzezinskie78e5202024-07-19 15:27:00 +0100709 "lottie_compose",
Dave Mankoffdffcc472020-07-08 15:25:16 -0400710 "dagger2",
Bill Lina17858d12020-07-14 10:30:10 +0800711 "jsr330",
712 "WindowManager-Shell",
Lucas Silva0bfb4052022-09-20 23:32:02 -0400713 "LowLightDreamLib",
Peter Kalauskascd50f532024-04-02 15:41:14 -0700714 "//frameworks/libs/systemui:motion_tool_lib",
helencheukd571ed82024-07-19 13:03:02 +0100715 "//frameworks/libs/systemui:contextualeducationlib",
Colin Cross64ee6e22024-03-25 15:21:29 -0700716 "androidx.core_core-animation-testing",
FabiĂĄn Kozynskic7280eb2024-07-29 13:27:32 -0400717 "androidx.lifecycle_lifecycle-runtime-testing",
Jordan Demeulenaere54a0fae2023-01-04 11:36:46 +0100718 "androidx.compose.ui_ui",
Riley Jones84156fc2023-09-06 22:27:37 +0000719 "flag-junit",
Jeff Sharkey0b319172024-01-25 10:58:48 -0700720 "ravenwood-junit",
Riley Jones84156fc2023-09-06 22:27:37 +0000721 "platform-test-annotations",
Valentin Iftimea08bd962023-12-11 19:22:51 +0100722 "notification_flags_lib",
Jordan Demeulenaere941e6132024-02-28 14:37:37 +0100723 "PlatformComposeCore",
724 "PlatformComposeSceneTransitionLayout",
Johannes Gallmann52925572024-09-09 13:33:46 +0000725 "PlatformComposeSceneTransitionLayoutTestsUtils",
Jordan Demeulenaere941e6132024-02-28 14:37:37 +0100726 "androidx.compose.runtime_runtime",
727 "androidx.compose.material3_material3",
728 "androidx.compose.material_material-icons-extended",
729 "androidx.activity_activity-compose",
730 "androidx.compose.animation_animation-graphics",
Michal Brzezinskia15c5242024-05-24 18:21:20 +0100731 "androidx.lifecycle_lifecycle-viewmodel-compose",
Stefan Andonian2de9db72024-03-08 04:43:38 +0000732 "TraceurCommon",
Stefan Andonian493ff8b2024-07-11 23:41:32 +0000733 "Traceur-res",
Shawn Lin4998c5a2024-12-29 06:40:22 +0000734 "aconfig_settings_flags_lib",
Steve Elliott4dede632025-01-29 15:41:08 -0500735 "kairos",
Nicolo' Mazzucato1d1539912025-03-07 16:21:59 +0000736 "displaylib",
Jason Monkae7ced22018-08-22 16:56:58 -0400737 ],
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000738}
739
740android_library {
741 name: "SystemUI-tests",
Peter Kalauskas84c5a992023-08-23 13:39:23 -0700742 use_resource_processor: true,
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000743 manifest: "tests/AndroidManifest-base.xml",
Colin Cross164493b2024-03-05 13:32:44 -0800744 resource_dirs: [],
Dave Mankoff028ec3f2025-01-17 20:55:46 +0000745
746 kotlin_lang_version: "1.9",
747
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000748 additional_manifests: ["tests/AndroidManifest.xml"],
749 srcs: [
750 "tests/src/**/*.kt",
751 "tests/src/**/*.java",
Peter Kalauskas9159d362025-02-11 13:35:01 -0800752 ":SystemUI-core-srcs",
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000753 ":ReleaseJavaFiles",
David Saffb2319612023-10-19 14:14:16 -0400754 ":SystemUI-tests-multivalent",
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000755 ":SystemUI-tests-utils",
Jordan Demeulenaere941e6132024-02-28 14:37:37 +0100756 "compose/features/src/**/*.kt",
757 "compose/facade/enabled/src/**/*.kt",
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000758 ],
759 static_libs: [
Peter Kalauskascd50f532024-04-02 15:41:14 -0700760 "//frameworks/libs/systemui:compilelib",
Peter Kalauskas043f4d02025-02-21 11:00:10 -0800761 "com.android.systemui.dagger-api",
762 "com.android.systemui.util.settings-api",
763 "com.android.systemui.retail-impl",
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000764 "SystemUI-tests-base",
765 "androidx.test.uiautomator_uiautomator",
Jeff DeCewa415d0e2023-08-02 11:30:09 -0400766 "androidx.core_core-animation-testing",
FabiĂĄn Kozynskic7280eb2024-07-29 13:27:32 -0400767 "androidx.lifecycle_lifecycle-runtime-testing",
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000768 "mockito-target-extended-minus-junit4",
Mark Renoufa6225202024-05-10 12:55:48 -0400769 "mockito-kotlin-nodeps",
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000770 "androidx.test.ext.junit",
Steven Ng45b74c62023-03-23 11:23:02 +0000771 "androidx.test.ext.truth",
Colin Cross852cd142023-08-11 16:53:55 -0700772 "kotlin-test",
Luca Zuccarini23b4cb22024-02-20 16:55:21 +0000773 "platform-screenshot-diff-core",
774 "PlatformMotionTesting",
Ioana Alexandru47ddbb72023-12-15 21:24:47 +0100775 "SystemUICustomizationTestUtils",
Jordan Demeulenaere941e6132024-02-28 14:37:37 +0100776 "androidx.compose.runtime_runtime",
Steve Elliott8e2558f72024-07-14 22:32:54 -0400777 "kairos",
Steve Elliottb42fe7c2024-03-28 14:00:20 -0400778 "kosmos",
Nicolo' Mazzucato1d1539912025-03-07 16:21:59 +0000779 "displaylib",
Luca Zuccarini7f0815c2024-10-08 14:02:55 +0000780 "testables",
Fangqiu Sub58fa972023-12-19 18:14:55 +0000781 "androidx.test.rules",
Jernej Virag7ee73ee2024-11-15 10:27:05 +0100782 "platform-compat-test-rules",
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000783 ],
Jason Monkae7ced22018-08-22 16:56:58 -0400784 libs: [
Jihoon Kange07d73c2024-08-30 00:29:12 +0000785 "android.test.runner.stubs.system",
786 "android.test.base.stubs.system",
787 "android.test.mock.stubs.system",
Nikolas Havrikovc70cb072023-09-08 15:06:35 +0200788 "keepanno-annotations",
Jason Monkae7ced22018-08-22 16:56:58 -0400789 ],
David Safffffffd02024-07-10 20:23:57 +0000790 kotlincflags: [
791 "-Xjvm-default=all",
792 // TODO(b/352363800): Why do we need this?
793 "-J-Xmx8192M",
Julia Tuttlecedce772024-12-19 11:38:00 -0500794 "-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi",
David Safffffffd02024-07-10 20:23:57 +0000795 ],
Dave Mankoff05c134c2025-01-10 18:21:36 +0000796 javacflags: [
797 "-Adagger.useBindingGraphFix=ENABLED",
798 ],
799
Jason Monkae7ced22018-08-22 16:56:58 -0400800 aaptflags: [
801 "--extra-packages",
Hyunyoung Song8f9d34c2019-08-30 14:47:43 -0700802 "com.android.systemui",
Jason Monkae7ced22018-08-22 16:56:58 -0400803 ],
Coco Duand8ef1812023-10-19 21:35:01 +0000804 plugins: [
805 "androidx.room_room-compiler-plugin",
806 "dagger2-compiler",
807 ],
Cole Faust17f1e722022-08-16 15:30:26 -0700808 lint: {
809 test: true,
Jeff Chen194a13f2023-03-16 15:40:05 -0700810 extra_check_modules: ["SystemUILintChecker"],
Cole Faust17f1e722022-08-16 15:30:26 -0700811 },
Jason Monkae7ced22018-08-22 16:56:58 -0400812}
813
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000814android_app {
815 name: "SystemUIRobo-stub",
Jeff Sharkey0b319172024-01-25 10:58:48 -0700816 // SystemUiRavenTests references the .aapt.srcjar
817 use_resource_processor: false,
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000818 defaults: [
819 "platform_app_defaults",
Jared Duke5bf6fb32023-02-23 14:27:47 -0800820 "SystemUI_optimized_defaults",
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000821 ],
822 manifest: "tests/AndroidManifest-base.xml",
Kevin Liud3793232023-02-09 20:37:27 +0000823
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000824 static_libs: [
Peter Kalauskascd50f532024-04-02 15:41:14 -0700825 "//frameworks/libs/systemui:compilelib",
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000826 "SystemUI-tests-base",
Jordan Demeulenaere941e6132024-02-28 14:37:37 +0100827 "androidx.compose.runtime_runtime",
Kholoud Mohamedb9b19b12024-05-08 19:11:37 +0000828 "SystemUI-core",
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000829 ],
Nikolas Havrikovc70cb072023-09-08 15:06:35 +0200830 libs: [
831 "keepanno-annotations",
832 ],
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000833 aaptflags: [
834 "--extra-packages",
835 "com.android.systemui",
836 ],
837 dont_merge_manifests: true,
838 platform_apis: true,
839 system_ext_specific: true,
840 certificate: "platform",
841 privileged: true,
842 resource_dirs: [],
Kevin Liud3793232023-02-09 20:37:27 +0000843 kotlincflags: ["-Xjvm-default=all"],
Kevin Liu092b8212023-02-15 05:42:34 +0000844 optimize: {
Jared Dukee3db7a82024-09-17 21:34:14 +0000845 optimize: false,
Kevin Liu092b8212023-02-15 05:42:34 +0000846 shrink_resources: false,
Lucas Silva496d2d62024-06-13 13:51:20 +0000847 optimized_shrink_resources: false,
Kevin Liu092b8212023-02-15 05:42:34 +0000848 proguard_flags_files: ["proguard.flags"],
849 },
Kevin Liud3793232023-02-09 20:37:27 +0000850
851 plugins: ["dagger2-compiler"],
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000852}
853
Matthew Reynolds30f06292024-04-30 23:48:37 +0000854java_library {
855 name: "RoboTestLibraries",
856 static_libs: [
857 "dagger2",
858 "androidx.test.uiautomator_uiautomator",
859 "androidx.core_core-animation-testing",
860 "androidx.test.ext.junit",
Matthew Reynoldse6599062025-02-10 23:05:03 +0000861 "inline-mockito5-robolectric-prebuilt",
Mark Renoufa6225202024-05-10 12:55:48 -0400862 "mockito-kotlin-nodeps",
Matthew Reynolds30f06292024-04-30 23:48:37 +0000863 "platform-parametric-runner-lib",
864 "SystemUICustomizationTestUtils",
865 "kotlin-test",
866 "kosmos",
867 ],
868}
869
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000870android_robolectric_test {
871 name: "SystemUiRoboTests",
872 srcs: [
873 "tests/robolectric/src/**/*.kt",
874 "tests/robolectric/src/**/*.java",
Kevin Liud3793232023-02-09 20:37:27 +0000875 ":SystemUI-tests-utils",
David Saffb2319612023-10-19 14:14:16 -0400876 ":SystemUI-tests-multivalent",
Kevin Liud3793232023-02-09 20:37:27 +0000877 ],
878 static_libs: [
Matthew Reynolds30f06292024-04-30 23:48:37 +0000879 "RoboTestLibraries",
Alejandro Nijamkin4241d872024-08-18 15:57:14 -0700880 "androidx.compose.runtime_runtime",
Matthew Reynolds30f06292024-04-30 23:48:37 +0000881 ],
882 libs: [
Matthew Reynolds0fbab862024-10-15 04:42:55 +0000883 "android.test.runner.impl",
884 "android.test.base.impl",
885 "android.test.mock.impl",
Matthew Reynolds30f06292024-04-30 23:48:37 +0000886 "truth",
Matthew Reynolds5af9275ce2024-10-22 21:20:53 +0000887 "androidx.test.ext.truth",
Matthew Reynolds30f06292024-04-30 23:48:37 +0000888 ],
889
Matthew Reynolds30f06292024-04-30 23:48:37 +0000890 instrumentation_for: "SystemUIRobo-stub",
891 java_resource_dirs: ["tests/robolectric/config"],
892 plugins: [
893 "dagger2-compiler",
894 ],
Matthew Reynolds029f1b32024-05-23 21:13:19 +0000895 strict_mode: false,
Matthew Reynolds30f06292024-04-30 23:48:37 +0000896}
897
898// in-place tests which use Robolectric in the tests directory
899// instead of multivalentTests
900android_robolectric_test {
901 name: "SystemUiRoboTestsInplace",
902 srcs: [
903 "tests/robolectric/src/**/*.kt",
904 "tests/robolectric/src/**/*.java",
905 ":SystemUI-tests-utils",
906 ":SystemUI-tests-multivalent",
907 ":SystemUI-tests-robofiles",
908 ],
909 exclude_srcs: [
Matthew Reynoldsbabda272024-11-12 17:59:33 +0000910 ":SystemUI-tests-broken-robofiles-mockito-extended",
Matthew Reynolds9eb885d2024-11-20 03:20:50 +0000911 ":SystemUI-tests-broken-robofiles-internal",
Matthew Reynolds4265fe62024-05-03 16:41:56 +0000912 ":SystemUI-tests-broken-robofiles-run",
Matthew Reynolds30f06292024-04-30 23:48:37 +0000913 ],
914 static_libs: [
915 "RoboTestLibraries",
Alejandro Nijamkin4241d872024-08-18 15:57:14 -0700916 "androidx.compose.runtime_runtime",
Jernej Virag7ee73ee2024-11-15 10:27:05 +0100917 "platform-compat-test-rules",
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000918 ],
919 libs: [
Matthew Reynolds0fbab862024-10-15 04:42:55 +0000920 "android.test.runner.impl",
921 "android.test.base.impl",
922 "android.test.mock.impl",
Krzysztof KosiƄski60b70872023-10-06 20:11:39 +0000923 "truth",
Matthew Reynolds5af9275ce2024-10-22 21:20:53 +0000924 "androidx.test.ext.truth",
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000925 ],
Kevin Liud3793232023-02-09 20:37:27 +0000926
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000927 instrumentation_for: "SystemUIRobo-stub",
928 java_resource_dirs: ["tests/robolectric/config"],
Beverly56039f52023-11-13 21:56:33 +0000929 plugins: [
930 "dagger2-compiler",
931 ],
Matthew Reynolds029f1b32024-05-23 21:13:19 +0000932 strict_mode: false,
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000933}
934
Makoto Onuki40e43092024-08-23 19:02:25 +0000935android_ravenwood_test {
936 name: "SystemUiRavenTests",
937 srcs: [
938 ":SystemUI-tests-utils",
939 ":SystemUI-tests-multivalent",
940 // TODO(b/294256649): pivot to using {.aapt.jar} and re-enable
941 // use_resource_processor: true when better supported by soong
942 ":SystemUIRobo-stub{.aapt.srcjar}",
943 ],
944 static_libs: [
945 "SystemUI-core",
946 "SystemUI-res",
947 "SystemUI-tests-base",
948 "androidx.test.uiautomator_uiautomator",
949 "androidx.core_core-animation-testing",
950 "androidx.test.ext.junit",
951 "kosmos",
952 "kotlin-test",
953 "mockito-kotlin-nodeps",
954 "androidx.compose.runtime_runtime",
955 ],
956 libs: [
Matthew Reynolds0fbab862024-10-15 04:42:55 +0000957 "android.test.runner.impl",
958 "android.test.base.impl",
959 "android.test.mock.impl",
Makoto Onuki40e43092024-08-23 19:02:25 +0000960 ],
961 auto_gen_config: true,
John Wu361957a2024-12-19 15:16:36 -0800962 team: "trendy_team_ravenwood",
Makoto Onuki40e43092024-08-23 19:02:25 +0000963 plugins: [
964 "dagger2-compiler",
965 ],
966}
Jeff Sharkey0b319172024-01-25 10:58:48 -0700967
Jared Duke84e94b32022-08-05 13:46:38 -0700968// Opt-out config for optimizing the SystemUI target using R8.
969// Disabled via `export SYSTEMUI_OPTIMIZE_JAVA=false`, or explicitly in Make via
970// `SYSTEMUI_OPTIMIZE_JAVA := false`.
Jared Duke9dfa77b2021-12-22 13:31:06 -0800971soong_config_module_type {
972 name: "systemui_optimized_java_defaults",
973 module_type: "java_defaults",
974 config_namespace: "ANDROID",
975 bool_variables: ["SYSTEMUI_OPTIMIZE_JAVA"],
976 properties: ["optimize"],
Jared Duke2fee7402021-10-18 14:35:04 -0700977}
978
Jared Duke9dfa77b2021-12-22 13:31:06 -0800979systemui_optimized_java_defaults {
Jared Duke5bf6fb32023-02-23 14:27:47 -0800980 name: "SystemUI_optimized_defaults",
Jared Duke2fee7402021-10-18 14:35:04 -0700981 soong_config_variables: {
Jared Duke9dfa77b2021-12-22 13:31:06 -0800982 SYSTEMUI_OPTIMIZE_JAVA: {
Jared Duke2fee7402021-10-18 14:35:04 -0700983 optimize: {
984 enabled: true,
985 optimize: true,
986 shrink: true,
Jared Duke0668af22023-02-23 14:43:31 -0800987 shrink_resources: true,
Lucas Silva496d2d62024-06-13 13:51:20 +0000988 optimized_shrink_resources: true,
Jared Duke5ecfe872022-09-08 09:25:30 -0700989 ignore_warnings: false,
Jared Dukef0904172022-06-07 18:01:06 +0000990 proguard_compatibility: false,
Jared Duke2fee7402021-10-18 14:35:04 -0700991 },
992 conditions_default: {
993 optimize: {
Jared Duke5ecfe872022-09-08 09:25:30 -0700994 ignore_warnings: false,
Jared Dukef0904172022-06-07 18:01:06 +0000995 proguard_compatibility: false,
Jared Duke2fee7402021-10-18 14:35:04 -0700996 },
997 },
998 },
999 },
1000}
1001
Jason Monka2f2d822018-08-13 11:10:48 -04001002android_app {
1003 name: "SystemUI",
Jared Duke2fee7402021-10-18 14:35:04 -07001004 defaults: [
1005 "platform_app_defaults",
Jared Duke5bf6fb32023-02-23 14:27:47 -08001006 "SystemUI_optimized_defaults",
Pablo Gamito7edc95c2024-10-07 11:17:50 +00001007 "wmshell_defaults",
Jared Duke2fee7402021-10-18 14:35:04 -07001008 ],
Jason Monka2f2d822018-08-13 11:10:48 -04001009 static_libs: [
1010 "SystemUI-core",
1011 ],
Anton Hansson7ccca9f2019-02-08 09:01:32 +00001012 resource_dirs: [],
Jason Monka2f2d822018-08-13 11:10:48 -04001013
Colin Crossc23cde42023-06-21 11:22:11 -07001014 use_resource_processor: true,
Jason Monka2f2d822018-08-13 11:10:48 -04001015 platform_apis: true,
Jeongik Chad45d9e112019-12-04 13:38:39 +09001016 system_ext_specific: true,
Jason Monka2f2d822018-08-13 11:10:48 -04001017 certificate: "platform",
1018 privileged: true,
1019
Colin Cross6954ea72023-07-18 10:52:21 -07001020 kotlincflags: ["-Xjvm-default=all"],
Selim Cinek820ba2d2019-06-18 18:59:09 -07001021
Jason Monka2f2d822018-08-13 11:10:48 -04001022 dxflags: ["--multi-dex"],
Jared Duke5bf6fb32023-02-23 14:27:47 -08001023 optimize: {
1024 proguard_flags_files: ["proguard.flags"],
1025 },
Winson Chungb754f522020-08-03 22:17:08 -07001026 required: [
1027 "privapp_whitelist_com.android.systemui",
Winson Chungb754f522020-08-03 22:17:08 -07001028 ],
Jason Monka2f2d822018-08-13 11:10:48 -04001029}