blob: 657435326d1529029023e17711b8fc3883829cf2 [file] [log] [blame]
Jason Monka2f2d822018-08-13 11:10:48 -04001//
2// Copyright (C) 2018 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
Bob Badour8a6a2bc2021-02-12 17:07:05 -080017package {
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
23license {
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 Monka2f2d822018-08-13 11:10:48 -040034java_library {
35 name: "SystemUI-proto",
36
37 srcs: ["src/**/*.proto"],
38
39 proto: {
40 type: "nano",
41 },
Winson Chungeb1aa3d2020-08-25 19:02:29 -070042
43 libs: [
44 "WindowManager-Shell-proto",
45 ],
Jason Monka2f2d822018-08-13 11:10:48 -040046}
47
48java_library {
49 name: "SystemUI-tags",
50 srcs: ["src/com/android/systemui/EventLogTags.logtags"],
51}
52
Dave Mankoff8012d7b2020-11-13 17:34:39 -050053java_library {
54 name: "SystemUI-sensors",
55 srcs: [
56 "src/com/android/systemui/util/sensors/ThresholdSensor.java",
Andy Wickham64e34102021-03-07 16:02:01 -080057 ],
Dave Mankoff8012d7b2020-11-13 17:34:39 -050058}
59
Jason Monka2f2d822018-08-13 11:10:48 -040060android_library {
61 name: "SystemUI-core",
62 srcs: [
Jason Monkae7ced22018-08-22 16:56:58 -040063 "src/**/*.kt",
Jason Monka2f2d822018-08-13 11:10:48 -040064 "src/**/*.java",
65 "src/**/I*.aidl",
66 ],
67 resource_dirs: [
Sunny Goyalb4a26012019-12-05 15:49:41 -080068 "res-product",
Jason Monka2f2d822018-08-13 11:10:48 -040069 "res-keyguard",
70 "res",
71 ],
72 static_libs: [
Winson Chung10a9b4b2019-12-18 10:01:36 -080073 "WindowManager-Shell",
Jason Monka2f2d822018-08-13 11:10:48 -040074 "SystemUIPluginLib",
75 "SystemUISharedLib",
Jerry Chang919d1d22020-07-16 12:31:24 +080076 "SystemUI-statsd",
Jason Monka2f2d822018-08-13 11:10:48 -040077 "SettingsLib",
Fabian Kozynski713b7272020-03-03 18:35:52 -050078 "androidx.viewpager2_viewpager2",
Jason Monka2f2d822018-08-13 11:10:48 -040079 "androidx.legacy_legacy-support-v4",
80 "androidx.recyclerview_recyclerview",
81 "androidx.preference_preference",
82 "androidx.appcompat_appcompat",
Mark Renoufe2395012020-12-16 01:05:12 -050083 "androidx.concurrent_concurrent-futures",
Jason Monka2f2d822018-08-13 11:10:48 -040084 "androidx.mediarouter_mediarouter",
85 "androidx.palette_palette",
86 "androidx.legacy_legacy-preference-v14",
87 "androidx.leanback_leanback",
88 "androidx.slice_slice-core",
89 "androidx.slice_slice-view",
90 "androidx.slice_slice-builders",
91 "androidx.arch.core_core-runtime",
92 "androidx.lifecycle_lifecycle-extensions",
Joshua Tsujib1a796b2019-01-16 15:43:12 -080093 "androidx.dynamicanimation_dynamicanimation",
Steve Elliott300b48f2019-05-29 14:13:50 -040094 "androidx-constraintlayout_constraintlayout",
Miranda Kepharte1a22b92020-12-16 14:01:12 -050095 "androidx.exifinterface_exifinterface",
Steve Elliotta7d72052020-12-16 23:04:19 -050096 "kotlinx_coroutines_android",
97 "kotlinx_coroutines",
Hyunyoung Song5347a542019-03-01 13:32:28 -080098 "iconloader_base",
Jason Monka2f2d822018-08-13 11:10:48 -040099 "SystemUI-tags",
100 "SystemUI-proto",
Dave Mankoffdffcc472020-07-08 15:25:16 -0400101 "dagger2",
Andy Wickham64e34102021-03-07 16:02:01 -0800102 "jsr330",
Jason Monka2f2d822018-08-13 11:10:48 -0400103 ],
104 manifest: "AndroidManifest.xml",
105
Selim Cinek820ba2d2019-06-18 18:59:09 -0700106 kotlincflags: ["-Xjvm-default=enable"],
Jason Monk73e8ffc2018-12-06 14:45:19 -0500107
Dave Mankoffdffcc472020-07-08 15:25:16 -0400108 plugins: ["dagger2-compiler"],
Jason Monka2f2d822018-08-13 11:10:48 -0400109}
110
Tadashi G. Takaokaa6572dc2019-09-17 15:18:53 +0900111filegroup {
112 name: "SystemUI-tests-utils",
113 srcs: [
Beverly79c89ec2019-12-13 10:33:01 -0500114 "tests/src/com/android/systemui/statusbar/notification/collection/NotificationEntryBuilder.java",
Tadashi G. Takaokaa6572dc2019-09-17 15:18:53 +0900115 "tests/src/com/android/systemui/statusbar/RankingBuilder.java",
116 "tests/src/com/android/systemui/statusbar/SbnBuilder.java",
Prabir Pradhan4499bde2020-04-09 15:07:41 -0700117 "tests/src/com/android/systemui/util/concurrency/FakeExecutor.java",
118 "tests/src/com/android/systemui/util/time/FakeSystemClock.java",
Tadashi G. Takaokaa6572dc2019-09-17 15:18:53 +0900119 ],
120 path: "tests/src",
121}
122
Jason Monkae7ced22018-08-22 16:56:58 -0400123android_library {
124 name: "SystemUI-tests",
Sunny Goyaleb18d392020-02-07 16:48:14 -0800125 manifest: "tests/AndroidManifest-base.xml",
126 additional_manifests: ["tests/AndroidManifest.xml"],
127
Jason Monkae7ced22018-08-22 16:56:58 -0400128 resource_dirs: [
129 "tests/res",
Sunny Goyalb4a26012019-12-05 15:49:41 -0800130 "res-product",
Jason Monkae7ced22018-08-22 16:56:58 -0400131 "res-keyguard",
132 "res",
133 ],
134 srcs: [
135 "tests/src/**/*.kt",
136 "tests/src/**/*.java",
137 "src/**/*.kt",
138 "src/**/*.java",
139 "src/**/I*.aidl",
140 ],
141 static_libs: [
142 "SystemUIPluginLib",
143 "SystemUISharedLib",
Hyunyoung Song3d89c932020-04-11 13:31:06 -0700144 "SystemUI-statsd",
Jason Monkae7ced22018-08-22 16:56:58 -0400145 "SettingsLib",
Fabian Kozynski713b7272020-03-03 18:35:52 -0500146 "androidx.viewpager2_viewpager2",
Jason Monkae7ced22018-08-22 16:56:58 -0400147 "androidx.legacy_legacy-support-v4",
148 "androidx.recyclerview_recyclerview",
149 "androidx.preference_preference",
150 "androidx.appcompat_appcompat",
Mark Renoufe2395012020-12-16 01:05:12 -0500151 "androidx.concurrent_concurrent-futures",
Jason Monkae7ced22018-08-22 16:56:58 -0400152 "androidx.mediarouter_mediarouter",
153 "androidx.palette_palette",
154 "androidx.legacy_legacy-preference-v14",
155 "androidx.leanback_leanback",
156 "androidx.slice_slice-core",
157 "androidx.slice_slice-view",
158 "androidx.slice_slice-builders",
159 "androidx.arch.core_core-runtime",
160 "androidx.lifecycle_lifecycle-extensions",
Joshua Tsujib1a796b2019-01-16 15:43:12 -0800161 "androidx.dynamicanimation_dynamicanimation",
Steve Elliott300b48f2019-05-29 14:13:50 -0400162 "androidx-constraintlayout_constraintlayout",
Miranda Kepharte1a22b92020-12-16 14:01:12 -0500163 "androidx.exifinterface_exifinterface",
Pinyao Tingee191b12020-04-29 18:35:39 -0700164 "kotlinx-coroutines-android",
165 "kotlinx-coroutines-core",
Lyn Han1b4f25e2019-06-11 13:56:34 -0700166 "iconloader_base",
Jason Monkae7ced22018-08-22 16:56:58 -0400167 "SystemUI-tags",
168 "SystemUI-proto",
169 "metrics-helper-lib",
Tadashi G. Takaokac7340fb2020-10-20 17:50:13 +0900170 "hamcrest-library",
171 "androidx.test.rules",
172 "androidx.test.uiautomator",
Beverly9028d412019-12-11 16:33:16 -0500173 "mockito-target-extended-minus-junit4",
Jason Monkae7ced22018-08-22 16:56:58 -0400174 "testables",
175 "truth-prebuilt",
Dave Mankoffdffcc472020-07-08 15:25:16 -0400176 "dagger2",
Bill Lina17858d12020-07-14 10:30:10 +0800177 "jsr330",
178 "WindowManager-Shell",
Jason Monkae7ced22018-08-22 16:56:58 -0400179 ],
180 libs: [
181 "android.test.runner",
Jason Monkae7ced22018-08-22 16:56:58 -0400182 "android.test.base",
183 ],
Selim Cinek820ba2d2019-06-18 18:59:09 -0700184 kotlincflags: ["-Xjvm-default=enable"],
Jason Monkae7ced22018-08-22 16:56:58 -0400185 aaptflags: [
186 "--extra-packages",
Hyunyoung Song8f9d34c2019-08-30 14:47:43 -0700187 "com.android.systemui",
Jason Monkae7ced22018-08-22 16:56:58 -0400188 ],
Dave Mankoffdffcc472020-07-08 15:25:16 -0400189 plugins: ["dagger2-compiler"],
Jason Monkae7ced22018-08-22 16:56:58 -0400190}
191
Jason Monka2f2d822018-08-13 11:10:48 -0400192android_app {
193 name: "SystemUI",
Jeff Sharkeyd23b5372020-10-23 14:30:42 -0600194 defaults: ["platform_app_defaults"],
Jason Monka2f2d822018-08-13 11:10:48 -0400195 static_libs: [
196 "SystemUI-core",
197 ],
Anton Hansson7ccca9f2019-02-08 09:01:32 +0000198 resource_dirs: [],
Jason Monka2f2d822018-08-13 11:10:48 -0400199
200 platform_apis: true,
Jeongik Chad45d9e12019-12-04 13:38:39 +0900201 system_ext_specific: true,
Jason Monka2f2d822018-08-13 11:10:48 -0400202 certificate: "platform",
203 privileged: true,
204
205 optimize: {
206 proguard_flags_files: ["proguard.flags"],
207 },
208
Selim Cinek820ba2d2019-06-18 18:59:09 -0700209 kotlincflags: ["-Xjvm-default=enable"],
210
Jason Monka2f2d822018-08-13 11:10:48 -0400211 dxflags: ["--multi-dex"],
Winson Chungb754f522020-08-03 22:17:08 -0700212 required: [
213 "privapp_whitelist_com.android.systemui",
Winson Chungb754f522020-08-03 22:17:08 -0700214 ],
Jason Monka2f2d822018-08-13 11:10:48 -0400215}