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 { |
| 18 | default_applicable_licenses: ["frameworks_base_packages_SystemUI_license"], |
| 19 | } |
| 20 | |
| 21 | // Added automatically by a large-scale-change |
| 22 | // See: http://go/android-license-faq |
| 23 | license { |
| 24 | name: "frameworks_base_packages_SystemUI_license", |
| 25 | visibility: [":__subpackages__"], |
| 26 | license_kinds: [ |
| 27 | "SPDX-license-identifier-Apache-2.0", |
| 28 | ], |
| 29 | license_text: [ |
| 30 | "NOTICE", |
| 31 | ], |
| 32 | } |
| 33 | |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 34 | java_library { |
| 35 | name: "SystemUI-proto", |
| 36 | |
| 37 | srcs: ["src/**/*.proto"], |
| 38 | |
| 39 | proto: { |
| 40 | type: "nano", |
| 41 | }, |
Winson Chung | eb1aa3d | 2020-08-25 19:02:29 -0700 | [diff] [blame] | 42 | |
| 43 | libs: [ |
| 44 | "WindowManager-Shell-proto", |
| 45 | ], |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 46 | } |
| 47 | |
| 48 | java_library { |
| 49 | name: "SystemUI-tags", |
| 50 | srcs: ["src/com/android/systemui/EventLogTags.logtags"], |
| 51 | } |
| 52 | |
Jay Aliomer | 722473e | 2021-09-23 16:59:09 -0400 | [diff] [blame] | 53 | filegroup { |
| 54 | name: "ReleaseJavaFiles", |
| 55 | srcs: ["src/com/android/systemui/flags/FeatureFlagManager.java"], |
| 56 | } |
| 57 | |
| 58 | filegroup { |
| 59 | name: "DebugJavaFiles", |
| 60 | srcs: ["src-debug/com/android/systemui/flags/FeatureFlagManager.java"], |
| 61 | } |
| 62 | |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 63 | android_library { |
| 64 | name: "SystemUI-core", |
| 65 | srcs: [ |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 66 | "src/**/*.kt", |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 67 | "src/**/*.java", |
| 68 | "src/**/I*.aidl", |
| 69 | ], |
Jay Aliomer | 722473e | 2021-09-23 16:59:09 -0400 | [diff] [blame] | 70 | product_variables: { |
| 71 | debuggable: { |
| 72 | srcs: [":DebugJavaFiles"], |
| 73 | exclude_srcs: [":ReleaseJavaFiles"], |
| 74 | }, |
| 75 | }, |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 76 | resource_dirs: [ |
Sunny Goyal | b4a2601 | 2019-12-05 15:49:41 -0800 | [diff] [blame] | 77 | "res-product", |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 78 | "res-keyguard", |
| 79 | "res", |
| 80 | ], |
| 81 | static_libs: [ |
Winson Chung | 10a9b4b | 2019-12-18 10:01:36 -0800 | [diff] [blame] | 82 | "WindowManager-Shell", |
Jordan Demeulenaere | cea62bb | 2021-04-08 11:04:50 +0200 | [diff] [blame] | 83 | "SystemUIAnimationLib", |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 84 | "SystemUIPluginLib", |
| 85 | "SystemUISharedLib", |
Jerry Chang | 919d1d2 | 2020-07-16 12:31:24 +0800 | [diff] [blame] | 86 | "SystemUI-statsd", |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 87 | "SettingsLib", |
Fabian Kozynski | 713b727 | 2020-03-03 18:35:52 -0500 | [diff] [blame] | 88 | "androidx.viewpager2_viewpager2", |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 89 | "androidx.legacy_legacy-support-v4", |
| 90 | "androidx.recyclerview_recyclerview", |
| 91 | "androidx.preference_preference", |
| 92 | "androidx.appcompat_appcompat", |
Mark Renouf | e239501 | 2020-12-16 01:05:12 -0500 | [diff] [blame] | 93 | "androidx.concurrent_concurrent-futures", |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 94 | "androidx.mediarouter_mediarouter", |
| 95 | "androidx.palette_palette", |
| 96 | "androidx.legacy_legacy-preference-v14", |
| 97 | "androidx.leanback_leanback", |
| 98 | "androidx.slice_slice-core", |
| 99 | "androidx.slice_slice-view", |
| 100 | "androidx.slice_slice-builders", |
| 101 | "androidx.arch.core_core-runtime", |
| 102 | "androidx.lifecycle_lifecycle-extensions", |
Joshua Tsuji | b1a796b | 2019-01-16 15:43:12 -0800 | [diff] [blame] | 103 | "androidx.dynamicanimation_dynamicanimation", |
Steve Elliott | 300b48f | 2019-05-29 14:13:50 -0400 | [diff] [blame] | 104 | "androidx-constraintlayout_constraintlayout", |
Miranda Kephart | e1a22b9 | 2020-12-16 14:01:12 -0500 | [diff] [blame] | 105 | "androidx.exifinterface_exifinterface", |
Steve Elliott | a7d7205 | 2020-12-16 23:04:19 -0500 | [diff] [blame] | 106 | "kotlinx_coroutines_android", |
| 107 | "kotlinx_coroutines", |
Hyunyoung Song | 5347a54 | 2019-03-01 13:32:28 -0800 | [diff] [blame] | 108 | "iconloader_base", |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 109 | "SystemUI-tags", |
| 110 | "SystemUI-proto", |
Lucas Dupin | 6844741 | 2021-08-31 00:19:39 +0000 | [diff] [blame] | 111 | "monet", |
Dave Mankoff | dffcc47 | 2020-07-08 15:25:16 -0400 | [diff] [blame] | 112 | "dagger2", |
Andy Wickham | 64e3410 | 2021-03-07 16:02:01 -0800 | [diff] [blame] | 113 | "jsr330", |
Beverly | 46817e1 | 2021-06-22 16:29:52 -0400 | [diff] [blame] | 114 | "lottie", |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 115 | ], |
| 116 | manifest: "AndroidManifest.xml", |
| 117 | |
Selim Cinek | 820ba2d | 2019-06-18 18:59:09 -0700 | [diff] [blame] | 118 | kotlincflags: ["-Xjvm-default=enable"], |
Jason Monk | 73e8ffc | 2018-12-06 14:45:19 -0500 | [diff] [blame] | 119 | |
Dave Mankoff | dffcc47 | 2020-07-08 15:25:16 -0400 | [diff] [blame] | 120 | plugins: ["dagger2-compiler"], |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 121 | } |
| 122 | |
Tadashi G. Takaoka | a6572dc | 2019-09-17 15:18:53 +0900 | [diff] [blame] | 123 | filegroup { |
| 124 | name: "SystemUI-tests-utils", |
| 125 | srcs: [ |
Dave Mankoff | b4935a2 | 2021-06-01 15:12:15 -0400 | [diff] [blame] | 126 | "tests/src/com/android/systemui/SysuiTestCase.java", |
| 127 | "tests/src/com/android/systemui/TestableDependency.java", |
| 128 | "tests/src/com/android/systemui/classifier/FalsingManagerFake.java", |
Beverly | 79c89ec | 2019-12-13 10:33:01 -0500 | [diff] [blame] | 129 | "tests/src/com/android/systemui/statusbar/notification/collection/NotificationEntryBuilder.java", |
Tadashi G. Takaoka | a6572dc | 2019-09-17 15:18:53 +0900 | [diff] [blame] | 130 | "tests/src/com/android/systemui/statusbar/RankingBuilder.java", |
| 131 | "tests/src/com/android/systemui/statusbar/SbnBuilder.java", |
Dave Mankoff | b4935a2 | 2021-06-01 15:12:15 -0400 | [diff] [blame] | 132 | "tests/src/com/android/systemui/SysuiTestableContext.java", |
| 133 | "tests/src/com/android/systemui/utils/leaks/BaseLeakChecker.java", |
| 134 | "tests/src/com/android/systemui/utils/leaks/LeakCheckedTest.java", |
| 135 | "tests/src/com/android/systemui/**/Fake*.java", |
| 136 | "tests/src/com/android/systemui/**/Fake*.kt", |
| 137 | ], |
| 138 | exclude_srcs: [ |
| 139 | "tests/src/com/android/systemui/**/*Test.java", |
| 140 | "tests/src/com/android/systemui/**/*Test.kt", |
Tadashi G. Takaoka | a6572dc | 2019-09-17 15:18:53 +0900 | [diff] [blame] | 141 | ], |
| 142 | path: "tests/src", |
| 143 | } |
| 144 | |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 145 | android_library { |
| 146 | name: "SystemUI-tests", |
Sunny Goyal | eb18d39 | 2020-02-07 16:48:14 -0800 | [diff] [blame] | 147 | manifest: "tests/AndroidManifest-base.xml", |
| 148 | additional_manifests: ["tests/AndroidManifest.xml"], |
| 149 | |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 150 | resource_dirs: [ |
| 151 | "tests/res", |
Sunny Goyal | b4a2601 | 2019-12-05 15:49:41 -0800 | [diff] [blame] | 152 | "res-product", |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 153 | "res-keyguard", |
| 154 | "res", |
| 155 | ], |
| 156 | srcs: [ |
| 157 | "tests/src/**/*.kt", |
| 158 | "tests/src/**/*.java", |
| 159 | "src/**/*.kt", |
| 160 | "src/**/*.java", |
| 161 | "src/**/I*.aidl", |
| 162 | ], |
| 163 | static_libs: [ |
Jordan Demeulenaere | cea62bb | 2021-04-08 11:04:50 +0200 | [diff] [blame] | 164 | "SystemUIAnimationLib", |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 165 | "SystemUIPluginLib", |
| 166 | "SystemUISharedLib", |
Hyunyoung Song | 3d89c93 | 2020-04-11 13:31:06 -0700 | [diff] [blame] | 167 | "SystemUI-statsd", |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 168 | "SettingsLib", |
Fabian Kozynski | 713b727 | 2020-03-03 18:35:52 -0500 | [diff] [blame] | 169 | "androidx.viewpager2_viewpager2", |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 170 | "androidx.legacy_legacy-support-v4", |
| 171 | "androidx.recyclerview_recyclerview", |
| 172 | "androidx.preference_preference", |
| 173 | "androidx.appcompat_appcompat", |
Mark Renouf | e239501 | 2020-12-16 01:05:12 -0500 | [diff] [blame] | 174 | "androidx.concurrent_concurrent-futures", |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 175 | "androidx.mediarouter_mediarouter", |
| 176 | "androidx.palette_palette", |
| 177 | "androidx.legacy_legacy-preference-v14", |
| 178 | "androidx.leanback_leanback", |
| 179 | "androidx.slice_slice-core", |
| 180 | "androidx.slice_slice-view", |
| 181 | "androidx.slice_slice-builders", |
| 182 | "androidx.arch.core_core-runtime", |
| 183 | "androidx.lifecycle_lifecycle-extensions", |
Joshua Tsuji | b1a796b | 2019-01-16 15:43:12 -0800 | [diff] [blame] | 184 | "androidx.dynamicanimation_dynamicanimation", |
Steve Elliott | 300b48f | 2019-05-29 14:13:50 -0400 | [diff] [blame] | 185 | "androidx-constraintlayout_constraintlayout", |
Miranda Kephart | e1a22b9 | 2020-12-16 14:01:12 -0500 | [diff] [blame] | 186 | "androidx.exifinterface_exifinterface", |
Pinyao Ting | ee191b1 | 2020-04-29 18:35:39 -0700 | [diff] [blame] | 187 | "kotlinx-coroutines-android", |
| 188 | "kotlinx-coroutines-core", |
Lyn Han | 1b4f25e | 2019-06-11 13:56:34 -0700 | [diff] [blame] | 189 | "iconloader_base", |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 190 | "SystemUI-tags", |
| 191 | "SystemUI-proto", |
| 192 | "metrics-helper-lib", |
Tadashi G. Takaoka | c7340fb | 2020-10-20 17:50:13 +0900 | [diff] [blame] | 193 | "hamcrest-library", |
| 194 | "androidx.test.rules", |
| 195 | "androidx.test.uiautomator", |
Beverly | 9028d41 | 2019-12-11 16:33:16 -0500 | [diff] [blame] | 196 | "mockito-target-extended-minus-junit4", |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 197 | "testables", |
| 198 | "truth-prebuilt", |
Lucas Dupin | 6844741 | 2021-08-31 00:19:39 +0000 | [diff] [blame] | 199 | "monet", |
Dave Mankoff | dffcc47 | 2020-07-08 15:25:16 -0400 | [diff] [blame] | 200 | "dagger2", |
Bill Lin | a17858d1 | 2020-07-14 10:30:10 +0800 | [diff] [blame] | 201 | "jsr330", |
| 202 | "WindowManager-Shell", |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 203 | ], |
| 204 | libs: [ |
| 205 | "android.test.runner", |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 206 | "android.test.base", |
| 207 | ], |
Selim Cinek | 820ba2d | 2019-06-18 18:59:09 -0700 | [diff] [blame] | 208 | kotlincflags: ["-Xjvm-default=enable"], |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 209 | aaptflags: [ |
| 210 | "--extra-packages", |
Hyunyoung Song | 8f9d34c | 2019-08-30 14:47:43 -0700 | [diff] [blame] | 211 | "com.android.systemui", |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 212 | ], |
Dave Mankoff | dffcc47 | 2020-07-08 15:25:16 -0400 | [diff] [blame] | 213 | plugins: ["dagger2-compiler"], |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 214 | } |
| 215 | |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 216 | android_app { |
| 217 | name: "SystemUI", |
Jeff Sharkey | d23b537 | 2020-10-23 14:30:42 -0600 | [diff] [blame] | 218 | defaults: ["platform_app_defaults"], |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 219 | static_libs: [ |
| 220 | "SystemUI-core", |
| 221 | ], |
Anton Hansson | 7ccca9f | 2019-02-08 09:01:32 +0000 | [diff] [blame] | 222 | resource_dirs: [], |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 223 | |
| 224 | platform_apis: true, |
Jeongik Cha | d45d9e1 | 2019-12-04 13:38:39 +0900 | [diff] [blame] | 225 | system_ext_specific: true, |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 226 | certificate: "platform", |
| 227 | privileged: true, |
| 228 | |
| 229 | optimize: { |
| 230 | proguard_flags_files: ["proguard.flags"], |
| 231 | }, |
| 232 | |
Selim Cinek | 820ba2d | 2019-06-18 18:59:09 -0700 | [diff] [blame] | 233 | kotlincflags: ["-Xjvm-default=enable"], |
| 234 | |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 235 | dxflags: ["--multi-dex"], |
Winson Chung | b754f52 | 2020-08-03 22:17:08 -0700 | [diff] [blame] | 236 | required: [ |
| 237 | "privapp_whitelist_com.android.systemui", |
Winson Chung | b754f52 | 2020-08-03 22:17:08 -0700 | [diff] [blame] | 238 | ], |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 239 | } |