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