blob: c8fad7e790023aec9b679bfb452af69f3f552a1b [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",
Matthew Reynolds4265fe62024-05-03 16:41:56 +0000264 ],
265}
266
Matthew Reynoldsbabda272024-11-12 17:59:33 +0000267// Files which use ExtendedMockito on the device.
Matthew Reynolds30f06292024-04-30 23:48:37 +0000268filegroup {
Matthew Reynoldsbabda272024-11-12 17:59:33 +0000269 name: "SystemUI-tests-broken-robofiles-mockito-extended",
Matthew Reynolds30f06292024-04-30 23:48:37 +0000270 srcs: [
Matthew Reynoldsbabda272024-11-12 17:59:33 +0000271 "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 Reynolds30f06292024-04-30 23:48:37 +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",
Matthew Reynolds30f06292024-04-30 23:48:37 +0000323 "tests/src/**/systemui/bluetooth/qsdialog/BluetoothStateInteractorTest.kt",
324 "tests/src/**/systemui/bluetooth/qsdialog/BluetoothTileDialogDelegateTest.kt",
325 "tests/src/**/systemui/bluetooth/qsdialog/BluetoothTileDialogRepositoryTest.kt",
Matthew Reynolds30f06292024-04-30 23:48:37 +0000326 "tests/src/**/systemui/bluetooth/qsdialog/DeviceItemFactoryTest.kt",
327 "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",
339 "tests/src/**/systemui/media/controls/domain/pipeline/LegacyMediaDataManagerImplTest.kt",
Matthew Reynolds9eb885d2024-11-20 03:20:50 +0000340 "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",
Matthew Reynolds30f06292024-04-30 23:48:37 +0000411 "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"],
Jason Monka2f2d822018-08-13 11:10:48 -0400448}
449
450android_library {
451 name: "SystemUI-core",
452 srcs: [
Peter Kalauskas9159d362025-02-11 13:35:01 -0800453 ":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",
maxwen58092972018-04-16 16:33:35 +0200540 "OmniLib",
Steve Elliott8e2558f72024-07-14 22:32:54 -0400541 "kairos",
Nicolo' Mazzucato1d1539912025-03-07 16:21:59 +0000542 "displaylib",
Shawn Lin4998c5a2024-12-29 06:40:22 +0000543 "aconfig_settings_flags_lib",
Jason Monka2f2d822018-08-13 11:10:48 -0400544 ],
Nikolas Havrikovc70cb072023-09-08 15:06:35 +0200545 libs: [
546 "keepanno-annotations",
547 ],
Jason Monka2f2d822018-08-13 11:10:48 -0400548 manifest: "AndroidManifest.xml",
549
Coco Duand8ef1812023-10-19 21:35:01 +0000550 javacflags: [
551 "-Adagger.fastInit=enabled",
Dave Mankofff69c3422024-01-26 20:59:11 +0000552 "-Adagger.explicitBindingConflictsWithInject=ERROR",
553 "-Adagger.strictMultibindingValidation=enabled",
Dave Mankoff05c134c2025-01-10 18:21:36 +0000554 "-Adagger.useBindingGraphFix=ENABLED",
Coco Duand8ef1812023-10-19 21:35:01 +0000555 "-Aroom.schemaLocation=frameworks/base/packages/SystemUI/schemas",
556 ],
Julia Tuttlecedce772024-12-19 11:38:00 -0500557 kotlincflags: [
558 "-Xjvm-default=all",
559 "-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi",
Jordan Demeulenaere83718af2025-02-05 13:43:09 +0100560 "-P plugin:androidx.compose.compiler.plugins.kotlin:sourceInformation=true",
Julia Tuttlecedce772024-12-19 11:38:00 -0500561 ],
Jason Monk73e8ffc2018-12-06 14:45:19 -0500562
Coco Duand8ef1812023-10-19 21:35:01 +0000563 plugins: [
564 "androidx.room_room-compiler-plugin",
565 "dagger2-compiler",
566 ],
Jernej Viragbb4ff3f2022-03-10 17:52:11 +0000567
568 lint: {
569 extra_check_modules: ["SystemUILintChecker"],
Michal Brzezinskid552d1f2023-09-29 15:00:19 +0100570 warning_checks: ["MissingApacheLicenseDetector"],
Peter Kalauskasde4b6e12024-04-18 17:22:49 -0700571 baseline_filename: "lint-baseline.xml",
Jernej Viragbb4ff3f2022-03-10 17:52:11 +0000572 },
Jason Monka2f2d822018-08-13 11:10:48 -0400573}
574
Jernej Virag7ee73ee2024-11-15 10:27:05 +0100575platform_compat_config {
576 name: "SystemUI-core-compat-config",
577 src: ":SystemUI-core",
578}
579
Tadashi G. Takaokaa6572dc2019-09-17 15:18:53 +0900580filegroup {
Fabian Kozynskid389df52022-01-06 10:52:51 -0500581 name: "AAA-src",
582 srcs: ["tests/src/com/android/AAAPlusPlusVerifySysuiRequiredTestPropertiesTest.java"],
583 path: "tests/src",
584}
585
586filegroup {
Steve Elliottb42fe7c2024-03-28 14:00:20 -0400587 name: "kosmos-src",
588 srcs: ["tests/utils/kosmos/src/**/*.kt"],
589 path: "tests/utils/kosmos",
590}
591
592java_library {
593 name: "kosmos",
594 host_supported: true,
595 srcs: [":kosmos-src"],
596 static_libs: [
597 "kotlin-reflect",
598 "kotlin-stdlib",
599 ],
600}
601
602filegroup {
Tadashi G. Takaokaa6572dc2019-09-17 15:18:53 +0900603 name: "SystemUI-tests-utils",
604 srcs: [
Jordan Demeulenaeref7fed3c2022-07-28 18:06:49 +0200605 "tests/utils/src/**/*.java",
606 "tests/utils/src/**/*.kt",
Steve Elliottb42fe7c2024-03-28 14:00:20 -0400607 ":kosmos-src",
Dave Mankoffb4935a22021-06-01 15:12:15 -0400608 ],
Steve Elliottb42fe7c2024-03-28 14:00:20 -0400609 path: "tests/utils",
Tadashi G. Takaokaa6572dc2019-09-17 15:18:53 +0900610}
611
Kevin Liud3793232023-02-09 20:37:27 +0000612filegroup {
Alex Stetson36ae22d2024-07-25 16:11:47 -0700613 name: "SystemUI-robotest-utils",
614 srcs: [
615 "tests/robolectric/src/com/android/systemui/testutils/**/*.kt",
616 "tests/robolectric/src/com/android/systemui/testutils/**/*.java",
617 ],
618 path: "tests/robolectric/src/com/android/systemui/testutils",
619}
620
621filegroup {
David Saffb2319612023-10-19 14:14:16 -0400622 name: "SystemUI-tests-multivalent",
623 srcs: [
624 "multivalentTests/src/**/*.kt",
Rex Hoffman1477e0f2023-11-28 17:18:28 +0000625 "multivalentTests/src/**/*.java",
David Saffb2319612023-10-19 14:14:16 -0400626 ],
627 path: "multivalentTests/src",
628}
629
Bryce Leea5b08082021-10-06 11:34:56 -0700630java_library {
631 name: "SystemUI-tests-concurrency",
632 srcs: [
633 "src/com/android/systemui/util/concurrency/DelayableExecutor.java",
634 "src/com/android/systemui/util/time/SystemClock.java",
Jordan Demeulenaeref7fed3c2022-07-28 18:06:49 +0200635 "tests/utils/src/com/android/systemui/util/concurrency/FakeExecutor.java",
636 "tests/utils/src/com/android/systemui/util/time/FakeSystemClock.java",
Bryce Leea5b08082021-10-06 11:34:56 -0700637 ],
638 jarjar_rules: ":jarjar-rules-shared",
639}
640
Jason Monkae7ced22018-08-22 16:56:58 -0400641android_library {
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000642 name: "SystemUI-tests-base",
Peter Kalauskas84c5a992023-08-23 13:39:23 -0700643 use_resource_processor: true,
Sunny Goyaleb18d392020-02-07 16:48:14 -0800644 manifest: "tests/AndroidManifest-base.xml",
Jason Monkae7ced22018-08-22 16:56:58 -0400645 resource_dirs: [
646 "tests/res",
Jason Monkae7ced22018-08-22 16:56:58 -0400647 ],
Luca Zuccarini23b4cb22024-02-20 16:55:21 +0000648 asset_dirs: [
649 "tests/goldens",
Darrell Shi4986ebf2024-07-02 12:59:40 -0700650 "schemas",
Luca Zuccarini23b4cb22024-02-20 16:55:21 +0000651 ],
Jason Monkae7ced22018-08-22 16:56:58 -0400652 static_libs: [
Peter Kalauskas84c5a992023-08-23 13:39:23 -0700653 "SystemUI-res",
Quang Luongc6fc5b22021-06-10 14:35:32 -0700654 "WifiTrackerLib",
Luca Zuccarini674ecf02023-12-20 15:51:55 +0100655 "PlatformAnimationLib",
Mike Schneiderc776b932024-04-24 13:29:43 +0200656 "PlatformMotionTestingCompose",
657 "ScreenshotComposeUtilsLib",
Jason Monkae7ced22018-08-22 16:56:58 -0400658 "SystemUIPluginLib",
659 "SystemUISharedLib",
Hawkwood Glazierb8eef872022-11-11 17:56:14 +0000660 "SystemUICustomizationLib",
Ioana Alexandru7678de9e2023-12-04 21:07:23 +0100661 "SystemUICustomizationTestUtils",
Steve Elliott4c432012024-04-15 11:41:14 -0400662 "SystemUI-shared-utils",
Hyunyoung Song3d89c932020-04-11 13:31:06 -0700663 "SystemUI-statsd",
Jason Monkae7ced22018-08-22 16:56:58 -0400664 "SettingsLib",
Ned Burns6d480c32023-08-28 12:12:19 -0400665 "com_android_systemui_flags_lib",
Peter Kalauskascd50f532024-04-02 15:41:14 -0700666 "//frameworks/libs/systemui:com_android_systemui_shared_flags_lib",
Jeff DeCew91a53962023-10-06 15:40:23 +0000667 "flag-junit-base",
Jeff DeCewcaef3b32023-11-13 03:13:13 +0000668 "platform-parametric-runner-lib",
Fabian Kozynski713b7272020-03-03 18:35:52 -0500669 "androidx.viewpager2_viewpager2",
Jason Monkae7ced22018-08-22 16:56:58 -0400670 "androidx.legacy_legacy-support-v4",
671 "androidx.recyclerview_recyclerview",
672 "androidx.preference_preference",
673 "androidx.appcompat_appcompat",
Mark Renoufe2395012020-12-16 01:05:12 -0500674 "androidx.concurrent_concurrent-futures",
Jason Monkae7ced22018-08-22 16:56:58 -0400675 "androidx.mediarouter_mediarouter",
676 "androidx.palette_palette",
677 "androidx.legacy_legacy-preference-v14",
678 "androidx.leanback_leanback",
679 "androidx.slice_slice-core",
680 "androidx.slice_slice-view",
681 "androidx.slice_slice-builders",
682 "androidx.arch.core_core-runtime",
Bryce Lee436e42c2022-01-24 14:53:49 -0800683 "androidx.lifecycle_lifecycle-common-java8",
Jason Monkae7ced22018-08-22 16:56:58 -0400684 "androidx.lifecycle_lifecycle-extensions",
Jordan Demeulenaere8a169ff2022-07-13 10:42:10 +0200685 "androidx.lifecycle_lifecycle-runtime-ktx",
Joshua Tsujib1a796b2019-01-16 15:43:12 -0800686 "androidx.dynamicanimation_dynamicanimation",
Steve Elliott300b48f2019-05-29 14:13:50 -0400687 "androidx-constraintlayout_constraintlayout",
Miranda Kepharte1a22b922020-12-16 14:01:12 -0500688 "androidx.exifinterface_exifinterface",
Coco Duand8ef1812023-10-19 21:35:01 +0000689 "androidx.room_room-runtime",
Darrell Shi4986ebf2024-07-02 12:59:40 -0700690 "androidx.room_room-testing",
Coco Duand8ef1812023-10-19 21:35:01 +0000691 "androidx.room_room-ktx",
helencheuk44ae2d82024-06-28 19:57:34 +0100692 "androidx.datastore_datastore-preferences",
Beth Thibodeau43e80872024-10-28 19:19:14 -0500693 "androidx.media3.media3-common",
694 "androidx.media3.media3-session",
Nicolo' Mazzucatoadc02502023-11-30 16:09:19 +0000695 "device_state_flags_lib",
Pinyao Tingee191b12020-04-29 18:35:39 -0700696 "kotlinx-coroutines-android",
697 "kotlinx-coroutines-core",
Alejandro Nijamkinc738a8c2022-07-25 13:30:41 -0700698 "kotlinx_coroutines_test",
Chandru5a5e5332022-08-19 14:25:31 +0000699 "kotlin-reflect",
Peter Kalauskascd50f532024-04-02 15:41:14 -0700700 "//frameworks/libs/systemui:iconloader_base",
Jason Monkae7ced22018-08-22 16:56:58 -0400701 "SystemUI-tags",
702 "SystemUI-proto",
703 "metrics-helper-lib",
Tadashi G. Takaokac7340fb2020-10-20 17:50:13 +0900704 "hamcrest-library",
705 "androidx.test.rules",
Jason Monkae7ced22018-08-22 16:56:58 -0400706 "testables",
Krzysztof KosiƄski60b70872023-10-06 20:11:39 +0000707 "truth",
Lucas Dupine37369f2021-08-31 00:19:39 +0000708 "monet",
Lucas Dupind83b4ee2023-07-08 11:05:47 -0700709 "libmonet",
Michal Brzezinskie78e5202024-07-19 15:27:00 +0100710 "lottie_compose",
Dave Mankoffdffcc472020-07-08 15:25:16 -0400711 "dagger2",
Bill Lina17858d12020-07-14 10:30:10 +0800712 "jsr330",
713 "WindowManager-Shell",
Lucas Silva0bfb4052022-09-20 23:32:02 -0400714 "LowLightDreamLib",
Peter Kalauskascd50f532024-04-02 15:41:14 -0700715 "//frameworks/libs/systemui:motion_tool_lib",
helencheukd571ed82024-07-19 13:03:02 +0100716 "//frameworks/libs/systemui:contextualeducationlib",
Colin Cross64ee6e22024-03-25 15:21:29 -0700717 "androidx.core_core-animation-testing",
FabiĂĄn Kozynskic7280eb2024-07-29 13:27:32 -0400718 "androidx.lifecycle_lifecycle-runtime-testing",
Jordan Demeulenaere54a0fae2023-01-04 11:36:46 +0100719 "androidx.compose.ui_ui",
Riley Jones84156fc2023-09-06 22:27:37 +0000720 "flag-junit",
Jeff Sharkey0b319172024-01-25 10:58:48 -0700721 "ravenwood-junit",
Riley Jones84156fc2023-09-06 22:27:37 +0000722 "platform-test-annotations",
Valentin Iftimea08bd962023-12-11 19:22:51 +0100723 "notification_flags_lib",
Jordan Demeulenaere941e6132024-02-28 14:37:37 +0100724 "PlatformComposeCore",
725 "PlatformComposeSceneTransitionLayout",
Johannes Gallmann52925572024-09-09 13:33:46 +0000726 "PlatformComposeSceneTransitionLayoutTestsUtils",
Jordan Demeulenaere941e6132024-02-28 14:37:37 +0100727 "androidx.compose.runtime_runtime",
728 "androidx.compose.material3_material3",
729 "androidx.compose.material_material-icons-extended",
730 "androidx.activity_activity-compose",
731 "androidx.compose.animation_animation-graphics",
Michal Brzezinskia15c5242024-05-24 18:21:20 +0100732 "androidx.lifecycle_lifecycle-viewmodel-compose",
Stefan Andonian2de9db72024-03-08 04:43:38 +0000733 "TraceurCommon",
Stefan Andonian493ff8b2024-07-11 23:41:32 +0000734 "Traceur-res",
Shawn Lin4998c5a2024-12-29 06:40:22 +0000735 "aconfig_settings_flags_lib",
Steve Elliott4dede632025-01-29 15:41:08 -0500736 "kairos",
Nicolo' Mazzucato1d1539912025-03-07 16:21:59 +0000737 "displaylib",
Jason Monkae7ced22018-08-22 16:56:58 -0400738 ],
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000739}
740
741android_library {
742 name: "SystemUI-tests",
Peter Kalauskas84c5a992023-08-23 13:39:23 -0700743 use_resource_processor: true,
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000744 manifest: "tests/AndroidManifest-base.xml",
Colin Cross164493b2024-03-05 13:32:44 -0800745 resource_dirs: [],
Dave Mankoff028ec3f2025-01-17 20:55:46 +0000746
747 kotlin_lang_version: "1.9",
748
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000749 additional_manifests: ["tests/AndroidManifest.xml"],
750 srcs: [
751 "tests/src/**/*.kt",
752 "tests/src/**/*.java",
Peter Kalauskas9159d362025-02-11 13:35:01 -0800753 ":SystemUI-core-srcs",
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000754 ":ReleaseJavaFiles",
David Saffb2319612023-10-19 14:14:16 -0400755 ":SystemUI-tests-multivalent",
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000756 ":SystemUI-tests-utils",
Jordan Demeulenaere941e6132024-02-28 14:37:37 +0100757 "compose/features/src/**/*.kt",
758 "compose/facade/enabled/src/**/*.kt",
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000759 ],
760 static_libs: [
Peter Kalauskascd50f532024-04-02 15:41:14 -0700761 "//frameworks/libs/systemui:compilelib",
Peter Kalauskas043f4d02025-02-21 11:00:10 -0800762 "com.android.systemui.dagger-api",
763 "com.android.systemui.util.settings-api",
764 "com.android.systemui.retail-impl",
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000765 "SystemUI-tests-base",
766 "androidx.test.uiautomator_uiautomator",
Jeff DeCewa415d0e2023-08-02 11:30:09 -0400767 "androidx.core_core-animation-testing",
FabiĂĄn Kozynskic7280eb2024-07-29 13:27:32 -0400768 "androidx.lifecycle_lifecycle-runtime-testing",
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000769 "mockito-target-extended-minus-junit4",
Mark Renoufa6225202024-05-10 12:55:48 -0400770 "mockito-kotlin-nodeps",
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000771 "androidx.test.ext.junit",
Steven Ng45b74c62023-03-23 11:23:02 +0000772 "androidx.test.ext.truth",
Colin Cross852cd142023-08-11 16:53:55 -0700773 "kotlin-test",
Luca Zuccarini23b4cb22024-02-20 16:55:21 +0000774 "platform-screenshot-diff-core",
775 "PlatformMotionTesting",
Ioana Alexandru47ddbb72023-12-15 21:24:47 +0100776 "SystemUICustomizationTestUtils",
Jordan Demeulenaere941e6132024-02-28 14:37:37 +0100777 "androidx.compose.runtime_runtime",
Steve Elliott8e2558f72024-07-14 22:32:54 -0400778 "kairos",
Steve Elliottb42fe7c2024-03-28 14:00:20 -0400779 "kosmos",
Nicolo' Mazzucato1d1539912025-03-07 16:21:59 +0000780 "displaylib",
Luca Zuccarini7f0815c2024-10-08 14:02:55 +0000781 "testables",
Fangqiu Sub58fa972023-12-19 18:14:55 +0000782 "androidx.test.rules",
Jernej Virag7ee73ee2024-11-15 10:27:05 +0100783 "platform-compat-test-rules",
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000784 ],
Jason Monkae7ced22018-08-22 16:56:58 -0400785 libs: [
Jihoon Kange07d73c2024-08-30 00:29:12 +0000786 "android.test.runner.stubs.system",
787 "android.test.base.stubs.system",
788 "android.test.mock.stubs.system",
Nikolas Havrikovc70cb072023-09-08 15:06:35 +0200789 "keepanno-annotations",
Jason Monkae7ced22018-08-22 16:56:58 -0400790 ],
David Safffffffd02024-07-10 20:23:57 +0000791 kotlincflags: [
792 "-Xjvm-default=all",
793 // TODO(b/352363800): Why do we need this?
794 "-J-Xmx8192M",
Julia Tuttlecedce772024-12-19 11:38:00 -0500795 "-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi",
David Safffffffd02024-07-10 20:23:57 +0000796 ],
Dave Mankoff05c134c2025-01-10 18:21:36 +0000797 javacflags: [
798 "-Adagger.useBindingGraphFix=ENABLED",
799 ],
800
Jason Monkae7ced22018-08-22 16:56:58 -0400801 aaptflags: [
802 "--extra-packages",
Hyunyoung Song8f9d34c2019-08-30 14:47:43 -0700803 "com.android.systemui",
Jason Monkae7ced22018-08-22 16:56:58 -0400804 ],
Coco Duand8ef1812023-10-19 21:35:01 +0000805 plugins: [
806 "androidx.room_room-compiler-plugin",
807 "dagger2-compiler",
808 ],
Cole Faust17f1e722022-08-16 15:30:26 -0700809 lint: {
810 test: true,
Jeff Chen194a13f2023-03-16 15:40:05 -0700811 extra_check_modules: ["SystemUILintChecker"],
Cole Faust17f1e722022-08-16 15:30:26 -0700812 },
Jason Monkae7ced22018-08-22 16:56:58 -0400813}
814
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000815android_app {
816 name: "SystemUIRobo-stub",
Jeff Sharkey0b319172024-01-25 10:58:48 -0700817 // SystemUiRavenTests references the .aapt.srcjar
818 use_resource_processor: false,
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000819 defaults: [
820 "platform_app_defaults",
Jared Duke5bf6fb32023-02-23 14:27:47 -0800821 "SystemUI_optimized_defaults",
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000822 ],
823 manifest: "tests/AndroidManifest-base.xml",
Kevin Liud3793232023-02-09 20:37:27 +0000824
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000825 static_libs: [
Peter Kalauskascd50f532024-04-02 15:41:14 -0700826 "//frameworks/libs/systemui:compilelib",
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000827 "SystemUI-tests-base",
Jordan Demeulenaere941e6132024-02-28 14:37:37 +0100828 "androidx.compose.runtime_runtime",
Kholoud Mohamedb9b19b12024-05-08 19:11:37 +0000829 "SystemUI-core",
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000830 ],
Nikolas Havrikovc70cb072023-09-08 15:06:35 +0200831 libs: [
832 "keepanno-annotations",
833 ],
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000834 aaptflags: [
835 "--extra-packages",
836 "com.android.systemui",
837 ],
838 dont_merge_manifests: true,
839 platform_apis: true,
840 system_ext_specific: true,
841 certificate: "platform",
842 privileged: true,
843 resource_dirs: [],
Kevin Liud3793232023-02-09 20:37:27 +0000844 kotlincflags: ["-Xjvm-default=all"],
Kevin Liu092b8212023-02-15 05:42:34 +0000845 optimize: {
Jared Dukee3db7a82024-09-17 21:34:14 +0000846 optimize: false,
Kevin Liu092b8212023-02-15 05:42:34 +0000847 shrink_resources: false,
Lucas Silva496d2d62024-06-13 13:51:20 +0000848 optimized_shrink_resources: false,
Kevin Liu092b8212023-02-15 05:42:34 +0000849 proguard_flags_files: ["proguard.flags"],
850 },
Kevin Liud3793232023-02-09 20:37:27 +0000851
852 plugins: ["dagger2-compiler"],
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000853}
854
Matthew Reynolds30f06292024-04-30 23:48:37 +0000855java_library {
856 name: "RoboTestLibraries",
857 static_libs: [
858 "dagger2",
859 "androidx.test.uiautomator_uiautomator",
860 "androidx.core_core-animation-testing",
861 "androidx.test.ext.junit",
Matthew Reynoldse6599062025-02-10 23:05:03 +0000862 "inline-mockito5-robolectric-prebuilt",
Mark Renoufa6225202024-05-10 12:55:48 -0400863 "mockito-kotlin-nodeps",
Matthew Reynolds30f06292024-04-30 23:48:37 +0000864 "platform-parametric-runner-lib",
865 "SystemUICustomizationTestUtils",
866 "kotlin-test",
867 "kosmos",
868 ],
869}
870
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000871android_robolectric_test {
872 name: "SystemUiRoboTests",
873 srcs: [
874 "tests/robolectric/src/**/*.kt",
875 "tests/robolectric/src/**/*.java",
Kevin Liud3793232023-02-09 20:37:27 +0000876 ":SystemUI-tests-utils",
David Saffb2319612023-10-19 14:14:16 -0400877 ":SystemUI-tests-multivalent",
Kevin Liud3793232023-02-09 20:37:27 +0000878 ],
879 static_libs: [
Matthew Reynolds30f06292024-04-30 23:48:37 +0000880 "RoboTestLibraries",
Alejandro Nijamkin4241d872024-08-18 15:57:14 -0700881 "androidx.compose.runtime_runtime",
Matthew Reynolds30f06292024-04-30 23:48:37 +0000882 ],
883 libs: [
Matthew Reynolds0fbab862024-10-15 04:42:55 +0000884 "android.test.runner.impl",
885 "android.test.base.impl",
886 "android.test.mock.impl",
Matthew Reynolds30f06292024-04-30 23:48:37 +0000887 "truth",
Matthew Reynolds5af9275ce2024-10-22 21:20:53 +0000888 "androidx.test.ext.truth",
Matthew Reynolds30f06292024-04-30 23:48:37 +0000889 ],
890
Matthew Reynolds30f06292024-04-30 23:48:37 +0000891 instrumentation_for: "SystemUIRobo-stub",
892 java_resource_dirs: ["tests/robolectric/config"],
893 plugins: [
894 "dagger2-compiler",
895 ],
Matthew Reynolds029f1b32024-05-23 21:13:19 +0000896 strict_mode: false,
Matthew Reynolds30f06292024-04-30 23:48:37 +0000897}
898
899// in-place tests which use Robolectric in the tests directory
900// instead of multivalentTests
901android_robolectric_test {
902 name: "SystemUiRoboTestsInplace",
903 srcs: [
904 "tests/robolectric/src/**/*.kt",
905 "tests/robolectric/src/**/*.java",
906 ":SystemUI-tests-utils",
907 ":SystemUI-tests-multivalent",
908 ":SystemUI-tests-robofiles",
909 ],
910 exclude_srcs: [
Matthew Reynoldsbabda272024-11-12 17:59:33 +0000911 ":SystemUI-tests-broken-robofiles-mockito-extended",
Matthew Reynolds9eb885d2024-11-20 03:20:50 +0000912 ":SystemUI-tests-broken-robofiles-internal",
Matthew Reynolds4265fe62024-05-03 16:41:56 +0000913 ":SystemUI-tests-broken-robofiles-run",
Matthew Reynolds30f06292024-04-30 23:48:37 +0000914 ],
915 static_libs: [
916 "RoboTestLibraries",
Alejandro Nijamkin4241d872024-08-18 15:57:14 -0700917 "androidx.compose.runtime_runtime",
Jernej Virag7ee73ee2024-11-15 10:27:05 +0100918 "platform-compat-test-rules",
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000919 ],
920 libs: [
Matthew Reynolds0fbab862024-10-15 04:42:55 +0000921 "android.test.runner.impl",
922 "android.test.base.impl",
923 "android.test.mock.impl",
Krzysztof KosiƄski60b70872023-10-06 20:11:39 +0000924 "truth",
Matthew Reynolds5af9275ce2024-10-22 21:20:53 +0000925 "androidx.test.ext.truth",
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000926 ],
Kevin Liud3793232023-02-09 20:37:27 +0000927
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000928 instrumentation_for: "SystemUIRobo-stub",
929 java_resource_dirs: ["tests/robolectric/config"],
Beverly56039f52023-11-13 21:56:33 +0000930 plugins: [
931 "dagger2-compiler",
932 ],
Matthew Reynolds029f1b32024-05-23 21:13:19 +0000933 strict_mode: false,
Jay Aliomer9b13ae12022-11-28 14:50:09 +0000934}
935
Jeff Sharkey0b319172024-01-25 10:58:48 -0700936android_ravenwood_test {
937 name: "SystemUiRavenTests",
938 srcs: [
939 ":SystemUI-tests-utils",
940 ":SystemUI-tests-multivalent",
941 // TODO(b/294256649): pivot to using {.aapt.jar} and re-enable
942 // use_resource_processor: true when better supported by soong
943 ":SystemUIRobo-stub{.aapt.srcjar}",
944 ],
945 static_libs: [
946 "SystemUI-core",
947 "SystemUI-res",
948 "SystemUI-tests-base",
949 "androidx.test.uiautomator_uiautomator",
950 "androidx.core_core-animation-testing",
951 "androidx.test.ext.junit",
Steve Elliottb42fe7c2024-03-28 14:00:20 -0400952 "kosmos",
Makoto Onuki40e43092024-08-23 19:02:25 +0000953 "kotlin-test",
Mark Renoufa6225202024-05-10 12:55:48 -0400954 "mockito-kotlin-nodeps",
Makoto Onuki40e43092024-08-23 19:02:25 +0000955 "androidx.compose.runtime_runtime",
Jeff Sharkey0b319172024-01-25 10:58:48 -0700956 ],
957 libs: [
Matthew Reynolds0fbab862024-10-15 04:42:55 +0000958 "android.test.runner.impl",
959 "android.test.base.impl",
960 "android.test.mock.impl",
Jeff Sharkey0b319172024-01-25 10:58:48 -0700961 ],
962 auto_gen_config: true,
John Wu361957a2024-12-19 15:16:36 -0800963 team: "trendy_team_ravenwood",
Jeff Sharkey0b319172024-01-25 10:58:48 -0700964 plugins: [
965 "dagger2-compiler",
966 ],
967}
968
Jared Duke84e94b32022-08-05 13:46:38 -0700969// Opt-out config for optimizing the SystemUI target using R8.
970// Disabled via `export SYSTEMUI_OPTIMIZE_JAVA=false`, or explicitly in Make via
971// `SYSTEMUI_OPTIMIZE_JAVA := false`.
Jared Duke9dfa77b2021-12-22 13:31:06 -0800972soong_config_module_type {
973 name: "systemui_optimized_java_defaults",
974 module_type: "java_defaults",
975 config_namespace: "ANDROID",
976 bool_variables: ["SYSTEMUI_OPTIMIZE_JAVA"],
977 properties: ["optimize"],
Jared Duke2fee7402021-10-18 14:35:04 -0700978}
979
Jared Duke9dfa77b2021-12-22 13:31:06 -0800980systemui_optimized_java_defaults {
Jared Duke5bf6fb32023-02-23 14:27:47 -0800981 name: "SystemUI_optimized_defaults",
Jared Duke2fee7402021-10-18 14:35:04 -0700982 soong_config_variables: {
Jared Duke9dfa77b2021-12-22 13:31:06 -0800983 SYSTEMUI_OPTIMIZE_JAVA: {
Jared Duke2fee7402021-10-18 14:35:04 -0700984 optimize: {
985 enabled: true,
986 optimize: true,
987 shrink: true,
Jared Duke0668af22023-02-23 14:43:31 -0800988 shrink_resources: true,
Lucas Silva496d2d62024-06-13 13:51:20 +0000989 optimized_shrink_resources: true,
Jared Duke5ecfe872022-09-08 09:25:30 -0700990 ignore_warnings: false,
Jared Dukef0904172022-06-07 18:01:06 +0000991 proguard_compatibility: false,
Jared Duke2fee7402021-10-18 14:35:04 -0700992 },
993 conditions_default: {
994 optimize: {
Jared Duke5ecfe872022-09-08 09:25:30 -0700995 ignore_warnings: false,
Jared Dukef0904172022-06-07 18:01:06 +0000996 proguard_compatibility: false,
Jared Duke2fee7402021-10-18 14:35:04 -0700997 },
998 },
999 },
1000 },
1001}
1002
Jason Monka2f2d822018-08-13 11:10:48 -04001003android_app {
1004 name: "SystemUI",
Jared Duke2fee7402021-10-18 14:35:04 -07001005 defaults: [
1006 "platform_app_defaults",
Jared Duke5bf6fb32023-02-23 14:27:47 -08001007 "SystemUI_optimized_defaults",
Pablo Gamito7edc95c2024-10-07 11:17:50 +00001008 "wmshell_defaults",
Jared Duke2fee7402021-10-18 14:35:04 -07001009 ],
Jason Monka2f2d822018-08-13 11:10:48 -04001010 static_libs: [
1011 "SystemUI-core",
1012 ],
Anton Hansson7ccca9f2019-02-08 09:01:32 +00001013 resource_dirs: [],
Jason Monka2f2d822018-08-13 11:10:48 -04001014
Colin Crossc23cde42023-06-21 11:22:11 -07001015 use_resource_processor: true,
Jason Monka2f2d822018-08-13 11:10:48 -04001016 platform_apis: true,
Jeongik Chad45d9e112019-12-04 13:38:39 +09001017 system_ext_specific: true,
Jason Monka2f2d822018-08-13 11:10:48 -04001018 certificate: "platform",
1019 privileged: true,
1020
Colin Cross6954ea72023-07-18 10:52:21 -07001021 kotlincflags: ["-Xjvm-default=all"],
Selim Cinek820ba2d2019-06-18 18:59:09 -07001022
Jason Monka2f2d822018-08-13 11:10:48 -04001023 dxflags: ["--multi-dex"],
Jared Duke5bf6fb32023-02-23 14:27:47 -08001024 optimize: {
1025 proguard_flags_files: ["proguard.flags"],
1026 },
Winson Chungb754f522020-08-03 22:17:08 -07001027 required: [
1028 "privapp_whitelist_com.android.systemui",
Winson Chungb754f522020-08-03 22:17:08 -07001029 ],
Jason Monka2f2d822018-08-13 11:10:48 -04001030}