// // Copyright (C) 2018 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // package { default_team: "trendy_team_system_ui_please_use_a_more_specific_subteam_if_possible_", default_applicable_licenses: ["frameworks_base_packages_SystemUI_license"], } // Added automatically by a large-scale-change // See: http://go/android-license-faq license { name: "frameworks_base_packages_SystemUI_license", visibility: [":__subpackages__"], license_kinds: [ "SPDX-license-identifier-Apache-2.0", ], license_text: [ "NOTICE", ], } java_library { name: "SystemUI-proto", srcs: ["src/**/*.proto"], proto: { type: "nano", }, libs: [ "WindowManager-Shell-proto", ], } java_library { name: "SystemUI-tags", srcs: ["src/com/android/systemui/EventLogTags.logtags"], } filegroup { name: "ReleaseJavaFiles", srcs: [ "src-release/**/*.kt", "src-release/**/*.java", ], visibility: ["//visibility:private"], } filegroup { name: "DebugJavaFiles", srcs: [ "src-debug/**/*.kt", "src-debug/**/*.java", ], visibility: ["//visibility:private"], } filegroup { name: "SystemUI-tests-robofiles", srcs: [ "tests/src/**/*.kt", "tests/src/**/*.java", ], visibility: ["//visibility:private"], } // Tests where robolectric conversion caused errors in SystemUITests at runtime filegroup { name: "SystemUI-tests-broken-robofiles-sysui-run", srcs: [ "tests/src/**/systemui/broadcast/BroadcastDispatcherTest.kt", "tests/src/**/systemui/broadcast/ActionReceiverTest.kt", "tests/src/**/systemui/doze/DozeMachineTest.java", "tests/src/**/systemui/globalactions/GlobalActionsDialogLiteTest.java", "tests/src/**/systemui/globalactions/GlobalActionsImeTest.java", "tests/src/**/systemui/keyguard/data/repository/KeyguardTransitionRepositoryTest.kt", "tests/src/**/systemui/media/controls/domain/pipeline/LegacyMediaDataManagerImplTest.kt", "tests/src/**/systemui/media/controls/domain/pipeline/MediaDataProcessorTest.kt", "tests/src/**/systemui/media/dialog/MediaOutputAdapterTest.java", "tests/src/**/systemui/media/dialog/MediaOutputBaseDialogTest.java", "tests/src/**/systemui/media/dialog/MediaOutputBroadcastDialogTest.java", "tests/src/**/systemui/media/dialog/MediaOutputDialogTest.java", "tests/src/**/systemui/mediaprojection/permission/MediaProjectionPermissionDialogDelegateTest.kt", ], } // Tests where robolectric failed at runtime. (go/multivalent-tests) filegroup { name: "SystemUI-tests-broken-robofiles-run", srcs: [ "tests/src/**/systemui/accessibility/AccessibilityButtonModeObserverTest.java", "tests/src/**/systemui/accessibility/AccessibilityButtonTargetsObserverTest.java", "tests/src/**/systemui/accessibility/FullscreenMagnificationControllerTest.java", "tests/src/**/systemui/accessibility/WindowMagnificationAnimationControllerTest.java", "tests/src/**/systemui/animation/FontInterpolatorTest.kt", "tests/src/**/systemui/animation/TextAnimatorTest.kt", "tests/src/**/systemui/animation/TextInterpolatorTest.kt", "tests/src/**/systemui/animation/ActivityTransitionAnimatorTest.kt", "tests/src/**/systemui/animation/AnimatorTestRuleOrderTest.kt", "tests/src/**/systemui/animation/DialogTransitionAnimatorTest.kt", "tests/src/**/systemui/broadcast/ActionReceiverTest.kt", "tests/src/**/systemui/broadcast/BroadcastDispatcherTest.kt", "tests/src/**/systemui/compose/ComposeInitializerTest.kt", "tests/src/**/systemui/controls/ui/ControlsActivityTest.kt", "tests/src/**/systemui/controls/management/ControlsEditingActivityTest.kt", "tests/src/**/systemui/controls/management/ControlsRequestDialogTest.kt", "tests/src/**/systemui/controls/ui/DetailDialogTest.kt", "tests/src/**/systemui/doze/DozeMachineTest.kt", "tests/src/**/systemui/fontscaling/FontScalingDialogDelegateTest.kt", "tests/src/**/systemui/keyguard/CustomizationProviderTest.kt", "tests/src/**/systemui/globalactions/GlobalActionsColumnLayoutTest.java", "tests/src/**/systemui/globalactions/GlobalActionsDialogLiteTest.java", "tests/src/**/systemui/globalactions/GlobalActionsImeTest.java", "tests/src/**/systemui/graphics/ImageLoaderTest.kt", "tests/src/**/systemui/keyguard/CustomizationProviderTest.kt", "tests/src/**/systemui/keyguard/KeyguardViewMediatorTest.java", "tests/src/**/systemui/keyguard/LifecycleTest.java", "tests/src/**/systemui/keyguard/data/repository/KeyguardTransitionRepositoryTest.kt", "tests/src/**/systemui/keyguard/ui/view/layout/sections/ClockSectionTest.kt", "tests/src/**/systemui/keyguard/data/repository/KeyguardBlueprintRepositoryTest.kt", "tests/src/**/systemui/keyguard/ui/viewmodel/KeyguardSmartspaceViewModelTest.kt", "tests/src/**/systemui/lifecycle/RepeatWhenAttachedTest.kt", "tests/src/**/systemui/log/LogBufferTest.kt", "tests/src/**/systemui/media/dialog/MediaOutputBaseDialogTest.java", "tests/src/**/systemui/media/dialog/MediaOutputBroadcastDialogTest.java", "tests/src/**/systemui/media/dialog/MediaOutputDialogTest.java", "tests/src/**/systemui/media/controls/domain/resume/MediaResumeListenerTest.kt", "tests/src/**/systemui/mediaprojection/taskswitcher/ui/TaskSwitcherNotificationCoordinatorTest.kt", "tests/src/**/systemui/navigationbar/NavigationBarButtonTest.java", "tests/src/**/systemui/people/PeopleProviderTest.java", "tests/src/**/systemui/people/PeopleSpaceUtilsTest.java", "tests/src/**/systemui/people/widget/PeopleSpaceWidgetManagerTest.java", "tests/src/**/systemui/people/PeopleTileViewHelperTest.java", "tests/src/**/systemui/power/data/repository/PowerRepositoryImplTest.kt", "tests/src/**/systemui/privacy/PrivacyConfigFlagsTest.kt", "tests/src/**/systemui/privacy/PrivacyDialogV2Test.kt", "tests/src/**/systemui/qs/external/TileRequestDialogEventLoggerTest.kt", "tests/src/**/systemui/qs/AutoAddTrackerTest.kt", "tests/src/**/systemui/qs/external/TileRequestDialogEventLoggerTest.kt", "tests/src/**/systemui/qs/tiles/DndTileTest.kt", "tests/src/**/systemui/qs/tiles/DreamTileTest.java", "tests/src/**/systemui/qs/FgsManagerControllerTest.java", "tests/src/**/systemui/qs/QSPanelTest.kt", "tests/src/**/systemui/reardisplay/RearDisplayDialogControllerTest.java", "tests/src/**/systemui/statusbar/KeyboardShortcutListSearchTest.java", "tests/src/**/systemui/statusbar/KeyboardShortcutsTest.java", "tests/src/**/systemui/statusbar/KeyguardIndicationControllerWithCoroutinesTest.kt", "tests/src/**/systemui/statusbar/notification/AssistantFeedbackControllerTest.java", "tests/src/**/systemui/statusbar/notification/collection/NotifCollectionTest.java", "tests/src/**/systemui/statusbar/notification/collection/NotificationEntryTest.java", "tests/src/**/systemui/statusbar/notification/collection/render/GroupExpansionManagerTest.kt", "tests/src/**/systemui/statusbar/notification/collection/ShadeListBuilderTest.java", "tests/src/**/systemui/statusbar/notification/footer/ui/view/FooterViewTest.java", "tests/src/**/systemui/statusbar/notification/interruption/NotificationInterruptStateProviderImplTest.java", "tests/src/**/systemui/statusbar/notification/interruption/NotificationInterruptStateProviderWrapperTest.kt", "tests/src/**/systemui/statusbar/notification/interruption/VisualInterruptionDecisionProviderImplTest.kt", "tests/src/**/systemui/statusbar/NotificationLockscreenUserManagerTest.java", "tests/src/**/systemui/statusbar/notification/logging/NotificationLoggerTest.java", "tests/src/**/systemui/statusbar/notification/row/ExpandableNotificationRowTest.java", "tests/src/**/systemui/statusbar/notification/row/NotificationContentInflaterTest.java", "tests/src/**/systemui/statusbar/notification/row/NotificationContentViewTest.kt", "tests/src/**/systemui/statusbar/notification/row/NotificationConversationInfoTest.java", "tests/src/**/systemui/statusbar/notification/row/NotificationGutsManagerTest.java", "tests/src/**/systemui/statusbar/notification/row/NotificationGutsManagerWithScenesTest.kt", "tests/src/**/systemui/statusbar/notification/row/NotifLayoutInflaterFactoryTest.kt", "tests/src/**/systemui/statusbar/notification/row/wrapper/NotificationTemplateViewWrapperTest.kt", "tests/src/**/systemui/statusbar/notification/stack/NotificationSectionsManagerTest.java", "tests/src/**/systemui/statusbar/notification/stack/NotificationStackScrollLayoutTest.java", "tests/src/**/systemui/statusbar/notification/stack/ui/viewmodel/SharedNotificationContainerViewModelTest.kt", "tests/src/**/systemui/statusbar/phone/AutoTileManagerTest.java", "tests/src/**/systemui/statusbar/phone/CentralSurfacesImplTest.java", "tests/src/**/systemui/statusbar/phone/fragment/CollapsedStatusBarFragmentTest.java", "tests/src/**/systemui/statusbar/phone/PhoneStatusBarTransitionsTest.kt", "tests/src/**/systemui/statusbar/phone/PhoneStatusBarViewControllerTest.kt", "tests/src/**/systemui/statusbar/phone/PhoneStatusBarView.java", "tests/src/**/systemui/statusbar/phone/PhoneStatusBarViewTest.kt", "tests/src/**/systemui/statusbar/phone/StatusBarBoundsProviderTest.kt", "tests/src/**/systemui/statusbar/phone/StatusBarMoveFromCenterAnimationControllerTest.kt", "tests/src/**/systemui/statusbar/pipeline/airplane/ui/viewmodel/AirplaneModeViewModelImplTest.kt", "tests/src/**/systemui/statusbar/pipeline/mobile/data/repository/prod/MobileConnectionsRepositoryTest.kt", "tests/src/**/systemui/statusbar/pipeline/mobile/ui/view/ModernStatusBarMobileViewTest.kt", "tests/src/**/systemui/statusbar/pipeline/wifi/data/repository/prod/WifiRepositoryImplTest.kt", "tests/src/**/systemui/statusbar/pipeline/wifi/ui/view/ModernStatusBarWifiViewTest.kt", "tests/src/**/systemui/statusbar/policy/CallbackControllerTest.java", "tests/src/**/systemui/statusbar/policy/DeviceStateRotationLockSettingControllerTest.java", "tests/src/**/systemui/statusbar/policy/InflatedSmartRepliesTest.java", "tests/src/**/systemui/statusbar/policy/LocationControllerImplTest.java", "tests/src/**/systemui/statusbar/policy/RemoteInputViewTest.java", "tests/src/**/systemui/statusbar/policy/SmartReplyViewTest.java", "tests/src/**/systemui/statusbar/StatusBarStateControllerImplTest.kt", "tests/src/**/systemui/theme/ThemeOverlayApplierTest.java", "tests/src/**/systemui/touch/TouchInsetManagerTest.java", "tests/src/**/systemui/util/LifecycleFragmentTest.java", "tests/src/**/systemui/util/TestableAlertDialogTest.kt", "tests/src/**/systemui/util/kotlin/PairwiseFlowTest", "tests/src/**/systemui/util/sensors/AsyncManagerTest.java", "tests/src/**/systemui/util/sensors/ThresholdSensorImplTest.java", "tests/src/**/systemui/util/wakelock/KeepAwakeAnimationListenerTest.java", "tests/src/**/systemui/volume/VolumeDialogImplTest.java", "tests/src/**/systemui/wallet/controller/QuickAccessWalletControllerTest.java", "tests/src/**/systemui/wallet/ui/WalletScreenControllerTest.java", ], } // Tests where robolectric failed at compile time. (go/multivalent-tests) filegroup { name: "SystemUI-tests-broken-robofiles-compile", srcs: [ "tests/src/**/*DeviceOnlyTest.java", "tests/src/**/*DeviceOnlyTest.kt", "tests/src/**/systemui/media/taptotransfer/receiver/MediaTttChipControllerReceiverTest.kt", "tests/src/**/systemui/accessibility/data/repository/AccessibilityQsShortcutsRepositoryImplForDeviceTest.kt", "tests/src/**/systemui/biometrics/AuthDialogPanelInteractionDetectorTest.kt", "tests/src/**/systemui/controls/management/ControlsFavoritingActivityTest.kt", "tests/src/**/systemui/controls/management/ControlsProviderSelectorActivityTest.kt", "tests/src/**/systemui/controls/start/ControlsStartableTest.kt", "tests/src/**/systemui/haptics/slider/SliderStateTrackerTest.kt", "tests/src/**/systemui/keyboard/stickykeys/ui/StickyKeysIndicatorCoordinatorTest.kt", "tests/src/**/systemui/keyboard/stickykeys/ui/viewmodel/StickyKeysIndicatorViewModelTest.kt", "tests/src/**/systemui/keyguard/data/quickaffordance/MuteQuickAffordanceCoreStartableTest.kt", "tests/src/**/systemui/keyguard/domain/interactor/KeyguardQuickAffordanceInteractorParameterizedTest.kt", "tests/src/**/systemui/keyguard/domain/interactor/KeyguardQuickAffordanceInteractorSceneContainerTest.kt", "tests/src/**/systemui/keyguard/ResourceTrimmerTest.kt", "tests/src/**/systemui/keyguard/ui/viewmodel/KeyguardBottomAreaViewModelTest.kt", "tests/src/**/systemui/keyguard/ui/viewmodel/KeyguardQuickAffordancesCombinedViewModelTest.kt", "tests/src/**/systemui/media/controls/domain/pipeline/MediaTimeoutListenerTest.kt", "tests/src/**/systemui/media/controls/ui/controller/MediaHierarchyManagerTest.kt", "tests/src/**/systemui/mediaprojection/taskswitcher/MediaProjectionTaskSwitcherCoreStartableTest.kt", "tests/src/**/systemui/media/taptotransfer/receiver/FakeMediaTttChipControllerReceiver.kt", "tests/src/**/systemui/qs/tileimpl/QSTileViewImplTest.kt", "tests/src/**/systemui/qs/tiles/DeviceControlsTileTest.kt", "tests/src/**/systemui/screenshot/ActionExecutorTest.kt", "tests/src/**/systemui/screenshot/ActionIntentCreatorTest.kt", "tests/src/**/systemui/screenshot/DefaultScreenshotActionsProviderTest.kt", "tests/src/**/systemui/screenshot/TakeScreenshotServiceTest.kt", "tests/src/**/systemui/statusbar/commandline/CommandRegistryTest.kt", "tests/src/**/systemui/statusbar/notification/collection/TargetSdkResolverTest.kt", "tests/src/**/systemui/statusbar/notification/icon/IconManagerTest.kt", "tests/src/**/systemui/statusbar/notification/row/BigPictureIconManagerTest.kt", "tests/src/**/systemui/statusbar/notification/row/NotificationSettingsControllerTest.kt", "tests/src/**/systemui/statusbar/notification/stack/ui/view/NotificationStatsLoggerTest.kt", "tests/src/**/systemui/statusbar/pipeline/satellite/data/prod/DeviceBasedSatelliteRepositoryImplTest.kt", "tests/src/**/systemui/statusbar/policy/BatteryStateNotifierTest.kt", "tests/src/**/systemui/statusbar/policy/FlashlightControllerImplTest.kt", "tests/src/**/systemui/statusbar/policy/SensitiveNotificationProtectionControllerFlagDisabledTest.kt", "tests/src/**/systemui/stylus/StylusUsiPowerStartableTest.kt", "tests/src/**/systemui/temporarydisplay/TemporaryViewDisplayControllerTest.kt", "tests/src/**/keyguard/ClockEventControllerTest.kt", "tests/src/**/keyguard/LegacyLockIconViewControllerWithCoroutinesTest.kt", "tests/src/**/keyguard/LegacyLockIconViewControllerBaseTest.kt", "tests/src/**/keyguard/LegacyLockIconViewControllerTest.java", "tests/src/**/systemui/animation/TransitionAnimatorTest.kt", "tests/src/**/systemui/bluetooth/qsdialog/BluetoothAutoOnRepositoryTest.kt", "tests/src/**/systemui/bluetooth/qsdialog/BluetoothStateInteractorTest.kt", "tests/src/**/systemui/bluetooth/qsdialog/BluetoothTileDialogDelegateTest.kt", "tests/src/**/systemui/bluetooth/qsdialog/BluetoothTileDialogRepositoryTest.kt", "tests/src/**/systemui/bluetooth/qsdialog/BluetoothTileDialogViewModelTest.kt", "tests/src/**/systemui/bluetooth/qsdialog/DeviceItemFactoryTest.kt", "tests/src/**/systemui/bluetooth/qsdialog/DeviceItemInteractorTest.kt", // TODO(b/322324387): Fails to start due to missing ScreenshotActivity "tests/src/**/systemui/bouncer/ui/composable/BouncerContentTest.kt", "tests/src/**/systemui/bouncer/ui/composable/PatternBouncerTest.kt", "tests/src/**/systemui/broadcast/UserBroadcastDispatcherTest.kt", "tests/src/**/systemui/charging/WiredChargingRippleControllerTest.kt", "tests/src/**/systemui/clipboardoverlay/ClipboardModelTest.kt", "tests/src/**/systemui/controls/controller/AuxiliaryPersistenceWrapperTest.kt", "tests/src/**/systemui/controls/controller/ControlsBindingControllerImplTest.kt", "tests/src/**/systemui/controls/controller/ControlsControllerImplTest.kt", "tests/src/**/systemui/controls/controller/DeletionJobServiceTest.kt", "tests/src/**/systemui/controls/settings/ControlsSettingsDialogManagerImplTest.kt", "tests/src/**/systemui/controls/ui/ControlsUiControllerImplTest.kt", "tests/src/**/systemui/controls/ui/ControlViewHolderTest.kt", "tests/src/**/systemui/controls/ui/SelectionItemTest.kt", "tests/src/**/systemui/keyguard/ui/view/layout/sections/DefaultDeviceEntrySectionTest.kt", "tests/src/**/systemui/media/controls/domain/pipeline/LegacyMediaDataFilterImplTest.kt", "tests/src/**/systemui/media/controls/domain/pipeline/LegacyMediaDataManagerImplTest.kt", "tests/src/**/systemui/media/controls/domain/pipeline/MediaDataFilterImplTest.kt", "tests/src/**/systemui/media/controls/ui/animation/AnimationBindHandlerTest.kt", "tests/src/**/systemui/media/controls/ui/animation/ColorSchemeTransitionTest.kt", "tests/src/**/systemui/media/controls/ui/animation/MetadataAnimationHandlerTest.kt", "tests/src/**/systemui/media/controls/ui/controller/MediaCarouselControllerTest.kt", "tests/src/**/systemui/media/controls/ui/controller/MediaControlPanelTest.kt", "tests/src/**/systemui/media/controls/ui/controller/MediaViewControllerTest.kt", "tests/src/**/systemui/media/controls/ui/drawable/SquigglyProgressTest.kt", "tests/src/**/systemui/media/controls/ui/MediaPlayerDataTest.kt", "tests/src/**/systemui/media/taptotransfer/sender/MediaTttSenderCoordinatorTest.kt", "tests/src/**/systemui/navigationbar/gestural/BackPanelControllerTest.kt", "tests/src/**/systemui/notetask/NoteTaskControllerTest.kt", "tests/src/**/systemui/notetask/NoteTaskInitializerTest.kt", "tests/src/**/systemui/power/domain/interactor/PowerInteractorTest.kt", "tests/src/**/systemui/privacy/AppOpsPrivacyItemMonitorTest.kt", "tests/src/**/systemui/privacy/PrivacyItemControllerTest.kt", "tests/src/**/systemui/qs/external/CustomTileStatePersisterTest.kt", "tests/src/**/systemui/qs/external/TileRequestDialogTest.kt", "tests/src/**/systemui/qs/external/TileServiceRequestControllerTest.kt", "tests/src/**/systemui/qs/tileimpl/TilesStatesTextTest.kt", "tests/src/**/systemui/qs/tiles/AlarmTileTest.kt", "tests/src/**/systemui/qs/tiles/BluetoothTileTest.kt", "tests/src/**/systemui/screenshot/ScreenshotPolicyImplTest.kt", "tests/src/**/systemui/settings/DisplayTrackerImplTest.kt", "tests/src/**/systemui/settings/UserFileManagerImplTest.kt", "tests/src/**/systemui/settings/UserTrackerImplReceiveTest.kt", "tests/src/**/systemui/settings/UserTrackerImplTest.kt", "tests/src/**/systemui/shade/GlanceableHubContainerControllerTest.kt", "tests/src/**/systemui/shade/NotificationsQSContainerControllerLegacyTest.kt", "tests/src/**/systemui/shade/NotificationsQSContainerControllerTest.kt", "tests/src/**/systemui/shade/ShadeExpansionStateManagerTest.kt", "tests/src/**/systemui/shade/ShadeHeaderControllerTest.kt", "tests/src/**/systemui/shade/transition/LargeScreenShadeInterpolatorImplTest.kt", "tests/src/**/systemui/statusbar/commandline/CommandParserTest.kt", "tests/src/**/systemui/statusbar/connectivity/MobileStateTest.kt", "tests/src/**/systemui/statusbar/events/SystemStatusAnimationSchedulerImplTest.kt", "tests/src/**/systemui/statusbar/gesture/GenericGestureDetectorTest.kt", "tests/src/**/systemui/statusbar/LightRevealScrimTest.kt", "tests/src/**/systemui/statusbar/LockscreenShadeTransitionControllerTest.kt", "tests/src/**/systemui/statusbar/notification/collection/coordinator/DataStoreCoordinatorTest.kt", "tests/src/**/systemui/statusbar/notification/collection/coordinator/KeyguardCoordinatorTest.kt", "tests/src/**/systemui/statusbar/notification/collection/coordinator/RowAppearanceCoordinatorTest.kt", "tests/src/**/systemui/statusbar/notification/collection/coordinator/ShadeEventCoordinatorTest.kt", "tests/src/**/systemui/statusbar/notification/collection/coordinator/StackCoordinatorTest.kt", "tests/src/**/systemui/statusbar/notification/collection/coordinator/ViewConfigCoordinatorTest.kt", "tests/src/**/systemui/statusbar/notification/logging/NotificationMemoryLoggerTest.kt", "tests/src/**/systemui/statusbar/notification/logging/NotificationMemoryMeterTest.kt", "tests/src/**/systemui/statusbar/notification/logging/NotificationMemoryViewWalkerTest.kt", "tests/src/**/systemui/statusbar/notification/RoundableTest.kt", "tests/src/**/systemui/statusbar/notification/row/ChannelEditorDialogControllerTest.kt", "tests/src/**/systemui/statusbar/notification/row/SingleLineConversationViewBinderTest.kt", "tests/src/**/systemui/statusbar/notification/row/SingleLineViewBinderTest.kt", "tests/src/**/systemui/statusbar/notification/row/SingleLineViewInflaterTest.kt", "tests/src/**/systemui/statusbar/notification/row/TextPrecomputerTest.kt", "tests/src/**/systemui/statusbar/phone/FoldStateListenerTest.kt", "tests/src/**/systemui/statusbar/phone/fragment/MultiSourceMinAlphaControllerTest.kt", "tests/src/**/systemui/statusbar/pipeline/mobile/data/model/SystemUiCarrierConfigTest.kt", "tests/src/**/systemui/statusbar/pipeline/mobile/data/repository/MobileRepositorySwitcherTest.kt", "tests/src/**/systemui/statusbar/pipeline/mobile/data/repository/prod/FullMobileConnectionRepositoryTest.kt", "tests/src/**/systemui/statusbar/pipeline/mobile/data/repository/prod/MobileConnectionRepositoryTest.kt", "tests/src/**/systemui/statusbar/pipeline/mobile/data/repository/prod/MobileConnectionTelephonySmokeTests.kt", "tests/src/**/systemui/statusbar/pipeline/shared/data/repository/ConnectivityRepositoryImplTest.kt", "tests/src/**/systemui/statusbar/pipeline/wifi/shared/model/WifiNetworkModelTest.kt", "tests/src/**/systemui/statusbar/pipeline/wifi/ui/viewmodel/WifiViewModelIconParameterizedTest.kt", "tests/src/**/systemui/statusbar/policy/DeviceControlsControllerImplTest.kt", "tests/src/**/systemui/statusbar/policy/VariableDateViewControllerTest.kt", "tests/src/**/systemui/statusbar/policy/WalletControllerImplTest.kt", "tests/src/**/systemui/statusbar/SplitShadeLockScreenOverScrollerTest.kt", "tests/src/**/systemui/stylus/StylusUsiPowerUiTest.kt", "tests/src/**/systemui/temporarydisplay/chipbar/ChipbarCoordinatorTest.kt", "tests/src/**/keyguard/KeyguardUpdateMonitorTest.java", "tests/src/**/keyguard/LegacyLockIconViewControllerBaseTest.java", "tests/src/**/keyguard/CarrierTextManagerTest.java", "tests/src/**/systemui/ScreenDecorationsTest.java", "tests/src/**/systemui/temporarydisplay/chipbar/SwipeChipbarAwayGestureHandlerTest.kt", "tests/src/**/systemui/media/controls/domain/pipeline/MediaDataProcessorTest.kt", "tests/src/**/systemui/media/controls/domain/pipeline/LegacyMediaDataManagerImplTest.kt", "tests/src/**/systemui/shared/system/RemoteTransitionTest.java", "tests/src/**/systemui/navigationbar/NavigationBarControllerImplTest.java", "tests/src/**/systemui/bluetooth/qsdialog/AudioSharingInteractorTest.kt", "tests/src/**/systemui/bluetooth/qsdialog/DeviceItemActionInteractorTest.kt", "tests/src/**/systemui/notetask/quickaffordance/NoteTaskQuickAffordanceConfigTest.kt", "tests/src/**/systemui/notetask/LaunchNotesRoleSettingsTrampolineActivityTest.kt", "tests/src/**/systemui/notetask/shortcut/LaunchNoteTaskActivityTest.kt", "tests/src/**/systemui/DisplayCutoutBaseViewTest.kt", "tests/src/**/systemui/qs/tiles/dialog/InternetDialogDelegateTest.java", "tests/src/**/systemui/qs/tiles/dialog/InternetDialogDelegateControllerTest.java", "tests/src/**/systemui/qs/tiles/HotspotTileTest.java", "tests/src/**/systemui/qs/external/TileLifecycleManagerTest.java", "tests/src/**/systemui/recents/OverviewProxyServiceTest.kt", "tests/src/**/systemui/stylus/StylusManagerTest.kt", "tests/src/**/systemui/statusbar/phone/StatusBarNotificationActivityStarterTest.java", "tests/src/**/systemui/statusbar/phone/KeyguardClockPositionAlgorithmTest.java", "tests/src/**/systemui/statusbar/policy/BatteryControllerStartableTest.java", "tests/src/**/systemui/statusbar/policy/BatteryControllerTest.java", "tests/src/**/systemui/statusbar/policy/SensitiveNotificationProtectionControllerTest.kt", "tests/src/**/systemui/statusbar/notification/NotificationSectionsFeatureManagerTest.kt", "tests/src/**/systemui/statusbar/pipeline/mobile/data/repository/CarrierConfigRepositoryTest.kt", "tests/src/**/systemui/statusbar/KeyboardShortcutsReceiverTest.java", "tests/src/**/systemui/wmshell/BubblesTest.java", "tests/src/**/systemui/biometrics/AuthRippleControllerTest.kt", "tests/src/**/keyguard/KeyguardAbsKeyInputViewControllerTest.java", "tests/src/**/systemui/accessibility/floatingmenu/MenuAnimationControllerTest.java", "tests/src/**/systemui/clipboardoverlay/ClipboardListenerTest.java", "tests/src/**/systemui/doze/DozeScreenStateTest.java", "tests/src/**/systemui/keyguard/WorkLockActivityControllerTest.java", "tests/src/**/systemui/media/dialog/MediaOutputControllerTest.java", "tests/src/**/systemui/navigationbar/NavigationBarTest.java", "tests/src/**/systemui/power/PowerNotificationWarningsTest.java", "tests/src/**/systemui/power/PowerUITest.java", "tests/src/**/systemui/qs/QSFooterViewControllerTest.java", "tests/src/**/systemui/qs/QSImplTest.java", "tests/src/**/systemui/qs/QSSecurityFooterTest.java", "tests/src/**/systemui/qs/tileimpl/QSTileImplTest.java", "tests/src/**/systemui/qs/tiles/QuickAccessWalletTileTest.java", "tests/src/**/systemui/shade/carrier/ShadeCarrierGroupControllerTest.java", "tests/src/**/systemui/shared/plugins/PluginActionManagerTest.java", "tests/src/**/systemui/statusbar/CommandQueueTest.java", "tests/src/**/systemui/statusbar/connectivity/CallbackHandlerTest.java", "tests/src/**/systemui/statusbar/connectivity/NetworkControllerBaseTest.java", "tests/src/**/systemui/statusbar/KeyguardIndicationControllerTest.java", "tests/src/**/systemui/statusbar/notification/stack/NotificationStackScrollLayoutControllerTest.java", "tests/src/**/systemui/statusbar/phone/ScrimControllerTest.java", "tests/src/**/systemui/statusbar/policy/RotationLockControllerImplTest.java", "tests/src/**/systemui/statusbar/policy/SecurityControllerTest.java", "tests/src/**/systemui/toast/ToastUITest.java", "tests/src/**/systemui/statusbar/connectivity/NetworkControllerDataTest.java", "tests/src/**/systemui/statusbar/connectivity/NetworkControllerEthernetTest.java", "tests/src/**/systemui/statusbar/connectivity/NetworkControllerSignalTest.java", "tests/src/**/systemui/statusbar/connectivity/NetworkControllerWifiTest.java", ], visibility: ["//visibility:private"], } //Create a library to expose SystemUI's resources to other modules. android_library { name: "SystemUI-res", use_resource_processor: true, resource_dirs: [ "res-product", "res-keyguard", "res", ], static_libs: [ "SystemUISharedLib", "SystemUICustomizationLib", "SettingsLib", "androidx.leanback_leanback", "androidx.slice_slice-core", "androidx.slice_slice-view", ], manifest: "AndroidManifest-res.xml", } android_library { name: "SystemUI-core", srcs: [ "src/**/*.kt", "src/**/*.java", "src/**/I*.aidl", ":ReleaseJavaFiles", "compose/features/src/**/*.kt", "compose/facade/enabled/src/**/*.kt", ], product_variables: { debuggable: { srcs: [":DebugJavaFiles"], exclude_srcs: [":ReleaseJavaFiles"], }, }, use_resource_processor: true, static_libs: [ "//frameworks/libs/systemui:compilelib", "SystemUI-res", "WifiTrackerLib", "WindowManager-Shell", "PlatformAnimationLib", "SystemUICommon", "SystemUICustomizationLib", "SystemUILogLib", "SystemUIPluginLib", "SystemUISharedLib", "SystemUI-shared-utils", "SystemUI-statsd", "SettingsLib", "com_android_systemui_flags_lib", "//frameworks/libs/systemui:com_android_systemui_shared_flags_lib", "androidx.core_core-ktx", "androidx.viewpager2_viewpager2", "androidx.legacy_legacy-support-v4", "androidx.recyclerview_recyclerview", "androidx.preference_preference", "androidx.appcompat_appcompat", "androidx.concurrent_concurrent-futures", "androidx.mediarouter_mediarouter", "androidx.palette_palette", "androidx.legacy_legacy-preference-v14", "androidx.leanback_leanback", "androidx.slice_slice-core", "androidx.slice_slice-view", "androidx.slice_slice-builders", "androidx.arch.core_core-runtime", "androidx.lifecycle_lifecycle-common-java8", "androidx.lifecycle_lifecycle-extensions", "androidx.lifecycle_lifecycle-runtime-ktx", "androidx.dynamicanimation_dynamicanimation", "androidx-constraintlayout_constraintlayout", "androidx.exifinterface_exifinterface", "androidx.room_room-runtime", "androidx.room_room-ktx", "com.google.android.material_material", "device_state_flags_lib", "kotlinx_coroutines_android", "kotlinx_coroutines", "//frameworks/libs/systemui:iconloader_base", "SystemUI-tags", "SystemUI-proto", "monet", "libmonet", "dagger2", "jsr305", "jsr330", "lottie", "LowLightDreamLib", "TraceurCommon", "//frameworks/libs/systemui:motion_tool_lib", "notification_flags_lib", "PlatformComposeCore", "PlatformComposeSceneTransitionLayout", "androidx.compose.runtime_runtime", "androidx.compose.material3_material3", "androidx.compose.material_material-icons-extended", "androidx.activity_activity-compose", "androidx.compose.animation_animation-graphics", "androidx.lifecycle_lifecycle-viewmodel-compose", "device_policy_aconfig_flags_lib", ], libs: [ "keepanno-annotations", ], manifest: "AndroidManifest.xml", javacflags: [ "-Adagger.fastInit=enabled", "-Adagger.explicitBindingConflictsWithInject=ERROR", "-Adagger.strictMultibindingValidation=enabled", "-Aroom.schemaLocation=frameworks/base/packages/SystemUI/schemas", ], kotlincflags: ["-Xjvm-default=all"], plugins: [ "androidx.room_room-compiler-plugin", "dagger2-compiler", ], lint: { extra_check_modules: ["SystemUILintChecker"], warning_checks: ["MissingApacheLicenseDetector"], baseline_filename: "lint-baseline.xml", }, } filegroup { name: "AAA-src", srcs: ["tests/src/com/android/AAAPlusPlusVerifySysuiRequiredTestPropertiesTest.java"], path: "tests/src", } filegroup { name: "kosmos-src", srcs: ["tests/utils/kosmos/src/**/*.kt"], path: "tests/utils/kosmos", } java_library { name: "kosmos", host_supported: true, srcs: [":kosmos-src"], static_libs: [ "kotlin-reflect", "kotlin-stdlib", ], } filegroup { name: "SystemUI-tests-utils", srcs: [ "tests/utils/src/**/*.java", "tests/utils/src/**/*.kt", ":kosmos-src", ], path: "tests/utils", } filegroup { name: "SystemUI-tests-multivalent", srcs: [ "multivalentTests/src/**/*.kt", "multivalentTests/src/**/*.java", ], path: "multivalentTests/src", } java_library { name: "SystemUI-tests-concurrency", srcs: [ "src/com/android/systemui/util/concurrency/DelayableExecutor.java", "src/com/android/systemui/util/time/SystemClock.java", "tests/utils/src/com/android/systemui/util/concurrency/FakeExecutor.java", "tests/utils/src/com/android/systemui/util/time/FakeSystemClock.java", ], jarjar_rules: ":jarjar-rules-shared", } android_library { name: "SystemUI-tests-base", use_resource_processor: true, manifest: "tests/AndroidManifest-base.xml", resource_dirs: [ "tests/res", ], asset_dirs: [ "tests/goldens", ], static_libs: [ "SystemUI-res", "WifiTrackerLib", "PlatformAnimationLib", "PlatformMotionTestingCompose", "ScreenshotComposeUtilsLib", "SystemUIPluginLib", "SystemUISharedLib", "SystemUICustomizationLib", "SystemUICustomizationTestUtils", "SystemUI-shared-utils", "SystemUI-statsd", "SettingsLib", "com_android_systemui_flags_lib", "//frameworks/libs/systemui:com_android_systemui_shared_flags_lib", "flag-junit-base", "platform-parametric-runner-lib", "androidx.viewpager2_viewpager2", "androidx.legacy_legacy-support-v4", "androidx.recyclerview_recyclerview", "androidx.preference_preference", "androidx.appcompat_appcompat", "androidx.concurrent_concurrent-futures", "androidx.mediarouter_mediarouter", "androidx.palette_palette", "androidx.legacy_legacy-preference-v14", "androidx.leanback_leanback", "androidx.slice_slice-core", "androidx.slice_slice-view", "androidx.slice_slice-builders", "androidx.arch.core_core-runtime", "androidx.lifecycle_lifecycle-common-java8", "androidx.lifecycle_lifecycle-extensions", "androidx.lifecycle_lifecycle-runtime-ktx", "androidx.dynamicanimation_dynamicanimation", "androidx-constraintlayout_constraintlayout", "androidx.exifinterface_exifinterface", "androidx.room_room-runtime", "androidx.room_room-ktx", "device_state_flags_lib", "kotlinx-coroutines-android", "kotlinx-coroutines-core", "kotlinx_coroutines_test", "kotlin-reflect", "//frameworks/libs/systemui:iconloader_base", "SystemUI-tags", "SystemUI-proto", "metrics-helper-lib", "hamcrest-library", "androidx.test.rules", "testables", "truth", "monet", "libmonet", "dagger2", "jsr330", "WindowManager-Shell", "LowLightDreamLib", "//frameworks/libs/systemui:motion_tool_lib", "androidx.core_core-animation-testing", "androidx.compose.ui_ui", "flag-junit", "ravenwood-junit", "platform-test-annotations", "notification_flags_lib", "PlatformComposeCore", "PlatformComposeSceneTransitionLayout", "androidx.compose.runtime_runtime", "androidx.compose.material3_material3", "androidx.compose.material_material-icons-extended", "androidx.activity_activity-compose", "androidx.compose.animation_animation-graphics", "androidx.lifecycle_lifecycle-viewmodel-compose", "TraceurCommon", ], } android_library { name: "SystemUI-tests", use_resource_processor: true, manifest: "tests/AndroidManifest-base.xml", resource_dirs: [], additional_manifests: ["tests/AndroidManifest.xml"], srcs: [ "tests/src/**/*.kt", "tests/src/**/*.java", "src/**/*.kt", "src/**/*.java", "src/**/I*.aidl", ":ReleaseJavaFiles", ":SystemUI-tests-multivalent", ":SystemUI-tests-utils", "compose/features/src/**/*.kt", "compose/facade/enabled/src/**/*.kt", ], static_libs: [ "//frameworks/libs/systemui:compilelib", "SystemUI-tests-base", "androidx.test.uiautomator_uiautomator", "androidx.core_core-animation-testing", "mockito-target-extended-minus-junit4", "mockito-kotlin-nodeps", "androidx.test.ext.junit", "androidx.test.ext.truth", "kotlin-test", "platform-screenshot-diff-core", "PlatformMotionTesting", "SystemUICustomizationTestUtils", "androidx.compose.runtime_runtime", "kosmos", "androidx.test.rules", ], libs: [ "android.test.runner", "android.test.base", "android.test.mock", "keepanno-annotations", ], kotlincflags: ["-Xjvm-default=all"], aaptflags: [ "--extra-packages", "com.android.systemui", ], plugins: [ "androidx.room_room-compiler-plugin", "dagger2-compiler", ], lint: { test: true, extra_check_modules: ["SystemUILintChecker"], }, } android_app { name: "SystemUIRobo-stub", // SystemUiRavenTests references the .aapt.srcjar use_resource_processor: false, defaults: [ "platform_app_defaults", "SystemUI_optimized_defaults", ], manifest: "tests/AndroidManifest-base.xml", srcs: [ "src/**/*.kt", "src/**/*.java", "src/**/I*.aidl", ":ReleaseJavaFiles", "compose/features/src/**/*.kt", "compose/facade/enabled/src/**/*.kt", ], static_libs: [ "//frameworks/libs/systemui:compilelib", "SystemUI-tests-base", "androidx.compose.runtime_runtime", "SystemUI-core", ], libs: [ "keepanno-annotations", ], aaptflags: [ "--extra-packages", "com.android.systemui", ], dont_merge_manifests: true, platform_apis: true, system_ext_specific: true, certificate: "platform", privileged: true, resource_dirs: [], kotlincflags: ["-Xjvm-default=all"], optimize: { shrink_resources: false, optimized_shrink_resources: false, proguard_flags_files: ["proguard.flags"], }, plugins: ["dagger2-compiler"], } java_library { name: "RoboTestLibraries", static_libs: [ "dagger2", "androidx.test.uiautomator_uiautomator", "androidx.core_core-animation-testing", "androidx.test.ext.junit", "inline-mockito-robolectric-prebuilt", "mockito-kotlin-nodeps", "platform-parametric-runner-lib", "SystemUICustomizationTestUtils", "kotlin-test", "kosmos", ], } android_robolectric_test { name: "SystemUiRoboTests", srcs: [ "tests/robolectric/src/**/*.kt", "tests/robolectric/src/**/*.java", ":SystemUI-tests-utils", ":SystemUI-tests-multivalent", ], static_libs: [ "RoboTestLibraries", ], libs: [ "android.test.runner", "android.test.base", "android.test.mock", "truth", ], upstream: true, instrumentation_for: "SystemUIRobo-stub", java_resource_dirs: ["tests/robolectric/config"], plugins: [ "dagger2-compiler", ], strict_mode: false, } // in-place tests which use Robolectric in the tests directory // instead of multivalentTests android_robolectric_test { name: "SystemUiRoboTestsInplace", srcs: [ "tests/robolectric/src/**/*.kt", "tests/robolectric/src/**/*.java", ":SystemUI-tests-utils", ":SystemUI-tests-multivalent", ":SystemUI-tests-robofiles", ], exclude_srcs: [ ":SystemUI-tests-broken-robofiles-compile", ":SystemUI-tests-broken-robofiles-run", ":SystemUI-tests-broken-robofiles-sysui-run", ], static_libs: [ "RoboTestLibraries", ], libs: [ "android.test.runner", "android.test.base", "android.test.mock", "truth", ], upstream: true, instrumentation_for: "SystemUIRobo-stub", java_resource_dirs: ["tests/robolectric/config"], plugins: [ "dagger2-compiler", ], strict_mode: false, } android_ravenwood_test { name: "SystemUiRavenTests", srcs: [ ":SystemUI-tests-utils", ":SystemUI-tests-multivalent", // TODO(b/294256649): pivot to using {.aapt.jar} and re-enable // use_resource_processor: true when better supported by soong ":SystemUIRobo-stub{.aapt.srcjar}", ], static_libs: [ "SystemUI-core", "SystemUI-res", "SystemUI-tests-base", "androidx.test.uiautomator_uiautomator", "androidx.core_core-animation-testing", "androidx.test.ext.junit", "kosmos", "mockito-kotlin-nodeps", ], libs: [ "android.test.runner", "android.test.base", "android.test.mock", ], auto_gen_config: true, plugins: [ "dagger2-compiler", ], } // Opt-out config for optimizing the SystemUI target using R8. // Disabled via `export SYSTEMUI_OPTIMIZE_JAVA=false`, or explicitly in Make via // `SYSTEMUI_OPTIMIZE_JAVA := false`. soong_config_module_type { name: "systemui_optimized_java_defaults", module_type: "java_defaults", config_namespace: "ANDROID", bool_variables: ["SYSTEMUI_OPTIMIZE_JAVA"], properties: ["optimize"], } systemui_optimized_java_defaults { name: "SystemUI_optimized_defaults", soong_config_variables: { SYSTEMUI_OPTIMIZE_JAVA: { optimize: { enabled: true, optimize: true, shrink: true, shrink_resources: true, optimized_shrink_resources: true, ignore_warnings: false, proguard_compatibility: false, }, conditions_default: { optimize: { ignore_warnings: false, proguard_compatibility: false, }, }, }, }, } android_app { name: "SystemUI", defaults: [ "platform_app_defaults", "SystemUI_optimized_defaults", ], static_libs: [ "SystemUI-core", ], resource_dirs: [], use_resource_processor: true, platform_apis: true, system_ext_specific: true, certificate: "platform", privileged: true, kotlincflags: ["-Xjvm-default=all"], dxflags: ["--multi-dex"], optimize: { proguard_flags_files: ["proguard.flags"], }, required: [ "privapp_whitelist_com.android.systemui", "wmshell.protolog.json.gz", "wmshell.protolog.pb", ], }