Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 1 | // |
| 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 Badour | 8a6a2bc | 2021-02-12 17:07:05 -0800 | [diff] [blame] | 17 | package { |
Aditya Choudhary | b426227 | 2024-01-31 11:09:29 +0000 | [diff] [blame] | 18 | default_team: "trendy_team_system_ui_please_use_a_more_specific_subteam_if_possible_", |
Bob Badour | 8a6a2bc | 2021-02-12 17:07:05 -0800 | [diff] [blame] | 19 | 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 |
| 24 | license { |
| 25 | name: "frameworks_base_packages_SystemUI_license", |
| 26 | visibility: [":__subpackages__"], |
| 27 | license_kinds: [ |
| 28 | "SPDX-license-identifier-Apache-2.0", |
| 29 | ], |
| 30 | license_text: [ |
| 31 | "NOTICE", |
| 32 | ], |
| 33 | } |
| 34 | |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 35 | java_library { |
| 36 | name: "SystemUI-proto", |
| 37 | |
| 38 | srcs: ["src/**/*.proto"], |
| 39 | |
| 40 | proto: { |
| 41 | type: "nano", |
| 42 | }, |
Winson Chung | eb1aa3d | 2020-08-25 19:02:29 -0700 | [diff] [blame] | 43 | |
| 44 | libs: [ |
| 45 | "WindowManager-Shell-proto", |
| 46 | ], |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 47 | } |
| 48 | |
| 49 | java_library { |
| 50 | name: "SystemUI-tags", |
| 51 | srcs: ["src/com/android/systemui/EventLogTags.logtags"], |
| 52 | } |
| 53 | |
Jay Aliomer | 97d4fc7d | 2021-09-23 16:59:09 -0400 | [diff] [blame] | 54 | filegroup { |
| 55 | name: "ReleaseJavaFiles", |
Jeff DeCew | 86b8e77 | 2021-10-25 20:35:45 -0400 | [diff] [blame] | 56 | srcs: [ |
| 57 | "src-release/**/*.kt", |
| 58 | "src-release/**/*.java", |
| 59 | ], |
Peter Kalauskas | cd50f53 | 2024-04-02 15:41:14 -0700 | [diff] [blame] | 60 | visibility: ["//visibility:private"], |
Jay Aliomer | 97d4fc7d | 2021-09-23 16:59:09 -0400 | [diff] [blame] | 61 | } |
| 62 | |
| 63 | filegroup { |
| 64 | name: "DebugJavaFiles", |
Jeff DeCew | 86b8e77 | 2021-10-25 20:35:45 -0400 | [diff] [blame] | 65 | srcs: [ |
| 66 | "src-debug/**/*.kt", |
| 67 | "src-debug/**/*.java", |
| 68 | ], |
Peter Kalauskas | cd50f53 | 2024-04-02 15:41:14 -0700 | [diff] [blame] | 69 | visibility: ["//visibility:private"], |
Jay Aliomer | 97d4fc7d | 2021-09-23 16:59:09 -0400 | [diff] [blame] | 70 | } |
| 71 | |
Matthew Reynolds | 30f0629 | 2024-04-30 23:48:37 +0000 | [diff] [blame] | 72 | filegroup { |
| 73 | name: "SystemUI-tests-robofiles", |
| 74 | srcs: [ |
| 75 | "tests/src/**/*.kt", |
| 76 | "tests/src/**/*.java", |
| 77 | ], |
| 78 | visibility: ["//visibility:private"], |
| 79 | } |
| 80 | |
Matthew Reynolds | 25a1993 | 2024-05-31 19:44:38 +0000 | [diff] [blame^] | 81 | // Tests where robolectric failed at runtime. (go/multivalent-tests) |
Matthew Reynolds | 4265fe6 | 2024-05-03 16:41:56 +0000 | [diff] [blame] | 82 | filegroup { |
| 83 | name: "SystemUI-tests-broken-robofiles-run", |
| 84 | srcs: [ |
Matthew Reynolds | ea1d748 | 2024-05-30 01:04:18 +0000 | [diff] [blame] | 85 | "tests/src/**/systemui/globalactions/GlobalActionsColumnLayoutTest.java", |
| 86 | "tests/src/**/systemui/globalactions/GlobalActionsDialogLiteTest.java", |
| 87 | "tests/src/**/systemui/globalactions/GlobalActionsImeTest.java", |
| 88 | "tests/src/**/systemui/graphics/ImageLoaderTest.kt", |
Matthew Reynolds | 25a1993 | 2024-05-31 19:44:38 +0000 | [diff] [blame^] | 89 | "tests/src/**/systemui/keyguard/CustomizationProviderTest.kt", |
Matthew Reynolds | ea1d748 | 2024-05-30 01:04:18 +0000 | [diff] [blame] | 90 | "tests/src/**/systemui/keyguard/KeyguardViewMediatorTest.java", |
| 91 | "tests/src/**/systemui/keyguard/LifecycleTest.java", |
| 92 | "tests/src/**/systemui/keyguard/data/repository/KeyguardTransitionRepositoryTest.kt", |
| 93 | "tests/src/**/systemui/keyguard/ui/view/layout/sections/ClockSectionTest.kt", |
| 94 | "tests/src/**/systemui/keyguard/data/repository/KeyguardBlueprintRepositoryTest.kt", |
| 95 | "tests/src/**/systemui/keyguard/ui/viewmodel/KeyguardSmartspaceViewModelTest.kt", |
| 96 | "tests/src/**/systemui/lifecycle/RepeatWhenAttachedTest.kt", |
| 97 | "tests/src/**/systemui/log/LogBufferTest.kt", |
| 98 | "tests/src/**/systemui/media/dialog/MediaOutputBaseDialogTest.java", |
| 99 | "tests/src/**/systemui/media/dialog/MediaOutputBroadcastDialogTest.java", |
| 100 | "tests/src/**/systemui/media/dialog/MediaOutputDialogTest.java", |
| 101 | "tests/src/**/systemui/media/controls/domain/resume/MediaResumeListenerTest.kt", |
| 102 | "tests/src/**/systemui/mediaprojection/taskswitcher/ui/TaskSwitcherNotificationCoordinatorTest.kt", |
Matthew Reynolds | 25a1993 | 2024-05-31 19:44:38 +0000 | [diff] [blame^] | 103 | "tests/src/**/systemui/navigationbar/NavigationBarButtonTest.java", |
| 104 | "tests/src/**/systemui/people/PeopleProviderTest.java", |
| 105 | "tests/src/**/systemui/people/PeopleSpaceUtilsTest.java", |
| 106 | "tests/src/**/systemui/people/widget/PeopleSpaceWidgetManagerTest.java", |
| 107 | "tests/src/**/systemui/people/PeopleTileViewHelperTest.java", |
| 108 | "tests/src/**/systemui/power/data/repository/PowerRepositoryImplTest.kt", |
| 109 | "tests/src/**/systemui/privacy/PrivacyConfigFlagsTest.kt", |
| 110 | "tests/src/**/systemui/privacy/PrivacyDialogV2Test.kt", |
| 111 | "tests/src/**/systemui/qs/external/TileRequestDialogEventLoggerTest.kt", |
| 112 | "tests/src/**/systemui/qs/AutoAddTrackerTest.kt", |
| 113 | "tests/src/**/systemui/qs/external/TileRequestDialogEventLoggerTest.kt", |
| 114 | "tests/src/**/systemui/qs/tiles/DndTileTest.kt", |
| 115 | "tests/src/**/systemui/qs/tiles/DreamTileTest.java", |
| 116 | "tests/src/**/systemui/qs/FgsManagerControllerTest.java", |
| 117 | "tests/src/**/systemui/qs/QSPanelTest.kt", |
| 118 | "tests/src/**/systemui/reardisplay/RearDisplayDialogControllerTest.java", |
Matthew Reynolds | 2c81f3d | 2024-05-15 22:13:07 +0000 | [diff] [blame] | 119 | "tests/src/**/systemui/statusbar/KeyboardShortcutListSearchTest.java", |
| 120 | "tests/src/**/systemui/statusbar/KeyboardShortcutsTest.java", |
| 121 | "tests/src/**/systemui/statusbar/KeyguardIndicationControllerWithCoroutinesTest.kt", |
| 122 | "tests/src/**/systemui/statusbar/notification/AssistantFeedbackControllerTest.java", |
| 123 | "tests/src/**/systemui/statusbar/notification/collection/NotifCollectionTest.java", |
| 124 | "tests/src/**/systemui/statusbar/notification/collection/NotificationEntryTest.java", |
| 125 | "tests/src/**/systemui/statusbar/notification/collection/render/GroupExpansionManagerTest.kt", |
| 126 | "tests/src/**/systemui/statusbar/notification/collection/ShadeListBuilderTest.java", |
| 127 | "tests/src/**/systemui/statusbar/notification/footer/ui/view/FooterViewTest.java", |
| 128 | "tests/src/**/systemui/statusbar/notification/interruption/NotificationInterruptStateProviderImplTest.java", |
| 129 | "tests/src/**/systemui/statusbar/notification/interruption/NotificationInterruptStateProviderWrapperTest.kt", |
| 130 | "tests/src/**/systemui/statusbar/notification/interruption/VisualInterruptionDecisionProviderImplTest.kt", |
| 131 | "tests/src/**/systemui/statusbar/NotificationLockscreenUserManagerTest.java", |
| 132 | "tests/src/**/systemui/statusbar/notification/logging/NotificationLoggerTest.java", |
| 133 | "tests/src/**/systemui/statusbar/notification/row/ExpandableNotificationRowTest.java", |
| 134 | "tests/src/**/systemui/statusbar/notification/row/NotificationContentInflaterTest.java", |
| 135 | "tests/src/**/systemui/statusbar/notification/row/NotificationContentViewTest.kt", |
| 136 | "tests/src/**/systemui/statusbar/notification/row/NotificationConversationInfoTest.java", |
| 137 | "tests/src/**/systemui/statusbar/notification/row/NotificationGutsManagerTest.java", |
| 138 | "tests/src/**/systemui/statusbar/notification/row/NotificationGutsManagerWithScenesTest.kt", |
| 139 | "tests/src/**/systemui/statusbar/notification/row/NotifLayoutInflaterFactoryTest.kt", |
| 140 | "tests/src/**/systemui/statusbar/notification/row/wrapper/NotificationTemplateViewWrapperTest.kt", |
| 141 | "tests/src/**/systemui/statusbar/notification/stack/NotificationSectionsManagerTest.java", |
| 142 | "tests/src/**/systemui/statusbar/notification/stack/NotificationStackScrollLayoutTest.java", |
| 143 | "tests/src/**/systemui/statusbar/notification/stack/ui/viewmodel/SharedNotificationContainerViewModelTest.kt", |
| 144 | "tests/src/**/systemui/statusbar/phone/AutoTileManagerTest.java", |
| 145 | "tests/src/**/systemui/statusbar/phone/CentralSurfacesImplTest.java", |
| 146 | "tests/src/**/systemui/statusbar/phone/fragment/CollapsedStatusBarFragmentTest.java", |
| 147 | "tests/src/**/systemui/statusbar/phone/PhoneStatusBarTransitionsTest.kt", |
| 148 | "tests/src/**/systemui/statusbar/phone/PhoneStatusBarViewControllerTest.kt", |
| 149 | "tests/src/**/systemui/statusbar/phone/PhoneStatusBarView.java", |
| 150 | "tests/src/**/systemui/statusbar/phone/PhoneStatusBarViewTest.kt", |
| 151 | "tests/src/**/systemui/statusbar/phone/StatusBarBoundsProviderTest.kt", |
| 152 | "tests/src/**/systemui/statusbar/phone/StatusBarMoveFromCenterAnimationControllerTest.kt", |
| 153 | "tests/src/**/systemui/statusbar/pipeline/airplane/ui/viewmodel/AirplaneModeViewModelImplTest.kt", |
| 154 | "tests/src/**/systemui/statusbar/pipeline/mobile/data/repository/prod/MobileConnectionsRepositoryTest.kt", |
| 155 | "tests/src/**/systemui/statusbar/pipeline/mobile/ui/view/ModernStatusBarMobileViewTest.kt", |
| 156 | "tests/src/**/systemui/statusbar/pipeline/wifi/data/repository/prod/WifiRepositoryImplTest.kt", |
| 157 | "tests/src/**/systemui/statusbar/pipeline/wifi/ui/view/ModernStatusBarWifiViewTest.kt", |
| 158 | "tests/src/**/systemui/statusbar/policy/CallbackControllerTest.java", |
| 159 | "tests/src/**/systemui/statusbar/policy/DeviceStateRotationLockSettingControllerTest.java", |
| 160 | "tests/src/**/systemui/statusbar/policy/InflatedSmartRepliesTest.java", |
| 161 | "tests/src/**/systemui/statusbar/policy/LocationControllerImplTest.java", |
| 162 | "tests/src/**/systemui/statusbar/policy/RemoteInputViewTest.java", |
| 163 | "tests/src/**/systemui/statusbar/policy/SmartReplyViewTest.java", |
| 164 | "tests/src/**/systemui/statusbar/StatusBarStateControllerImplTest.kt", |
Matthew Reynolds | 25a1993 | 2024-05-31 19:44:38 +0000 | [diff] [blame^] | 165 | "tests/src/**/systemui/theme/ThemeOverlayApplierTest.java", |
| 166 | "tests/src/**/systemui/touch/TouchInsetManagerTest.java", |
| 167 | "tests/src/**/systemui/util/LifecycleFragmentTest.java", |
| 168 | "tests/src/**/systemui/util/TestableAlertDialogTest.kt", |
| 169 | "tests/src/**/systemui/util/kotlin/PairwiseFlowTest", |
| 170 | "tests/src/**/systemui/util/sensors/AsyncManagerTest.java", |
| 171 | "tests/src/**/systemui/util/sensors/ThresholdSensorImplTest.java", |
| 172 | "tests/src/**/systemui/util/wakelock/KeepAwakeAnimationListenerTest.java", |
| 173 | "tests/src/**/systemui/volume/VolumeDialogImplTest.java", |
| 174 | "tests/src/**/systemui/wallet/controller/QuickAccessWalletControllerTest.java", |
| 175 | "tests/src/**/systemui/wallet/ui/WalletScreenControllerTest.java", |
Matthew Reynolds | 4265fe6 | 2024-05-03 16:41:56 +0000 | [diff] [blame] | 176 | ], |
| 177 | } |
| 178 | |
Matthew Reynolds | 30f0629 | 2024-04-30 23:48:37 +0000 | [diff] [blame] | 179 | // We are running robolectric tests in the tests directory as well as |
| 180 | // multivalent tests. If you add a test, and it doesn't run in robolectric, |
| 181 | // it should be added to this exclusion list. go/multivalent-tests |
| 182 | filegroup { |
Matthew Reynolds | 4265fe6 | 2024-05-03 16:41:56 +0000 | [diff] [blame] | 183 | name: "SystemUI-tests-broken-robofiles-compile", |
Matthew Reynolds | 30f0629 | 2024-04-30 23:48:37 +0000 | [diff] [blame] | 184 | srcs: [ |
| 185 | "tests/src/**/*DeviceOnlyTest.java", |
| 186 | "tests/src/**/*DeviceOnlyTest.kt", |
| 187 | "tests/src/**/systemui/media/taptotransfer/receiver/MediaTttChipControllerReceiverTest.kt", |
| 188 | "tests/src/**/systemui/accessibility/data/repository/AccessibilityQsShortcutsRepositoryImplForDeviceTest.kt", |
| 189 | "tests/src/**/systemui/biometrics/AuthDialogPanelInteractionDetectorTest.kt", |
| 190 | "tests/src/**/systemui/controls/management/ControlsFavoritingActivityTest.kt", |
| 191 | "tests/src/**/systemui/controls/management/ControlsProviderSelectorActivityTest.kt", |
| 192 | "tests/src/**/systemui/controls/start/ControlsStartableTest.kt", |
| 193 | "tests/src/**/systemui/haptics/slider/SliderStateTrackerTest.kt", |
| 194 | "tests/src/**/systemui/keyboard/stickykeys/ui/StickyKeysIndicatorCoordinatorTest.kt", |
| 195 | "tests/src/**/systemui/keyboard/stickykeys/ui/viewmodel/StickyKeysIndicatorViewModelTest.kt", |
| 196 | "tests/src/**/systemui/keyguard/data/quickaffordance/MuteQuickAffordanceCoreStartableTest.kt", |
| 197 | "tests/src/**/systemui/keyguard/domain/interactor/KeyguardQuickAffordanceInteractorParameterizedTest.kt", |
| 198 | "tests/src/**/systemui/keyguard/domain/interactor/KeyguardQuickAffordanceInteractorSceneContainerTest.kt", |
| 199 | "tests/src/**/systemui/keyguard/ResourceTrimmerTest.kt", |
| 200 | "tests/src/**/systemui/keyguard/ui/viewmodel/KeyguardBottomAreaViewModelTest.kt", |
| 201 | "tests/src/**/systemui/keyguard/ui/viewmodel/KeyguardQuickAffordancesCombinedViewModelTest.kt", |
| 202 | "tests/src/**/systemui/media/controls/domain/pipeline/MediaTimeoutListenerTest.kt", |
| 203 | "tests/src/**/systemui/media/controls/ui/controller/MediaHierarchyManagerTest.kt", |
| 204 | "tests/src/**/systemui/mediaprojection/taskswitcher/MediaProjectionTaskSwitcherCoreStartableTest.kt", |
| 205 | "tests/src/**/systemui/media/taptotransfer/receiver/FakeMediaTttChipControllerReceiver.kt", |
| 206 | "tests/src/**/systemui/qs/tileimpl/QSTileViewImplTest.kt", |
| 207 | "tests/src/**/systemui/qs/tiles/DeviceControlsTileTest.kt", |
| 208 | "tests/src/**/systemui/screenshot/ActionExecutorTest.kt", |
| 209 | "tests/src/**/systemui/screenshot/ActionIntentCreatorTest.kt", |
| 210 | "tests/src/**/systemui/screenshot/DefaultScreenshotActionsProviderTest.kt", |
| 211 | "tests/src/**/systemui/screenshot/TakeScreenshotServiceTest.kt", |
| 212 | "tests/src/**/systemui/statusbar/commandline/CommandRegistryTest.kt", |
| 213 | "tests/src/**/systemui/statusbar/notification/collection/TargetSdkResolverTest.kt", |
| 214 | "tests/src/**/systemui/statusbar/notification/icon/IconManagerTest.kt", |
| 215 | "tests/src/**/systemui/statusbar/notification/row/BigPictureIconManagerTest.kt", |
| 216 | "tests/src/**/systemui/statusbar/notification/row/NotificationSettingsControllerTest.kt", |
| 217 | "tests/src/**/systemui/statusbar/notification/stack/ui/view/NotificationStatsLoggerTest.kt", |
| 218 | "tests/src/**/systemui/statusbar/pipeline/satellite/data/prod/DeviceBasedSatelliteRepositoryImplTest.kt", |
| 219 | "tests/src/**/systemui/statusbar/policy/BatteryStateNotifierTest.kt", |
| 220 | "tests/src/**/systemui/statusbar/policy/FlashlightControllerImplTest.kt", |
| 221 | "tests/src/**/systemui/statusbar/policy/SensitiveNotificationProtectionControllerFlagDisabledTest.kt", |
| 222 | "tests/src/**/systemui/stylus/StylusUsiPowerStartableTest.kt", |
| 223 | "tests/src/**/systemui/temporarydisplay/TemporaryViewDisplayControllerTest.kt", |
| 224 | "tests/src/**/keyguard/ClockEventControllerTest.kt", |
| 225 | "tests/src/**/keyguard/LegacyLockIconViewControllerWithCoroutinesTest.kt", |
| 226 | "tests/src/**/keyguard/LegacyLockIconViewControllerBaseTest.kt", |
| 227 | "tests/src/**/keyguard/LegacyLockIconViewControllerTest.java", |
| 228 | "tests/src/**/systemui/animation/TransitionAnimatorTest.kt", |
| 229 | "tests/src/**/systemui/bluetooth/qsdialog/BluetoothAutoOnRepositoryTest.kt", |
| 230 | "tests/src/**/systemui/bluetooth/qsdialog/BluetoothStateInteractorTest.kt", |
| 231 | "tests/src/**/systemui/bluetooth/qsdialog/BluetoothTileDialogDelegateTest.kt", |
| 232 | "tests/src/**/systemui/bluetooth/qsdialog/BluetoothTileDialogRepositoryTest.kt", |
| 233 | "tests/src/**/systemui/bluetooth/qsdialog/BluetoothTileDialogViewModelTest.kt", |
| 234 | "tests/src/**/systemui/bluetooth/qsdialog/DeviceItemFactoryTest.kt", |
| 235 | "tests/src/**/systemui/bluetooth/qsdialog/DeviceItemInteractorTest.kt", |
Mike Schneider | c776b93 | 2024-04-24 13:29:43 +0200 | [diff] [blame] | 236 | // TODO(b/322324387): Fails to start due to missing ScreenshotActivity |
| 237 | "tests/src/**/systemui/bouncer/ui/composable/BouncerContentTest.kt", |
| 238 | "tests/src/**/systemui/bouncer/ui/composable/PatternBouncerTest.kt", |
Matthew Reynolds | 30f0629 | 2024-04-30 23:48:37 +0000 | [diff] [blame] | 239 | "tests/src/**/systemui/broadcast/UserBroadcastDispatcherTest.kt", |
| 240 | "tests/src/**/systemui/charging/WiredChargingRippleControllerTest.kt", |
| 241 | "tests/src/**/systemui/clipboardoverlay/ClipboardModelTest.kt", |
| 242 | "tests/src/**/systemui/controls/controller/AuxiliaryPersistenceWrapperTest.kt", |
| 243 | "tests/src/**/systemui/controls/controller/ControlsBindingControllerImplTest.kt", |
| 244 | "tests/src/**/systemui/controls/controller/ControlsControllerImplTest.kt", |
| 245 | "tests/src/**/systemui/controls/controller/DeletionJobServiceTest.kt", |
| 246 | "tests/src/**/systemui/controls/settings/ControlsSettingsDialogManagerImplTest.kt", |
| 247 | "tests/src/**/systemui/controls/ui/ControlsUiControllerImplTest.kt", |
| 248 | "tests/src/**/systemui/controls/ui/ControlViewHolderTest.kt", |
| 249 | "tests/src/**/systemui/controls/ui/SelectionItemTest.kt", |
| 250 | "tests/src/**/systemui/keyguard/ui/view/layout/sections/DefaultDeviceEntrySectionTest.kt", |
| 251 | "tests/src/**/systemui/media/controls/domain/pipeline/LegacyMediaDataFilterImplTest.kt", |
| 252 | "tests/src/**/systemui/media/controls/domain/pipeline/LegacyMediaDataManagerImplTest.kt", |
| 253 | "tests/src/**/systemui/media/controls/domain/pipeline/MediaDataFilterImplTest.kt", |
| 254 | "tests/src/**/systemui/media/controls/ui/animation/AnimationBindHandlerTest.kt", |
| 255 | "tests/src/**/systemui/media/controls/ui/animation/ColorSchemeTransitionTest.kt", |
| 256 | "tests/src/**/systemui/media/controls/ui/animation/MetadataAnimationHandlerTest.kt", |
| 257 | "tests/src/**/systemui/media/controls/ui/controller/MediaCarouselControllerTest.kt", |
| 258 | "tests/src/**/systemui/media/controls/ui/controller/MediaControlPanelTest.kt", |
| 259 | "tests/src/**/systemui/media/controls/ui/controller/MediaViewControllerTest.kt", |
| 260 | "tests/src/**/systemui/media/controls/ui/drawable/SquigglyProgressTest.kt", |
| 261 | "tests/src/**/systemui/media/controls/ui/MediaPlayerDataTest.kt", |
| 262 | "tests/src/**/systemui/media/taptotransfer/sender/MediaTttSenderCoordinatorTest.kt", |
| 263 | "tests/src/**/systemui/navigationbar/gestural/BackPanelControllerTest.kt", |
| 264 | "tests/src/**/systemui/notetask/NoteTaskControllerTest.kt", |
| 265 | "tests/src/**/systemui/notetask/NoteTaskInitializerTest.kt", |
| 266 | "tests/src/**/systemui/power/domain/interactor/PowerInteractorTest.kt", |
| 267 | "tests/src/**/systemui/privacy/AppOpsPrivacyItemMonitorTest.kt", |
| 268 | "tests/src/**/systemui/privacy/PrivacyItemControllerTest.kt", |
| 269 | "tests/src/**/systemui/qs/external/CustomTileStatePersisterTest.kt", |
| 270 | "tests/src/**/systemui/qs/external/TileRequestDialogTest.kt", |
| 271 | "tests/src/**/systemui/qs/external/TileServiceRequestControllerTest.kt", |
| 272 | "tests/src/**/systemui/qs/tileimpl/TilesStatesTextTest.kt", |
| 273 | "tests/src/**/systemui/qs/tiles/AlarmTileTest.kt", |
| 274 | "tests/src/**/systemui/qs/tiles/BluetoothTileTest.kt", |
| 275 | "tests/src/**/systemui/screenshot/ScreenshotPolicyImplTest.kt", |
| 276 | "tests/src/**/systemui/settings/DisplayTrackerImplTest.kt", |
| 277 | "tests/src/**/systemui/settings/UserFileManagerImplTest.kt", |
| 278 | "tests/src/**/systemui/settings/UserTrackerImplReceiveTest.kt", |
| 279 | "tests/src/**/systemui/settings/UserTrackerImplTest.kt", |
| 280 | "tests/src/**/systemui/shade/GlanceableHubContainerControllerTest.kt", |
| 281 | "tests/src/**/systemui/shade/NotificationsQSContainerControllerLegacyTest.kt", |
| 282 | "tests/src/**/systemui/shade/NotificationsQSContainerControllerTest.kt", |
| 283 | "tests/src/**/systemui/shade/ShadeExpansionStateManagerTest.kt", |
| 284 | "tests/src/**/systemui/shade/ShadeHeaderControllerTest.kt", |
| 285 | "tests/src/**/systemui/shade/transition/LargeScreenShadeInterpolatorImplTest.kt", |
| 286 | "tests/src/**/systemui/statusbar/commandline/CommandParserTest.kt", |
| 287 | "tests/src/**/systemui/statusbar/connectivity/MobileStateTest.kt", |
| 288 | "tests/src/**/systemui/statusbar/events/SystemStatusAnimationSchedulerImplTest.kt", |
| 289 | "tests/src/**/systemui/statusbar/gesture/GenericGestureDetectorTest.kt", |
| 290 | "tests/src/**/systemui/statusbar/LightRevealScrimTest.kt", |
| 291 | "tests/src/**/systemui/statusbar/LockscreenShadeTransitionControllerTest.kt", |
| 292 | "tests/src/**/systemui/statusbar/notification/collection/coordinator/DataStoreCoordinatorTest.kt", |
| 293 | "tests/src/**/systemui/statusbar/notification/collection/coordinator/KeyguardCoordinatorTest.kt", |
| 294 | "tests/src/**/systemui/statusbar/notification/collection/coordinator/RowAppearanceCoordinatorTest.kt", |
| 295 | "tests/src/**/systemui/statusbar/notification/collection/coordinator/ShadeEventCoordinatorTest.kt", |
| 296 | "tests/src/**/systemui/statusbar/notification/collection/coordinator/StackCoordinatorTest.kt", |
| 297 | "tests/src/**/systemui/statusbar/notification/collection/coordinator/ViewConfigCoordinatorTest.kt", |
| 298 | "tests/src/**/systemui/statusbar/notification/logging/NotificationMemoryLoggerTest.kt", |
| 299 | "tests/src/**/systemui/statusbar/notification/logging/NotificationMemoryMeterTest.kt", |
| 300 | "tests/src/**/systemui/statusbar/notification/logging/NotificationMemoryViewWalkerTest.kt", |
| 301 | "tests/src/**/systemui/statusbar/notification/RoundableTest.kt", |
| 302 | "tests/src/**/systemui/statusbar/notification/row/ChannelEditorDialogControllerTest.kt", |
| 303 | "tests/src/**/systemui/statusbar/notification/row/SingleLineConversationViewBinderTest.kt", |
| 304 | "tests/src/**/systemui/statusbar/notification/row/SingleLineViewBinderTest.kt", |
| 305 | "tests/src/**/systemui/statusbar/notification/row/SingleLineViewInflaterTest.kt", |
| 306 | "tests/src/**/systemui/statusbar/notification/row/TextPrecomputerTest.kt", |
| 307 | "tests/src/**/systemui/statusbar/phone/FoldStateListenerTest.kt", |
| 308 | "tests/src/**/systemui/statusbar/phone/fragment/MultiSourceMinAlphaControllerTest.kt", |
| 309 | "tests/src/**/systemui/statusbar/pipeline/mobile/data/model/SystemUiCarrierConfigTest.kt", |
| 310 | "tests/src/**/systemui/statusbar/pipeline/mobile/data/repository/MobileRepositorySwitcherTest.kt", |
| 311 | "tests/src/**/systemui/statusbar/pipeline/mobile/data/repository/prod/FullMobileConnectionRepositoryTest.kt", |
| 312 | "tests/src/**/systemui/statusbar/pipeline/mobile/data/repository/prod/MobileConnectionRepositoryTest.kt", |
| 313 | "tests/src/**/systemui/statusbar/pipeline/mobile/data/repository/prod/MobileConnectionTelephonySmokeTests.kt", |
| 314 | "tests/src/**/systemui/statusbar/pipeline/shared/data/repository/ConnectivityRepositoryImplTest.kt", |
| 315 | "tests/src/**/systemui/statusbar/pipeline/wifi/shared/model/WifiNetworkModelTest.kt", |
| 316 | "tests/src/**/systemui/statusbar/pipeline/wifi/ui/viewmodel/WifiViewModelIconParameterizedTest.kt", |
| 317 | "tests/src/**/systemui/statusbar/policy/DeviceControlsControllerImplTest.kt", |
| 318 | "tests/src/**/systemui/statusbar/policy/VariableDateViewControllerTest.kt", |
| 319 | "tests/src/**/systemui/statusbar/policy/WalletControllerImplTest.kt", |
| 320 | "tests/src/**/systemui/statusbar/SplitShadeLockScreenOverScrollerTest.kt", |
| 321 | "tests/src/**/systemui/stylus/StylusUsiPowerUiTest.kt", |
| 322 | "tests/src/**/systemui/temporarydisplay/chipbar/ChipbarCoordinatorTest.kt", |
| 323 | "tests/src/**/keyguard/KeyguardUpdateMonitorTest.java", |
| 324 | "tests/src/**/keyguard/LegacyLockIconViewControllerBaseTest.java", |
| 325 | "tests/src/**/keyguard/CarrierTextManagerTest.java", |
| 326 | "tests/src/**/systemui/ScreenDecorationsTest.java", |
| 327 | "tests/src/**/systemui/temporarydisplay/chipbar/SwipeChipbarAwayGestureHandlerTest.kt", |
| 328 | "tests/src/**/systemui/media/controls/domain/pipeline/MediaDataProcessorTest.kt", |
| 329 | "tests/src/**/systemui/media/controls/domain/pipeline/LegacyMediaDataManagerImplTest.kt", |
| 330 | "tests/src/**/systemui/shared/system/RemoteTransitionTest.java", |
| 331 | "tests/src/**/systemui/navigationbar/NavigationBarControllerImplTest.java", |
| 332 | "tests/src/**/systemui/bluetooth/qsdialog/AudioSharingInteractorTest.kt", |
| 333 | "tests/src/**/systemui/notetask/quickaffordance/NoteTaskQuickAffordanceConfigTest.kt", |
| 334 | "tests/src/**/systemui/notetask/LaunchNotesRoleSettingsTrampolineActivityTest.kt", |
| 335 | "tests/src/**/systemui/notetask/shortcut/LaunchNoteTaskActivityTest.kt", |
| 336 | "tests/src/**/systemui/DisplayCutoutBaseViewTest.kt", |
| 337 | "tests/src/**/systemui/qs/tiles/dialog/InternetDialogDelegateTest.java", |
| 338 | "tests/src/**/systemui/qs/tiles/dialog/InternetDialogDelegateControllerTest.java", |
| 339 | "tests/src/**/systemui/qs/tiles/HotspotTileTest.java", |
| 340 | "tests/src/**/systemui/qs/external/TileLifecycleManagerTest.java", |
| 341 | "tests/src/**/systemui/recents/OverviewProxyServiceTest.kt", |
| 342 | "tests/src/**/systemui/stylus/StylusManagerTest.kt", |
| 343 | "tests/src/**/systemui/statusbar/phone/StatusBarNotificationActivityStarterTest.java", |
| 344 | "tests/src/**/systemui/statusbar/phone/KeyguardClockPositionAlgorithmTest.java", |
| 345 | "tests/src/**/systemui/statusbar/policy/BatteryControllerStartableTest.java", |
| 346 | "tests/src/**/systemui/statusbar/policy/BatteryControllerTest.java", |
| 347 | "tests/src/**/systemui/statusbar/policy/SensitiveNotificationProtectionControllerTest.kt", |
| 348 | "tests/src/**/systemui/statusbar/notification/NotificationSectionsFeatureManagerTest.kt", |
| 349 | "tests/src/**/systemui/statusbar/pipeline/mobile/data/repository/CarrierConfigRepositoryTest.kt", |
| 350 | "tests/src/**/systemui/statusbar/KeyboardShortcutsReceiverTest.java", |
| 351 | "tests/src/**/systemui/wmshell/BubblesTest.java", |
| 352 | "tests/src/**/systemui/biometrics/AuthRippleControllerTest.kt", |
| 353 | "tests/src/**/keyguard/KeyguardAbsKeyInputViewControllerTest.java", |
| 354 | "tests/src/**/systemui/accessibility/floatingmenu/MenuAnimationControllerTest.java", |
| 355 | "tests/src/**/systemui/clipboardoverlay/ClipboardListenerTest.java", |
| 356 | "tests/src/**/systemui/doze/DozeScreenStateTest.java", |
| 357 | "tests/src/**/systemui/keyguard/WorkLockActivityControllerTest.java", |
| 358 | "tests/src/**/systemui/media/dialog/MediaOutputControllerTest.java", |
| 359 | "tests/src/**/systemui/navigationbar/NavigationBarTest.java", |
| 360 | "tests/src/**/systemui/power/PowerNotificationWarningsTest.java", |
| 361 | "tests/src/**/systemui/power/PowerUITest.java", |
| 362 | "tests/src/**/systemui/qs/QSFooterViewControllerTest.java", |
| 363 | "tests/src/**/systemui/qs/QSImplTest.java", |
| 364 | "tests/src/**/systemui/qs/QSSecurityFooterTest.java", |
| 365 | "tests/src/**/systemui/qs/tileimpl/QSTileImplTest.java", |
| 366 | "tests/src/**/systemui/qs/tiles/QuickAccessWalletTileTest.java", |
| 367 | "tests/src/**/systemui/shade/carrier/ShadeCarrierGroupControllerTest.java", |
| 368 | "tests/src/**/systemui/shared/plugins/PluginActionManagerTest.java", |
| 369 | "tests/src/**/systemui/statusbar/CommandQueueTest.java", |
| 370 | "tests/src/**/systemui/statusbar/connectivity/CallbackHandlerTest.java", |
| 371 | "tests/src/**/systemui/statusbar/connectivity/NetworkControllerBaseTest.java", |
| 372 | "tests/src/**/systemui/statusbar/KeyguardIndicationControllerTest.java", |
| 373 | "tests/src/**/systemui/statusbar/notification/stack/NotificationStackScrollLayoutControllerTest.java", |
| 374 | "tests/src/**/systemui/statusbar/phone/ScrimControllerTest.java", |
| 375 | "tests/src/**/systemui/statusbar/policy/RotationLockControllerImplTest.java", |
| 376 | "tests/src/**/systemui/statusbar/policy/SecurityControllerTest.java", |
| 377 | "tests/src/**/systemui/toast/ToastUITest.java", |
| 378 | "tests/src/**/systemui/statusbar/connectivity/NetworkControllerDataTest.java", |
| 379 | "tests/src/**/systemui/statusbar/connectivity/NetworkControllerEthernetTest.java", |
| 380 | "tests/src/**/systemui/statusbar/connectivity/NetworkControllerSignalTest.java", |
| 381 | "tests/src/**/systemui/statusbar/connectivity/NetworkControllerWifiTest.java", |
| 382 | ], |
| 383 | visibility: ["//visibility:private"], |
| 384 | } |
| 385 | |
Xiaozhen Lin | 5306304 | 2022-11-23 02:18:08 +0000 | [diff] [blame] | 386 | //Create a library to expose SystemUI's resources to other modules. |
| 387 | android_library { |
| 388 | name: "SystemUI-res", |
Peter Kalauskas | 84c5a99 | 2023-08-23 13:39:23 -0700 | [diff] [blame] | 389 | use_resource_processor: true, |
Xiaozhen Lin | 5306304 | 2022-11-23 02:18:08 +0000 | [diff] [blame] | 390 | resource_dirs: [ |
| 391 | "res-product", |
| 392 | "res-keyguard", |
| 393 | "res", |
| 394 | ], |
| 395 | static_libs: [ |
| 396 | "SystemUISharedLib", |
Hawkwood Glazier | 057df3a | 2023-06-14 20:10:21 +0000 | [diff] [blame] | 397 | "SystemUICustomizationLib", |
Xiaozhen Lin | 5306304 | 2022-11-23 02:18:08 +0000 | [diff] [blame] | 398 | "SettingsLib", |
| 399 | "androidx.leanback_leanback", |
| 400 | "androidx.slice_slice-core", |
| 401 | "androidx.slice_slice-view", |
| 402 | ], |
| 403 | manifest: "AndroidManifest-res.xml", |
| 404 | } |
| 405 | |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 406 | android_library { |
| 407 | name: "SystemUI-core", |
| 408 | srcs: [ |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 409 | "src/**/*.kt", |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 410 | "src/**/*.java", |
| 411 | "src/**/I*.aidl", |
Dave Mankoff | 72a5002 | 2021-11-02 20:44:54 -0400 | [diff] [blame] | 412 | ":ReleaseJavaFiles", |
Jordan Demeulenaere | 941e613 | 2024-02-28 14:37:37 +0100 | [diff] [blame] | 413 | "compose/features/src/**/*.kt", |
| 414 | "compose/facade/enabled/src/**/*.kt", |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 415 | ], |
Jay Aliomer | 97d4fc7d | 2021-09-23 16:59:09 -0400 | [diff] [blame] | 416 | product_variables: { |
| 417 | debuggable: { |
| 418 | srcs: [":DebugJavaFiles"], |
| 419 | exclude_srcs: [":ReleaseJavaFiles"], |
| 420 | }, |
| 421 | }, |
Colin Cross | c23cde4 | 2023-06-21 11:22:11 -0700 | [diff] [blame] | 422 | use_resource_processor: true, |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 423 | static_libs: [ |
Peter Kalauskas | cd50f53 | 2024-04-02 15:41:14 -0700 | [diff] [blame] | 424 | "//frameworks/libs/systemui:compilelib", |
Peter Kalauskas | 84c5a99 | 2023-08-23 13:39:23 -0700 | [diff] [blame] | 425 | "SystemUI-res", |
Quang Luong | c6fc5b2 | 2021-06-10 14:35:32 -0700 | [diff] [blame] | 426 | "WifiTrackerLib", |
Winson Chung | 10a9b4b | 2019-12-18 10:01:36 -0800 | [diff] [blame] | 427 | "WindowManager-Shell", |
Luca Zuccarini | 674ecf0 | 2023-12-20 15:51:55 +0100 | [diff] [blame] | 428 | "PlatformAnimationLib", |
Darrell Shi | 6000632 | 2023-04-06 17:58:40 +0000 | [diff] [blame] | 429 | "SystemUICommon", |
| 430 | "SystemUICustomizationLib", |
Darrell Shi | 1a21b36 | 2023-04-28 19:51:44 +0000 | [diff] [blame] | 431 | "SystemUILogLib", |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 432 | "SystemUIPluginLib", |
| 433 | "SystemUISharedLib", |
Steve Elliott | 4c43201 | 2024-04-15 11:41:14 -0400 | [diff] [blame] | 434 | "SystemUI-shared-utils", |
Jerry Chang | 919d1d2 | 2020-07-16 12:31:24 +0800 | [diff] [blame] | 435 | "SystemUI-statsd", |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 436 | "SettingsLib", |
Ned Burns | 6d480c3 | 2023-08-28 12:12:19 -0400 | [diff] [blame] | 437 | "com_android_systemui_flags_lib", |
Peter Kalauskas | cd50f53 | 2024-04-02 15:41:14 -0700 | [diff] [blame] | 438 | "//frameworks/libs/systemui:com_android_systemui_shared_flags_lib", |
Alejandro Nijamkin | 3885964 | 2022-06-27 14:18:17 -0700 | [diff] [blame] | 439 | "androidx.core_core-ktx", |
Fabian Kozynski | 713b727 | 2020-03-03 18:35:52 -0500 | [diff] [blame] | 440 | "androidx.viewpager2_viewpager2", |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 441 | "androidx.legacy_legacy-support-v4", |
| 442 | "androidx.recyclerview_recyclerview", |
| 443 | "androidx.preference_preference", |
| 444 | "androidx.appcompat_appcompat", |
Mark Renouf | e239501 | 2020-12-16 01:05:12 -0500 | [diff] [blame] | 445 | "androidx.concurrent_concurrent-futures", |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 446 | "androidx.mediarouter_mediarouter", |
| 447 | "androidx.palette_palette", |
| 448 | "androidx.legacy_legacy-preference-v14", |
| 449 | "androidx.leanback_leanback", |
| 450 | "androidx.slice_slice-core", |
| 451 | "androidx.slice_slice-view", |
| 452 | "androidx.slice_slice-builders", |
| 453 | "androidx.arch.core_core-runtime", |
Bryce Lee | 436e42c | 2022-01-24 14:53:49 -0800 | [diff] [blame] | 454 | "androidx.lifecycle_lifecycle-common-java8", |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 455 | "androidx.lifecycle_lifecycle-extensions", |
Jordan Demeulenaere | 8a169ff | 2022-07-13 10:42:10 +0200 | [diff] [blame] | 456 | "androidx.lifecycle_lifecycle-runtime-ktx", |
Joshua Tsuji | b1a796b | 2019-01-16 15:43:12 -0800 | [diff] [blame] | 457 | "androidx.dynamicanimation_dynamicanimation", |
Steve Elliott | 300b48f | 2019-05-29 14:13:50 -0400 | [diff] [blame] | 458 | "androidx-constraintlayout_constraintlayout", |
Miranda Kephart | e1a22b9 | 2020-12-16 14:01:12 -0500 | [diff] [blame] | 459 | "androidx.exifinterface_exifinterface", |
Coco Duan | d8ef181 | 2023-10-19 21:35:01 +0000 | [diff] [blame] | 460 | "androidx.room_room-runtime", |
| 461 | "androidx.room_room-ktx", |
Lucas Dupin | 00c1a60 | 2022-02-16 16:40:36 -0800 | [diff] [blame] | 462 | "com.google.android.material_material", |
Nicolo' Mazzucato | adc0250 | 2023-11-30 16:09:19 +0000 | [diff] [blame] | 463 | "device_state_flags_lib", |
Steve Elliott | a7d7205 | 2020-12-16 23:04:19 -0500 | [diff] [blame] | 464 | "kotlinx_coroutines_android", |
| 465 | "kotlinx_coroutines", |
Peter Kalauskas | cd50f53 | 2024-04-02 15:41:14 -0700 | [diff] [blame] | 466 | "//frameworks/libs/systemui:iconloader_base", |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 467 | "SystemUI-tags", |
| 468 | "SystemUI-proto", |
Lucas Dupin | e37369f | 2021-08-31 00:19:39 +0000 | [diff] [blame] | 469 | "monet", |
Lucas Dupin | d83b4ee | 2023-07-08 11:05:47 -0700 | [diff] [blame] | 470 | "libmonet", |
Dave Mankoff | dffcc47 | 2020-07-08 15:25:16 -0400 | [diff] [blame] | 471 | "dagger2", |
Brett Chabot | fc8675a | 2023-03-27 10:33:10 -0700 | [diff] [blame] | 472 | "jsr305", |
Andy Wickham | 64e3410 | 2021-03-07 16:02:01 -0800 | [diff] [blame] | 473 | "jsr330", |
Beverly | 46817e1 | 2021-06-22 16:29:52 -0400 | [diff] [blame] | 474 | "lottie", |
Lucas Silva | 0bfb405 | 2022-09-20 23:32:02 -0400 | [diff] [blame] | 475 | "LowLightDreamLib", |
Stefan Andonian | 2de9db7 | 2024-03-08 04:43:38 +0000 | [diff] [blame] | 476 | "TraceurCommon", |
Peter Kalauskas | cd50f53 | 2024-04-02 15:41:14 -0700 | [diff] [blame] | 477 | "//frameworks/libs/systemui:motion_tool_lib", |
Valentin Iftime | a08bd96 | 2023-12-11 19:22:51 +0100 | [diff] [blame] | 478 | "notification_flags_lib", |
Jordan Demeulenaere | 941e613 | 2024-02-28 14:37:37 +0100 | [diff] [blame] | 479 | "PlatformComposeCore", |
| 480 | "PlatformComposeSceneTransitionLayout", |
| 481 | "androidx.compose.runtime_runtime", |
| 482 | "androidx.compose.material3_material3", |
| 483 | "androidx.compose.material_material-icons-extended", |
| 484 | "androidx.activity_activity-compose", |
| 485 | "androidx.compose.animation_animation-graphics", |
Kholoud Mohamed | b9b19b1 | 2024-05-08 19:11:37 +0000 | [diff] [blame] | 486 | "device_policy_aconfig_flags_lib", |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 487 | ], |
Nikolas Havrikov | c70cb07 | 2023-09-08 15:06:35 +0200 | [diff] [blame] | 488 | libs: [ |
| 489 | "keepanno-annotations", |
| 490 | ], |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 491 | manifest: "AndroidManifest.xml", |
| 492 | |
Coco Duan | d8ef181 | 2023-10-19 21:35:01 +0000 | [diff] [blame] | 493 | javacflags: [ |
| 494 | "-Adagger.fastInit=enabled", |
Dave Mankoff | f69c342 | 2024-01-26 20:59:11 +0000 | [diff] [blame] | 495 | "-Adagger.explicitBindingConflictsWithInject=ERROR", |
| 496 | "-Adagger.strictMultibindingValidation=enabled", |
Coco Duan | d8ef181 | 2023-10-19 21:35:01 +0000 | [diff] [blame] | 497 | "-Aroom.schemaLocation=frameworks/base/packages/SystemUI/schemas", |
| 498 | ], |
Colin Cross | 6954ea7 | 2023-07-18 10:52:21 -0700 | [diff] [blame] | 499 | kotlincflags: ["-Xjvm-default=all"], |
Jason Monk | 73e8ffc | 2018-12-06 14:45:19 -0500 | [diff] [blame] | 500 | |
Coco Duan | d8ef181 | 2023-10-19 21:35:01 +0000 | [diff] [blame] | 501 | plugins: [ |
| 502 | "androidx.room_room-compiler-plugin", |
| 503 | "dagger2-compiler", |
| 504 | ], |
Jernej Virag | bb4ff3f | 2022-03-10 17:52:11 +0000 | [diff] [blame] | 505 | |
| 506 | lint: { |
| 507 | extra_check_modules: ["SystemUILintChecker"], |
Michal Brzezinski | d552d1f | 2023-09-29 15:00:19 +0100 | [diff] [blame] | 508 | warning_checks: ["MissingApacheLicenseDetector"], |
Peter Kalauskas | de4b6e1 | 2024-04-18 17:22:49 -0700 | [diff] [blame] | 509 | baseline_filename: "lint-baseline.xml", |
Jernej Virag | bb4ff3f | 2022-03-10 17:52:11 +0000 | [diff] [blame] | 510 | }, |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 511 | } |
| 512 | |
Tadashi G. Takaoka | a6572dc | 2019-09-17 15:18:53 +0900 | [diff] [blame] | 513 | filegroup { |
Fabian Kozynski | d389df5 | 2022-01-06 10:52:51 -0500 | [diff] [blame] | 514 | name: "AAA-src", |
| 515 | srcs: ["tests/src/com/android/AAAPlusPlusVerifySysuiRequiredTestPropertiesTest.java"], |
| 516 | path: "tests/src", |
| 517 | } |
| 518 | |
| 519 | filegroup { |
Steve Elliott | b42fe7c | 2024-03-28 14:00:20 -0400 | [diff] [blame] | 520 | name: "kosmos-src", |
| 521 | srcs: ["tests/utils/kosmos/src/**/*.kt"], |
| 522 | path: "tests/utils/kosmos", |
| 523 | } |
| 524 | |
| 525 | java_library { |
| 526 | name: "kosmos", |
| 527 | host_supported: true, |
| 528 | srcs: [":kosmos-src"], |
| 529 | static_libs: [ |
| 530 | "kotlin-reflect", |
| 531 | "kotlin-stdlib", |
| 532 | ], |
| 533 | } |
| 534 | |
| 535 | filegroup { |
Tadashi G. Takaoka | a6572dc | 2019-09-17 15:18:53 +0900 | [diff] [blame] | 536 | name: "SystemUI-tests-utils", |
| 537 | srcs: [ |
Jordan Demeulenaere | f7fed3c | 2022-07-28 18:06:49 +0200 | [diff] [blame] | 538 | "tests/utils/src/**/*.java", |
| 539 | "tests/utils/src/**/*.kt", |
Steve Elliott | b42fe7c | 2024-03-28 14:00:20 -0400 | [diff] [blame] | 540 | ":kosmos-src", |
Dave Mankoff | b4935a2 | 2021-06-01 15:12:15 -0400 | [diff] [blame] | 541 | ], |
Steve Elliott | b42fe7c | 2024-03-28 14:00:20 -0400 | [diff] [blame] | 542 | path: "tests/utils", |
Tadashi G. Takaoka | a6572dc | 2019-09-17 15:18:53 +0900 | [diff] [blame] | 543 | } |
| 544 | |
Kevin Liu | d379323 | 2023-02-09 20:37:27 +0000 | [diff] [blame] | 545 | filegroup { |
David Saff | b231961 | 2023-10-19 14:14:16 -0400 | [diff] [blame] | 546 | name: "SystemUI-tests-multivalent", |
| 547 | srcs: [ |
| 548 | "multivalentTests/src/**/*.kt", |
Rex Hoffman | 1477e0f | 2023-11-28 17:18:28 +0000 | [diff] [blame] | 549 | "multivalentTests/src/**/*.java", |
David Saff | b231961 | 2023-10-19 14:14:16 -0400 | [diff] [blame] | 550 | ], |
| 551 | path: "multivalentTests/src", |
| 552 | } |
| 553 | |
Bryce Lee | a5b0808 | 2021-10-06 11:34:56 -0700 | [diff] [blame] | 554 | java_library { |
| 555 | name: "SystemUI-tests-concurrency", |
| 556 | srcs: [ |
| 557 | "src/com/android/systemui/util/concurrency/DelayableExecutor.java", |
| 558 | "src/com/android/systemui/util/time/SystemClock.java", |
Jordan Demeulenaere | f7fed3c | 2022-07-28 18:06:49 +0200 | [diff] [blame] | 559 | "tests/utils/src/com/android/systemui/util/concurrency/FakeExecutor.java", |
| 560 | "tests/utils/src/com/android/systemui/util/time/FakeSystemClock.java", |
Bryce Lee | a5b0808 | 2021-10-06 11:34:56 -0700 | [diff] [blame] | 561 | ], |
| 562 | jarjar_rules: ":jarjar-rules-shared", |
| 563 | } |
| 564 | |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 565 | android_library { |
Jay Aliomer | 9b13ae1 | 2022-11-28 14:50:09 +0000 | [diff] [blame] | 566 | name: "SystemUI-tests-base", |
Peter Kalauskas | 84c5a99 | 2023-08-23 13:39:23 -0700 | [diff] [blame] | 567 | use_resource_processor: true, |
Sunny Goyal | eb18d39 | 2020-02-07 16:48:14 -0800 | [diff] [blame] | 568 | manifest: "tests/AndroidManifest-base.xml", |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 569 | resource_dirs: [ |
| 570 | "tests/res", |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 571 | ], |
Luca Zuccarini | 23b4cb2 | 2024-02-20 16:55:21 +0000 | [diff] [blame] | 572 | asset_dirs: [ |
| 573 | "tests/goldens", |
| 574 | ], |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 575 | static_libs: [ |
Peter Kalauskas | 84c5a99 | 2023-08-23 13:39:23 -0700 | [diff] [blame] | 576 | "SystemUI-res", |
Quang Luong | c6fc5b2 | 2021-06-10 14:35:32 -0700 | [diff] [blame] | 577 | "WifiTrackerLib", |
Luca Zuccarini | 674ecf0 | 2023-12-20 15:51:55 +0100 | [diff] [blame] | 578 | "PlatformAnimationLib", |
Mike Schneider | c776b93 | 2024-04-24 13:29:43 +0200 | [diff] [blame] | 579 | "PlatformMotionTestingCompose", |
| 580 | "ScreenshotComposeUtilsLib", |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 581 | "SystemUIPluginLib", |
| 582 | "SystemUISharedLib", |
Hawkwood Glazier | b8eef87 | 2022-11-11 17:56:14 +0000 | [diff] [blame] | 583 | "SystemUICustomizationLib", |
Ioana Alexandru | 7678de9e | 2023-12-04 21:07:23 +0100 | [diff] [blame] | 584 | "SystemUICustomizationTestUtils", |
Steve Elliott | 4c43201 | 2024-04-15 11:41:14 -0400 | [diff] [blame] | 585 | "SystemUI-shared-utils", |
Hyunyoung Song | 3d89c93 | 2020-04-11 13:31:06 -0700 | [diff] [blame] | 586 | "SystemUI-statsd", |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 587 | "SettingsLib", |
Ned Burns | 6d480c3 | 2023-08-28 12:12:19 -0400 | [diff] [blame] | 588 | "com_android_systemui_flags_lib", |
Peter Kalauskas | cd50f53 | 2024-04-02 15:41:14 -0700 | [diff] [blame] | 589 | "//frameworks/libs/systemui:com_android_systemui_shared_flags_lib", |
Jeff DeCew | 91a5396 | 2023-10-06 15:40:23 +0000 | [diff] [blame] | 590 | "flag-junit-base", |
Jeff DeCew | caef3b3 | 2023-11-13 03:13:13 +0000 | [diff] [blame] | 591 | "platform-parametric-runner-lib", |
Fabian Kozynski | 713b727 | 2020-03-03 18:35:52 -0500 | [diff] [blame] | 592 | "androidx.viewpager2_viewpager2", |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 593 | "androidx.legacy_legacy-support-v4", |
| 594 | "androidx.recyclerview_recyclerview", |
| 595 | "androidx.preference_preference", |
| 596 | "androidx.appcompat_appcompat", |
Mark Renouf | e239501 | 2020-12-16 01:05:12 -0500 | [diff] [blame] | 597 | "androidx.concurrent_concurrent-futures", |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 598 | "androidx.mediarouter_mediarouter", |
| 599 | "androidx.palette_palette", |
| 600 | "androidx.legacy_legacy-preference-v14", |
| 601 | "androidx.leanback_leanback", |
| 602 | "androidx.slice_slice-core", |
| 603 | "androidx.slice_slice-view", |
| 604 | "androidx.slice_slice-builders", |
| 605 | "androidx.arch.core_core-runtime", |
Bryce Lee | 436e42c | 2022-01-24 14:53:49 -0800 | [diff] [blame] | 606 | "androidx.lifecycle_lifecycle-common-java8", |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 607 | "androidx.lifecycle_lifecycle-extensions", |
Jordan Demeulenaere | 8a169ff | 2022-07-13 10:42:10 +0200 | [diff] [blame] | 608 | "androidx.lifecycle_lifecycle-runtime-ktx", |
Joshua Tsuji | b1a796b | 2019-01-16 15:43:12 -0800 | [diff] [blame] | 609 | "androidx.dynamicanimation_dynamicanimation", |
Steve Elliott | 300b48f | 2019-05-29 14:13:50 -0400 | [diff] [blame] | 610 | "androidx-constraintlayout_constraintlayout", |
Miranda Kephart | e1a22b9 | 2020-12-16 14:01:12 -0500 | [diff] [blame] | 611 | "androidx.exifinterface_exifinterface", |
Coco Duan | d8ef181 | 2023-10-19 21:35:01 +0000 | [diff] [blame] | 612 | "androidx.room_room-runtime", |
| 613 | "androidx.room_room-ktx", |
Nicolo' Mazzucato | adc0250 | 2023-11-30 16:09:19 +0000 | [diff] [blame] | 614 | "device_state_flags_lib", |
Pinyao Ting | ee191b1 | 2020-04-29 18:35:39 -0700 | [diff] [blame] | 615 | "kotlinx-coroutines-android", |
| 616 | "kotlinx-coroutines-core", |
Alejandro Nijamkin | c738a8c | 2022-07-25 13:30:41 -0700 | [diff] [blame] | 617 | "kotlinx_coroutines_test", |
Chandru | 5a5e533 | 2022-08-19 14:25:31 +0000 | [diff] [blame] | 618 | "kotlin-reflect", |
Peter Kalauskas | cd50f53 | 2024-04-02 15:41:14 -0700 | [diff] [blame] | 619 | "//frameworks/libs/systemui:iconloader_base", |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 620 | "SystemUI-tags", |
| 621 | "SystemUI-proto", |
| 622 | "metrics-helper-lib", |
Tadashi G. Takaoka | c7340fb | 2020-10-20 17:50:13 +0900 | [diff] [blame] | 623 | "hamcrest-library", |
| 624 | "androidx.test.rules", |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 625 | "testables", |
Krzysztof KosiĆski | 60b7087 | 2023-10-06 20:11:39 +0000 | [diff] [blame] | 626 | "truth", |
Lucas Dupin | e37369f | 2021-08-31 00:19:39 +0000 | [diff] [blame] | 627 | "monet", |
Lucas Dupin | d83b4ee | 2023-07-08 11:05:47 -0700 | [diff] [blame] | 628 | "libmonet", |
Dave Mankoff | dffcc47 | 2020-07-08 15:25:16 -0400 | [diff] [blame] | 629 | "dagger2", |
Bill Lin | a17858d1 | 2020-07-14 10:30:10 +0800 | [diff] [blame] | 630 | "jsr330", |
| 631 | "WindowManager-Shell", |
Lucas Silva | 0bfb405 | 2022-09-20 23:32:02 -0400 | [diff] [blame] | 632 | "LowLightDreamLib", |
Peter Kalauskas | cd50f53 | 2024-04-02 15:41:14 -0700 | [diff] [blame] | 633 | "//frameworks/libs/systemui:motion_tool_lib", |
Colin Cross | 64ee6e2 | 2024-03-25 15:21:29 -0700 | [diff] [blame] | 634 | "androidx.core_core-animation-testing", |
Jordan Demeulenaere | 54a0fae | 2023-01-04 11:36:46 +0100 | [diff] [blame] | 635 | "androidx.compose.ui_ui", |
Riley Jones | 84156fc | 2023-09-06 22:27:37 +0000 | [diff] [blame] | 636 | "flag-junit", |
Jeff Sharkey | 0b31917 | 2024-01-25 10:58:48 -0700 | [diff] [blame] | 637 | "ravenwood-junit", |
Riley Jones | 84156fc | 2023-09-06 22:27:37 +0000 | [diff] [blame] | 638 | "platform-test-annotations", |
Valentin Iftime | a08bd96 | 2023-12-11 19:22:51 +0100 | [diff] [blame] | 639 | "notification_flags_lib", |
Jordan Demeulenaere | 941e613 | 2024-02-28 14:37:37 +0100 | [diff] [blame] | 640 | "PlatformComposeCore", |
| 641 | "PlatformComposeSceneTransitionLayout", |
| 642 | "androidx.compose.runtime_runtime", |
| 643 | "androidx.compose.material3_material3", |
| 644 | "androidx.compose.material_material-icons-extended", |
| 645 | "androidx.activity_activity-compose", |
| 646 | "androidx.compose.animation_animation-graphics", |
Stefan Andonian | 2de9db7 | 2024-03-08 04:43:38 +0000 | [diff] [blame] | 647 | "TraceurCommon", |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 648 | ], |
Jay Aliomer | 9b13ae1 | 2022-11-28 14:50:09 +0000 | [diff] [blame] | 649 | } |
| 650 | |
| 651 | android_library { |
| 652 | name: "SystemUI-tests", |
Peter Kalauskas | 84c5a99 | 2023-08-23 13:39:23 -0700 | [diff] [blame] | 653 | use_resource_processor: true, |
Jay Aliomer | 9b13ae1 | 2022-11-28 14:50:09 +0000 | [diff] [blame] | 654 | manifest: "tests/AndroidManifest-base.xml", |
Colin Cross | 164493b | 2024-03-05 13:32:44 -0800 | [diff] [blame] | 655 | resource_dirs: [], |
Jay Aliomer | 9b13ae1 | 2022-11-28 14:50:09 +0000 | [diff] [blame] | 656 | additional_manifests: ["tests/AndroidManifest.xml"], |
| 657 | srcs: [ |
| 658 | "tests/src/**/*.kt", |
| 659 | "tests/src/**/*.java", |
| 660 | "src/**/*.kt", |
| 661 | "src/**/*.java", |
| 662 | "src/**/I*.aidl", |
| 663 | ":ReleaseJavaFiles", |
David Saff | b231961 | 2023-10-19 14:14:16 -0400 | [diff] [blame] | 664 | ":SystemUI-tests-multivalent", |
Jay Aliomer | 9b13ae1 | 2022-11-28 14:50:09 +0000 | [diff] [blame] | 665 | ":SystemUI-tests-utils", |
Jordan Demeulenaere | 941e613 | 2024-02-28 14:37:37 +0100 | [diff] [blame] | 666 | "compose/features/src/**/*.kt", |
| 667 | "compose/facade/enabled/src/**/*.kt", |
Jay Aliomer | 9b13ae1 | 2022-11-28 14:50:09 +0000 | [diff] [blame] | 668 | ], |
| 669 | static_libs: [ |
Peter Kalauskas | cd50f53 | 2024-04-02 15:41:14 -0700 | [diff] [blame] | 670 | "//frameworks/libs/systemui:compilelib", |
Jay Aliomer | 9b13ae1 | 2022-11-28 14:50:09 +0000 | [diff] [blame] | 671 | "SystemUI-tests-base", |
| 672 | "androidx.test.uiautomator_uiautomator", |
Jeff DeCew | a415d0e | 2023-08-02 11:30:09 -0400 | [diff] [blame] | 673 | "androidx.core_core-animation-testing", |
Jay Aliomer | 9b13ae1 | 2022-11-28 14:50:09 +0000 | [diff] [blame] | 674 | "mockito-target-extended-minus-junit4", |
Mark Renouf | a622520 | 2024-05-10 12:55:48 -0400 | [diff] [blame] | 675 | "mockito-kotlin-nodeps", |
Jay Aliomer | 9b13ae1 | 2022-11-28 14:50:09 +0000 | [diff] [blame] | 676 | "androidx.test.ext.junit", |
Steven Ng | 45b74c6 | 2023-03-23 11:23:02 +0000 | [diff] [blame] | 677 | "androidx.test.ext.truth", |
Colin Cross | 852cd14 | 2023-08-11 16:53:55 -0700 | [diff] [blame] | 678 | "kotlin-test", |
Luca Zuccarini | 23b4cb2 | 2024-02-20 16:55:21 +0000 | [diff] [blame] | 679 | "platform-screenshot-diff-core", |
| 680 | "PlatformMotionTesting", |
Ioana Alexandru | 47ddbb7 | 2023-12-15 21:24:47 +0100 | [diff] [blame] | 681 | "SystemUICustomizationTestUtils", |
Jordan Demeulenaere | 941e613 | 2024-02-28 14:37:37 +0100 | [diff] [blame] | 682 | "androidx.compose.runtime_runtime", |
Steve Elliott | b42fe7c | 2024-03-28 14:00:20 -0400 | [diff] [blame] | 683 | "kosmos", |
Fangqiu Su | b58fa97 | 2023-12-19 18:14:55 +0000 | [diff] [blame] | 684 | "androidx.test.rules", |
Jay Aliomer | 9b13ae1 | 2022-11-28 14:50:09 +0000 | [diff] [blame] | 685 | ], |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 686 | libs: [ |
| 687 | "android.test.runner", |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 688 | "android.test.base", |
Jordan Demeulenaere | 6fb22d4 | 2022-08-19 15:00:36 +0200 | [diff] [blame] | 689 | "android.test.mock", |
Nikolas Havrikov | c70cb07 | 2023-09-08 15:06:35 +0200 | [diff] [blame] | 690 | "keepanno-annotations", |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 691 | ], |
Colin Cross | 6954ea7 | 2023-07-18 10:52:21 -0700 | [diff] [blame] | 692 | kotlincflags: ["-Xjvm-default=all"], |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 693 | aaptflags: [ |
| 694 | "--extra-packages", |
Hyunyoung Song | 8f9d34c | 2019-08-30 14:47:43 -0700 | [diff] [blame] | 695 | "com.android.systemui", |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 696 | ], |
Coco Duan | d8ef181 | 2023-10-19 21:35:01 +0000 | [diff] [blame] | 697 | plugins: [ |
| 698 | "androidx.room_room-compiler-plugin", |
| 699 | "dagger2-compiler", |
| 700 | ], |
Cole Faust | 17f1e72 | 2022-08-16 15:30:26 -0700 | [diff] [blame] | 701 | lint: { |
| 702 | test: true, |
Jeff Chen | 194a13f | 2023-03-16 15:40:05 -0700 | [diff] [blame] | 703 | extra_check_modules: ["SystemUILintChecker"], |
Cole Faust | 17f1e72 | 2022-08-16 15:30:26 -0700 | [diff] [blame] | 704 | }, |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 705 | } |
| 706 | |
Jay Aliomer | 9b13ae1 | 2022-11-28 14:50:09 +0000 | [diff] [blame] | 707 | android_app { |
| 708 | name: "SystemUIRobo-stub", |
Jeff Sharkey | 0b31917 | 2024-01-25 10:58:48 -0700 | [diff] [blame] | 709 | // SystemUiRavenTests references the .aapt.srcjar |
| 710 | use_resource_processor: false, |
Jay Aliomer | 9b13ae1 | 2022-11-28 14:50:09 +0000 | [diff] [blame] | 711 | defaults: [ |
| 712 | "platform_app_defaults", |
Jared Duke | 5bf6fb3 | 2023-02-23 14:27:47 -0800 | [diff] [blame] | 713 | "SystemUI_optimized_defaults", |
Jay Aliomer | 9b13ae1 | 2022-11-28 14:50:09 +0000 | [diff] [blame] | 714 | ], |
| 715 | manifest: "tests/AndroidManifest-base.xml", |
Kevin Liu | d379323 | 2023-02-09 20:37:27 +0000 | [diff] [blame] | 716 | |
| 717 | srcs: [ |
| 718 | "src/**/*.kt", |
| 719 | "src/**/*.java", |
| 720 | "src/**/I*.aidl", |
| 721 | ":ReleaseJavaFiles", |
Jordan Demeulenaere | 941e613 | 2024-02-28 14:37:37 +0100 | [diff] [blame] | 722 | "compose/features/src/**/*.kt", |
| 723 | "compose/facade/enabled/src/**/*.kt", |
Kevin Liu | d379323 | 2023-02-09 20:37:27 +0000 | [diff] [blame] | 724 | ], |
Jay Aliomer | 9b13ae1 | 2022-11-28 14:50:09 +0000 | [diff] [blame] | 725 | static_libs: [ |
Peter Kalauskas | cd50f53 | 2024-04-02 15:41:14 -0700 | [diff] [blame] | 726 | "//frameworks/libs/systemui:compilelib", |
Jay Aliomer | 9b13ae1 | 2022-11-28 14:50:09 +0000 | [diff] [blame] | 727 | "SystemUI-tests-base", |
Jordan Demeulenaere | 941e613 | 2024-02-28 14:37:37 +0100 | [diff] [blame] | 728 | "androidx.compose.runtime_runtime", |
Kholoud Mohamed | b9b19b1 | 2024-05-08 19:11:37 +0000 | [diff] [blame] | 729 | "SystemUI-core", |
Jay Aliomer | 9b13ae1 | 2022-11-28 14:50:09 +0000 | [diff] [blame] | 730 | ], |
Nikolas Havrikov | c70cb07 | 2023-09-08 15:06:35 +0200 | [diff] [blame] | 731 | libs: [ |
| 732 | "keepanno-annotations", |
| 733 | ], |
Jay Aliomer | 9b13ae1 | 2022-11-28 14:50:09 +0000 | [diff] [blame] | 734 | aaptflags: [ |
| 735 | "--extra-packages", |
| 736 | "com.android.systemui", |
| 737 | ], |
| 738 | dont_merge_manifests: true, |
| 739 | platform_apis: true, |
| 740 | system_ext_specific: true, |
| 741 | certificate: "platform", |
| 742 | privileged: true, |
| 743 | resource_dirs: [], |
Kevin Liu | d379323 | 2023-02-09 20:37:27 +0000 | [diff] [blame] | 744 | kotlincflags: ["-Xjvm-default=all"], |
Kevin Liu | 092b821 | 2023-02-15 05:42:34 +0000 | [diff] [blame] | 745 | optimize: { |
| 746 | shrink_resources: false, |
Rico Wind | 65526b2 | 2024-03-19 09:02:58 +0100 | [diff] [blame] | 747 | optimized_shrink_resources: false, |
Kevin Liu | 092b821 | 2023-02-15 05:42:34 +0000 | [diff] [blame] | 748 | proguard_flags_files: ["proguard.flags"], |
| 749 | }, |
Kevin Liu | d379323 | 2023-02-09 20:37:27 +0000 | [diff] [blame] | 750 | |
| 751 | plugins: ["dagger2-compiler"], |
Jay Aliomer | 9b13ae1 | 2022-11-28 14:50:09 +0000 | [diff] [blame] | 752 | } |
| 753 | |
Matthew Reynolds | 30f0629 | 2024-04-30 23:48:37 +0000 | [diff] [blame] | 754 | java_library { |
| 755 | name: "RoboTestLibraries", |
| 756 | static_libs: [ |
| 757 | "dagger2", |
| 758 | "androidx.test.uiautomator_uiautomator", |
| 759 | "androidx.core_core-animation-testing", |
| 760 | "androidx.test.ext.junit", |
| 761 | "inline-mockito-robolectric-prebuilt", |
Mark Renouf | a622520 | 2024-05-10 12:55:48 -0400 | [diff] [blame] | 762 | "mockito-kotlin-nodeps", |
Matthew Reynolds | 30f0629 | 2024-04-30 23:48:37 +0000 | [diff] [blame] | 763 | "platform-parametric-runner-lib", |
| 764 | "SystemUICustomizationTestUtils", |
| 765 | "kotlin-test", |
| 766 | "kosmos", |
| 767 | ], |
| 768 | } |
| 769 | |
Jay Aliomer | 9b13ae1 | 2022-11-28 14:50:09 +0000 | [diff] [blame] | 770 | android_robolectric_test { |
| 771 | name: "SystemUiRoboTests", |
| 772 | srcs: [ |
| 773 | "tests/robolectric/src/**/*.kt", |
| 774 | "tests/robolectric/src/**/*.java", |
Kevin Liu | d379323 | 2023-02-09 20:37:27 +0000 | [diff] [blame] | 775 | ":SystemUI-tests-utils", |
David Saff | b231961 | 2023-10-19 14:14:16 -0400 | [diff] [blame] | 776 | ":SystemUI-tests-multivalent", |
Kevin Liu | d379323 | 2023-02-09 20:37:27 +0000 | [diff] [blame] | 777 | ], |
| 778 | static_libs: [ |
Matthew Reynolds | 30f0629 | 2024-04-30 23:48:37 +0000 | [diff] [blame] | 779 | "RoboTestLibraries", |
| 780 | ], |
| 781 | libs: [ |
| 782 | "android.test.runner", |
| 783 | "android.test.base", |
| 784 | "android.test.mock", |
| 785 | "truth", |
| 786 | ], |
| 787 | |
| 788 | upstream: true, |
| 789 | |
| 790 | instrumentation_for: "SystemUIRobo-stub", |
| 791 | java_resource_dirs: ["tests/robolectric/config"], |
| 792 | plugins: [ |
| 793 | "dagger2-compiler", |
| 794 | ], |
Matthew Reynolds | 029f1b3 | 2024-05-23 21:13:19 +0000 | [diff] [blame] | 795 | strict_mode: false, |
Matthew Reynolds | 30f0629 | 2024-04-30 23:48:37 +0000 | [diff] [blame] | 796 | } |
| 797 | |
| 798 | // in-place tests which use Robolectric in the tests directory |
| 799 | // instead of multivalentTests |
| 800 | android_robolectric_test { |
| 801 | name: "SystemUiRoboTestsInplace", |
| 802 | srcs: [ |
| 803 | "tests/robolectric/src/**/*.kt", |
| 804 | "tests/robolectric/src/**/*.java", |
| 805 | ":SystemUI-tests-utils", |
| 806 | ":SystemUI-tests-multivalent", |
| 807 | ":SystemUI-tests-robofiles", |
| 808 | ], |
| 809 | exclude_srcs: [ |
Matthew Reynolds | 4265fe6 | 2024-05-03 16:41:56 +0000 | [diff] [blame] | 810 | ":SystemUI-tests-broken-robofiles-compile", |
| 811 | ":SystemUI-tests-broken-robofiles-run", |
Matthew Reynolds | 30f0629 | 2024-04-30 23:48:37 +0000 | [diff] [blame] | 812 | ], |
| 813 | static_libs: [ |
| 814 | "RoboTestLibraries", |
Jay Aliomer | 9b13ae1 | 2022-11-28 14:50:09 +0000 | [diff] [blame] | 815 | ], |
| 816 | libs: [ |
| 817 | "android.test.runner", |
| 818 | "android.test.base", |
| 819 | "android.test.mock", |
Krzysztof KosiĆski | 60b7087 | 2023-10-06 20:11:39 +0000 | [diff] [blame] | 820 | "truth", |
Jay Aliomer | 9b13ae1 | 2022-11-28 14:50:09 +0000 | [diff] [blame] | 821 | ], |
Kevin Liu | d379323 | 2023-02-09 20:37:27 +0000 | [diff] [blame] | 822 | |
| 823 | upstream: true, |
| 824 | |
Jay Aliomer | 9b13ae1 | 2022-11-28 14:50:09 +0000 | [diff] [blame] | 825 | instrumentation_for: "SystemUIRobo-stub", |
| 826 | java_resource_dirs: ["tests/robolectric/config"], |
Beverly | 56039f5 | 2023-11-13 21:56:33 +0000 | [diff] [blame] | 827 | plugins: [ |
| 828 | "dagger2-compiler", |
| 829 | ], |
Matthew Reynolds | 029f1b3 | 2024-05-23 21:13:19 +0000 | [diff] [blame] | 830 | strict_mode: false, |
Jay Aliomer | 9b13ae1 | 2022-11-28 14:50:09 +0000 | [diff] [blame] | 831 | } |
| 832 | |
Jeff Sharkey | 0b31917 | 2024-01-25 10:58:48 -0700 | [diff] [blame] | 833 | android_ravenwood_test { |
| 834 | name: "SystemUiRavenTests", |
| 835 | srcs: [ |
| 836 | ":SystemUI-tests-utils", |
| 837 | ":SystemUI-tests-multivalent", |
| 838 | // TODO(b/294256649): pivot to using {.aapt.jar} and re-enable |
| 839 | // use_resource_processor: true when better supported by soong |
| 840 | ":SystemUIRobo-stub{.aapt.srcjar}", |
| 841 | ], |
| 842 | static_libs: [ |
| 843 | "SystemUI-core", |
| 844 | "SystemUI-res", |
| 845 | "SystemUI-tests-base", |
| 846 | "androidx.test.uiautomator_uiautomator", |
| 847 | "androidx.core_core-animation-testing", |
| 848 | "androidx.test.ext.junit", |
Steve Elliott | b42fe7c | 2024-03-28 14:00:20 -0400 | [diff] [blame] | 849 | "kosmos", |
Mark Renouf | a622520 | 2024-05-10 12:55:48 -0400 | [diff] [blame] | 850 | "mockito-kotlin-nodeps", |
Jeff Sharkey | 0b31917 | 2024-01-25 10:58:48 -0700 | [diff] [blame] | 851 | ], |
| 852 | libs: [ |
| 853 | "android.test.runner", |
| 854 | "android.test.base", |
| 855 | "android.test.mock", |
| 856 | ], |
| 857 | auto_gen_config: true, |
| 858 | plugins: [ |
| 859 | "dagger2-compiler", |
| 860 | ], |
| 861 | } |
| 862 | |
Jared Duke | 84e94b3 | 2022-08-05 13:46:38 -0700 | [diff] [blame] | 863 | // Opt-out config for optimizing the SystemUI target using R8. |
| 864 | // Disabled via `export SYSTEMUI_OPTIMIZE_JAVA=false`, or explicitly in Make via |
| 865 | // `SYSTEMUI_OPTIMIZE_JAVA := false`. |
Jared Duke | 9dfa77b | 2021-12-22 13:31:06 -0800 | [diff] [blame] | 866 | soong_config_module_type { |
| 867 | name: "systemui_optimized_java_defaults", |
| 868 | module_type: "java_defaults", |
| 869 | config_namespace: "ANDROID", |
| 870 | bool_variables: ["SYSTEMUI_OPTIMIZE_JAVA"], |
| 871 | properties: ["optimize"], |
Jared Duke | 2fee740 | 2021-10-18 14:35:04 -0700 | [diff] [blame] | 872 | } |
| 873 | |
Jared Duke | 9dfa77b | 2021-12-22 13:31:06 -0800 | [diff] [blame] | 874 | systemui_optimized_java_defaults { |
Jared Duke | 5bf6fb3 | 2023-02-23 14:27:47 -0800 | [diff] [blame] | 875 | name: "SystemUI_optimized_defaults", |
Jared Duke | 2fee740 | 2021-10-18 14:35:04 -0700 | [diff] [blame] | 876 | soong_config_variables: { |
Jared Duke | 9dfa77b | 2021-12-22 13:31:06 -0800 | [diff] [blame] | 877 | SYSTEMUI_OPTIMIZE_JAVA: { |
Jared Duke | 2fee740 | 2021-10-18 14:35:04 -0700 | [diff] [blame] | 878 | optimize: { |
| 879 | enabled: true, |
| 880 | optimize: true, |
| 881 | shrink: true, |
Jared Duke | 0668af2 | 2023-02-23 14:43:31 -0800 | [diff] [blame] | 882 | shrink_resources: true, |
Rico Wind | 65526b2 | 2024-03-19 09:02:58 +0100 | [diff] [blame] | 883 | optimized_shrink_resources: true, |
Jared Duke | 5ecfe87 | 2022-09-08 09:25:30 -0700 | [diff] [blame] | 884 | ignore_warnings: false, |
Jared Duke | f090417 | 2022-06-07 18:01:06 +0000 | [diff] [blame] | 885 | proguard_compatibility: false, |
Jared Duke | 2fee740 | 2021-10-18 14:35:04 -0700 | [diff] [blame] | 886 | }, |
| 887 | conditions_default: { |
| 888 | optimize: { |
Jared Duke | 5ecfe87 | 2022-09-08 09:25:30 -0700 | [diff] [blame] | 889 | ignore_warnings: false, |
Jared Duke | f090417 | 2022-06-07 18:01:06 +0000 | [diff] [blame] | 890 | proguard_compatibility: false, |
Jared Duke | 2fee740 | 2021-10-18 14:35:04 -0700 | [diff] [blame] | 891 | }, |
| 892 | }, |
| 893 | }, |
| 894 | }, |
| 895 | } |
| 896 | |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 897 | android_app { |
| 898 | name: "SystemUI", |
Jared Duke | 2fee740 | 2021-10-18 14:35:04 -0700 | [diff] [blame] | 899 | defaults: [ |
| 900 | "platform_app_defaults", |
Jared Duke | 5bf6fb3 | 2023-02-23 14:27:47 -0800 | [diff] [blame] | 901 | "SystemUI_optimized_defaults", |
Jared Duke | 2fee740 | 2021-10-18 14:35:04 -0700 | [diff] [blame] | 902 | ], |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 903 | static_libs: [ |
| 904 | "SystemUI-core", |
| 905 | ], |
Anton Hansson | 7ccca9f | 2019-02-08 09:01:32 +0000 | [diff] [blame] | 906 | resource_dirs: [], |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 907 | |
Colin Cross | c23cde4 | 2023-06-21 11:22:11 -0700 | [diff] [blame] | 908 | use_resource_processor: true, |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 909 | platform_apis: true, |
Jeongik Cha | d45d9e1 | 2019-12-04 13:38:39 +0900 | [diff] [blame] | 910 | system_ext_specific: true, |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 911 | certificate: "platform", |
| 912 | privileged: true, |
| 913 | |
Colin Cross | 6954ea7 | 2023-07-18 10:52:21 -0700 | [diff] [blame] | 914 | kotlincflags: ["-Xjvm-default=all"], |
Selim Cinek | 820ba2d | 2019-06-18 18:59:09 -0700 | [diff] [blame] | 915 | |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 916 | dxflags: ["--multi-dex"], |
Jared Duke | 5bf6fb3 | 2023-02-23 14:27:47 -0800 | [diff] [blame] | 917 | optimize: { |
| 918 | proguard_flags_files: ["proguard.flags"], |
| 919 | }, |
Winson Chung | b754f52 | 2020-08-03 22:17:08 -0700 | [diff] [blame] | 920 | required: [ |
| 921 | "privapp_whitelist_com.android.systemui", |
Hongwei Wang | 2b227ee | 2022-08-19 09:38:18 -0700 | [diff] [blame] | 922 | "wmshell.protolog.json.gz", |
Pablo Gamito | 5fe2c80 | 2024-02-12 12:48:48 +0000 | [diff] [blame] | 923 | "wmshell.protolog.pb", |
Winson Chung | b754f52 | 2020-08-03 22:17:08 -0700 | [diff] [blame] | 924 | ], |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 925 | } |